diff options
author | Peter Maydell | 2022-06-30 21:41:14 +0200 |
---|---|---|
committer | Peter Maydell | 2022-07-07 12:37:33 +0200 |
commit | 40b200279c98ea0c223fa5a2bdeb4aee40d4e40e (patch) | |
tree | 8a017bb1bf96af624d7185d3ba76cb85197baff6 /target/arm/cpu64.c | |
parent | target/arm: Move define_debug_regs() to debug_helper.c (diff) | |
download | qemu-40b200279c98ea0c223fa5a2bdeb4aee40d4e40e.tar.gz qemu-40b200279c98ea0c223fa5a2bdeb4aee40d4e40e.tar.xz qemu-40b200279c98ea0c223fa5a2bdeb4aee40d4e40e.zip |
target/arm: Suppress debug exceptions when OS Lock set
The "OS Lock" in the Arm debug architecture is a way for software
to suppress debug exceptions while it is trying to power down
a CPU and save the state of the breakpoint and watchpoint
registers. In QEMU we implemented the support for writing
the OS Lock bit via OSLAR_EL1 and reading it via OSLSR_EL1,
but didn't implement the actual behaviour.
The required behaviour with the OS Lock set is:
* debug exceptions (apart from BKPT insns) are suppressed
* some MDSCR_EL1 bits allow write access to the corresponding
EDSCR external debug status register that they shadow
(we can ignore this because we don't implement external debug)
* similarly with the OSECCR_EL1 which shadows the EDECCR
(but we don't implement OSECCR_EL1 anyway)
Implement the missing behaviour of suppressing debug
exceptions.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220630194116.3438513-4-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/cpu64.c')
0 files changed, 0 insertions, 0 deletions