mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-06-09 00:31:03 +00:00
add dummy pmsis header and xpulpnn march flag to pulp_cluster target
This commit is contained in:
parent
f6ff1d54b5
commit
2a505d42ae
2 changed files with 12 additions and 3 deletions
9
include/pmsis.h
Normal file
9
include/pmsis.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#ifndef __FAKE_PMSIS_H__
|
||||
#define __FAKE_PMSIS_H__
|
||||
|
||||
// simply include the runtime equivalent of pmsis.h: pulp.h
|
||||
#include "pulp.h"
|
||||
#define pi_core_id get_core_id
|
||||
#define pi_cl_team_barrier(x) synch_barrier()
|
||||
|
||||
#endif
|
||||
|
|
@ -13,9 +13,9 @@ PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9 -mnohwloop
|
|||
else
|
||||
PULP_LDFLAGS +=
|
||||
PULP_CFLAGS += -D__riscv__
|
||||
PULP_ARCH_CFLAGS ?= -march=rv32imcxgap9
|
||||
PULP_ARCH_LDFLAGS ?= -march=rv32imcxgap9
|
||||
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9
|
||||
PULP_ARCH_CFLAGS ?= -march=rv32imcxpulpnn
|
||||
PULP_ARCH_LDFLAGS ?= -march=rv32imcxpulpnn
|
||||
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxpulpnn
|
||||
endif
|
||||
|
||||
PULP_CFLAGS += -fdata-sections -ffunction-sections -include chips/pulp_cluster/config.h -I$(PULPRT_HOME)/include/chips/pulp_cluster
|
||||
|
|
|
|||
Loading…
Reference in a new issue