summaryrefslogtreecommitdiffstats
path: root/include/sysemu/accel.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-05-26 19:24:21 +0200
committerPaolo Bonzini2020-06-12 17:12:44 +0200
commit33fb9bfaa4bef35b53affaf17368b439834de5f9 (patch)
tree3efa6f4d5021e801715d1e043945be2461ef2a41 /include/sysemu/accel.h
parenttarget/i386: correct fix for pcmpxstrx substring search (diff)
downloadqemu-33fb9bfaa4bef35b53affaf17368b439834de5f9.tar.gz
qemu-33fb9bfaa4bef35b53affaf17368b439834de5f9.tar.xz
qemu-33fb9bfaa4bef35b53affaf17368b439834de5f9.zip
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>
Diffstat (limited to 'include/sysemu/accel.h')
-rw-r--r--include/sysemu/accel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/accel.h b/include/sysemu/accel.h
index 47e5788530..e08b8ab8fa 100644
--- a/include/sysemu/accel.h
+++ b/include/sysemu/accel.h
@@ -37,10 +37,12 @@ typedef struct AccelClass {
/*< public >*/
const char *name;
+#ifndef CONFIG_USER_ONLY
int (*init_machine)(MachineState *ms);
void (*setup_post)(MachineState *ms, AccelState *accel);
bool (*has_memory)(MachineState *ms, AddressSpace *as,
hwaddr start_addr, hwaddr size);
+#endif
bool *allowed;
/*
* Array of global properties that would be applied when specific