diff options
author | Emilio G. Cota | 2018-10-21 19:27:28 +0200 |
---|---|---|
committer | Alex Bennée | 2019-10-28 16:12:38 +0100 |
commit | 8634d77bdb1df00972159fefe5caf1d28911f05f (patch) | |
tree | 10dc5dff165805a76d20344a031029808bd4d75b /bsd-user | |
parent | translate-all: notify plugin code of tb_flush (diff) | |
download | qemu-8634d77bdb1df00972159fefe5caf1d28911f05f.tar.gz qemu-8634d77bdb1df00972159fefe5caf1d28911f05f.tar.xz qemu-8634d77bdb1df00972159fefe5caf1d28911f05f.zip |
*-user: notify plugin of exit
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'bsd-user')
-rw-r--r-- | bsd-user/syscall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c index 1ee6195d9f..84a983a9a1 100644 --- a/bsd-user/syscall.c +++ b/bsd-user/syscall.c @@ -332,6 +332,7 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi_long arg1, _mcleanup(); #endif gdb_exit(cpu_env, arg1); + qemu_plugin_atexit_cb(); /* XXX: should free thread stack and CPU env */ _exit(arg1); ret = 0; /* avoid warning */ @@ -430,6 +431,7 @@ abi_long do_netbsd_syscall(void *cpu_env, int num, abi_long arg1, _mcleanup(); #endif gdb_exit(cpu_env, arg1); + qemu_plugin_atexit_cb(); /* XXX: should free thread stack and CPU env */ _exit(arg1); ret = 0; /* avoid warning */ @@ -505,6 +507,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1, _mcleanup(); #endif gdb_exit(cpu_env, arg1); + qemu_plugin_atexit_cb(); /* XXX: should free thread stack and CPU env */ _exit(arg1); ret = 0; /* avoid warning */ |