summaryrefslogtreecommitdiffstats
path: root/hw/riscv/sifive_e.c
diff options
context:
space:
mode:
authorMichael Clark2018-03-04 01:27:37 +0100
committerMichael Clark2018-05-06 00:39:38 +0200
commit42b3a4b7ccbbf419df926939b273fe3b8a6dca1f (patch)
tree30151c785ec50bea8038d92dda9d85930a934474 /hw/riscv/sifive_e.c
parentRISC-V: Remove identity_translate from load_elf (diff)
downloadqemu-42b3a4b7ccbbf419df926939b273fe3b8a6dca1f.tar.gz
qemu-42b3a4b7ccbbf419df926939b273fe3b8a6dca1f.tar.xz
qemu-42b3a4b7ccbbf419df926939b273fe3b8a6dca1f.zip
RISC-V: Remove unused class definitions
Removes a whole lot of unnecessary boilerplate code. Machines don't need to be objects. The expansion of the SOC object model for the RISC-V machines will happen in the future as SiFive plans to add their FE310 and FU540 SOCs to QEMU. However, it seems that this present boilerplate is complete unnecessary. Cc: Sagar Karandikar <sagark@eecs.berkeley.edu> Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Michael Clark <mjc@sifive.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/riscv/sifive_e.c')
-rw-r--r--hw/riscv/sifive_e.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/hw/riscv/sifive_e.c b/hw/riscv/sifive_e.c
index 3e523a0734..22dc526713 100644
--- a/hw/riscv/sifive_e.c
+++ b/hw/riscv/sifive_e.c
@@ -194,24 +194,6 @@ static void riscv_sifive_e_init(MachineState *machine)
}
}
-static int riscv_sifive_e_sysbus_device_init(SysBusDevice *sysbusdev)
-{
- return 0;
-}
-
-static void riscv_sifive_e_class_init(ObjectClass *klass, void *data)
-{
- SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
- k->init = riscv_sifive_e_sysbus_device_init;
-}
-
-static const TypeInfo riscv_sifive_e_device = {
- .name = TYPE_SIFIVE_E,
- .parent = TYPE_SYS_BUS_DEVICE,
- .instance_size = sizeof(SiFiveEState),
- .class_init = riscv_sifive_e_class_init,
-};
-
static void riscv_sifive_e_machine_init(MachineClass *mc)
{
mc->desc = "RISC-V Board compatible with SiFive E SDK";
@@ -220,10 +202,3 @@ static void riscv_sifive_e_machine_init(MachineClass *mc)
}
DEFINE_MACHINE("sifive_e", riscv_sifive_e_machine_init)
-
-static void riscv_sifive_e_register_types(void)
-{
- type_register_static(&riscv_sifive_e_device);
-}
-
-type_init(riscv_sifive_e_register_types);