Update ibex irq registers

This commit is contained in:
Michael Rogenmoser 2020-12-07 09:41:29 +01:00
parent 034558d689
commit 5c9907fd7b
2 changed files with 7 additions and 1 deletions

View file

@ -25,7 +25,13 @@
#define CSR_PCMR_ACTIVE 0x1
#ifdef __ibex__
// For PULP, ibex added non-standard irqs to allow for 32 fast interrupts.
// These use custom CSRs: MIE: 0x7D0, MTVEC: 0x7D1, MIP: 0x7D2
#define SR_MTVEC 0x7D1
#else
#define SR_MTVEC 0x305
#endif

View file

@ -1,6 +1,6 @@
ifdef USE_IBEX
PULP_LDFLAGS +=
PULP_CFLAGS += -D__ibex__ -UARCHI_CORE_HAS_PULPV2 -DPLP_NO_BUILTIN -UCORE_PULP_BUILTINS -D__RISCV_GENERIC__ -DRV_ISA_RV32 -DPLP_NO_PERF_COUNTERS
PULP_CFLAGS += -D__ibex__ -UARCHI_CORE_HAS_PULPV2 -DPLP_NO_BUILTIN -UCORE_PULP_BUILTINS -DRV_ISA_RV32 -DPLP_NO_PERF_COUNTERS
PULP_ARCH_CFLAGS ?= -march=rv32imc
PULP_ARCH_LDFLAGS ?= -march=rv32imc
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imc