From 2a49aad0435089879b59165de3d5d4f60aff74ec Mon Sep 17 00:00:00 2001 From: Marco Merlin Date: Thu, 1 Dec 2022 00:36:59 +0100 Subject: [PATCH] specify ISA --- 1_blinky/Makefile | 2 +- 1_blinky/vexriscv.repl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/1_blinky/Makefile b/1_blinky/Makefile index 98da223..5cbcd04 100644 --- a/1_blinky/Makefile +++ b/1_blinky/Makefile @@ -3,7 +3,7 @@ $(error Toolchain not activated. Be sure to `source ../activate-toolchains.sh`) endif image: baremetal.s - riscv32-unknown-elf-gcc baremetal.s -ggdb -O0 -o image -ffreestanding -nostdlib + riscv32-unknown-elf-gcc baremetal.s -march=rv32imac -ggdb -O0 -o image -ffreestanding -nostdlib launch: image renode vexriscv.resc diff --git a/1_blinky/vexriscv.repl b/1_blinky/vexriscv.repl index 7f98227..59a9784 100644 --- a/1_blinky/vexriscv.repl +++ b/1_blinky/vexriscv.repl @@ -2,6 +2,7 @@ mem: Memory.MappedMemory @ sysbus 0x0 size: 0x00040000 cpu: CPU.VexRiscv @ sysbus + cpuType: "rv32imac" gpio_out: GPIOPort.LiteX_GPIO @ sysbus 0x60000800 type: Type.Out