mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
m68k: MOVEC insn. should generate exception if wrong CR is accessed
Add CPU class detection for each CR type in the m68k_move_to/from helpers, so that it throws and exception if an unsupported register is requested for that CPU class. Reclassified MOVEC insn. as only supported from 68010. Signed-off-by: Lucien Murray-Pitts <lucienmp.qemu@gmail.com> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Message-Id: <fc0d0187478716f05d990949347071969b743151.1612137712.git.balaton@eik.bme.hu> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
5736526ce2
commit
8df0e6aeda
4 changed files with 146 additions and 46 deletions
|
@ -6010,7 +6010,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, MOVEC);
|
||||
#endif
|
||||
BASE(nop, 4e71, ffff);
|
||||
INSN(rtd, 4e74, ffff, RTD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue