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
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
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(+)