riscv: Fix type of SiFive[EU]SocState, member parent_obj

Device "riscv.sifive.e.soc" is a direct subtype of TYPE_DEVICE, but
its instance struct SiFiveESoCState's member @parent_obj is
SysBusDevice instead of DeviceState.  Correct that.

Same for "riscv.sifive.u.soc"'s instance struct SiFiveUSoCState.

Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Alistair Francis <Alistair.Francis@wdc.com>
Cc: Sagar Karandikar <sagark@eecs.berkeley.edu>
Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Cc: qemu-riscv@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20200609122339.937862-21-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2020-06-09 14:23:35 +02:00
parent 75a6ed875f
commit 589b1be07c
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
typedef struct SiFiveESoCState {
/*< private >*/
SysBusDevice parent_obj;
DeviceState parent_obj;
/*< public >*/
RISCVHartArrayState cpus;

View File

@ -31,7 +31,7 @@
typedef struct SiFiveUSoCState {
/*< private >*/
SysBusDevice parent_obj;
DeviceState parent_obj;
/*< public >*/
CPUClusterState e_cluster;