diff options
| author | Igor Mammedov | 2017-10-05 15:50:38 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2017-10-27 16:03:53 +0200 |
| commit | 73a25e8340a2d86cb86b202c331fd1d6591256ab (patch) | |
| tree | b6782e3e4e03768d9505e0729512bc9817bfbfdc /target/alpha/cpu.h | |
| parent | tcg: Avoid setting tcg_initialize if !CONFIG_TCG (diff) | |
| download | qemu-73a25e8340a2d86cb86b202c331fd1d6591256ab.tar.gz qemu-73a25e8340a2d86cb86b202c331fd1d6591256ab.tar.xz qemu-73a25e8340a2d86cb86b202c331fd1d6591256ab.zip | |
alpha: cleanup cpu type name composition
Introduce ALPHA_CPU_TYPE_NAME macro to replace rather ununique
TYPE macro that alpha uses. With new macro it will follow
the same naming convention as other targets.
While at it put scattered TypeInfo into one array which places
type desriptions at one place and reduces code a bit.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1507211474-188400-5-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/alpha/cpu.h')
| -rw-r--r-- | target/alpha/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/alpha/cpu.h b/target/alpha/cpu.h index 6ae240969b..0a9ad35f06 100644 --- a/target/alpha/cpu.h +++ b/target/alpha/cpu.h @@ -470,6 +470,9 @@ void alpha_translate_init(void); #define cpu_init(cpu_model) cpu_generic_init(TYPE_ALPHA_CPU, cpu_model) +#define ALPHA_CPU_TYPE_SUFFIX "-" TYPE_ALPHA_CPU +#define ALPHA_CPU_TYPE_NAME(model) model ALPHA_CPU_TYPE_SUFFIX + void alpha_cpu_list(FILE *f, fprintf_function cpu_fprintf); /* you can call this signal handler from your SIGBUS and SIGSEGV signal handlers to inform the virtual CPU of exceptions. non zero |
