Move cpu_breakpoint_* declarations to exec/breakpoint.h.
Signed-off-by: Richard Henderson <[email protected]>
---
include/exec/breakpoint.h | 7 +++++++
include/hw/core/cpu.h | 7 -------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/exec/breakpoint.h b/include/exec/breakpoint.h
index df772dfc70..e6aa630d17 100644
--- a/include/exec/breakpoint.h
+++ b/include/exec/breakpoint.h
@@ -43,4 +43,11 @@ typedef struct CPUWatchpoint {
QTAILQ_ENTRY(CPUWatchpoint) entry;
} CPUWatchpoint;
+int cpu_breakpoint_insert(CPUState *cpu, vaddr pc, BreakpointFlags flags,
+ CPUBreakpoint **breakpoint);
+int cpu_breakpoint_remove(CPUState *cpu, vaddr pc, BreakpointFlags flags);
+void cpu_breakpoint_remove_by_ref(CPUState *cpu, CPUBreakpoint *breakpoint);
+void cpu_breakpoint_remove_all(CPUState *cpu, BreakpointFlags mask);
+bool cpu_breakpoint_test(CPUState *cpu, vaddr pc, BreakpointFlags mask);
+
#endif
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index 82b5136088..786e9b8aad 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -1149,13 +1149,6 @@ static inline bool cpu_single_stepping(const CPUState
*cpu)
return cpu->singlestep_flags & SSTEP_ENABLE;
}
-int cpu_breakpoint_insert(CPUState *cpu, vaddr pc, BreakpointFlags flags,
- CPUBreakpoint **breakpoint);
-int cpu_breakpoint_remove(CPUState *cpu, vaddr pc, BreakpointFlags flags);
-void cpu_breakpoint_remove_by_ref(CPUState *cpu, CPUBreakpoint *breakpoint);
-void cpu_breakpoint_remove_all(CPUState *cpu, BreakpointFlags mask);
-bool cpu_breakpoint_test(CPUState *cpu, vaddr pc, BreakpointFlags mask);
-
/**
* cpu_get_address_space:
* @cpu: CPU to get address space from
--
2.43.0