FDC reset should reset the MSR

Bug #424450 reported by Benjamin David Lunt
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Expired
Undecided
Unassigned

Bug Description

I believe that the MSR resgister should also be reset to zero on a software reset. All of the FDC hardware I have does this. The current code leaves the MSR as 0x80, which means that the controller is ready for a write. The controller should not be ready for a write while in reset.

fdc.c Line 899
    /* Reset */
    if (!(value & FD_DOR_nRESET)) {
 + fdctrl->msr = 0x00;
        if (fdctrl->dor & FD_DOR_nRESET) {
            FLOPPY_DPRINTF("controller enter RESET state\n");
        }
    } else {

Revision history for this message
Anthony Liguori (anthony-codemonkey) wrote :

Is there a test case that this fixes?

Changed in qemu:
status: New → Incomplete
Revision history for this message
Benjamin David Lunt (bandwconstruction-deactivatedaccount) wrote :

I know of no test case. The reason for the bug report is that I have been doing some studies of the FDC and have noticed that the MSR register is 0x00 during reset. Before and after the reset it is 0x80, but during the reset it is zero. I just wanted to make QEMU more like the hardware.

Thanks,
Ben

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for QEMU because there has been no activity for 60 days.]

Changed in qemu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.