* [Qemu-devel] [PATCH] ARM back-end: Fix encode_imm
@ 2009-08-24 12:33 Laurent Desnogues
0 siblings, 0 replies; only message in thread
From: Laurent Desnogues @ 2009-08-24 12:33 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 155 bytes --]
Hello,
the encode_imm function in tcg/arm/tcg-target.c lacks shift declaration.
Laurent
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
[-- Attachment #2: arm-codegen-imm2.patch --]
[-- Type: text/x-diff, Size: 420 bytes --]
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-24 12:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-24 12:33 [Qemu-devel] [PATCH] ARM back-end: Fix encode_imm Laurent Desnogues
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).