diff options
author | 2009-08-25 01:12:25 +0200 | |
---|---|---|
committer | 2009-08-25 01:14:14 +0200 | |
commit | 4e6f6d4c20252c6900f01787559b97a559c0b402 (patch) | |
tree | daa54a58b5f418923096410b82e7cda70a9a7425 /tcg | |
parent | Make the e1000 the default network adapter for the pc target. (diff) | |
download | qemu-kvm-4e6f6d4c20252c6900f01787559b97a559c0b402.tar.gz qemu-kvm-4e6f6d4c20252c6900f01787559b97a559c0b402.tar.bz2 qemu-kvm-4e6f6d4c20252c6900f01787559b97a559c0b402.zip |
ARM back-end: Fix encode_imm
the encode_imm function in tcg/arm/tcg-target.c lacks shift declaration.
Laurent
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/arm/tcg-target.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 525994c9c..8c385782d 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -188,6 +188,8 @@ static inline uint32_t rotl(uint32_t val, int n) right-rotated by an even amount between 0 and 30. */ static inline int encode_imm(uint32_t imm) { + int shift; + /* simple case, only lower bits */ if ((imm & ~0xff) == 0) return 0; |