]> Git Repo - qemu.git/commitdiff
target-arm: Add FAR_EL2 and 3
authorEdgar E. Iglesias <[email protected]>
Mon, 4 Aug 2014 13:41:55 +0000 (14:41 +0100)
committerPeter Maydell <[email protected]>
Mon, 4 Aug 2014 13:41:55 +0000 (14:41 +0100)
Reviewed-by: Greg Bellows <[email protected]>
Signed-off-by: Edgar E. Iglesias <[email protected]>
Reviewed-by: Alex BennĂ©e <[email protected]>
Message-id: 1402994746[email protected]
Signed-off-by: Peter Maydell <[email protected]>
target-arm/cpu.h
target-arm/helper.c

index 3d9cf576f63e6d3cf2c7e4e10b8a0884a874d29c..79205ba33593631af491b912cb66509d17903814 100644 (file)
@@ -187,7 +187,7 @@ typedef struct CPUARMState {
         uint32_t ifsr_el2; /* Fault status registers.  */
         uint64_t esr_el[4];
         uint32_t c6_region[8]; /* MPU base/size registers.  */
-        uint64_t far_el[2]; /* Fault address registers.  */
+        uint64_t far_el[4]; /* Fault address registers.  */
         uint64_t par_el1;  /* Translation result. */
         uint32_t c9_insn; /* Cache lockdown registers.  */
         uint32_t c9_data;
index f4845b0f2028858e7f982656079e7655a4b4041d..a7f82f32fe61b7eefdcaa020fd5605960177cc8b 100644 (file)
@@ -2131,6 +2131,9 @@ static const ARMCPRegInfo v8_el2_cp_reginfo[] = {
       .type = ARM_CP_NO_MIGRATE,
       .opc0 = 3, .opc1 = 4, .crn = 5, .crm = 2, .opc2 = 0,
       .access = PL2_RW, .fieldoffset = offsetof(CPUARMState, cp15.esr_el[2]) },
+    { .name = "FAR_EL2", .state = ARM_CP_STATE_AA64,
+      .opc0 = 3, .opc1 = 4, .crn = 6, .crm = 0, .opc2 = 0,
+      .access = PL2_RW, .fieldoffset = offsetof(CPUARMState, cp15.far_el[2]) },
     { .name = "SPSR_EL2", .state = ARM_CP_STATE_AA64,
       .type = ARM_CP_NO_MIGRATE,
       .opc0 = 3, .opc1 = 4, .crn = 4, .crm = 0, .opc2 = 0,
@@ -2153,6 +2156,9 @@ static const ARMCPRegInfo v8_el3_cp_reginfo[] = {
       .type = ARM_CP_NO_MIGRATE,
       .opc0 = 3, .opc1 = 6, .crn = 5, .crm = 2, .opc2 = 0,
       .access = PL3_RW, .fieldoffset = offsetof(CPUARMState, cp15.esr_el[3]) },
+    { .name = "FAR_EL3", .state = ARM_CP_STATE_AA64,
+      .opc0 = 3, .opc1 = 6, .crn = 6, .crm = 0, .opc2 = 0,
+      .access = PL3_RW, .fieldoffset = offsetof(CPUARMState, cp15.far_el[3]) },
     { .name = "SPSR_EL3", .state = ARM_CP_STATE_AA64,
       .type = ARM_CP_NO_MIGRATE,
       .opc0 = 3, .opc1 = 6, .crn = 4, .crm = 0, .opc2 = 0,
This page took 0.036157 seconds and 4 git commands to generate.