ARM back-end: Fix encode_imm

Submitted by Laurent Desnogues on Aug. 24, 2009, 12:33 p.m.

Details

Message ID 761ea48b0908240533i598aef02v91b0ac34ef8c42be@mail.gmail.com
State Superseded
Headers show

Commit Message

Laurent Desnogues Aug. 24, 2009, 12:33 p.m.
Hello,

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


Laurent

Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>

Patch hide | download patch | download mbox

diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c
index 525994c..8c38578 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;