• P
    target/arm: Honour MDCR_EL2.TDE when routing exceptions due to BKPT/BRK · c900a2e6
    Peter Maydell 提交于
    The MDCR_EL2.TDE bit allows the exception level targeted by debug
    exceptions to be set to EL2 for code executing at EL0.  We handle
    this in the arm_debug_target_el() function, but this is only used for
    hardware breakpoint and watchpoint exceptions, not for the exception
    generated when the guest executes an AArch32 BKPT or AArch64 BRK
    instruction.  We don't have enough information for a translate-time
    equivalent of arm_debug_target_el(), so instead make BKPT and BRK
    call a special purpose helper which can do the routing, rather than
    the generic exception_with_syndrome helper.
    Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
    Message-id: 20180320134114.30418-2-peter.maydell@linaro.org
    c900a2e6
helper.h 24.3 KB