diff options
author | Leon Alrae <leon.alrae@imgtec.com> | 2015-02-20 13:07:44 +0000 |
---|---|---|
committer | Leon Alrae <leon.alrae@imgtec.com> | 2015-03-11 14:13:57 +0000 |
commit | 04cd79625fa4103c5839ba36ad476dd22f7f7557 (patch) | |
tree | 2424cb76fe47517fb7eeff6ea5b81d2908ce5969 /target-mips/cpu-qom.h | |
parent | 48412371415a260d00fc7fdcdb400da55f268828 (diff) |
target-mips: replace cpu_save/cpu_load with VMStateDescription
Create VMStateDescription for MIPS CPU. The new structure contains exactly the
same fields as before, therefore leaving existing version_id.
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'target-mips/cpu-qom.h')
-rw-r--r-- | target-mips/cpu-qom.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target-mips/cpu-qom.h b/target-mips/cpu-qom.h index 2ffc1bf3f2..4d6f9de2ed 100644 --- a/target-mips/cpu-qom.h +++ b/target-mips/cpu-qom.h @@ -74,6 +74,10 @@ static inline MIPSCPU *mips_env_get_cpu(CPUMIPSState *env) #define ENV_OFFSET offsetof(MIPSCPU, env) +#ifndef CONFIG_USER_ONLY +extern const struct VMStateDescription vmstate_mips_cpu; +#endif + void mips_cpu_do_interrupt(CPUState *cpu); bool mips_cpu_exec_interrupt(CPUState *cpu, int int_req); void mips_cpu_dump_state(CPUState *cpu, FILE *f, fprintf_function cpu_fprintf, |