[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 4e6f6d4] ARM back-end: Fix encode_imm

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 4e6f6d4] ARM back-end: Fix encode_imm
Date: Thu, 27 Aug 2009 22:04:03 -0000

From: Laurent Desnogues <address@hidden>

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


Signed-off-by: Laurent Desnogues <address@hidden>
Signed-off-by: Andrzej Zaborowski <address@hidden>

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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]