From ef2ed8bbbc781f556326f42bb2ef989e0f585202 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 21 Dec 2020 18:16:44 +0100 Subject: [PATCH] tools/litex_json2dts: fix vexriscv-smp cpu reg numbering. --- litex/tools/litex_json2dts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/tools/litex_json2dts.py b/litex/tools/litex_json2dts.py index 68f07d3a1..e9bb56c33 100755 --- a/litex/tools/litex_json2dts.py +++ b/litex/tools/litex_json2dts.py @@ -72,7 +72,7 @@ def generate_dts(d): compatible = "riscv"; riscv,isa = "rv32ima"; mmu-type = "riscv,sv32"; - reg = <0>; + reg = <{cpu}>; status = "okay"; L{irq}: interrupt-controller {{ #interrupt-cells = <0x00000001>;