For some registers such as PCH_PIC_AUTO_CTRL0_LO etc which are not emulated, emulation driver does nothing. It is the same with default handling, here remove these registers and use the default path for simplification.
Signed-off-by: Bibo Mao <[email protected]> --- hw/intc/loongarch_pch_pic.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/hw/intc/loongarch_pch_pic.c b/hw/intc/loongarch_pch_pic.c index acd75ccb0c..3fc4227159 100644 --- a/hw/intc/loongarch_pch_pic.c +++ b/hw/intc/loongarch_pch_pic.c @@ -108,11 +108,6 @@ static uint64_t loongarch_pch_pic_low_readw(void *opaque, hwaddr addr, case PCH_PIC_HTMSI_EN_HI: val = s->htmsi_en >> 32; break; - case PCH_PIC_AUTO_CTRL0_LO: - case PCH_PIC_AUTO_CTRL0_HI: - case PCH_PIC_AUTO_CTRL1_LO: - case PCH_PIC_AUTO_CTRL1_HI: - break; default: break; } @@ -191,11 +186,6 @@ static void loongarch_pch_pic_low_writew(void *opaque, hwaddr addr, case PCH_PIC_HTMSI_EN_HI: s->htmsi_en = get_writew_val(s->htmsi_en, data, 1); break; - case PCH_PIC_AUTO_CTRL0_LO: - case PCH_PIC_AUTO_CTRL0_HI: - case PCH_PIC_AUTO_CTRL1_LO: - case PCH_PIC_AUTO_CTRL1_HI: - break; default: break; } -- 2.39.3
