diff options
author | Igor Mammedov <imammedo@redhat.com> | 2017-08-24 18:31:36 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-09-01 11:54:24 -0300 |
commit | da9cbe02bc0a0c4ee8148da6238eb7bbd61f17f3 (patch) | |
tree | 4d4e3d6b0d8209a689809660ec343cbceb4d7af1 /hw | |
parent | 98aca243633014c86ab8de3a5b29ae7d024e7ef5 (diff) | |
download | qemu-da9cbe02bc0a0c4ee8148da6238eb7bbd61f17f3.zip qemu-da9cbe02bc0a0c4ee8148da6238eb7bbd61f17f3.tar.gz qemu-da9cbe02bc0a0c4ee8148da6238eb7bbd61f17f3.tar.bz2 |
nios2: replace cpu_nios2_init() with cpu_generic_init()
cpu_nios2_init() always falls back to TYPE_NIOS2_CPU object
regardless of cpu_model. Put fallback logic into
nios2_cpu_class_by_name() which would translate any cpu_model
into TYPE_NIOS2_CPU class and replace cpu_nios2_init()
with cpu_generic_init()
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1503592308-93913-14-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw')
-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 b6868b8..e4007f6 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 = cpu_nios2_init("nios2"); + cpu = NIOS2_CPU(cpu_generic_init(TYPE_NIOS2_CPU, "nios2")); /* Register: CPU interrupt controller (PIC) */ cpu_irq = nios2_cpu_pic_init(cpu); |