Re: [Qemu-devel] [PATCH v3 4/4] fdc: fix interrupt handling

2012-06-13 Thread Pavel Hrdina
On 06/12/2012 02:59 PM, Paolo Bonzini wrote: Il 12/06/2012 13:19, Pavel Hrdina ha scritto: } else { -/* XXX: status0 handling is broken for read/write - commands, so we do this hack. It should be suppressed - ASAP */ -fdctrl->fifo[0] = -FD_SR

Re: [Qemu-devel] [PATCH v3 4/4] fdc: fix interrupt handling

2012-06-12 Thread Paolo Bonzini
Il 12/06/2012 13:19, Pavel Hrdina ha scritto: > } else { > -/* XXX: status0 handling is broken for read/write > - commands, so we do this hack. It should be suppressed > - ASAP */ > -fdctrl->fifo[0] = > -FD_SR0_SEEK | (cur_drv->head << 2) | GET_C

[Qemu-devel] [PATCH v3 4/4] fdc: fix interrupt handling

2012-06-12 Thread Pavel Hrdina
If you call the SENSE INTERRUPT STATUS commad while there is no interrupt waiting you get as reasult unknown command. Fixed status0 register handling for read/write/format commands. Signed-off-by: Pavel Hrdina --- hw/fdc.c | 30 -- 1 files changed, 16 insertions(+)