Restore SW Makefiles to use whatever riscv32-unknown-elf toolchain is in PATH
(clean up fallout from Zc implementation -- ensure Readme instructions will get you to hello world)
This commit is contained in:
parent
a861a110c1
commit
5aee830ac0
|
@ -8,7 +8,7 @@ endif
|
|||
|
||||
CCFLAGS ?=
|
||||
LDSCRIPT ?= ../common/memmap.ld
|
||||
CROSS_PREFIX ?= /opt/riscv/gcc-riscv32-corev/bin/riscv32-corev-elf-
|
||||
CROSS_PREFIX ?= riscv32-unknown-elf-
|
||||
TBDIR ?= ../tb_cxxrtl
|
||||
INCDIR ?= ../common
|
||||
MAX_CYCLES ?= 100000
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
APP := coremark
|
||||
MAX_CYCLES := 100000000
|
||||
|
||||
CROSS_PREFIX ?= /opt/riscv/gcc-riscv32-corev/bin/riscv32-corev-elf-
|
||||
CROSS_PREFIX ?= riscv32-unknown-elf-
|
||||
TBDIR ?= ../tb_cxxrtl
|
||||
|
||||
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
# Use this flag to define how to to get an executable (e.g -o)
|
||||
OUTFLAG= -o
|
||||
|
||||
MARCH = rv32im_zicsr_zba_zbb_zbc_zbs_zca_zcb_zcmp
|
||||
CROSS_PREFIX = /opt/riscv/gcc-riscv32-corev/bin/riscv32-corev-elf-
|
||||
MARCH = rv32imac_zicsr_zba_zbb_zbs
|
||||
CROSS_PREFIX = riscv32-unknown-elf-
|
||||
|
||||
CC = $(CROSS_PREFIX)gcc
|
||||
LD = $(CROSS_PREFIX)gcc
|
||||
AS = $(CROSS_PREFIX)gcc
|
||||
|
||||
PORT_CFLAGS = -O3 -g -march=$(MARCH) -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4
|
||||
PORT_CFLAGS = -O3 -g -march=$(MARCH)
|
||||
FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)"
|
||||
CFLAGS = $(PORT_CFLAGS) -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
|
||||
|
||||
|
@ -38,7 +38,7 @@ SEPARATE_COMPILE=1
|
|||
# You must also define below how to create an object file, and how to link.
|
||||
|
||||
OBJOUT = -o
|
||||
LFLAGS = -T ../../common/memmap.ld -Wl,--noinhibit-exec
|
||||
LFLAGS = -T ../../common/memmap.ld -Wl,--noinhibit-exec -march=$(MARCH)
|
||||
ASFLAGS = -c -march=$(MARCH)
|
||||
OFLAG = -o
|
||||
COUT = -c
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SRCS := ../common/init.S src/dhrystone_main.c src/dhrystone.c src/util.c
|
||||
APP := dhrystone
|
||||
CCFLAGS := -O3 -fno-inline -march=rv32im_zicsr
|
||||
CCFLAGS := -O3 -fno-inline -march=rv32im_zicsr_zba_zbb_zbs
|
||||
MAX_CYCLES := 1000000
|
||||
|
||||
include ../common/src_only_app.mk
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SRCS := ../common/init.S main.c
|
||||
APP := hellow
|
||||
CCFLAGS = -march=rv32ima_zicsr_zba_zbb_zbc_zbs_zca_zcb_zcmp -Os
|
||||
AFLAGS = -march=rv32ima_zicsr_zba_zbb_zbc_zbs_zca_zcb_zcmp
|
||||
CCFLAGS = -march=rv32imac_zicsr_zba_zbb_zbc_zbs -Os
|
||||
AFLAGS = -march=rv32imac_zicsr_zba_zbb_zbc_zbs
|
||||
|
||||
include ../common/src_only_app.mk
|
||||
|
|
|
@ -2,9 +2,5 @@
|
|||
|
||||
int main() {
|
||||
tb_puts("Hello world from Hazard3 + CXXRTL!\n");
|
||||
asm volatile(
|
||||
"cm.push {ra, s0-s2}, -16\n"
|
||||
"cm.pop {ra, s0-s2}, +16\n"
|
||||
);
|
||||
return 123;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
APP := hellow
|
||||
SRCS = ../common/init.S $(APP).c $(EXTRA_SRCS_$(APP))
|
||||
CCFLAGS := -march=rv32ima_zicsr_zba_zbb_zbs_zca_zcb_zcmp -Os
|
||||
CCFLAGS := -march=rv32ima_zicsr_zifencei_zba_zbb_zbc_zbs_zbkb -Os
|
||||
MAX_CYCLES := 1000000
|
||||
INCDIR := include ../common
|
||||
|
||||
|
|
Loading…
Reference in New Issue