The fd_seek will return 'track is invalid' if there is no media in drive. Implied seek should have the same behavior as normal seek. We will use the fd_seek function instead of a direct modification of head, track and sector values. The result value is used only while read/write commands were issued.
Fix sense interrupt status command. v6: - update fdc_test test_media_change - add fdc-test test_sense_interrupt v5: - correction of misspelled words v4: - fix coding style - better bit clearing in 'fdctrl_handle_sense_interrupt_status' v3: - add fdc-test test_read_without_media - rewrite seek and media_changed handling - fix interrupt status handling v2: - better way to detect media missing Pavel Hrdina (6): fdc: fix implied seek while there is no media in drive fdc-test: introduced qtest read_without_media fdc: rewrite seek and DSKCHG bit handling fdc: fix interrupt handling fdc_test: update media_change test fdc_test: introduce test_sense_interrupt hw/fdc.c | 117 ++++++++++++++++++++++++++++++----------------------- tests/fdc-test.c | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 176 insertions(+), 59 deletions(-) -- 1.7.7.6