Commit da8d337ba0 for qemu.org

commit da8d337ba04c2e8e9210742f83bf72e3dffbe128
Author: Jamin Lin <jamin_lin@aspeedtech.com>
Date:   Thu Oct 15 06:36:31 2026 +0000

    hw/arm/aspeed_ast1040: Add AST1080 QSPI filters as unimplemented device

    The AST1080 provides three QSPI Filter Controllers (SPI monitors) at
    the following addresses:

      QSPI filter #0: 0x74c15000
      QSPI filter #1: 0x74c16000
      QSPI filter #2: 0x74c17000

    These controllers are only available on the AST1080. The AST1040 does
    not have them, so they are added to the AST1080 specific init and
    realize functions instead of the common AST10x0 G2 ones.

    The controllers are not modeled yet. Add the register regions as
    unimplemented devices to reflect the AST1080 memory map.

    Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
    Reviewed-by: Cédric Le Goater <clg@redhat.com>
    Link: https://lore.kernel.org/qemu-devel/20261015063625.186708-6-jamin_lin@aspeedtech.com
    Signed-off-by: Cédric Le Goater <clg@redhat.com>

diff --git a/hw/arm/aspeed_ast1040.c b/hw/arm/aspeed_ast1040.c
index c641f84fbe..e5c8d15dcb 100644
--- a/hw/arm/aspeed_ast1040.c
+++ b/hw/arm/aspeed_ast1040.c
@@ -101,6 +101,13 @@ static const UnimplementedDeviceConfig aspeed_soc_ast1040_unimp_devs[] = {
     { }
 };

+static const UnimplementedDeviceConfig aspeed_soc_ast1080_unimp_devs[] = {
+    { "spim0", "aspeed.spim0", 0x74C15000, 0x1000, -1000 },
+    { "spim1", "aspeed.spim1", 0x74C16000, 0x1000, -1000 },
+    { "spim2", "aspeed.spim2", 0x74C17000, 0x1000, -1000 },
+    { }
+};
+
 static qemu_irq aspeed_soc_ast1040_get_irq(AspeedSoCState *s, int dev)
 {
     Aspeed10x0SoCState *a = ASPEED10X0_SOC(s);
@@ -408,6 +415,7 @@ static void aspeed_soc_ast1080_class_init(ObjectClass *klass, const void *data)
     sc->uarts_base      = ASPEED_DEV_UART0;
     sc->irqmap          = aspeed_soc_ast1040_irqmap;
     sc->memmap          = aspeed_soc_ast1040_memmap;
+    sc->unimp_devs      = aspeed_soc_ast1080_unimp_devs;
     sc->num_cpus        = 1;
 }