Merge pull request #809 from stffrdhrn/mor1kx-smp

cpu/mor1kx: Add initial SMP support to cpu core
This commit is contained in:
enjoy-digital 2021-02-09 09:54:49 +01:00 committed by GitHub
commit 018094abb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,8 @@ from litex import get_data_mod
from litex.soc.interconnect import wishbone
from litex.soc.cores.cpu import CPU
CPU_VARIANTS = ["standard", "standard+fpu", "linux", "linux+fpu"]
CPU_VARIANTS = ["standard", "standard+fpu", "linux", "linux+fpu",
"linux+smp", "linux+smp+fpu"]
class MOR1KX(CPU):
@ -113,6 +114,11 @@ class MOR1KX(CPU):
p_DBUS_WB_TYPE = "B3_REGISTERED_FEEDBACK",
)
if "smp" in variant:
cpu_args.update(
p_OPTION_RF_NUM_SHADOW_GPR = 1,
)
if "fpu" in variant:
cpu_args.update(
p_FEATURE_FPU = "ENABLED",