Skip to content

Commit

Permalink
[sw] Enable choice of -march= string for CoreMark
Browse files Browse the repository at this point in the history
  • Loading branch information
GregAC committed Jul 10, 2020
1 parent 1dfddee commit adafa73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/sw/benchmarks/coremark/ibex/core_portme.mak
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

RV_ISA = rv32im

OUTFILES = $(OPATH)coremark.dis $(OPATH)coremark.map

NAME = coremark
Expand All @@ -27,7 +29,7 @@ LD = riscv32-unknown-elf-ld
AS = riscv32-unknown-elf-as
# Flag : CFLAGS
# Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags"
PORT_CFLAGS = -g -march=rv32imc -mabi=ilp32 -static -mcmodel=medlow -mtune=sifive-3-series \
PORT_CFLAGS = -g -march=$(RV_ISA) -mabi=ilp32 -static -mcmodel=medlow -mtune=sifive-3-series \
-O3 -falign-functions=16 -funroll-all-loops \
-finline-functions -falign-jumps=4 \
-nostdlib -nostartfiles -ffreestanding -mstrict-align \
Expand Down

0 comments on commit adafa73

Please sign in to comment.