mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target-arm: Implement MDCR_EL3.TDOSA and MDCR_EL2.TDOSA traps
Implement the traps to EL2 and EL3 controlled by the bits MDCR_EL2.TDOSA MDCR_EL3.TDOSA. These can configurably trap accesses to the "powerdown debug" registers. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com>
This commit is contained in:
parent
f096e92b63
commit
187f678d5c
2 changed files with 34 additions and 1 deletions
|
@ -595,6 +595,18 @@ void pmccntr_sync(CPUARMState *env);
|
|||
#define CPTR_TTA (1U << 20)
|
||||
#define CPTR_TFP (1U << 10)
|
||||
|
||||
#define MDCR_EPMAD (1U << 21)
|
||||
#define MDCR_EDAD (1U << 20)
|
||||
#define MDCR_SPME (1U << 17)
|
||||
#define MDCR_SDD (1U << 16)
|
||||
#define MDCR_TDRA (1U << 11)
|
||||
#define MDCR_TDOSA (1U << 10)
|
||||
#define MDCR_TDA (1U << 9)
|
||||
#define MDCR_TDE (1U << 8)
|
||||
#define MDCR_HPME (1U << 7)
|
||||
#define MDCR_TPM (1U << 6)
|
||||
#define MDCR_TPMCR (1U << 5)
|
||||
|
||||
#define CPSR_M (0x1fU)
|
||||
#define CPSR_T (1U << 5)
|
||||
#define CPSR_F (1U << 6)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue