it will be used for for 2 purposes, 1st is to provide to cpu name resolving class for machine 'none' cpu_parse_cpu_model(machine_class->default_cpu_type, cpu_model) and later to drop a bunch of ifdefs *-user/main.c that set default cpu_model.
Use default value from linux-user for TARGET_DEFAULT_CPU_TYPE. Signed-off-by: Igor Mammedov <imamm...@redhat.com> --- CC: Aurelien Jarno <aurel...@aurel32.net> --- target/sh4/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/sh4/cpu.h b/target/sh4/cpu.h index a2c26e0..203d212 100644 --- a/target/sh4/cpu.h +++ b/target/sh4/cpu.h @@ -278,6 +278,7 @@ void cpu_load_tlb(CPUSH4State * env); #define SUPERH_CPU_TYPE_SUFFIX "-" TYPE_SUPERH_CPU #define SUPERH_CPU_TYPE_NAME(model) model SUPERH_CPU_TYPE_SUFFIX +#define TARGET_DEFAULT_CPU_TYPE SUPERH_CPU_TYPE_NAME("sh7785") #define cpu_signal_handler cpu_sh4_signal_handler #define cpu_list sh4_cpu_list -- 2.7.4