From 28be6f99d155d616e6f2e705ba78709965deaafa Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 2 Dec 2021 12:15:55 +0100 Subject: [PATCH] A small bug fix in the SMC FDC37c67x Super I/O chip. --- src/sio/sio_fdc37c67x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sio/sio_fdc37c67x.c b/src/sio/sio_fdc37c67x.c index d6905a72d..7e1b4d917 100644 --- a/src/sio/sio_fdc37c67x.c +++ b/src/sio/sio_fdc37c67x.c @@ -471,13 +471,13 @@ fdc37c67x_read(uint16_t port, void *priv) /* TODO: 8042 P1.2 SMI#. */ if ((dev->regs[7] == 8) && (dev->cur_reg == 0xb6)) { - ret = dev->regs[dev->cur_reg] & 0xe1; + ret = dev->ld_regs[dev->regs[7]][dev->cur_reg] & 0xe1; ret |= ((!!(smi_stat & (1 << p_irq))) << 1); ret |= ((!!(smi_stat & (1 << s2_irq))) << 2); ret |= ((!!(smi_stat & (1 << s1_irq))) << 3); ret |= ((!!(smi_stat & (1 << f_irq))) << 4); } else if ((dev->regs[7] == 8) && (dev->cur_reg == 0xb7)) { - ret = dev->regs[dev->cur_reg] & 0xec; + ret = dev->ld_regs[dev->regs[7]][dev->cur_reg] & 0xec; ret |= ((!!(smi_stat & (1 << 12))) << 0); ret |= ((!!(smi_stat & (1 << 1))) << 1); ret |= ((!!(smi_stat & (1 << 10))) << 4);