Skip to content

Commit

Permalink
update software framework to gcc-13.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Oct 13, 2023
1 parent 1d68932 commit 7ed8eb8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion do.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def task_BuildAndInstallSoftwareFrameworkTests():
"make -C sw/bootloader clean_all info bootloader",
# Compile and install test application, redirect UART0 TX to text.io simulation output via <UARTx_SIM_MODE> user flags
"echo 'Compiling and installing CPU/Processor test application'",
"make -C sw/example/processor_check clean_all USER_FLAGS+=-DUART0_SIM_MODE USER_FLAGS+=-DUART1_SIM_MODE USER_FLAGS+=-flto EFFORT=-Os MARCH=rv32imac info all",
"make -C sw/example/processor_check clean_all USER_FLAGS+=-DUART0_SIM_MODE USER_FLAGS+=-DUART1_SIM_MODE USER_FLAGS+=-flto EFFORT=-Os MARCH=rv32imac_zicsr_zifencei info all",
],
"doc": "Build all sw/example/*; install bootloader and processor check",
}
Expand Down
6 changes: 3 additions & 3 deletions docs/datasheet/software.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Make sure to add the bin folder of RISC-V GCC to your PATH variable.
USER_FLAGS - Custom toolchain flags [append only], default ""
USER_LIBS - Custom libraries [append only], default ""
EFFORT - Optimization level, default "-Os"
MARCH - Machine architecture, default "rv32i_zicsr"
MARCH - Machine architecture, default "rv32i_zicsr_zifencei"
MABI - Machine binary interface, default "ilp32"
APP_INC - C include folder(s) [append only], default "-I ."
ASM_INC - ASM include folder(s) [append only], default "-I ."
Expand All @@ -197,7 +197,7 @@ makefile (`sw/common/common.mk`):
.Customizing Makefile Variables
[TIP]
The makefile configuration variables can be overridden or extended directly when invoking the makefile. For
example `$ make MARCH=rv32ic_zicsr clean_all exe` overrides the default `MARCH` variable definitions.
example `$ make MARCH=rv32ic_zicsr_zifencei clean_all exe` overrides the default `MARCH` variable definitions.
.Default Makefile Configuration
[source,makefile]
Expand All @@ -217,7 +217,7 @@ EFFORT ?= -Os
# Compiler toolchain
RISCV_PREFIX ?= riscv32-unknown-elf-
# CPU architecture and ABI
MARCH ?= rv32i_zicsr
MARCH ?= rv32i_zicsr_zifencei
MABI ?= ilp32
# User flags for additional configuration (will be added to compiler flags)
USER_FLAGS ?=
Expand Down
2 changes: 1 addition & 1 deletion rtl/core/neorv32_package.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ package neorv32_package is

-- Architecture Constants -----------------------------------------------------------------
-- -------------------------------------------------------------------------------------------
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01090000"; -- hardware version
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01090001"; -- hardware version
constant archid_c : natural := 19; -- official RISC-V architecture ID
constant XLEN : natural := 32; -- native data path width, do not change!

Expand Down
2 changes: 1 addition & 1 deletion sw/common/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ EFFORT ?= -Os
RISCV_PREFIX ?= riscv32-unknown-elf-

# CPU architecture and ABI
MARCH ?= rv32i_zicsr
MARCH ?= rv32i_zicsr_zifencei
MABI ?= ilp32

# User flags for additional configuration (will be added to compiler flags)
Expand Down
2 changes: 1 addition & 1 deletion sw/example/processor_check/run_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -e

echo "Starting processor check simulation..."
make USER_FLAGS+="-DUART0_SIM_MODE -DUART1_SIM_MODE -g -flto" EFFORT=-Os MARCH=rv32imac clean_all all sim
make USER_FLAGS+="-DUART0_SIM_MODE -DUART1_SIM_MODE -g -flto" EFFORT=-Os MARCH=rv32imac_zicsr_zifencei clean_all all sim
2 changes: 1 addition & 1 deletion sw/ocd-firmware/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ EFFORT ?= -Os
RISCV_PREFIX ?= riscv32-unknown-elf-

# CPU architecture and ABI
MARCH = rv32i
MARCH = rv32i_zicsr_zifencei
MABI = ilp32

# User flags for additional configuration (will be added to compiler flags)
Expand Down

0 comments on commit 7ed8eb8

Please sign in to comment.