m68k: MOVEC insn. should generate exception if wrong CR is accessed
commit8df0e6aedad33c6746f4bc2a4d0cfdd432877084
authorLucien Murray-Pitts <lucienmp.qemu@gmail.com>
Mon, 1 Feb 2021 00:01:52 +0000 (1 01:01 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 11 Feb 2021 20:10:01 +0000 (11 21:10 +0100)
treeba2a57bb5241be8ed31e0bddca36733011d70696
parent5736526ce2da32205022b10dcdf9807e735e451a
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>
target/m68k/cpu.c
target/m68k/cpu.h
target/m68k/helper.c
target/m68k/translate.c