From c0759e0d9b3c82f229e9f072f03c409927e44c1c Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Tue, 14 Jan 2020 01:17:44 +0100 Subject: [PATCH] ac97: Allow 32-bit write to CR through index 08h --- hw/audio/ac97.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c index ffd8607ba6..6ffb41fe44 100644 --- a/hw/audio/ac97.c +++ b/hw/audio/ac97.c @@ -913,6 +913,13 @@ static void nabm_writel (void *opaque, uint32_t addr, uint32_t val) dolog ("BDBAR[%d] <- %#x (bdbar %#x)\n", GET_BM (index), val, r->bdbar); break; + case PI_PICB: + case PO_PICB: + case MC_PICB: + case SO_PICB: + /* PICB, PIV and CR. But PICB and PIV are RO */ + nabm_writeb(opaque, addr + 3, (val >> 24) & 0xff); + break; case GLOB_CNT: if (val & GC_WR) warm_reset (s);