]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - linux-user/main.c
cpu: Move breakpoints field from CPU_COMMON to CPUState
[thirdparty/qemu.git] / linux-user / main.c
index 5a06192ec421fca715551771cf0d0f3b301c3d22..dbc04b7d0fc4235fc453599837347a0769784873 100644 (file)
@@ -3450,10 +3450,10 @@ CPUArchState *cpu_copy(CPUArchState *env)
     /* Clone all break/watchpoints.
        Note: Once we support ptrace with hw-debug register access, make sure
        BP_CPU break/watchpoints are handled correctly on clone. */
-    QTAILQ_INIT(&env->breakpoints);
+    QTAILQ_INIT(&cpu->breakpoints);
     QTAILQ_INIT(&cpu->watchpoints);
 #if defined(TARGET_HAS_ICE)
-    QTAILQ_FOREACH(bp, &env->breakpoints, entry) {
+    QTAILQ_FOREACH(bp, &cpu->breakpoints, entry) {
         cpu_breakpoint_insert(new_env, bp->pc, bp->flags, NULL);
     }
     QTAILQ_FOREACH(wp, &cpu->watchpoints, entry) {