summaryrefslogtreecommitdiffstats
path: root/hw/tricore
diff options
context:
space:
mode:
authorIgor Mammedov2017-08-24 18:31:39 +0200
committerEduardo Habkost2017-09-01 16:54:24 +0200
commita69773122b55961ee2dd3afd87b8321564bfe3a8 (patch)
treebdd7bfe9e35169526f922c6e0725159e72761a4c /hw/tricore
parentxtensa: replace cpu_xtensa_init() with cpu_generic_init() (diff)
downloadqemu-a69773122b55961ee2dd3afd87b8321564bfe3a8.tar.gz
qemu-a69773122b55961ee2dd3afd87b8321564bfe3a8.tar.xz
qemu-a69773122b55961ee2dd3afd87b8321564bfe3a8.zip
tricore: replace cpu_tricore_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-17-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/tricore')
-rw-r--r--hw/tricore/tricore_testboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/tricore/tricore_testboard.c b/hw/tricore/tricore_testboard.c
index 6c574231d5..3fcd8bb70e 100644
--- a/hw/tricore/tricore_testboard.c
+++ b/hw/tricore/tricore_testboard.c
@@ -74,7 +74,7 @@ static void tricore_testboard_init(MachineState *machine, int board_id)
if (!machine->cpu_model) {
machine->cpu_model = "tc1796";
}
- cpu = cpu_tricore_init(machine->cpu_model);
+ cpu = TRICORE_CPU(cpu_generic_init(TYPE_TRICORE_CPU, machine->cpu_model));
if (!cpu) {
error_report("Unable to find CPU definition");
exit(1);