From 0dacec874fa3b3fd34b0d0670fa257efdcbbebd0 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Wed, 7 Feb 2018 11:40:25 +0100 Subject: cpu: add CPU_RESOLVING_TYPE macro it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code. Along with change add target to null-machine tests, so that when switch to CPU_RESOLVING_TYPE happens, it would ensure that null-machine usecase still works. Signed-off-by: Igor Mammedov Reviewed-by: Laurent Vivier (m68k) Acked-by: David Gibson (ppc) Acked-by: Bastian Koppelmann (tricore) Message-Id: <1518000027-274608-4-git-send-email-imammedo@redhat.com> Reviewed-by: Eduardo Habkost [ehabkost: Added macro to riscv too] Signed-off-by: Eduardo Habkost --- target/tricore/cpu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'target/tricore') diff --git a/target/tricore/cpu.h b/target/tricore/cpu.h index 07b8b59f58..9241a91faa 100644 --- a/target/tricore/cpu.h +++ b/target/tricore/cpu.h @@ -417,6 +417,7 @@ static inline void cpu_get_tb_cpu_state(CPUTriCoreState *env, target_ulong *pc, #define TRICORE_CPU_TYPE_SUFFIX "-" TYPE_TRICORE_CPU #define TRICORE_CPU_TYPE_NAME(model) model TRICORE_CPU_TYPE_SUFFIX +#define CPU_RESOLVING_TYPE TYPE_TRICORE_CPU /* helpers.c */ int cpu_tricore_handle_mmu_fault(CPUState *cpu, target_ulong address, -- cgit v1.2.3