mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-02 06:51:53 -06:00
sysemu/accel: Restrict machine methods to system-mode
Restrict init_machine(), setup_post() and has_memory() to system-mode. Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200526172427.17460-2-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
bc921b2711
commit
33fb9bfaa4
1 changed files with 2 additions and 0 deletions
|
@ -37,10 +37,12 @@ typedef struct AccelClass {
|
||||||
/*< public >*/
|
/*< public >*/
|
||||||
|
|
||||||
const char *name;
|
const char *name;
|
||||||
|
#ifndef CONFIG_USER_ONLY
|
||||||
int (*init_machine)(MachineState *ms);
|
int (*init_machine)(MachineState *ms);
|
||||||
void (*setup_post)(MachineState *ms, AccelState *accel);
|
void (*setup_post)(MachineState *ms, AccelState *accel);
|
||||||
bool (*has_memory)(MachineState *ms, AddressSpace *as,
|
bool (*has_memory)(MachineState *ms, AddressSpace *as,
|
||||||
hwaddr start_addr, hwaddr size);
|
hwaddr start_addr, hwaddr size);
|
||||||
|
#endif
|
||||||
bool *allowed;
|
bool *allowed;
|
||||||
/*
|
/*
|
||||||
* Array of global properties that would be applied when specific
|
* Array of global properties that would be applied when specific
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue