[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/43] hw/arm/xilinx_zynq: Add cache controller
From: |
Peter Maydell |
Subject: |
[PULL 03/43] hw/arm/xilinx_zynq: Add cache controller |
Date: |
Fri, 31 May 2024 13:03:21 +0100 |
From: Sebastian Huber <sebastian.huber@embedded-brains.de>
The Zynq 7000 SoCs contain a CoreLink L2C-310 cache controller. Add the
corresponding Qemu device to the xilinx-zynq-a9 machine.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Message-id: 20240524120837.10057-2-sebastian.huber@embedded-brains.de
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/xilinx_zynq.c | 1 +
hw/arm/Kconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c
index fc3abcbe88b..0abb62f131d 100644
--- a/hw/arm/xilinx_zynq.c
+++ b/hw/arm/xilinx_zynq.c
@@ -241,6 +241,7 @@ static void zynq_init(MachineState *machine)
busdev = SYS_BUS_DEVICE(dev);
sysbus_realize_and_unref(busdev, &error_fatal);
sysbus_mmio_map(busdev, 0, MPCORE_PERIPHBASE);
+ sysbus_create_varargs("l2x0", MPCORE_PERIPHBASE + 0x2000, NULL);
sysbus_connect_irq(busdev, 0,
qdev_get_gpio_in(DEVICE(cpu), ARM_CPU_IRQ));
sysbus_connect_irq(busdev, 1,
diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig
index 8b97683a45e..1ad60da7aa2 100644
--- a/hw/arm/Kconfig
+++ b/hw/arm/Kconfig
@@ -370,6 +370,7 @@ config ZYNQ
select A9MPCORE
select CADENCE # UART
select PFLASH_CFI02
+ select PL310 # cache controller
select PL330
select SDHCI
select SSI_M25P80
--
2.34.1
- [PULL 00/43] target-arm queue, Peter Maydell, 2024/05/31
- [PULL 01/43] hw/intc/arm_gic: Fix set pending of PPIs, Peter Maydell, 2024/05/31
- [PULL 03/43] hw/arm/xilinx_zynq: Add cache controller,
Peter Maydell <=
- [PULL 16/43] target/arm: Convert SRSHL, URSHL to decodetree, Peter Maydell, 2024/05/31
- [PULL 02/43] hw/intc/arm_gic: Fix writes to GICD_ITARGETSRn, Peter Maydell, 2024/05/31
- [PULL 04/43] hw/arm/xilinx_zynq: Support up to two CPU cores, Peter Maydell, 2024/05/31
- [PULL 10/43] target/arm: Inline scalar SUQADD and USQADD, Peter Maydell, 2024/05/31
- [PULL 14/43] target/arm: Convert SSHL, USHL to decodetree, Peter Maydell, 2024/05/31
- [PULL 20/43] target/arm: Convert SQRSHL, UQRSHL to decodetree, Peter Maydell, 2024/05/31
- [PULL 22/43] target/arm: Convert CMGT, CMHI, CMGE, CMHS, CMTST, CMEQ to decodetree, Peter Maydell, 2024/05/31
- [PULL 11/43] target/arm: Inline scalar SQADD, UQADD, SQSUB, UQSUB, Peter Maydell, 2024/05/31
- [PULL 06/43] arm/sbsa-ref: move to Neoverse-N2 as default, Peter Maydell, 2024/05/31
- [PULL 30/43] target/arm: Convert SRHADD, URHADD to decodetree, Peter Maydell, 2024/05/31