From: Laurent Vivier <laurent@vivier.eu>
To: qemu-devel@nongnu.org
Cc: Laurent Vivier <laurent@vivier.eu>
Subject: [Qemu-devel] [PULL 2/3] target-m68k: Fix cmpa operand size
Date: Thu, 24 Nov 2016 16:28:06 +0100 [thread overview]
Message-ID: <1480001287-17515-3-git-send-email-laurent@vivier.eu> (raw)
In-Reply-To: <1480001287-17515-1-git-send-email-laurent@vivier.eu>
"The size of the operation can be specified as word or long.
Word length source operands are sign-extended to 32 bits for
comparison."
So comparison is always done using OS_LONG.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twiddle.net>
---
target-m68k/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-m68k/translate.c b/target-m68k/translate.c
index 8e522db..d2d6816 100644
--- a/target-m68k/translate.c
+++ b/target-m68k/translate.c
@@ -2170,7 +2170,7 @@ DISAS_INSN(cmpa)
}
SRC_EA(env, src, opsize, 1, NULL);
reg = AREG(insn, 9);
- gen_update_cc_cmp(s, reg, src, opsize);
+ gen_update_cc_cmp(s, reg, src, OS_LONG);
}
DISAS_INSN(eor)
--
2.7.4
next prev parent reply other threads:[~2016-11-24 15:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-24 15:28 [Qemu-devel] [PULL 0/3] M68k for 2.8 patches Laurent Vivier
2016-11-24 15:28 ` [Qemu-devel] [PULL 1/3] target-m68k: fix EXG instruction Laurent Vivier
2016-11-24 15:28 ` Laurent Vivier [this message]
2016-11-24 15:28 ` [Qemu-devel] [PULL 3/3] target-m68k: fix muluw/mulsw Laurent Vivier
2016-11-25 12:05 ` [Qemu-devel] [PULL 0/3] M68k for 2.8 patches Stefan Hajnoczi
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=1480001287-17515-3-git-send-email-laurent@vivier.eu \
--to=laurent@vivier.eu \
--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).