ARM back-end: Fix encode_imm
authorLaurent Desnogues <laurent.desnogues@gmail.com>
Mon, 24 Aug 2009 23:12:25 +0000 (01:12 +0200)
committerAndrzej Zaborowski <balrog@zabor.org>
Mon, 24 Aug 2009 23:14:14 +0000 (01:14 +0200)
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>
tcg/arm/tcg-target.c

index 525994c..8c38578 100644 (file)
@@ -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;