mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
riscv/sifive_u: Manually define the machine
Instead of using the DEFINE_MACHINE() macro to define the machine let's do it manually. This allows us to specify machine properties. This patch is no functional change. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
parent
1b3a230870
commit
687caef13d
2 changed files with 37 additions and 14 deletions
|
@ -44,12 +44,17 @@ typedef struct SiFiveUSoCState {
|
|||
CadenceGEMState gem;
|
||||
} SiFiveUSoCState;
|
||||
|
||||
#define TYPE_RISCV_U_MACHINE MACHINE_TYPE_NAME("sifive_u")
|
||||
#define RISCV_U_MACHINE(obj) \
|
||||
OBJECT_CHECK(SiFiveUState, (obj), TYPE_RISCV_U_MACHINE)
|
||||
|
||||
typedef struct SiFiveUState {
|
||||
/*< private >*/
|
||||
SysBusDevice parent_obj;
|
||||
MachineState parent_obj;
|
||||
|
||||
/*< public >*/
|
||||
SiFiveUSoCState soc;
|
||||
|
||||
void *fdt;
|
||||
int fdt_size;
|
||||
} SiFiveUState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue