aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-02-02 22:53:08 +0100
committerHelge Deller <deller@gmx.de>2024-02-11 13:20:23 +0100
commitf2ffd6fb4059d22e18b23c2112419320345aeacf (patch)
tree3d724e44eaac1902c0be460a723e6c842a3941a3 /hw
parentf410b688af8fa6b317c58dd1a11f2b3225d4a0ea (diff)
downloadqemu-f2ffd6fb4059d22e18b23c2112419320345aeacf.zip
qemu-f2ffd6fb4059d22e18b23c2112419320345aeacf.tar.gz
qemu-f2ffd6fb4059d22e18b23c2112419320345aeacf.tar.bz2
lasi: allow access to LAN MAC address registers
Firmware and qemu reads and writes the MAC address for the LASI LAN via registers in LASI. Allow those accesses and return zero even if LASI LAN isn't enabled to avoid HPMCs (=crashes). Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'hw')
-rw-r--r--hw/misc/lasi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/misc/lasi.c b/hw/misc/lasi.c
index 003f5b5..9cfa5bb 100644
--- a/hw/misc/lasi.c
+++ b/hw/misc/lasi.c
@@ -38,6 +38,7 @@ static bool lasi_chip_mem_valid(void *opaque, hwaddr addr,
case LASI_LPT:
case LASI_UART:
case LASI_LAN:
+ case LASI_LAN + 12: /* LASI LAN MAC */
case LASI_RTC:
case LASI_PCR ... LASI_AMR:
@@ -78,6 +79,7 @@ static MemTxResult lasi_chip_read_with_attrs(void *opaque, hwaddr addr,
case LASI_LPT:
case LASI_UART:
case LASI_LAN:
+ case LASI_LAN + 12:
val = 0;
break;
case LASI_RTC: