Commit 8de24106355d25512a8578ac83dab0c7515575b0

Authored by aurel32
1 parent c78eae61

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 <hollisb@us.ibm.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5995 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 3 deletions
hw/ppc405_boards.c
... ... @@ -129,9 +129,9 @@ static uint32_t ref405ep_fpga_readl (void *opaque, target_phys_addr_t addr)
129 129 static void ref405ep_fpga_writel (void *opaque,
130 130 target_phys_addr_t addr, uint32_t value)
131 131 {
132   - ref405ep_fpga_writel(opaque, addr, (value >> 24) & 0xFF);
133   - ref405ep_fpga_writel(opaque, addr + 1, (value >> 16) & 0xFF);
134   - ref405ep_fpga_writel(opaque, addr + 2, (value >> 8) & 0xFF);
  132 + ref405ep_fpga_writeb(opaque, addr, (value >> 24) & 0xFF);
  133 + ref405ep_fpga_writeb(opaque, addr + 1, (value >> 16) & 0xFF);
  134 + ref405ep_fpga_writeb(opaque, addr + 2, (value >> 8) & 0xFF);
135 135 ref405ep_fpga_writeb(opaque, addr + 3, value & 0xFF);
136 136 }
137 137  
... ...