diff options
author | Laurent Desnogues <laurent.desnogues@gmail.com> | 2009-08-25 01:12:25 +0200 |
---|---|---|
committer | Andrzej Zaborowski <balrog@zabor.org> | 2009-08-25 01:14:14 +0200 |
commit | 4e6f6d4c20252c6900f01787559b97a559c0b402 (patch) | |
tree | daa54a58b5f418923096410b82e7cda70a9a7425 | |
parent | 0d6b0b1d8190738b820955bf749741c1ae60e7d7 (diff) |
ARM back-end: Fix encode_imm
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>
-rw-r--r-- | tcg/arm/tcg-target.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 525994c9c1..8c385782da 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; |