Revision | a74ed4ad8c97475e294df4225c348d607cb81448 (tree) |
---|---|
Time | 2019-01-20 16:43:14 |
Author | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
rename dummy to rx-qemu
@@ -1 +1 @@ | ||
1 | -obj-y += rx62n.o dummy.o | |
1 | +obj-y += rx62n.o rxqemu.o |
@@ -1,5 +1,5 @@ | ||
1 | 1 | /* |
2 | - * RX dummy target | |
2 | + * RX QEMU virtual target | |
3 | 3 | * |
4 | 4 | * Copyright (c) 2018 Yoshinori Sato |
5 | 5 | * |
@@ -37,7 +37,7 @@ | ||
37 | 37 | #include "exec/address-spaces.h" |
38 | 38 | #include "exec/cpu-all.h" |
39 | 39 | |
40 | -static void dummy_init(MachineState *machine) | |
40 | +static void rxqemu_init(MachineState *machine) | |
41 | 41 | { |
42 | 42 | DeviceState *cpu; |
43 | 43 | MemoryRegion *sysmem = get_system_memory(); |
@@ -48,7 +48,7 @@ static void dummy_init(MachineState *machine) | ||
48 | 48 | int dtb_size; |
49 | 49 | |
50 | 50 | /* Allocate memory space */ |
51 | - memory_region_init_ram(sdram, NULL, "dummy.sdram", 0x01000000, | |
51 | + memory_region_init_ram(sdram, NULL, "rxqemu.sdram", 0x01000000, | |
52 | 52 | &error_fatal); |
53 | 53 | memory_region_add_subregion(sysmem, 0x01000000, sdram); |
54 | 54 |
@@ -79,25 +79,25 @@ static void dummy_init(MachineState *machine) | ||
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
82 | -static void rxdummy_class_init(ObjectClass *oc, void *data) | |
82 | +static void rxqemu_class_init(ObjectClass *oc, void *data) | |
83 | 83 | { |
84 | 84 | MachineClass *mc = MACHINE_CLASS(oc); |
85 | 85 | |
86 | - mc->desc = "RX dummy"; | |
87 | - mc->init = dummy_init; | |
86 | + mc->desc = "RX QEMU Virtual Target"; | |
87 | + mc->init = rxqemu_init; | |
88 | 88 | mc->is_default = 1; |
89 | 89 | mc->default_cpu_type = TYPE_RXCPU; |
90 | 90 | } |
91 | 91 | |
92 | -static const TypeInfo rxdummy_type = { | |
93 | - .name = MACHINE_TYPE_NAME("rxdymmy"), | |
92 | +static const TypeInfo rxqemu_type = { | |
93 | + .name = MACHINE_TYPE_NAME("rx-qemu"), | |
94 | 94 | .parent = TYPE_MACHINE, |
95 | - .class_init = rxdummy_class_init, | |
95 | + .class_init = rxqemu_class_init, | |
96 | 96 | }; |
97 | 97 | |
98 | -static void rxdummy_machine_init(void) | |
98 | +static void rxqemu_machine_init(void) | |
99 | 99 | { |
100 | - type_register_static(&rxdummy_type); | |
100 | + type_register_static(&rxqemu_type); | |
101 | 101 | } |
102 | 102 | |
103 | -type_init(rxdummy_machine_init) | |
103 | +type_init(rxqemu_machine_init) |