Patchwork ARM back-end: Fix encode_imm

login
register
mail settings
Submitter Laurent Desnogues
Date Aug. 24, 2009, 12:33 p.m.
Message ID <761ea48b0908240533i598aef02v91b0ac34ef8c42be@mail.gmail.com>
Download mbox | patch
Permalink /patch/31940/
State Superseded
Headers show

Comments

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

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;