From 18bd8f3770d2dd2e2068038112dc346084fe5362 Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Mon, 4 Oct 2021 16:00:32 -0400 Subject: [PATCH] cpu/rocket: add dual-core (smp) variants - 2-core "linux" (fpu-less) variants with double, quad mem. bus width --- litex/soc/cores/cpu/rocket/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/litex/soc/cores/cpu/rocket/core.py b/litex/soc/cores/cpu/rocket/core.py index fca3b7388..b41b47e8f 100644 --- a/litex/soc/cores/cpu/rocket/core.py +++ b/litex/soc/cores/cpu/rocket/core.py @@ -47,7 +47,9 @@ CPU_VARIANTS = { "linux": "freechips.rocketchip.system.LitexLinuxConfig", "linux4": "freechips.rocketchip.system.LitexLinux4Config", "linuxd": "freechips.rocketchip.system.LitexLinuxDConfig", + "linux2d": "freechips.rocketchip.system.LitexLinux2DConfig", "linuxq": "freechips.rocketchip.system.LitexLinuxQConfig", + "linux2q": "freechips.rocketchip.system.LitexLinux2QConfig", "full": "freechips.rocketchip.system.LitexFullConfig", "full4d": "freechips.rocketchip.system.LitexFull4DConfig", "full4q": "freechips.rocketchip.system.LitexFull4QConfig", @@ -60,7 +62,9 @@ GCC_FLAGS = { "linux": "-march=rv64imac -mabi=lp64 ", "linux4": "-march=rv64imac -mabi=lp64 ", "linuxd": "-march=rv64imac -mabi=lp64 ", + "linux2d": "-march=rv64imac -mabi=lp64 ", "linuxq": "-march=rv64imac -mabi=lp64 ", + "linux2q": "-march=rv64imac -mabi=lp64 ", "full": "-march=rv64imafdc -mabi=lp64 ", "full4d": "-march=rv64imafdc -mabi=lp64 ", "full4q": "-march=rv64imafdc -mabi=lp64 ", @@ -74,7 +78,9 @@ CPU_SIZE_PARAMS = { "linux": ( 64, 64, 1), "linux4": ( 64, 64, 4), "linuxd": ( 128, 64, 1), + "linux2d": ( 128, 64, 2), "linuxq": ( 256, 64, 1), + "linux2q": ( 256, 64, 2), "full": ( 64, 64, 1), "full4d": ( 128, 64, 4), "full4q": ( 256, 64, 4),