Revisión | 79439d18951310baaaed89125f97038292cdba97 (tree) |
---|---|
Tiempo | 2020-02-24 23:09:50 |
Autor | Philippe Mathieu-Daudé <philmd@redh...> |
Commiter | Yoshinori Sato |
hw/rx: Restrict the RX62N microcontroller to the RX62N CPU core
While the VIRT machine can use different microcontrollers,
the RX62N microcontroller is tied to the RX62N CPU core.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
@@ -17,6 +17,7 @@ | ||
17 | 17 | */ |
18 | 18 | |
19 | 19 | #include "qemu/osdep.h" |
20 | +#include "qemu/error-report.h" | |
20 | 21 | #include "qapi/error.h" |
21 | 22 | #include "qemu-common.h" |
22 | 23 | #include "cpu.h" |
@@ -56,6 +57,7 @@ static void rx_load_image(RXCPU *cpu, const char *filename, | ||
56 | 57 | |
57 | 58 | static void rxvirt_init(MachineState *machine) |
58 | 59 | { |
60 | + MachineClass *mc = MACHINE_GET_CLASS(machine); | |
59 | 61 | RX62NState *s = g_new(RX62NState, 1); |
60 | 62 | MemoryRegion *sysmem = get_system_memory(); |
61 | 63 | MemoryRegion *sdram = g_new(MemoryRegion, 1); |