mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
ppc/xics: move the cpu_setup() handler under the ICPState class
The cpu_setup() handler is currently under the XICSState class but it really belongs under ICPState as it is setting up an individual vCPU. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
bf50860d1b
commit
f023243432
3 changed files with 34 additions and 35 deletions
|
@ -73,8 +73,6 @@ typedef struct XICSFabric XICSFabric;
|
|||
|
||||
struct XICSStateClass {
|
||||
DeviceClass parent_class;
|
||||
|
||||
void (*cpu_setup)(ICPState *icp, PowerPCCPU *cpu);
|
||||
};
|
||||
|
||||
struct XICSState {
|
||||
|
@ -101,6 +99,7 @@ struct ICPStateClass {
|
|||
|
||||
void (*pre_save)(ICPState *s);
|
||||
int (*post_load)(ICPState *s, int version_id);
|
||||
void (*cpu_setup)(ICPState *icp, PowerPCCPU *cpu);
|
||||
};
|
||||
|
||||
struct ICPState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue