mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target-arm: Fix REVIDR reset value
According to ARM Cortex-A53/A57 TRM, REVIDR reset value should be zero. So let REVIDR reset value be specified by CPU model and correct it for Cortex-A53/A57. Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com> Message-id: 1433321048-23793-2-git-send-email-serge.fdrv@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
8772de2c53
commit
13b72b2b9a
3 changed files with 5 additions and 3 deletions
|
@ -3424,15 +3424,14 @@ void register_cp_regs_for_features(ARMCPU *cpu)
|
|||
};
|
||||
ARMCPRegInfo id_v8_midr_cp_reginfo[] = {
|
||||
/* v8 MIDR -- the wildcard isn't necessary, and nor is the
|
||||
* variable-MIDR TI925 behaviour. Instead we have a single
|
||||
* (strictly speaking IMPDEF) alias of the MIDR, REVIDR.
|
||||
* variable-MIDR TI925 behaviour.
|
||||
*/
|
||||
{ .name = "MIDR_EL1", .state = ARM_CP_STATE_BOTH,
|
||||
.opc0 = 3, .opc1 = 0, .crn = 0, .crm = 0, .opc2 = 0,
|
||||
.access = PL1_R, .type = ARM_CP_CONST, .resetvalue = cpu->midr },
|
||||
{ .name = "REVIDR_EL1", .state = ARM_CP_STATE_BOTH,
|
||||
.opc0 = 3, .opc1 = 0, .crn = 0, .crm = 0, .opc2 = 6,
|
||||
.access = PL1_R, .type = ARM_CP_CONST, .resetvalue = cpu->midr },
|
||||
.access = PL1_R, .type = ARM_CP_CONST, .resetvalue = cpu->revidr },
|
||||
REGINFO_SENTINEL
|
||||
};
|
||||
ARMCPRegInfo id_cp_reginfo[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue