All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] target/m68k: Allow movec only on 68010+
@ 2020-01-14 20:13 BALATON Zoltan
  2020-01-14 20:50 ` Laurent Vivier
  2020-05-01 13:11 ` BALATON Zoltan
  0 siblings, 2 replies; 6+ messages in thread
From: BALATON Zoltan @ 2020-01-14 20:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laurent Vivier

The movec opcode does not exist on 68000 and should raise an
exception. Fix the feature mask to only allow movec on newer 68k CPUs.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
 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 fcdb7bc8e4..f19da064c8 100644
--- a/target/m68k/translate.c
+++ b/target/m68k/translate.c
@@ -5988,7 +5988,7 @@ void register_m68k_insns (CPUM68KState *env)
     BASE(stop,      4e72, ffff);
     BASE(rte,       4e73, ffff);
     INSN(cf_movec,  4e7b, ffff, CF_ISA_A);
-    INSN(m68k_movec, 4e7a, fffe, M68000);
+    INSN(m68k_movec, 4e7a, fffe, FPU);
 #endif
     BASE(nop,       4e71, ffff);
     INSN(rtd,       4e74, ffff, RTD);
-- 
2.13.7



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-02 14:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-14 20:13 [PATCH] target/m68k: Allow movec only on 68010+ BALATON Zoltan
2020-01-14 20:50 ` Laurent Vivier
2020-05-01 13:11 ` BALATON Zoltan
2020-05-01 14:02   ` Laurent Vivier
2020-05-02  1:38     ` BALATON Zoltan
2020-05-02 14:55       ` Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.