OSDN Git Service

ide: clear interrupt on command write
authorJohn Snow <jsnow@redhat.com>
Fri, 24 Jul 2020 05:22:59 +0000 (01:22 -0400)
committerJohn Snow <jsnow@redhat.com>
Thu, 1 Oct 2020 17:04:16 +0000 (13:04 -0400)
commit6f52e69f468f3b75db0292be3ee479db699a9a57
tree9af30f58886697c49d2c3d7a8f22a15251d6166d
parent0c7515e1c47372ae5d53f2e281b2ccd425ebbcc6
ide: clear interrupt on command write

Not known to fix any bug, but I couldn't help but notice that ATA
specifies that writing to this register should clear an interrupt.

ATA7: Section 5.3.3 (Command register - Effect)
ATA6: Section 7.4.4 (Command register - Effect)
ATA5: Section 7.4.4 (Command register - Effect)
ATA4: Section 7.4.4 (Command register - Effect)
ATA3: Section 5.2.2 (Command register)

Other editions: try searching for the phrase "Writing this register".

Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/core.c