aboutsummaryrefslogtreecommitdiff
path: root/hw/unicore32/puv3.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2017-08-24 18:31:47 +0200
committerEduardo Habkost <ehabkost@redhat.com>2017-09-01 11:54:25 -0300
commit13b884e1d78591c302ea4bf429336f8ca49c4b89 (patch)
treef624adf0871f0e542a720d8521cb99ca62ae765c /hw/unicore32/puv3.c
parentf6f8b2609564b027fdf7803edc45de7bc55e4833 (diff)
unicore32: replace uc32_cpu_init() with cpu_generic_init()
it's just a wrapper, drop it and use cpu_generic_init() directly Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <1503592308-93913-25-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/unicore32/puv3.c')
-rw-r--r--hw/unicore32/puv3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/unicore32/puv3.c b/hw/unicore32/puv3.c
index ff62efb4df..eb9862fa2f 100644
--- a/hw/unicore32/puv3.c
+++ b/hw/unicore32/puv3.c
@@ -127,7 +127,7 @@ static void puv3_init(MachineState *machine)
cpu_model = "UniCore-II";
}
- cpu = uc32_cpu_init(cpu_model);
+ cpu = UNICORE32_CPU(cpu_generic_init(TYPE_UNICORE32_CPU, cpu_model));
if (!cpu) {
error_report("Unable to find CPU definition");
exit(1);