diff --git a/qemu/target-arm/cpu.h b/qemu/target-arm/cpu.h index e5db3f9d..ee7bf419 100644 --- a/qemu/target-arm/cpu.h +++ b/qemu/target-arm/cpu.h @@ -183,6 +183,7 @@ typedef struct CPUARMState { uint64_t c1_sys; /* System control register. */ uint64_t c1_coproc; /* Coprocessor access register. */ uint32_t c1_xscaleauxcr; /* XScale auxiliary control register. */ + uint64_t sder; /* Secure debug enable register. */ uint32_t nsacr; /* Non-secure access control register. */ uint64_t ttbr0_el1; /* MMU translation table base 0. */ uint64_t ttbr1_el1; /* MMU translation table base 1. */ diff --git a/qemu/target-arm/helper.c b/qemu/target-arm/helper.c index c175ca69..d840d84c 100644 --- a/qemu/target-arm/helper.c +++ b/qemu/target-arm/helper.c @@ -1994,6 +1994,12 @@ static const ARMCPRegInfo el3_cp_reginfo[] = { { "SCR", 15,1,1, 0,0,0, 0, ARM_CP_NO_MIGRATE, PL3_RW, 0, NULL, 0, offsetoflow32(CPUARMState, cp15.scr_el3), {0, 0}, NULL, NULL, scr_write, NULL, NULL, arm_cp_reset_ignore }, + { "SDER32_EL3", 0,1,1, 3,6,1, ARM_CP_STATE_AA64,0, + PL3_RW, 0, NULL, 0, + offsetof(CPUARMState, cp15.sder) }, + { "SDER", 15,1,1, 0,0,1, 0,0, + PL3_RW, 0, NULL, 0, + offsetoflow32(CPUARMState, cp15.sder) }, /* TODO: Implement NSACR trapping of secure EL1 accesses to EL3 */ { "NSACR", 15,1,1, 0,0,2, 0,0, PL3_W | PL1_R, 0, NULL, 0,