Re: [PATCH v3 07/51] exec/watchpoint: Add CPUWatchpoint.id

Ilya Leoshkevich <[email protected]>
Newsgroups org.nongnu.qemu-riscv,org.nongnu.qemu-arm,org.nongnu.qemu-devel
Message-ID <[email protected]>

On 7/10/26 22:53, Richard Henderson wrote:
> Add an identifier for use by targets with BP_CPU.  For most targets
> the index of the hardware breakpoint resource is to hand.  For s390x,
> there is only one resource so use id 0.
> 
> Signed-off-by: Richard Henderson <[email protected]>
> ---
>   include/exec/breakpoint.h           |  4 +++-
>   accel/tcg/tcg-accel-ops.c           |  2 +-
>   accel/tcg/user-exec-stub.c          |  3 ++-
>   system/watchpoint.c                 |  3 ++-
>   target/arm/tcg/debug.c              |  2 +-
>   target/i386/tcg/system/bpt_helper.c |  4 ++--
>   target/ppc/cpu.c                    |  3 ++-
>   target/riscv/debug.c                |  8 ++++----
>   target/s390x/tcg/debug.c            | 11 +++++------
>   target/xtensa/dbg_helper.c          |  2 +-
>   10 files changed, 23 insertions(+), 19 deletions(-)
s390x does have only one resource, but it can cover any range :-)


Reviewed-by: Ilya Leoskevich <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.