diff options
author | Juan Quintela <quintela@redhat.com> | 2016-01-11 12:40:26 +0000 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2016-01-16 12:01:23 +0000 |
commit | df32c8d436d4eb3f40b00647ca0df2bbc7f6bf6f (patch) | |
tree | ecb53689234f51955bdc5c83f121be2a37bbe98d /target-sparc/cpu.c | |
parent | 232afac113dab9880a5e3a002d63b61d554a4b89 (diff) |
target-sparc: Convert to VMStateDescription
Convert the SPARC CPU from cpu_load/save functions to VMStateDescription.
We preserve migration compatibility with the previous version
(required for SPARC32 but not necessarily for SPARC64).
Signed-off-by: Juan Quintela <quintela@redhat.com>
[PMM:
* Rebase and update to apply to master
* VMSTATE_STRUCT_POINTER now takes type, not pointer-to-type
* QEMUTimer* are migrated via VMSTATE_TIMER_PTR
* Put CPUTimer vmstate struct inside TARGET_SPARC64 ifdef
* Convert handling of PSR to use a vmstate_psr, like Alpha and ARM
]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'target-sparc/cpu.c')
-rw-r--r-- | target-sparc/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sparc/cpu.c b/target-sparc/cpu.c index d98682b563..c197a0f48a 100644 --- a/target-sparc/cpu.c +++ b/target-sparc/cpu.c @@ -855,6 +855,7 @@ static void sparc_cpu_class_init(ObjectClass *oc, void *data) cc->do_unassigned_access = sparc_cpu_unassigned_access; cc->do_unaligned_access = sparc_cpu_do_unaligned_access; cc->get_phys_page_debug = sparc_cpu_get_phys_page_debug; + cc->vmsd = &vmstate_sparc_cpu; #endif cc->disas_set_info = cpu_sparc_disas_set_info; |