diff options
author | Igor Mammedov | 2017-08-24 18:31:38 +0200 |
---|---|---|
committer | Eduardo Habkost | 2017-09-01 16:54:24 +0200 |
commit | 8e36271b9246a088007ee93ff065ea5db611f900 (patch) | |
tree | 9efa2aa825cc4f5a079f5a3e2fd448f57ea8a667 /target/xtensa/cpu.h | |
parent | tilegx: replace cpu_tilegx_init() with cpu_generic_init() (diff) | |
download | qemu-8e36271b9246a088007ee93ff065ea5db611f900.tar.gz qemu-8e36271b9246a088007ee93ff065ea5db611f900.tar.xz qemu-8e36271b9246a088007ee93ff065ea5db611f900.zip |
xtensa: replace cpu_xtensa_init() with cpu_generic_init()
call xtensa_irq_init() at realize time which makes
cpu_xtensa_init() like generic cpu creation function.
As result we can replace it with cpu_generic_init()
which does the same job, reducing code duplication a bit.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1503592308-93913-16-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/xtensa/cpu.h')
-rw-r--r-- | target/xtensa/cpu.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h index ee29fb1a14..48033313c5 100644 --- a/target/xtensa/cpu.h +++ b/target/xtensa/cpu.h @@ -475,9 +475,7 @@ void xtensa_cpu_do_unaligned_access(CPUState *cpu, vaddr addr, #define XTENSA_DEFAULT_CPU_MODEL "dc232b" #endif -XtensaCPU *cpu_xtensa_init(const char *cpu_model); - -#define cpu_init(cpu_model) CPU(cpu_xtensa_init(cpu_model)) +#define cpu_init(cpu_model) cpu_generic_init(TYPE_XTENSA_CPU, cpu_model) void xtensa_translate_init(void); void xtensa_breakpoint_handler(CPUState *cs); |