diff options
author | Igor Mammedov <imammedo@redhat.com> | 2017-08-24 18:31:47 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-09-01 11:54:25 -0300 |
commit | 13b884e1d78591c302ea4bf429336f8ca49c4b89 (patch) | |
tree | f624adf0871f0e542a720d8521cb99ca62ae765c /target/unicore32/cpu.h | |
parent | f6f8b2609564b027fdf7803edc45de7bc55e4833 (diff) |
unicore32: replace uc32_cpu_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-25-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/unicore32/cpu.h')
-rw-r--r-- | target/unicore32/cpu.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/unicore32/cpu.h b/target/unicore32/cpu.h index 7b5b405e79..7724108281 100644 --- a/target/unicore32/cpu.h +++ b/target/unicore32/cpu.h @@ -165,9 +165,7 @@ static inline int cpu_mmu_index(CPUUniCore32State *env, bool ifetch) #include "exec/cpu-all.h" -UniCore32CPU *uc32_cpu_init(const char *cpu_model); - -#define cpu_init(cpu_model) CPU(uc32_cpu_init(cpu_model)) +#define cpu_init(cpu_model) cpu_generic_init(TYPE_UNICORE32_CPU, cpu_model) static inline void cpu_get_tb_cpu_state(CPUUniCore32State *env, target_ulong *pc, target_ulong *cs_base, uint32_t *flags) |