mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
tcg/ppc: Enable Altivec detection
Now that we have implemented the required tcg operations, we can enable detection of host vector support. Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> (PPC32) Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
597cf97892
commit
68f340d4cd
1 changed files with 4 additions and 0 deletions
|
@ -3528,6 +3528,10 @@ static void tcg_target_init(TCGContext *s)
|
|||
have_isel = have_isa_2_06;
|
||||
#endif
|
||||
|
||||
if (hwcap & PPC_FEATURE_HAS_ALTIVEC) {
|
||||
have_altivec = true;
|
||||
}
|
||||
|
||||
tcg_target_available_regs[TCG_TYPE_I32] = 0xffffffff;
|
||||
tcg_target_available_regs[TCG_TYPE_I64] = 0xffffffff;
|
||||
if (have_altivec) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue