mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target-lm32: Introduce QOM realizefn for LM32CPU
Introduce a realizefn and set realized = true in cpu_lm32_init(). Also move cpu_reset() call from initfn to realizefn. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
ca45f8b044
commit
9c23169e8c
3 changed files with 20 additions and 4 deletions
|
@ -34,6 +34,7 @@
|
|||
|
||||
/**
|
||||
* LM32CPUClass:
|
||||
* @parent_realize: The parent class' realize handler.
|
||||
* @parent_reset: The parent class' reset handler.
|
||||
*
|
||||
* A LatticeMico32 CPU model.
|
||||
|
@ -43,6 +44,7 @@ typedef struct LM32CPUClass {
|
|||
CPUClass parent_class;
|
||||
/*< public >*/
|
||||
|
||||
DeviceRealize parent_realize;
|
||||
void (*parent_reset)(CPUState *cpu);
|
||||
} LM32CPUClass;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue