[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/4] target/arm: Suppress bp for exceptions with more priorit
From: |
Peter Maydell |
Subject: |
Re: [PATCH 4/4] target/arm: Suppress bp for exceptions with more priority |
Date: |
Thu, 19 Aug 2021 14:48:16 +0100 |
On Wed, 18 Aug 2021 at 02:01, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Both single-step and pc alignment faults have priority over
> breakpoint exceptions.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/arm/debug_helper.c | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
> +
> + /*
> + * PC alignment faults have priority over breakpoint exceptions.
> + */
> + pc = is_a64(env) ? env->pc : env->regs[15];
> + if ((is_a64(env) || !env->thumb) && (pc & 3) != 0) {
> + return false;
> + }
Other than the obvious adjustment if we need to handle
env->thumb && (pc & 1)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- Re: [PATCH 3/4] target/arm: Take an exception if PC is misaligned, (continued)
Re: [PATCH 3/4] target/arm: Take an exception if PC is misaligned, Peter Maydell, 2021/08/19
[PATCH 2/4] target/arm: Merge disas_a64_insn into aarch64_tr_translate_insn, Richard Henderson, 2021/08/17
[PATCH 1/4] target/arm: Take an exception if PSTATE.IL is set, Richard Henderson, 2021/08/17
[PATCH 4/4] target/arm: Suppress bp for exceptions with more priority, Richard Henderson, 2021/08/17
- Re: [PATCH 4/4] target/arm: Suppress bp for exceptions with more priority,
Peter Maydell <=