[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 05/10] accel/tcg: Handle -singlestep in curr_cflags
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 05/10] accel/tcg: Handle -singlestep in curr_cflags |
Date: |
Sat, 17 Jul 2021 20:51:55 +0100 |
On Sat, 17 Jul 2021 at 19:43, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 7/17/21 10:42 AM, Alex Bennée wrote:
> > Hmm we are testing a magic global here and looking at
> > cpu->singlestep_enabled lower down. We have a transient singlestep which
> > is turned on an off via cpu->singlestep_enabled and a global as a debug
> > option. Can we rationalise it further?
>
> Not sure what you're asking.
>
> cpu->singlestep_enabled raises a debug exception after one insn, whereas
> singlestep merely
> exits the tb after one insn.
We really should rename 'singlestep' to 'one_insn_per_tb' or something,
because it's continually confusing...
-- PMM