mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/ppc: fix xxspltw for big endian hosts
Fix a typo in the host endianness macro and add a simple test to detect
regressions.
Fixes: 9bb0048ec6
("target/ppc: convert xxspltw to vector operations")
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220310172047.61094-1-matheus.ferst@eldorado.org.br>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
c6242335b3
commit
52d324ff13
4 changed files with 49 additions and 1 deletions
|
@ -1552,7 +1552,7 @@ static bool trans_XXSPLTW(DisasContext *ctx, arg_XX2_uim2 *a)
|
|||
tofs = vsr_full_offset(a->xt);
|
||||
bofs = vsr_full_offset(a->xb);
|
||||
bofs += a->uim << MO_32;
|
||||
#ifndef HOST_WORDS_BIG_ENDIAN
|
||||
#ifndef HOST_WORDS_BIGENDIAN
|
||||
bofs ^= 8 | 4;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue