summaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2026-07-06 18:38:14 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2026-07-06 18:38:14 +0200
commit94826ec1370328375c3b6d1e80fdc94c8f46c348 (patch)
tree34903798c595361e8d3137893a37b61ea0de9721 /include/exec
parentd0edff8ee17850d955c0b9724c296adcb9192c5c (diff)
parentc0df53752c86e5f51e12e7b99501b6f4d2e52c01 (diff)
downloadqemu-master.tar.gz
qemu-master.zip
Merge tag 'accel-20260706' of https://github.com/philmd/qemu into stagingHEADmaster
Accelerators patches queue - Various cleanups around debugging APIs - Correctly check singlestep flag enabled in CPUState - Fix possible memory corruption with MSHV (CID 1660876) # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCAAdFiEE+qvnXhKRciHc/Wuy4+MsLN6twN4FAmpLsRwACgkQ4+MsLN6t # wN7TRRAAhTnAG0VuUat9MYUCuWWSiTrNKm6m2vVcO+Zec/bBbU1+twBSBzVQ/rwm # kGzImAWip6nYorU5BxTKePlpCy6Rm+t0evYaA5ixF0aXtmm3n6IGIMSsi5yEJxF5 # YHDXxvpD56Z1p8kRvkp4ynABiiF5gfBFqbSuI7/gxSI2tcJ2uSx8MC+HEO/X4vJc # +Clich5n4eyN7YL7vqGrVl84cqHOwe40bXAm1OOa5S83/y2hc//SHgFqTB8BL1P7 # 9SafbFIFiqbfy4kWV86mSu3LDsSYLoIU7bgpRb9mX9WVrvfuoQeVUf7XH+fjmqIo # s/2uHN6ha/h12jS1q0nCYu585EzXCuPRF3upSslPaoEd16sFEO6ZiODmaMIsomA2 # SlCM3jGYUUw+vkfS/+SJUF17QEHtv0R8Dp5IfseE9Tp+huYvJuwn3Qh4UwbVRg0P # YHoRa2KiXvBPntY/GkyhCL9Y5oWC5RaRHyKxMs83tdUouOeBy2t/ftnVtDqeRn3p # 04W+pilUEodSnzcNfAGxQhkqDeGIOveRubaeNICgmxO0Bp9dMUZIOju84hY77KEw # hClBI87cOc1REC7YNXkoouWcr8moNSZlKAyIbTf/Ag5cAheYOSvO5UDDVVepudSl # kER+S1iuPkeb0uVvnvk5Kh4UBCMwdfYKe9bNu/SB0ab6N3IpY4s= # =knBq # -----END PGP SIGNATURE----- # gpg: Signature made Mon 06 Jul 2026 15:43:56 CEST # gpg: using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" [full] # Primary key fingerprint: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE * tag 'accel-20260706' of https://github.com/philmd/qemu: (32 commits) cpu: Only check SSTEP_ENABLE flag in cpu_single_stepping() cpu: Rename CPUState @singlestep_enabled -> @singlestep_flags cpu: Introduce cpu_single_stepping() helper cpu: Better name cpu_single_step() trace event accel/tcg: Improve docstrings around TCGCPUOps::*watchpoint* handlers target/ppc: Ensure TCG is used in ppc_update_daw() target/arm: Inline check_watchpoints() in arm_debug_check_watchpoint() accel: Use GdbBreakpointType enum gdbstub: Introduce GdbBreakpointType enumerator gdbstub: Reduce @type variable scope gdbstub/user: Directly call gdb_breakpoint_remove_all() in user mode accel: Remove unnecessary 'inline' qualifier in remove_all_breakpoints cpu: Move BREAKPOINT definitions to 'exec/breakpoint.h' cpu: Move cpu_breakpoint_test out of line accel: Remove AccelOpsClass::supports_guest_debug accel: Hold @can_reverse information in AccelGdbConfig gdbstub: Make default replay_mode value explicit in stubs accel: Have each implementation return their AccelGdbConfig gdbstub: Move supported_sstep_flags in AccelGdbConfig structure gdbstub: Reduce gdb_supports_guest_debug() scope ... Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/breakpoint.h14
-rw-r--r--include/exec/cputlb.h8
2 files changed, 16 insertions, 6 deletions
diff --git a/include/exec/breakpoint.h b/include/exec/breakpoint.h
index 95f0482e6d..cc6fedd09f 100644
--- a/include/exec/breakpoint.h
+++ b/include/exec/breakpoint.h
@@ -12,6 +12,20 @@
#include "exec/vaddr.h"
#include "exec/memattrs.h"
+/* Breakpoint/watchpoint flags */
+#define BP_MEM_READ 0x01
+#define BP_MEM_WRITE 0x02
+#define BP_MEM_ACCESS (BP_MEM_READ | BP_MEM_WRITE)
+#define BP_STOP_BEFORE_ACCESS 0x04
+/* 0x08 currently unused */
+#define BP_GDB 0x10
+#define BP_CPU 0x20
+#define BP_ANY (BP_GDB | BP_CPU)
+#define BP_HIT_SHIFT 6
+#define BP_WATCHPOINT_HIT_READ (BP_MEM_READ << BP_HIT_SHIFT)
+#define BP_WATCHPOINT_HIT_WRITE (BP_MEM_WRITE << BP_HIT_SHIFT)
+#define BP_WATCHPOINT_HIT (BP_MEM_ACCESS << BP_HIT_SHIFT)
+
typedef struct CPUBreakpoint {
vaddr pc;
int flags; /* BP_* */
diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h
index 3a9603a696..f7f7020382 100644
--- a/include/exec/cputlb.h
+++ b/include/exec/cputlb.h
@@ -24,14 +24,10 @@
#include "exec/hwaddr.h"
#include "exec/memattrs.h"
#include "exec/vaddr.h"
-#include "system/ram_addr.h"
-
-#if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY)
-void tlb_protect_code(ram_addr_t ram_addr);
-void tlb_unprotect_code(ram_addr_t ram_addr);
-#endif
#ifndef CONFIG_USER_ONLY
+#include "system/ram_addr.h"
+
void tlb_reset_dirty(CPUState *cpu, uintptr_t start, uintptr_t length);
void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length);
#endif