mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
sh4: cleanup cpu type name composition
introduce SUPERH_CPU_TYPE_NAME macro and use it to construct cpu type names. While at it move cpu type_infos into one array and register it directly with type_init_from_array() instead of custom superh_cpu_register_types() Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <1507211474-188400-22-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
b0224788e7
commit
974e58d210
3 changed files with 31 additions and 41 deletions
|
@ -24,9 +24,9 @@
|
|||
|
||||
#define TYPE_SUPERH_CPU "superh-cpu"
|
||||
|
||||
#define TYPE_SH7750R_CPU "sh7750r-" TYPE_SUPERH_CPU
|
||||
#define TYPE_SH7751R_CPU "sh7751r-" TYPE_SUPERH_CPU
|
||||
#define TYPE_SH7785_CPU "sh7785-" TYPE_SUPERH_CPU
|
||||
#define TYPE_SH7750R_CPU SUPERH_CPU_TYPE_NAME("sh7750r")
|
||||
#define TYPE_SH7751R_CPU SUPERH_CPU_TYPE_NAME("sh7751r")
|
||||
#define TYPE_SH7785_CPU SUPERH_CPU_TYPE_NAME("sh7785")
|
||||
|
||||
#define SUPERH_CPU_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(SuperHCPUClass, (klass), TYPE_SUPERH_CPU)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue