Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Oct 20, 2023
1 parent 7c4f1ca commit 2521972
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
20 changes: 8 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,15 @@ else # CROSS_COMPILE was set
endif

ARCH_CFLAGS = -march=$(processor)gcv_zba
SIMULATOR_FLAGS = --isa=$(processor)gcv_zba
endif

ifdef CROSS_COMPILE
ifdef SIMULATOR
ifeq ($(SIMULATOR),qemu)
SIMULATOR = qemu-riscv64
ARCH_CFLAGS += -cpu rv64,v=true,zba=true,vlen=128
else
SIMULATOR = spike
PROXY_KERNEL = pk
endif
endif
ifeq ($(SIMULATOR_TYPE), qemu)
SIMULATOR += qemu-riscv64
SIMULATOR_FLAGS = -cpu $(processor),v=true,zba=true,vlen=128
else
SIMULATOR = spike
SIMULATOR_FLAGS = --isa=$(processor)gcv_zba
PROXY_KERNEL = pk
endif
endif

CXXFLAGS += -Wall -Wcast-qual -I. $(ARCH_CFLAGS)
Expand Down
2 changes: 1 addition & 1 deletion scripts/cross-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi
set -x

make clean
make CROSS_COMPILE=riscv64-unknown-elf- SIMULATOR=$1 test || exit 1 # riscv64
make CROSS_COMPILE=riscv64-unknown-elf- SIMULATOR_TYPE=$1 test || exit 1 # riscv64

# make clean
# make CROSS_COMPILE=riscv32-unknown-elf- test || exit 1 # riscv32

0 comments on commit 2521972

Please sign in to comment.