summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov2018-01-16 14:28:20 +0100
committerPeter Maydell2018-01-16 14:28:20 +0100
commit5d2c0464fa7e3b00ed8eb4791ba1e955e29b685b (patch)
treef3b825d3f101c408cff9b3ac973ff134ffaf435d
parentsdhci: fix CAPAB/MAXCURR registers, both are 64bit and read-only (diff)
downloadqemu-5d2c0464fa7e3b00ed8eb4791ba1e955e29b685b.tar.gz
qemu-5d2c0464fa7e3b00ed8eb4791ba1e955e29b685b.tar.xz
qemu-5d2c0464fa7e3b00ed8eb4791ba1e955e29b685b.zip
sdhci: Implement write method of ACMD12ERRSTS register
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Message-id: 20180115182436.2066-13-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/sd/sdhci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
index d4fcebcd6a..9bdbcd0a04 100644
--- a/hw/sd/sdhci.c
+++ b/hw/sd/sdhci.c
@@ -1129,6 +1129,9 @@ sdhci_write(void *opaque, hwaddr offset, uint64_t val, unsigned size)
}
sdhci_update_irq(s);
break;
+ case SDHC_ACMD12ERRSTS:
+ MASKED_WRITE(s->acmd12errsts, mask, value);
+ break;
case SDHC_CAPAB:
case SDHC_CAPAB + 4: