diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-02-09 16:29:40 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-02-14 12:39:46 -0200 |
commit | e07bbac542d45cb246f393f343eb3b867fed4de1 (patch) | |
tree | e2a40a4a9ac0d15b9f948a693b7b967489b93886 /cpus.c | |
parent | 0ab07c623c629acfbc792e5a174129c19faefbb7 (diff) | |
download | qemu-e07bbac542d45cb246f393f343eb3b867fed4de1.tar.gz qemu-e07bbac542d45cb246f393f343eb3b867fed4de1.tar.bz2 qemu-e07bbac542d45cb246f393f343eb3b867fed4de1.zip |
Improve vm_stop reason declarations
Define and use dedicated constants for vm_stop reasons, they actually
have nothing to do with the EXCP_* defines used so far. At this chance,
specify more detailed reasons so that VM state change handlers can
evaluate them.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -168,8 +168,8 @@ static bool all_cpu_threads_idle(void) static void cpu_debug_handler(CPUState *env) { gdb_set_stop_cpu(env); - debug_requested = EXCP_DEBUG; - vm_stop(EXCP_DEBUG); + debug_requested = VMSTOP_DEBUG; + vm_stop(VMSTOP_DEBUG); } #ifdef CONFIG_LINUX |