summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Desnogues <laurent.desnogues@gmail.com>2009-08-25 01:12:25 +0200
committerAndrzej Zaborowski <balrog@zabor.org>2009-08-25 01:14:14 +0200
commit4e6f6d4c20252c6900f01787559b97a559c0b402 (patch)
treedaa54a58b5f418923096410b82e7cda70a9a7425
parentMake the e1000 the default network adapter for the pc target. (diff)
downloadqemu-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>
-rw-r--r--tcg/arm/tcg-target.c2
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;