diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-30 16:31:04 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-30 16:31:04 +0000 |
commit | b3c7724cbc70109630227c92df2d59deca4dab64 (patch) | |
tree | 52e335302d10fc433761851c312dbff9e820d661 /exec.c | |
parent | 6913ba56807e5a5275bd839550e8a951d2ef63af (diff) |
Move CPU save/load registration to common code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4808 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -37,6 +37,7 @@ #include "exec-all.h" #include "qemu-common.h" #include "tcg.h" +#include "hw/hw.h" #if defined(CONFIG_USER_ONLY) #include <qemu.h> #endif @@ -457,6 +458,10 @@ void cpu_exec_init(CPUState *env) env->cpu_index = cpu_index; env->nb_watchpoints = 0; *penv = env; +#if defined(CPU_SAVE_VERSION) && !defined(CONFIG_USER_ONLY) + register_savevm("cpu", cpu_index, CPU_SAVE_VERSION, + cpu_save, cpu_load, env); +#endif } static inline void invalidate_page_bitmap(PageDesc *p) |