Message ID | 1409311292-18860-3-git-send-email-peter.maydell@linaro.org |
---|---|
State | Superseded |
Headers | show |
diff --git a/exec.c b/exec.c index 1f3f4a5..82a90e7 100644 --- a/exec.c +++ b/exec.c @@ -537,6 +537,16 @@ void cpu_watchpoint_remove_all(CPUState *cpu, int mask) { } +int cpu_watchpoint_remove(CPUState *cpu, vaddr addr, vaddr len, + int flags) +{ + return -ENOSYS; +} + +void cpu_watchpoint_remove_by_ref(CPUState *cpu, CPUWatchpoint *watchpoint) +{ +} + int cpu_watchpoint_insert(CPUState *cpu, vaddr addr, vaddr len, int flags, CPUWatchpoint **watchpoint) {
We already provide dummy versions of the cpu_watchpoint_insert and cpu_watchpoint_remove_all functions when CONFIG_USER_ONLY is defined. Complete the set by providing cpu_watchpoint_remove and cpu_watchpoint_remove_by_ref as well. This allows target-* code using these functions to avoid some ifdeffery. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> --- exec.c | 10 ++++++++++ 1 file changed, 10 insertions(+)