mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target-arm: Implement RVBAR register
Implement the AArch64 RVBAR register, which indicates the reset address. Since the reset address is implementation defined and usually configurable by setting config signals in hardware, we also provide a QOM property so it can be set at board level if necessary. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
This commit is contained in:
parent
19525524a7
commit
3933443e38
3 changed files with 16 additions and 0 deletions
|
@ -2295,6 +2295,12 @@ void register_cp_regs_for_features(ARMCPU *cpu)
|
|||
.resetvalue = cpu->mvfr2 },
|
||||
REGINFO_SENTINEL
|
||||
};
|
||||
ARMCPRegInfo rvbar = {
|
||||
.name = "RVBAR_EL1", .state = ARM_CP_STATE_AA64,
|
||||
.opc0 = 3, .opc1 = 0, .crn = 12, .crm = 0, .opc2 = 2,
|
||||
.type = ARM_CP_CONST, .access = PL1_R, .resetvalue = cpu->rvbar
|
||||
};
|
||||
define_one_arm_cp_reg(cpu, &rvbar);
|
||||
define_arm_cp_regs(cpu, v8_idregs);
|
||||
define_arm_cp_regs(cpu, v8_cp_reginfo);
|
||||
define_aarch64_debug_regs(cpu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue