(no subject)
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]>
hw/ppc405_boards.c +3 -3
@@ -129,9 +129,9 @@ static uint32_t ref405ep_fpga_readl (void *opaque, target_phys_addr_t addr)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 ); }
[Qemu-devel] Re:
Quoted 11 lines · Hollis Blanchard
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]>hw/ppc405_boards.c +0
-0@@ -129,9 +129,9 @@ static uint32_t ref405ep_fpga_readl (void *opaque, target_phys_addr_t addr) static void ref405ep_fpga_writel (void *opaque,
hw/ppc405_boards.c static uint32_t ref405ep_fpga_readl (void *opaque, target_phys_addr_t addr) · line 136
Quoted 10 lines
hw/ppc405_boards.c +3
-3target_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 ); }
If git weren't dumb, the subject would have read "Fix 405 FPGA emulation typo".
Signature · 2 lines
Hollis Blanchard IBM Linux Technology Center
Aurelien Jarno
AppliedQuoted 4 lines · Hollis Blanchard
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]>
Thanks, applied.
Quoted 20 lines
hw/ppc405_boards.c +3
-3@@ -129,9 +129,9 @@ static uint32_t ref405ep_fpga_readl (void *opaque, target_phys_addr_t addr)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 ); }
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net