From 48e06fe0ed8c265336bb7320c3a294fd0d082c04 Mon Sep 17 00:00:00 2001 From: Bastian Koppelmann Date: Mon, 1 Sep 2014 12:59:46 +0100 Subject: target-tricore: Add target stubs and qom-cpu Add TriCore target stubs, and QOM cpu, and Maintainer Signed-off-by: Bastian Koppelmann Message-id: 1409572800-4116-2-git-send-email-kbastian@mail.uni-paderborn.de Signed-off-by: Peter Maydell --- cpus.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpus.c') diff --git a/cpus.c b/cpus.c index eb1ac8577b..0f7d0eaf36 100644 --- a/cpus.c +++ b/cpus.c @@ -1410,6 +1410,9 @@ CpuInfoList *qmp_query_cpus(Error **errp) #elif defined(TARGET_MIPS) MIPSCPU *mips_cpu = MIPS_CPU(cpu); CPUMIPSState *env = &mips_cpu->env; +#elif defined(TARGET_TRICORE) + TriCoreCPU *tricore_cpu = TRICORE_CPU(cpu); + CPUTriCoreState *env = &tricore_cpu->env; #endif cpu_synchronize_state(cpu); @@ -1434,6 +1437,9 @@ CpuInfoList *qmp_query_cpus(Error **errp) #elif defined(TARGET_MIPS) info->value->has_PC = true; info->value->PC = env->active_tc.PC; +#elif defined(TARGET_TRICORE) + info->value->has_PC = true; + info->value->PC = env->PC; #endif /* XXX: waiting for the qapi to support GSList */ -- cgit v1.2.1