[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v9 11/26] target-arm: add SDER definition
From: |
Greg Bellows |
Subject: |
[Qemu-devel] [PATCH v9 11/26] target-arm: add SDER definition |
Date: |
Wed, 5 Nov 2014 17:22:58 -0600 |
Added CP register defintions for SDER and SDER32_EL3 as well as cp15.sder for
register storage.
Signed-off-by: Sergey Fedorov <address@hidden>
Signed-off-by: Fabian Aggeler <address@hidden>
Signed-off-by: Greg Bellows <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
---
v8 -> v9
- Fixed declaration order of the SDER register components
v7 -> v8
- Added SDER32_EL3 register definition
- Changed sder name from c1_sder to sder
- Changed sder from uint32_t to uint64_t.
---
target-arm/cpu.h | 1 +
target-arm/helper.c | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index d2db3aa..e5c773d 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -181,6 +181,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/target-arm/helper.c b/target-arm/helper.c
index 016cf39..cb15ad4 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -2344,6 +2344,14 @@ static const ARMCPRegInfo el3_cp_reginfo[] = {
.cp = 15, .opc1 = 0, .crn = 1, .crm = 1, .opc2 = 0,
.access = PL3_RW, .fieldoffset = offsetoflow32(CPUARMState,
cp15.scr_el3),
.resetfn = arm_cp_reset_ignore, .writefn = scr_write },
+ { .name = "SDER32_EL3", .state = ARM_CP_STATE_AA64,
+ .opc0 = 3, .opc1 = 6, .crn = 1, .crm = 1, .opc2 = 1,
+ .access = PL3_RW, .resetvalue = 0,
+ .fieldoffset = offsetof(CPUARMState, cp15.sder) },
+ { .name = "SDER",
+ .cp = 15, .opc1 = 0, .crn = 1, .crm = 1, .opc2 = 1,
+ .access = PL3_RW, .resetvalue = 0,
+ .fieldoffset = offsetoflow32(CPUARMState, cp15.sder) },
/* TODO: Implement NSACR trapping of secure EL1 accesses to EL3 */
{ .name = "NSACR", .cp = 15, .opc1 = 0, .crn = 1, .crm = 1, .opc2 = 2,
.access = PL3_W | PL1_R, .resetvalue = 0,
--
1.8.3.2
- Re: [Qemu-devel] [PATCH v9 01/26] target-arm: extend async excp masking, (continued)
- [Qemu-devel] [PATCH v9 03/26] target-arm: add banked register accessors, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 04/26] target-arm: add non-secure Translation Block flag, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 02/26] target-arm: add async excp target_el function, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 05/26] target-arm: add CPREG secure state support, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 06/26] target-arm: add secure state bit to CPREG hash, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 08/26] target-arm: move AArch32 SCR into security reglist, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 07/26] target-arm: insert AArch32 cpregs twice into hashtable, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 09/26] target-arm: implement IRQ/FIQ routing to Monitor mode, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 10/26] target-arm: add NSACR register, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 11/26] target-arm: add SDER definition,
Greg Bellows <=
- [Qemu-devel] [PATCH v9 12/26] target-arm: add MVBAR support, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 13/26] target-arm: add SCTLR_EL3 and make SCTLR banked, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 14/26] target-arm: respect SCR.FW, SCR.AW and SCTLR.NMFI, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 15/26] target-arm: make CSSELR banked, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 16/26] target-arm: make TTBR0/1 banked, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 17/26] target-arm: make TTBCR banked, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 18/26] target-arm: make DACR banked, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 19/26] target-arm: make IFSR banked, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 20/26] target-arm: make DFSR banked, Greg Bellows, 2014/11/05
- [Qemu-devel] [PATCH v9 21/26] target-arm: make IFAR/DFAR banked, Greg Bellows, 2014/11/05