mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Move CPU save/load registration to common code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4808 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
6913ba5680
commit
b3c7724cbc
23 changed files with 21 additions and 25 deletions
5
exec.c
5
exec.c
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue