diff mbox series

[v2,22/23] target/loongarch: Wire up LoongArch32 Kconfigs

Message ID 20241226-la32-fixes1-v2-22-0414594f8cb5@flygoat.com (mailing list archive)
State New
Headers show
Series target/loongarch: LoongArch32 fixes 1 | expand

Commit Message

Jiaxun Yang Dec. 26, 2024, 9:19 p.m. UTC
Add LoongArch32 Kconfig entry and enable the virt machine for
LoongArch32.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 hw/loongarch/Kconfig     | 2 +-
 target/loongarch/Kconfig | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/loongarch/Kconfig b/hw/loongarch/Kconfig
index fe1c6feac13874424c110637067e5add26978833..fae467e3af1b7c7c6637f7ff04314bc09687c5dd 100644
--- a/hw/loongarch/Kconfig
+++ b/hw/loongarch/Kconfig
@@ -1,7 +1,7 @@ 
 config LOONGARCH_VIRT
     bool
     default y
-    depends on LOONGARCH64 && FDT
+    depends on (LOONGARCH32 || LOONGARCH64) && FDT
     select DEVICE_TREE
     select PCI
     select PCI_EXPRESS_GENERIC_BRIDGE
diff --git a/target/loongarch/Kconfig b/target/loongarch/Kconfig
index 46b26b1a85715e779672bea93152a3c62c170fe2..e428b066c6d09048d9a34803982e8f344237055d 100644
--- a/target/loongarch/Kconfig
+++ b/target/loongarch/Kconfig
@@ -1,2 +1,5 @@ 
+config LOONGARCH32
+    bool
+
 config LOONGARCH64
     bool