]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-user/exit.c
target/arm: Don't corrupt high half of PMOVSR when cycle counter overflows
[mirror_qemu.git] / linux-user / exit.c
index 159401544452371033a30cb4d1bb007c29e4e5e1..fa6ef0b9b44c79503a4d7e0c438f131338d5b6e0 100644 (file)
@@ -17,7 +17,9 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "qemu/osdep.h"
+#include "exec/gdbstub.h"
 #include "qemu.h"
+#include "user-internals.h"
 #ifdef CONFIG_GPROF
 #include <sys/gmon.h>
 #endif
@@ -34,6 +36,6 @@ void preexit_cleanup(CPUArchState *env, int code)
 #ifdef CONFIG_GCOV
         __gcov_dump();
 #endif
-        gdb_exit(env, code);
-        qemu_plugin_atexit_cb();
+        gdb_exit(code);
+        qemu_plugin_user_exit();
 }