hw/riscv/opentitan: Correct OpenTitanState parent type/size
commita828ba9d46972e32c135f386dd08c02aa7eb8f1d
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 20 May 2023 05:45:10 +0000 (20 07:45 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 13 Jun 2023 07:19:42 +0000 (13 17:19 +1000)
tree7505b89b3034a3176982989cc823be502a3d79b0
parent8696b74a6fed86a9d2bd7e947d0490c2459a8aa6
hw/riscv/opentitan: Correct OpenTitanState parent type/size

OpenTitanState is the 'machine' (or 'board') state: it isn't
a SysBus device, but inherits from the MachineState type.
Correct the instance size.
Doing so we  avoid leaking an OpenTitanState pointer in
opentitan_machine_init().

Fixes: fe0fe4735e ("riscv: Initial commit of OpenTitan machine")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-Id: <20230520054510.68822-6-philmd@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/opentitan.c
include/hw/riscv/opentitan.h