Add PULPissimo CV32E40X target

This commit is contained in:
Francesco Conti 2024-04-23 19:07:11 +02:00
parent 2b98d1baa4
commit 1a3eafb9a0
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/bin/bash -e
export PULPRT_TARGET=pulpissimo
export PULPRUN_TARGET=pulpissimo
export USE_CV32E40X=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

View file

@ -15,6 +15,12 @@ PULP_ARCH_CFLAGS ?= -march=rv32imfc_xcorev -mno-pulp-hwloop
PULP_ARCH_LDFLAGS ?= -march=rv32imfc_xcorev -mno-pulp-hwloop
endif
PULP_ARCH_OBJDFLAGS ?=
else ifdef USE_CV32E40X
PULP_LDFLAGS +=
PULP_CFLAGS += -D__riscv__ -UARCHI_CORE_HAS_PULPV2 -DRV_ISA_RV32
PULP_ARCH_CFLAGS ?= -march=rv32imc -mnohwloop
PULP_ARCH_LDFLAGS ?= -march=rv32imc -mnohwloop
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imc -mnohwloop
else
PULP_LDFLAGS +=
PULP_CFLAGS += -D__riscv__