diff options
author | Igor Mammedov <imammedo@redhat.com> | 2018-02-07 11:40:23 +0100 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2018-03-19 14:09:44 -0300 |
commit | 253a5504cea2a4eae0c894d28f142a65434206eb (patch) | |
tree | 41c3213867c6b14f44d72c7eb89b9ec63a17a3ac /hw/nios2/10m50_devboard.c | |
parent | 2c8cfc0b52b5a4d123c26c0b5fdf941be24805be (diff) | |
download | qemu-253a5504cea2a4eae0c894d28f142a65434206eb.zip qemu-253a5504cea2a4eae0c894d28f142a65434206eb.tar.gz qemu-253a5504cea2a4eae0c894d28f142a65434206eb.tar.bz2 |
nios2: 10m50_devboard: replace cpu_model with cpu_type
use cpu_create() instead of being removed cpu_generic_init()
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <1518000027-274608-2-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/nios2/10m50_devboard.c')
-rw-r--r-- | hw/nios2/10m50_devboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/nios2/10m50_devboard.c b/hw/nios2/10m50_devboard.c index e4007f6..42053b2 100644 --- a/hw/nios2/10m50_devboard.c +++ b/hw/nios2/10m50_devboard.c @@ -75,7 +75,7 @@ static void nios2_10m50_ghrd_init(MachineState *machine) phys_ram_alias); /* Create CPU -- FIXME */ - cpu = NIOS2_CPU(cpu_generic_init(TYPE_NIOS2_CPU, "nios2")); + cpu = NIOS2_CPU(cpu_create(TYPE_NIOS2_CPU)); /* Register: CPU interrupt controller (PIC) */ cpu_irq = nios2_cpu_pic_init(cpu); |