diff options
author | Lucien Murray-Pitts <lucienmp.qemu@gmail.com> | 2021-02-01 01:01:52 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-02-11 21:10:01 +0100 |
commit | 8df0e6aedad33c6746f4bc2a4d0cfdd432877084 (patch) | |
tree | ba2a57bb5241be8ed31e0bddca36733011d70696 /target/m68k/cpu.h | |
parent | 5736526ce2da32205022b10dcdf9807e735e451a (diff) |
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>
Diffstat (limited to 'target/m68k/cpu.h')
-rw-r--r-- | target/m68k/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h index ae34c94615..5d2cb012e5 100644 --- a/target/m68k/cpu.h +++ b/target/m68k/cpu.h @@ -497,6 +497,7 @@ enum m68k_features { M68K_FEATURE_RTD, /* RTD insn. (680[12346]0, and CPU32) */ M68K_FEATURE_CHK2, /* CHK2 insn. (680[2346]0, and CPU32) */ M68K_FEATURE_MOVEP, /* MOVEP insn. (680[01234]0, and CPU32) */ + M68K_FEATURE_MOVEC, /* MOVEC insn. (from 68010) */ }; static inline int m68k_feature(CPUM68KState *env, int feature) |