qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] Byte swapping bug in arm semihosting


From: Paul Brook
Subject: [Qemu-devel] [patch] Byte swapping bug in arm semihosting
Date: Sat, 13 Aug 2005 16:08:03 +0100
User-agent: KMail/1.7.2

The patch below fixes a duplicate byte swap in the arm semihosting 
implementation. ARG(x) already does the endian correction.

Paul
Index: linux-user//arm-semi.c
===================================================================
RCS file: /cvsroot/qemu/qemu/linux-user/arm-semi.c,v
retrieving revision 1.3
diff -u -p -r1.3 arm-semi.c
--- linux-user//arm-semi.c      13 May 2005 22:42:37 -0000      1.3
+++ linux-user//arm-semi.c      13 Aug 2005 15:05:30 -0000
@@ -178,7 +178,7 @@ uint32_t do_arm_semihosting(CPUState *en
                 ts->heap_limit = limit;
             }
               
-            ptr = (uint32_t *)tswap32(ARG(0));
+            ptr = (uint32_t *)ARG(0);
             ptr[0] = tswap32(ts->heap_base);
             ptr[1] = tswap32(ts->heap_limit);
             ptr[2] = tswap32(ts->stack_base);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]