mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
target-arm: add AArch32 MIDR aliases in ARMv8
According to ARMv8 ARM, there are additional aliases to MIDR system register in AArch32 state. So add them to the list. Backports commit ac00c79ff6635ae9fd732ff357ada0d05e795500 from qemu
This commit is contained in:
parent
113cda90c3
commit
614ecb2bf2
|
@ -2937,11 +2937,13 @@ void register_cp_regs_for_features(ARMCPU *cpu)
|
|||
REGINFO_SENTINEL
|
||||
};
|
||||
ARMCPRegInfo id_v8_midr_cp_reginfo[] = {
|
||||
/* v8 MIDR -- the wildcard isn't necessary, and nor is the
|
||||
* variable-MIDR TI925 behaviour.
|
||||
*/
|
||||
{ "MIDR_EL1", 0,0,0, 3,0,0, ARM_CP_STATE_BOTH,
|
||||
ARM_CP_CONST, PL1_R, 0, NULL, cpu->midr },
|
||||
/* crn = 0 op1 = 0 crm = 0 op2 = 4,7 : AArch32 aliases of MIDR */
|
||||
{ "MIDR", 15,0,0, 0,0,4, 0, ARM_CP_ALIAS | ARM_CP_CONST,
|
||||
PL1_R, 0, NULL, cpu->midr },
|
||||
{ "MIDR", 15,0,0, 0,0,7, 0, ARM_CP_ALIAS | ARM_CP_CONST,
|
||||
PL1_R, 0, NULL, cpu->midr },
|
||||
{ "REVIDR_EL1", 0,0,0, 3,0,6, ARM_CP_STATE_BOTH,
|
||||
ARM_CP_CONST, PL1_R, 0, NULL, cpu->revidr },
|
||||
REGINFO_SENTINEL
|
||||
|
|
Loading…
Reference in a new issue