Re: [Qemu-devel] [PATCH] hw/nand.c: Fix nand erase operation

2013-04-05 Thread Peter Maydell
On 3 April 2013 06:33, Peter Crosthwaite wrote: > From: Wendy Liang > > Usually, nand erase operation has only 2 or 3 address cycles. > We need to mask s->addr to zero unset stale high-order bytes in the nand > address > before using it as the erase address. > > This fixes the NAND erase operati

[Qemu-devel] [PATCH] hw/nand.c: Fix nand erase operation

2013-04-02 Thread Peter Crosthwaite
From: Wendy Liang Usually, nand erase operation has only 2 or 3 address cycles. We need to mask s->addr to zero unset stale high-order bytes in the nand address before using it as the erase address. This fixes the NAND erase operation in Linux. [PC: Generalised to work for any number of address