mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-20 22:48:39 -07:00
accel: Remove unused MachineState argument of AccelClass::setup_post()
This method only accesses xen_domid/xen_domid_restrict, which are both related to the 'accelerator', not the machine. Besides, xen_domid aims to be in Xen AccelState and xen_domid_restrict a xen_domid_restrict QOM property. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250703173248.44995-36-philmd@linaro.org>
This commit is contained in:
parent
8dd5e6befc
commit
1e9fb43d30
3 changed files with 3 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ void accel_setup_post(MachineState *ms)
|
||||||
AccelState *accel = ms->accelerator;
|
AccelState *accel = ms->accelerator;
|
||||||
AccelClass *acc = ACCEL_GET_CLASS(accel);
|
AccelClass *acc = ACCEL_GET_CLASS(accel);
|
||||||
if (acc->setup_post) {
|
if (acc->setup_post) {
|
||||||
acc->setup_post(ms, accel);
|
acc->setup_post(accel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ static void xen_set_igd_gfx_passthru(Object *obj, bool value, Error **errp)
|
||||||
xen_igd_gfx_pt_set(value, errp);
|
xen_igd_gfx_pt_set(value, errp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xen_setup_post(MachineState *ms, AccelState *accel)
|
static void xen_setup_post(AccelState *as)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ typedef struct AccelClass {
|
||||||
void (*cpu_common_unrealize)(CPUState *cpu);
|
void (*cpu_common_unrealize)(CPUState *cpu);
|
||||||
|
|
||||||
/* system related hooks */
|
/* system related hooks */
|
||||||
void (*setup_post)(MachineState *ms, AccelState *accel);
|
void (*setup_post)(AccelState *as);
|
||||||
bool (*has_memory)(AccelState *accel, AddressSpace *as,
|
bool (*has_memory)(AccelState *accel, AddressSpace *as,
|
||||||
hwaddr start_addr, hwaddr size);
|
hwaddr start_addr, hwaddr size);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue