qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6654] Fix typo in gen_qemu_ld32s
@ 2009-02-28  8:25 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-02-28  8:25 UTC (permalink / raw)
  To: qemu-devel

Revision: 6654
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6654
Author:   blueswir1
Date:     2009-02-28 08:25:29 +0000 (Sat, 28 Feb 2009)
Log Message:
-----------
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>

Modified Paths:
--------------
    trunk/target-ppc/translate.c

Modified: trunk/target-ppc/translate.c
===================================================================
--- trunk/target-ppc/translate.c	2009-02-27 22:16:47 UTC (rev 6653)
+++ trunk/target-ppc/translate.c	2009-02-28 08:25:29 UTC (rev 6654)
@@ -2624,7 +2624,7 @@
 #if defined(TARGET_PPC64)
 static always_inline void gen_qemu_ld32s(DisasContext *ctx, TCGv arg1, TCGv arg2)
 {
-    if (unlikely(ctx->mem_idx)) {
+    if (unlikely(ctx->le_mode)) {
         TCGv_i32 t0;
         tcg_gen_qemu_ld32u(arg1, arg2, ctx->mem_idx);
         t0 = tcg_temp_new_i32();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-28  8:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28  8:25 [Qemu-devel] [6654] Fix typo in gen_qemu_ld32s Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).