Watchpoints cannot work in user-mode emulation because it requires
the softmmu slow path to detect accesses to watchpointed memory.
Port the equivalent linux-user cleanup from 48c8c5e886.

Signed-off-by: Warner Losh <[email protected]>
---
 bsd-user/main.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/bsd-user/main.c b/bsd-user/main.c
index 415852d88a..a79ee52cc1 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -233,7 +233,6 @@ CPUArchState *cpu_copy(CPUArchState *env)
     CPUState *new_cpu = cpu_create(cpu_type);
     CPUArchState *new_env = cpu_env(new_cpu);
     CPUBreakpoint *bp;
-    CPUWatchpoint *wp;
 
     /* Reset non arch specific state */
     cpu_reset(new_cpu);
@@ -247,13 +246,9 @@ CPUArchState *cpu_copy(CPUArchState *env)
      * BP_CPU break/watchpoints are handled correctly on clone.
      */
     QTAILQ_INIT(&cpu->breakpoints);
-    QTAILQ_INIT(&cpu->watchpoints);
     QTAILQ_FOREACH(bp, &cpu->breakpoints, entry) {
         cpu_breakpoint_insert(new_cpu, bp->pc, bp->flags, NULL);
     }
-    QTAILQ_FOREACH(wp, &cpu->watchpoints, entry) {
-        cpu_watchpoint_insert(new_cpu, wp->vaddr, wp->len, wp->flags, NULL);
-    }
 
     return new_env;
 }

-- 
2.52.0


Reply via email to