Commit a457e7ee3daeb94b65a1a5a11258bd8b66673269
1 parent
54042bcf
Fix typo in gen_qemu_ld32s
When the CPU is in little endian mode, it should load values from RAM in byte swapped manner. This check is in all the ld and st functions, but misspelled in gen_qemu_ld32s. This patch fixes the misspelling and makes ppc64 Linux happier. Signed-off-by: Alexander Graf <alex@csgraf.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6654 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-ppc/translate.c
... | ... | @@ -2624,7 +2624,7 @@ static always_inline void gen_qemu_ld32u(DisasContext *ctx, TCGv arg1, TCGv arg2 |
2624 | 2624 | #if defined(TARGET_PPC64) |
2625 | 2625 | static always_inline void gen_qemu_ld32s(DisasContext *ctx, TCGv arg1, TCGv arg2) |
2626 | 2626 | { |
2627 | - if (unlikely(ctx->mem_idx)) { | |
2627 | + if (unlikely(ctx->le_mode)) { | |
2628 | 2628 | TCGv_i32 t0; |
2629 | 2629 | tcg_gen_qemu_ld32u(arg1, arg2, ctx->mem_idx); |
2630 | 2630 | t0 = tcg_temp_new_i32(); | ... | ... |