From 4e6f6d4c20252c6900f01787559b97a559c0b402 Mon Sep 17 00:00:00 2001 From: Laurent Desnogues Date: Tue, 25 Aug 2009 01:12:25 +0200 Subject: [PATCH] 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 Signed-off-by: Andrzej Zaborowski --- tcg/arm/tcg-target.c | 2 ++ 1 file changed, 2 insertions(+) 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;