Skip to contentSkip to conversation

ARM back-end: Fix encode_imm

PATCH New Laurent Desnogues 1 participant 1 message Aug 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM back-end: Fix encode_imm

Hello,

the encode_imm function in tcg/arm/tcg-target.c lacks shift declaration.

Laurent

tcg/arm/tcg-target.c +2 -0
index 525994c..8c38578 100644
@@ -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;