[5995] PPC405EP: fix fpga write function
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 <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/hw/ppc405_boards.c
Modified: trunk/hw/ppc405_boards.c
===================================================================
hw/ppc405_boards.c +3 -3
@@ -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 ); }