On 11/1/21 1:18 PM, Peter Maydell wrote:
On Fri, 8 Oct 2021 at 01:26, Hao Wu <wuhao...@google.com> wrote:
From: Shengtan Mao <st...@google.com>
Signed-off-by: Shengtan Mao <st...@google.com>
Reviewed-by: Hao Wu <wuhao...@google.com>
Reviewed-by: Chris Rauer <cra...@google.com>
Reviewed-by: Tyrone Ting <kft...@nuvoton.com>
Signed-off-by: Hao Wu <wuhao...@google.com>
---
+ default:
+ qemu_log_mask(LOG_GUEST_ERROR, "SDHCI read of nonexist reg: 0x%02"
"nonexistent"
+ HWADDR_PRIx, addr);
+ break;
+ }
+
+ return val;
+}
+
+static void npcm7xx_sdhci_write(void *opaque, hwaddr addr, uint64_t val,
+ unsigned int size)
+{
+ NPCM7xxSDHCIState *s = opaque;
+
+ switch (addr) {
+ case NPCM7XX_BOOTTOCTRL:
+ s->regs.boottoctrl = val;
+ break;
+ default:
+ qemu_log_mask(LOG_GUEST_ERROR, "SDHCI write of nonexist reg: 0x%02"
ditto
Fixed while applying.
r~