diff options
author | Matheus Ferst <matheus.ferst@eldorado.org.br> | 2022-03-14 15:57:17 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2022-03-14 15:57:17 +0100 |
commit | 52d324ff13fcf97bc31f2e24803e366d330aa7cc (patch) | |
tree | 58fbe26593e6b80df3fdfbca6277b3cc12001a86 /target | |
parent | c6242335b3ff504a552ceba18c8b8ab9dc684a77 (diff) | |
download | qemu-52d324ff13fcf97bc31f2e24803e366d330aa7cc.zip qemu-52d324ff13fcf97bc31f2e24803e366d330aa7cc.tar.gz qemu-52d324ff13fcf97bc31f2e24803e366d330aa7cc.tar.bz2 |
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: 9bb0048ec6f8 ("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>
Diffstat (limited to 'target')
-rw-r--r-- | target/ppc/translate/vsx-impl.c.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/ppc/translate/vsx-impl.c.inc b/target/ppc/translate/vsx-impl.c.inc index 48a97b2..e67fbf2 100644 --- a/target/ppc/translate/vsx-impl.c.inc +++ b/target/ppc/translate/vsx-impl.c.inc @@ -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 |