From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH 4/4] target-arm: Fix decoding of Thumb preload and hint space
Date: Thu, 3 Feb 2011 20:33:48 +0000 [thread overview]
Message-ID: <AANLkTikbKwUnUXFke-x108pK3wYotDm=OM_urGoYBfUn@mail.gmail.com> (raw)
In-Reply-To: <1296762205-3043-5-git-send-email-peter.maydell@linaro.org>
On 3 February 2011 19:43, Peter Maydell <peter.maydell@linaro.org> wrote:
> @@ -8326,9 +8362,8 @@ static int disas_thumb2_insn(CPUState *env, DisasContext *s, uint16_t insn_hw1)
> imm = insn & 0xfff;
> tcg_gen_addi_i32(addr, addr, imm);
> } else {
> - op = (insn >> 8) & 7;
> imm = insn & 0xff;
> - switch (op) {
> + switch ((insn >> 8) & 7) {
> case 0: case 8: /* Shifted Register. */
> shift = (insn >> 4) & 0xf;
> if (shift > 3)
It's pretty obvious from the combination of "switch (something & 7)" with
"case 8:" that the load/store address decode logic here is bogus, but
since that's unrelated to the preload/hint space I'm going to address
it in a separate patchset later.
-- PMM
next prev parent reply other threads:[~2011-02-03 20:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 19:43 [Qemu-devel] [PATCH 0/4] target-arm: Fix decoding of preload and hint insns Peter Maydell
2011-02-03 19:43 ` [Qemu-devel] [PATCH 1/4] target-arm: Add CPU feature flag for v7MP Peter Maydell
2011-02-03 19:43 ` [Qemu-devel] [PATCH 2/4] target-arm: Clean up handling of MPIDR Peter Maydell
2011-02-03 19:43 ` [Qemu-devel] [PATCH 3/4] target-arm: Fix decoding of preload and memory hint space Peter Maydell
2011-02-03 19:43 ` [Qemu-devel] [PATCH 4/4] target-arm: Fix decoding of Thumb preload and " Peter Maydell
2011-02-03 20:33 ` Peter Maydell [this message]
2011-02-04 20:32 ` [Qemu-devel] [PATCH 0/4] target-arm: Fix decoding of preload and hint insns Aurelien Jarno
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='AANLkTikbKwUnUXFke-x108pK3wYotDm=OM_urGoYBfUn@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=patches@linaro.org \
--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).