summaryrefslogtreecommitdiffstats
path: root/hw/mips/cps.c
diff options
context:
space:
mode:
authorIgor Mammedov2017-09-20 21:49:34 +0200
committerYongbok Kim2017-09-21 14:25:37 +0200
commitc4c8146cfd0fc3f95418fbc82a2eded594675022 (patch)
treef4d6001cee7d57c14c0de49b9fa393fd95db4cc7 /hw/mips/cps.c
parentmips: MIPSCPU model subclasses (diff)
downloadqemu-c4c8146cfd0fc3f95418fbc82a2eded594675022.tar.gz
qemu-c4c8146cfd0fc3f95418fbc82a2eded594675022.tar.xz
qemu-c4c8146cfd0fc3f95418fbc82a2eded594675022.zip
mips: replace cpu_mips_init() with cpu_generic_init()
now cpu_mips_init() reimplements subset of cpu_generic_init() tasks, so just drop it and use cpu_generic_init() directly. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> [PMD: use internal.h instead of cpu.h] Tested-by: James Hogan <james.hogan@imgtec.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Diffstat (limited to 'hw/mips/cps.c')
-rw-r--r--hw/mips/cps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mips/cps.c b/hw/mips/cps.c
index 79d4c5e30a..fe5c630af6 100644
--- a/hw/mips/cps.c
+++ b/hw/mips/cps.c
@@ -71,7 +71,7 @@ static void mips_cps_realize(DeviceState *dev, Error **errp)
bool itu_present = false;
for (i = 0; i < s->num_vp; i++) {
- cpu = cpu_mips_init(s->cpu_model);
+ cpu = MIPS_CPU(cpu_generic_init(TYPE_MIPS_CPU, s->cpu_model));
/* Init internal devices */
cpu_mips_irq_init_cpu(cpu);