mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-16 21:00:16 +00:00
Add and update CV32E40P + PULPissimo configurations
This commit is contained in:
parent
cc161f4134
commit
01df5a78eb
3 changed files with 28 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ export PULPRUN_TARGET=pulpissimo
|
|||
export USE_CV32E40P=1
|
||||
# use plusarg to pass simulation boot parameters instead of floating parameters
|
||||
export CONFIG_PLUSARG_SIM=1
|
||||
unset CONFIG_USE_ZFINX
|
||||
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then
|
||||
DIR="$(readlink -f -- "${(%):-%x}")"
|
||||
19
configs/pulpissimo_cv32_zfinx.sh
Normal file
19
configs/pulpissimo_cv32_zfinx.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
export PULPRT_TARGET=pulpissimo
|
||||
export PULPRUN_TARGET=pulpissimo
|
||||
export USE_CV32E40P=1
|
||||
# use plusarg to pass simulation boot parameters instead of floating parameters
|
||||
export CONFIG_PLUSARG_SIM=1
|
||||
export CONFIG_USE_ZFINX=1
|
||||
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then
|
||||
DIR="$(readlink -f -- "${(%):-%x}")"
|
||||
scriptDir="$(dirname $DIR)"
|
||||
else
|
||||
|
||||
scriptDir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||
|
||||
fi
|
||||
|
||||
source $scriptDir/common.sh
|
||||
|
|
@ -7,9 +7,14 @@ PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imc
|
|||
else ifdef USE_CV32E40P
|
||||
PULP_LDFLAGS +=
|
||||
PULP_CFLAGS += -D__cv32e40p__ -U__riscv__ -UARCHI_CORE_HAS_PULPV2
|
||||
PULP_ARCH_CFLAGS ?= -march=rv32imcxgap9
|
||||
PULP_ARCH_LDFLAGS ?= -march=rv32imcxgap9
|
||||
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9
|
||||
ifdef CONFIG_USE_ZFINX
|
||||
PULP_ARCH_CFLAGS ?= -march=rv32imc_zfinx_xcorev -mno-pulp-hwloop
|
||||
PULP_ARCH_LDFLAGS ?= -march=rv32imc_zfinx_xcorev -mno-pulp-hwloop
|
||||
else
|
||||
PULP_ARCH_CFLAGS ?= -march=rv32imfc_xcorev -mno-pulp-hwloop
|
||||
PULP_ARCH_LDFLAGS ?= -march=rv32imfc_xcorev -mno-pulp-hwloop
|
||||
endif
|
||||
PULP_ARCH_OBJDFLAGS ?=
|
||||
else
|
||||
PULP_LDFLAGS +=
|
||||
PULP_CFLAGS += -D__riscv__
|
||||
|
|
|
|||
Loading…
Reference in a new issue