diff options
author | Igor Mammedov <imammedo@redhat.com> | 2017-08-24 18:31:37 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-09-01 11:54:24 -0300 |
commit | 12f4572ec3acde40255328dad60fd8c03281c648 (patch) | |
tree | 466f06592750832cdae5ad756c3fc279ed2881c2 /target/tilegx/cpu.h | |
parent | da9cbe02bc0a0c4ee8148da6238eb7bbd61f17f3 (diff) |
tilegx: replace cpu_tilegx_init() with cpu_generic_init()
cpu_tilegx_init() always falls back to TYPE_TILEGX_CPU object
regardless of cpu_model. Put fallback logic into
tilegx_cpu_class_by_name() which would translate any cpu_model
into TYPE_TILEGX_CPU class and replace cpu_tilegx_init()
with cpu_generic_init().
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <1503592308-93913-15-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/tilegx/cpu.h')
-rw-r--r-- | target/tilegx/cpu.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/tilegx/cpu.h b/target/tilegx/cpu.h index f32be49f65..71cea04589 100644 --- a/target/tilegx/cpu.h +++ b/target/tilegx/cpu.h @@ -164,9 +164,7 @@ static inline TileGXCPU *tilegx_env_get_cpu(CPUTLGState *env) void tilegx_tcg_init(void); int cpu_tilegx_signal_handler(int host_signum, void *pinfo, void *puc); -TileGXCPU *cpu_tilegx_init(const char *cpu_model); - -#define cpu_init(cpu_model) CPU(cpu_tilegx_init(cpu_model)) +#define cpu_init(cpu_model) cpu_generic_init(TYPE_TILEGX_CPU, cpu_model) #define cpu_signal_handler cpu_tilegx_signal_handler |