mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
cpu: Change parent type to Device
This finally makes the CPU class a subclass of the Device class, allowing us to start using DeviceState properties on CPU subclasses. It has no_user=1, as creating CPUs using -device doesn't work yet. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
5d5b24d042
commit
961f839570
2 changed files with 7 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
|||
#ifndef QEMU_CPU_H
|
||||
#define QEMU_CPU_H
|
||||
|
||||
#include "qom/object.h"
|
||||
#include "hw/qdev-core.h"
|
||||
#include "qemu/thread.h"
|
||||
|
||||
/**
|
||||
|
@ -46,7 +46,7 @@ typedef struct CPUState CPUState;
|
|||
*/
|
||||
typedef struct CPUClass {
|
||||
/*< private >*/
|
||||
ObjectClass parent_class;
|
||||
DeviceClass parent_class;
|
||||
/*< public >*/
|
||||
|
||||
void (*reset)(CPUState *cpu);
|
||||
|
@ -66,7 +66,7 @@ struct kvm_run;
|
|||
*/
|
||||
struct CPUState {
|
||||
/*< private >*/
|
||||
Object parent_obj;
|
||||
DeviceState parent_obj;
|
||||
/*< public >*/
|
||||
|
||||
struct QemuThread *thread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue