From: Laurent Desnogues <laurent.desnogues@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] ARM back-end: Fix encode_imm
Date: Mon, 24 Aug 2009 14:33:27 +0200 [thread overview]
Message-ID: <761ea48b0908240533i598aef02v91b0ac34ef8c42be@mail.gmail.com> (raw)
[-- 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;
reply other threads:[~2009-08-24 12:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=761ea48b0908240533i598aef02v91b0ac34ef8c42be@mail.gmail.com \
--to=laurent.desnogues@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).