[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 4/4] fdc: fix interrupt handling
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v3 4/4] fdc: fix interrupt handling |
Date: |
Tue, 12 Jun 2012 14:59:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
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_CUR_DRV(fdctrl);
> + fdctrl->fifo[0] = (fdctrl->status0 & ~FD_SR0_HEAD) |
> GET_CUR_DRV(fdctrl);
Should bit 0 be cleared also, before ORing GET_CUR_DRV(fdctrl)?
Paolo