fixes dgb access for 64bit cores

This commit is contained in:
2025-08-14 15:53:23 +02:00
parent c98e2b9f41
commit dc71178c0c
3 changed files with 15 additions and 7 deletions

18
.vscode/launch.json vendored
View File

@@ -17,6 +17,7 @@
},
"cwd": "${workspaceRoot}",
"gdb": "riscv64-unknown-elf-gdb",
"openGdbConsole": true,
"presentation": {
"hidden": false,
"group": "FW Debug",
@@ -30,11 +31,16 @@
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "--isa 'rv32gc|msu_vp' -v DEBUG --disass -f fw/hello-world/hello.elf -g 10000",
"presentation": {
"hidden": false,
"group": "FW Debug",
"order": 1
}
"openGdbConsole": true
},
{
"type": "gdb",
"request": "launch",
"name": "Launch 64bit VP with gdbserver",
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "--isa 'rv64gc|msu_vp' -v TRACEALL --disass -f fw/hello-world/hello.elf -g 10000",
"openGdbConsole": true
},
{
"type": "gdb",
@@ -42,7 +48,7 @@
"name": "Launch VP",
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "-v DEBUG -t 3 --isa tgc5c -f fw/hello-world/hello.elf",
"arguments": "-v DEBUG -t 3 --isa 'tgc5c|mu_p' -f fw/hello-world/hello.elf",
"openGdbConsole": true
},
{

View File

@@ -8,6 +8,8 @@ BOARD=riscv_vp
LINK_TARGET=flash
RISCV_ARCH:=rv32imc
RISCV_ABI:=ilp32
#RISCV_ARCH:=rv64imc
#RISCV_ABI:=lp64
LDFLAGS := -g -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI)
compiler := $(shell which riscv64-unknown-elf-gcc)