mirror_qemu/target-ppc
David Gibson 12b1143b28 target-ppc: Add hooks for handling tcg and kvm limitations
On target-ppc, our table of CPU types and features encodes the features as
found on the hardware, regardless of whether these features are actually
usable under TCG or KVM.  We already have cases where the information from
the cpu table must be fixed up to account for limitations in the emulation
method we're using.  e.g. TCG does not support the DFP and VSX instructions
and KVM needs different numbering of the CPUs in order to tell it the
correct thread to core mappings.

This patch cleans up these hacks to handle emulation limitations by
consolidating them into a pair of functions specifically for the purpose.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[AF: Style and typo fixes, rename new functions and drop ppc_def_t arg]
Signed-off-by: Andreas Färber <afaerber@suse.de>
2012-04-15 17:09:54 +02:00
..
STATUS Fix typos in comments (chek -> check) 2011-05-22 22:31:45 +01:00
cpu.h target-ppc: Drop cpu_ppc_close() 2012-04-15 17:07:19 +02:00
helper.c target-ppc: Add hooks for handling tcg and kvm limitations 2012-04-15 17:09:54 +02:00
helper.h PPC: E500: Implement msgsnd 2012-02-02 02:47:47 +01:00
helper_regs.h Replace always_inline with inline 2009-08-16 09:06:54 +00:00
kvm.c target-ppc: Add hooks for handling tcg and kvm limitations 2012-04-15 17:09:54 +02:00
kvm_ppc.c Replace Qemu by QEMU in comments 2012-04-07 14:00:45 +00:00
kvm_ppc.h target-ppc: Add hooks for handling tcg and kvm limitations 2012-04-15 17:09:54 +02:00
machine.c target-ppc: Don't overuse CPUState 2012-03-14 22:20:25 +01:00
mfrom_table.c find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
mfrom_table_gen.c fix spelling in target sub directory 2011-12-02 10:50:57 +00:00
op_helper.c Use uintptr_t for various op related functions 2012-04-14 14:23:37 +00:00
translate.c PPC: KVM: Synchronize regs on CPU dump 2012-03-15 13:12:12 +01:00
translate_init.c target-ppc: Add hooks for handling tcg and kvm limitations 2012-04-15 17:09:54 +02:00