* [Qemu-devel] [6641] Fix ColdFire fdmoved address decoding.
@ 2009-02-23 14:17 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2009-02-23 14:17 UTC (permalink / raw)
To: qemu-devel
Revision: 6641
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6641
Author: pbrook
Date: 2009-02-23 14:17:33 +0000 (Mon, 23 Feb 2009)
Log Message:
-----------
Fix ColdFire fdmoved address decoding.
Modified Paths:
--------------
trunk/target-m68k/translate.c
Modified: trunk/target-m68k/translate.c
===================================================================
--- trunk/target-m68k/translate.c 2009-02-23 14:11:10 UTC (rev 6640)
+++ trunk/target-m68k/translate.c 2009-02-23 14:17:33 UTC (rev 6641)
@@ -2141,7 +2141,7 @@
break;
case 5: /* OS_DOUBLE */
tcg_gen_mov_i32(tmp32, AREG(insn, 0));
- switch (insn >> 3) {
+ switch ((insn >> 3) & 7) {
case 2:
case 3:
case 4:
@@ -2156,7 +2156,7 @@
goto undef;
}
gen_store64(s, tmp32, src);
- switch (insn >> 3) {
+ switch ((insn >> 3) & 7) {
case 3:
tcg_gen_addi_i32(tmp32, tmp32, 8);
tcg_gen_mov_i32(AREG(insn, 0), tmp32);
@@ -2254,7 +2254,7 @@
if (opsize == OS_DOUBLE) {
tmp32 = tcg_temp_new_i32();
tcg_gen_mov_i32(tmp32, AREG(insn, 0));
- switch (insn >> 3) {
+ switch ((insn >> 3) & 7) {
case 2:
case 3:
case 4:
@@ -2275,7 +2275,7 @@
goto undef;
}
src = gen_load64(s, tmp32);
- switch (insn >> 3) {
+ switch ((insn >> 3) & 7) {
case 3:
tcg_gen_addi_i32(tmp32, tmp32, 8);
tcg_gen_mov_i32(AREG(insn, 0), tmp32);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-23 14:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-23 14:17 [Qemu-devel] [6641] Fix ColdFire fdmoved address decoding Paul Brook
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).