diff options
author | Igor Mammedov <imammedo@redhat.com> | 2017-08-24 18:31:25 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-09-01 11:54:24 -0300 |
commit | 12a6c15ef31c98ecefa63e91ac36955383038384 (patch) | |
tree | 27d78a1eb8440b8acff6af24d11066dae8d73f50 /target/sparc/cpu-qom.h | |
parent | 3e2cf187eb3954fc406f81247a3fa598437ce1de (diff) |
sparc: convert cpu models to SPARC cpu subclasses
QOMfy cpu models handling introducing propper cpu types
for each cpu model.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1503592308-93913-3-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/sparc/cpu-qom.h')
-rw-r--r-- | target/sparc/cpu-qom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/sparc/cpu-qom.h b/target/sparc/cpu-qom.h index f63af728ee..af6d57a9e0 100644 --- a/target/sparc/cpu-qom.h +++ b/target/sparc/cpu-qom.h @@ -35,6 +35,7 @@ #define SPARC_CPU_GET_CLASS(obj) \ OBJECT_GET_CLASS(SPARCCPUClass, (obj), TYPE_SPARC_CPU) +typedef struct sparc_def_t sparc_def_t; /** * SPARCCPUClass: * @parent_realize: The parent class' realize handler. @@ -49,6 +50,7 @@ typedef struct SPARCCPUClass { DeviceRealize parent_realize; void (*parent_reset)(CPUState *cpu); + sparc_def_t *cpu_def; } SPARCCPUClass; typedef struct SPARCCPU SPARCCPU; |