[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 10/38] m68k: an5206: use generic cpu_model parsi
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH 10/38] m68k: an5206: use generic cpu_model parsing |
Date: |
Tue, 3 Oct 2017 16:51:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
Le 02/10/2017 à 11:07, Igor Mammedov a écrit :
> Signed-off-by: Igor Mammedov <address@hidden>
> ---
> CC: address@hidden
> CC: address@hidden
> ---
> hw/m68k/an5206.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/hw/m68k/an5206.c b/hw/m68k/an5206.c
> index 9002c46..0cedc54 100644
> --- a/hw/m68k/an5206.c
> +++ b/hw/m68k/an5206.c
> @@ -28,7 +28,6 @@
> static void an5206_init(MachineState *machine)
> {
> ram_addr_t ram_size = machine->ram_size;
> - const char *cpu_model = machine->cpu_model;
> const char *kernel_filename = machine->kernel_filename;
> M68kCPU *cpu;
> CPUM68KState *env;
> @@ -39,10 +38,7 @@ static void an5206_init(MachineState *machine)
> MemoryRegion *ram = g_new(MemoryRegion, 1);
> MemoryRegion *sram = g_new(MemoryRegion, 1);
>
> - if (!cpu_model) {
> - cpu_model = "m5206";
> - }
> - cpu = M68K_CPU(cpu_generic_init(TYPE_M68K_CPU, cpu_model));
> + cpu = M68K_CPU(cpu_create(machine->cpu_type));
> env = &cpu->env;
>
> /* Initialize CPU registers. */
> @@ -94,6 +90,7 @@ static void an5206_machine_init(MachineClass *mc)
> {
> mc->desc = "Arnewsh 5206";
> mc->init = an5206_init;
> + mc->default_cpu_type = M68K_CPU_TYPE_NAME("m5206");
> }
>
> DEFINE_MACHINE("an5206", an5206_machine_init)
>
Reviewed-by: Laurent Vivier <address@hidden>
- Re: [Qemu-devel] [PATCH 11/38] m68k: mcf5208: use generic cpu_model parsing, (continued)
- [Qemu-devel] [PATCH 08/38] lm32: lm32_boards: use generic cpu_model parsing, Igor Mammedov, 2017/10/02
- [Qemu-devel] [PATCH 09/38] m68k: cleanup cpu type name composition, Igor Mammedov, 2017/10/02
- [Qemu-devel] [PATCH 10/38] m68k: an5206: use generic cpu_model parsing, Igor Mammedov, 2017/10/02
- [Qemu-devel] [PATCH 14/38] moxie: use generic cpu_model parsing, Igor Mammedov, 2017/10/02
- [Qemu-devel] [PATCH 12/38] moxie: fix qemu-system-moxie failing to start with CLI "-cpu MoxieLite", Igor Mammedov, 2017/10/02
- [Qemu-devel] [PATCH 13/38] moxie: cleanup cpu type name composition, Igor Mammedov, 2017/10/02
- [Qemu-devel] [PATCH 17/38] sh4: r2d: use generic cpu_model parsing, Igor Mammedov, 2017/10/02
- [Qemu-devel] [PATCH 16/38] openrisc: use generic cpu_model parsing, Igor Mammedov, 2017/10/02