mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target-sh4: Introduce SuperHCPU subclasses
Store legacy name in SuperHCPUClass for -cpu ? and for case-insensitive class lookup. List CPUs by iterating over TYPE_SUPERH_CPU subclasses. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
151d1322a3
commit
c1b382e77d
3 changed files with 186 additions and 85 deletions
|
@ -24,6 +24,10 @@
|
|||
|
||||
#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 SUPERH_CPU_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(SuperHCPUClass, (klass), TYPE_SUPERH_CPU)
|
||||
#define SUPERH_CPU(obj) \
|
||||
|
@ -35,6 +39,7 @@
|
|||
* SuperHCPUClass:
|
||||
* @parent_realize: The parent class' realize handler.
|
||||
* @parent_reset: The parent class' reset handler.
|
||||
* @name: The name.
|
||||
*
|
||||
* A SuperH CPU model.
|
||||
*/
|
||||
|
@ -45,6 +50,8 @@ typedef struct SuperHCPUClass {
|
|||
|
||||
DeviceRealize parent_realize;
|
||||
void (*parent_reset)(CPUState *cpu);
|
||||
|
||||
const char *name;
|
||||
} SuperHCPUClass;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue