diff options
author | Igor Mammedov <imammedo@redhat.com> | 2017-08-24 18:31:42 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-09-01 11:54:24 -0300 |
commit | 673a11ca6a6d1072b358a835396baadfa8ceafd6 (patch) | |
tree | 360f4d838aa71b8216f40fea121c7eff471fc1f3 /target/cris/cpu.h | |
parent | 701e3c78ce45fa630ffc6826c4b9a4218954bc7f (diff) | |
download | qemu-673a11ca6a6d1072b358a835396baadfa8ceafd6.zip qemu-673a11ca6a6d1072b358a835396baadfa8ceafd6.tar.gz qemu-673a11ca6a6d1072b358a835396baadfa8ceafd6.tar.bz2 |
cris: replace cpu_cris_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-20-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/cris/cpu.h')
-rw-r--r-- | target/cris/cpu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/cris/cpu.h b/target/cris/cpu.h index 920e1c3..5d822de 100644 --- a/target/cris/cpu.h +++ b/target/cris/cpu.h @@ -216,7 +216,6 @@ int crisv10_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg); int cris_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg); int cris_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); -CRISCPU *cpu_cris_init(const char *cpu_model); /* you can call this signal handler from your SIGBUS and SIGSEGV signal handlers to inform the virtual CPU of exceptions. non zero is returned if the signal was handled by the virtual CPU. */ @@ -268,7 +267,7 @@ enum { #define TARGET_PHYS_ADDR_SPACE_BITS 32 #define TARGET_VIRT_ADDR_SPACE_BITS 32 -#define cpu_init(cpu_model) CPU(cpu_cris_init(cpu_model)) +#define cpu_init(cpu_model) cpu_generic_init(TYPE_CRIS_CPU, cpu_model) #define cpu_signal_handler cpu_cris_signal_handler |