diff options
author | Igor Mammedov <imammedo@redhat.com> | 2017-09-20 16:49:33 -0300 |
---|---|---|
committer | Yongbok Kim <yongbok.kim@imgtec.com> | 2017-09-21 13:25:30 +0100 |
commit | 41da212c9ce9482fcfd490170c2611470254f8dc (patch) | |
tree | b6cf842d42b55759a92bf6b04745f815d3fb3c6d /target/mips/cpu-qom.h | |
parent | df4dc10284e1d871db8adb512816a561473ffe3e (diff) |
mips: MIPSCPU model subclasses
Register separate QOM types for each mips cpu model,
so it would be possible to reuse generic CPU creation
routines.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[PMD: use internal.h, use void* to hold cpu_def in MIPSCPUClass,
mark MIPSCPU abstract, address Eduardo Habkost review]
Tested-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Diffstat (limited to 'target/mips/cpu-qom.h')
-rw-r--r-- | target/mips/cpu-qom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/mips/cpu-qom.h b/target/mips/cpu-qom.h index 3f5bf23823..ee58606afe 100644 --- a/target/mips/cpu-qom.h +++ b/target/mips/cpu-qom.h @@ -49,6 +49,7 @@ typedef struct MIPSCPUClass { DeviceRealize parent_realize; void (*parent_reset)(CPUState *cpu); + const struct mips_def_t *cpu_def; } MIPSCPUClass; typedef struct MIPSCPU MIPSCPU; |