On 31/5/23 23:10, Bernhard Beschow wrote:
Every TYPE_PCI_IDE device performs the same not-so-trivial bit manipulation by
copy'n'paste code. Extract this into bmdma_status_writeb(), mirroring
bmdma_cmd_writeb().
Signed-off-by: Bernhard Beschow <[email protected]>
Reviewed-by: BALATON Zoltan <[email protected]>
---
include/hw/ide/pci.h | 1 +
hw/ide/cmd646.c | 2 +-
hw/ide/pci.c | 5 +++++
hw/ide/piix.c | 2 +-
hw/ide/sii3112.c | 6 ++----
hw/ide/via.c | 2 +-
6 files changed, 11 insertions(+), 7 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>