diff options
| author | Igor Mammedov | 2017-10-09 21:51:05 +0200 |
|---|---|---|
| committer | David Gibson | 2017-10-17 01:34:01 +0200 |
| commit | 2e9c10eba0206e7b9a5ed03e51269759caac27f0 (patch) | |
| tree | 76849093eb4c966c7e48e0f3bc888fbcf3608c98 /target/ppc/cpu.h | |
| parent | ppc: move ppc_cpu_lookup_alias() before its first user (diff) | |
| download | qemu-2e9c10eba0206e7b9a5ed03e51269759caac27f0.tar.gz qemu-2e9c10eba0206e7b9a5ed03e51269759caac27f0.tar.xz qemu-2e9c10eba0206e7b9a5ed03e51269759caac27f0.zip | |
ppc: spapr: use generic cpu_model parsing
use generic cpu_model parsing introduced by
(6063d4c0f vl.c: convert cpu_model to cpu type and set of global properties before machine_init())
it allows to:
* replace sPAPRMachineClass::tcg_default_cpu with
MachineClass::default_cpu_type
* drop cpu_parse_cpu_model() from hw/ppc/spapr.c and reuse
one in vl.c
* simplify spapr_get_cpu_core_type() by removing
not needed anymore recurrsion since alias look up
happens earlier at vl.c and spapr_get_cpu_core_type()
works only with resulted from that cpu type.
* spapr no more needs to parse/depend on being phased out
MachineState::cpu_model, all tha parsing done by generic
code and target specific callback.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
[dwg: Correct minor compile error]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/cpu.h')
| -rw-r--r-- | target/ppc/cpu.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 64aef17f6f..989761b795 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -1278,7 +1278,6 @@ extern const struct VMStateDescription vmstate_ppc_cpu; /*****************************************************************************/ void ppc_translate_init(void); -const char *ppc_cpu_lookup_alias(const char *alias); /* 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. */ |
