mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-07-29 20:14:10 +00:00
target: Add pulp with cv32e40p
This commit is contained in:
parent
9ad3c4f8d6
commit
8891d83838
4 changed files with 28 additions and 2 deletions
16
configs/pulp_cv32e40p.sh
Normal file
16
configs/pulp_cv32e40p.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
export PULPRT_TARGET=pulp
|
||||
export PULPRUN_TARGET=pulp
|
||||
export USE_CV32E40P=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
|
||||
|
|
@ -25,7 +25,9 @@
|
|||
#include "archi/riscv/priv_1_10.h"
|
||||
#ifdef __ibex__
|
||||
#include "archi/ibex/mhpm.h"
|
||||
#else // __ibex__
|
||||
#elif defined(__cv32e40p__)
|
||||
#include "archi/cv32e40p/cv32e40p.h"
|
||||
#else
|
||||
#include "archi/riscv/pcer_v2.h"
|
||||
#endif // __ibex__
|
||||
#include "archi/itc/itc_v1.h"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@
|
|||
|
||||
#ifdef __ibex__
|
||||
#include "hal/ibex/ibex.h"
|
||||
#else // __ibex__
|
||||
#elif defined(__cv32e40p__)
|
||||
#include "hal/cv32e40p/cv32e40p.h"
|
||||
#else
|
||||
#include "hal/riscv/riscv_v5.h"
|
||||
#endif // __ibex__
|
||||
#include "hal/eu/eu_v3.h"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,12 @@ PULP_CFLAGS += -D__ibex__ -U__riscv__ -UARCHI_CORE_HAS_PULPV2 -DRV_ISA_RV
|
|||
PULP_ARCH_CFLAGS ?= -march=rv32imc
|
||||
PULP_ARCH_LDFLAGS ?= -march=rv32imc
|
||||
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 -mnohwloop
|
||||
PULP_ARCH_LDFLAGS ?= -march=rv32imcxgap9 -mnohwloop
|
||||
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9 -mnohwloop
|
||||
else
|
||||
PULP_LDFLAGS +=
|
||||
PULP_CFLAGS += -D__riscv__
|
||||
|
|
|
|||
Loading…
Reference in a new issue