qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [5995] PPC405EP: fix fpga write function


From: Aurelien Jarno
Subject: [Qemu-devel] [5995] PPC405EP: fix fpga write function
Date: Thu, 11 Dec 2008 22:43:07 +0000

Revision: 5995
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5995
Author:   aurel32
Date:     2008-12-11 22:43:07 +0000 (Thu, 11 Dec 2008)

Log Message:
-----------
PPC405EP: fix fpga write function

I'm not familiar with this device, but I'm fairly certain the writel handler is
not supposed to recurse.

Signed-off-by: Hollis Blanchard <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>

Modified Paths:
--------------
    trunk/hw/ppc405_boards.c

Modified: trunk/hw/ppc405_boards.c
===================================================================
--- trunk/hw/ppc405_boards.c    2008-12-11 22:42:58 UTC (rev 5994)
+++ trunk/hw/ppc405_boards.c    2008-12-11 22:43:07 UTC (rev 5995)
@@ -129,9 +129,9 @@
 static void ref405ep_fpga_writel (void *opaque,
                                   target_phys_addr_t addr, uint32_t value)
 {
-    ref405ep_fpga_writel(opaque, addr, (value >> 24) & 0xFF);
-    ref405ep_fpga_writel(opaque, addr + 1, (value >> 16) & 0xFF);
-    ref405ep_fpga_writel(opaque, addr + 2, (value >> 8) & 0xFF);
+    ref405ep_fpga_writeb(opaque, addr, (value >> 24) & 0xFF);
+    ref405ep_fpga_writeb(opaque, addr + 1, (value >> 16) & 0xFF);
+    ref405ep_fpga_writeb(opaque, addr + 2, (value >> 8) & 0xFF);
     ref405ep_fpga_writeb(opaque, addr + 3, value & 0xFF);
 }
 






reply via email to

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