summaryrefslogtreecommitdiffstats
path: root/hw/riscv/riscv_hart.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/riscv_hart.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/riscv_hart.c')
-rw-r--r--hw/riscv/riscv_hart.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/riscv/riscv_hart.c b/hw/riscv/riscv_hart.c
index 14e3c186fe..75ba7ed579 100644
--- a/hw/riscv/riscv_hart.c
+++ b/hw/riscv/riscv_hart.c
@@ -68,16 +68,10 @@ static void riscv_harts_class_init(ObjectClass *klass, void *data)
dc->realize = riscv_harts_realize;
}
-static void riscv_harts_init(Object *obj)
-{
- /* RISCVHartArrayState *s = SIFIVE_COREPLEX(obj); */
-}
-
static const TypeInfo riscv_harts_info = {
.name = TYPE_RISCV_HART_ARRAY,
.parent = TYPE_SYS_BUS_DEVICE,
.instance_size = sizeof(RISCVHartArrayState),
- .instance_init = riscv_harts_init,
.class_init = riscv_harts_class_init,
};