aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2014-09-26 17:45:31 -0300
committerPaolo Bonzini <pbonzini@redhat.com>2014-10-09 15:36:14 +0200
commitac2da55e01b1a84e6bba32768211201dec230232 (patch)
tree107c32c8d8667a3577146d7f151040f58dac6556 /include/hw
parentf6a1ef64408a5f7f52601589fef2a850b93d817e (diff)
downloadqemu-ac2da55e01b1a84e6bba32768211201dec230232.zip
qemu-ac2da55e01b1a84e6bba32768211201dec230232.tar.gz
qemu-ac2da55e01b1a84e6bba32768211201dec230232.tar.bz2
accel: Create accel object when initializing machine
Create an actual TYPE_ACCEL object when initializing a machine. This will allow accelerator classes to implement some initialization on instance_init, and to save state on the TYPE_ACCEL object. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/boards.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index 0058c49..6a60c3c 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -5,6 +5,7 @@
#include "qemu/typedefs.h"
#include "sysemu/blockdev.h"
+#include "sysemu/accel.h"
#include "hw/qdev.h"
#include "qom/object.h"
@@ -131,6 +132,7 @@ struct MachineState {
char *kernel_cmdline;
char *initrd_filename;
const char *cpu_model;
+ AccelState *accelerator;
};
#endif