]> www.infradead.org Git - users/dwmw2/qemu.git/commit
softmmu: Check watchpoints for read+write at once
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 23 Feb 2023 08:16:51 +0000 (22:16 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 5 Mar 2023 21:44:07 +0000 (13:44 -0800)
commit019a98083a57861475461fd63895240b5c341077
tree0728a302d360e5d18bf0d9caa7053c6f76bffe87
parent0953674ed0acacfa9b2409678f8ce8333398ee1c
softmmu: Check watchpoints for read+write at once

Atomic operations are read-modify-write, and we'd like to
be able to test both read and write with one call.  This is
easy enough, with BP_MEM_READ | BP_MEM_WRITE.

Add BP_HIT_SHIFT to make it easy to set BP_WATCHPOINT_HIT_*.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/hw/core/cpu.h
softmmu/watchpoint.c