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}", "cwd": "${workspaceRoot}",
"gdb": "riscv64-unknown-elf-gdb", "gdb": "riscv64-unknown-elf-gdb",
"openGdbConsole": true,
"presentation": { "presentation": {
"hidden": false, "hidden": false,
"group": "FW Debug", "group": "FW Debug",
@@ -30,11 +31,16 @@
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp", "program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "--isa 'rv32gc|msu_vp' -v DEBUG --disass -f fw/hello-world/hello.elf -g 10000", "arguments": "--isa 'rv32gc|msu_vp' -v DEBUG --disass -f fw/hello-world/hello.elf -g 10000",
"presentation": { "openGdbConsole": true
"hidden": false, },
"group": "FW Debug", {
"order": 1 "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", "type": "gdb",
@@ -42,7 +48,7 @@
"name": "Launch VP", "name": "Launch VP",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp", "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 "openGdbConsole": true
}, },
{ {

View File

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