qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 05/38] cris: use generic cpu_model parsing


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH 05/38] cris: use generic cpu_model parsing
Date: Mon, 2 Oct 2017 11:52:16 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 10/02/2017 06:07 AM, Igor Mammedov wrote:
Signed-off-by: Igor Mammedov <address@hidden>

Reviewed-by: Philippe Mathieu-Daudé <address@hidden>

---
CC: address@hidden
---
  hw/cris/axis_dev88.c | 7 ++-----
  1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/hw/cris/axis_dev88.c b/hw/cris/axis_dev88.c
index 5eb552b..9ccc435 100644
--- a/hw/cris/axis_dev88.c
+++ b/hw/cris/axis_dev88.c
@@ -251,7 +251,6 @@ static
  void axisdev88_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;
      const char *kernel_cmdline = machine->kernel_cmdline;
      CRISCPU *cpu;
@@ -268,10 +267,7 @@ void axisdev88_init(MachineState *machine)
      MemoryRegion *phys_intmem = g_new(MemoryRegion, 1);
/* init CPUs */
-    if (cpu_model == NULL) {
-        cpu_model = "crisv32";
-    }
-    cpu = CRIS_CPU(cpu_generic_init(TYPE_CRIS_CPU, cpu_model));
+    cpu = CRIS_CPU(cpu_create(machine->cpu_type));
      env = &cpu->env;
/* allocate RAM */
@@ -359,6 +355,7 @@ static void axisdev88_machine_init(MachineClass *mc)
      mc->desc = "AXIS devboard 88";
      mc->init = axisdev88_init;
      mc->is_default = 1;
+    mc->default_cpu_type = CRIS_CPU_TYPE_NAME("crisv32");
  }
DEFINE_MACHINE("axis-dev88", axisdev88_machine_init)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]