mirror of
https://github.com/Minres/RISCV-VP.git
synced 2025-12-17 17:01:35 +00:00
extends VSCode/Theia setup
This commit is contained in:
17
.vscode/c_cpp_properties.json
vendored
17
.vscode/c_cpp_properties.json
vendored
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Linux",
|
|
||||||
"includePath": [
|
|
||||||
"${workspaceFolder}/**"
|
|
||||||
],
|
|
||||||
"defines": [],
|
|
||||||
"compilerPath": "/usr/bin/gcc",
|
|
||||||
"cStandard": "gnu17",
|
|
||||||
"cppStandard": "gnu++14",
|
|
||||||
"intelliSenseMode": "linux-gcc-x64",
|
|
||||||
"configurationProvider": "ms-vscode.cmake-tools"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version": 4
|
|
||||||
}
|
|
||||||
27
.vscode/launch.json
vendored
27
.vscode/launch.json
vendored
@@ -1,13 +1,10 @@
|
|||||||
{
|
{
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"type": "gdbtarget",
|
"type": "gdbtarget",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"name": "Attach-to-gdbserver",
|
"name": "Attach GDB to VP",
|
||||||
"program": "./fw/hello-world/hello.elf",
|
"program": "./fw/hello-world/hello.elf",
|
||||||
"imageAndSymbols": {
|
"imageAndSymbols": {
|
||||||
"symbolFileName": "./fw/hello-world/hello.elf"
|
"symbolFileName": "./fw/hello-world/hello.elf"
|
||||||
@@ -27,25 +24,25 @@
|
|||||||
{
|
{
|
||||||
"type": "gdb",
|
"type": "gdb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch VP with gdbserver",
|
"name": "32bit VP with gdbserver",
|
||||||
"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 INFO --disass -f fw/hello-world/hello.elf -g 10000",
|
||||||
"openGdbConsole": true
|
"openGdbConsole": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "gdb",
|
"type": "gdb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch 64bit VP with gdbserver",
|
"name": "64bit VP with gdbserver",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
|
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
|
||||||
"arguments": "--isa 'rv64gc|msu_vp' -v TRACEALL --disass -f fw/hello-world/hello.elf -g 10000",
|
"arguments": "--isa 'rv64gc|msu_vp' -v INFO --disass -f fw/hello-world/hello.elf -g 10000",
|
||||||
"openGdbConsole": true
|
"openGdbConsole": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "gdb",
|
"type": "gdb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch VP",
|
"name": "TGC5 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|mu_p' -f fw/hello-world/hello.elf",
|
"arguments": "-v DEBUG -t 3 --isa 'tgc5c|mu_p' -f fw/hello-world/hello.elf",
|
||||||
@@ -54,17 +51,21 @@
|
|||||||
{
|
{
|
||||||
"type": "gdb",
|
"type": "gdb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch VP (asmjit)",
|
"name": "TGC5 VP (asmjit)",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
|
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
|
||||||
"arguments": "--isa tgc5c --backend asmjit -f fw/hello-world/hello.elf",
|
"arguments": "-v DEBUG --isa 'tgc5c|mu_p' --backend asmjit -f fw/hello-world/hello.elf",
|
||||||
"openGdbConsole": true
|
"openGdbConsole": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"compounds": [
|
"compounds": [
|
||||||
{
|
{
|
||||||
"name": "FW-Debug",
|
"name": "FW-Debug 32bit",
|
||||||
"configurations": ["Launch VP with gdbserver", "Attach-to-gdbserver"]
|
"configurations": ["32bit VP with gdbserver", "Attach to VP"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "FW-Debug 64bit",
|
||||||
|
"configurations": ["64bit VP with gdbserver", "Attach to VP"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
@@ -14,6 +14,10 @@
|
|||||||
"--background-index",
|
"--background-index",
|
||||||
"--compile-commands-dir=${workspaceFolder}/build"
|
"--compile-commands-dir=${workspaceFolder}/build"
|
||||||
],
|
],
|
||||||
"cmake.copyCompileCommands": "${workspaceFolder}/build/compile_commands.json"
|
"cmake.copyCompileCommands": "${workspaceFolder}/build/compile_commands.json",
|
||||||
|
"cmake.options.statusBarVisibility": "hidden",
|
||||||
|
"cmake.options.advanced": {
|
||||||
|
"configure": {"projectStatusVisibility": "visible"},
|
||||||
|
"build": {"statusBarVisibility": "visible"}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
40
.vscode/tasks.json
vendored
40
.vscode/tasks.json
vendored
@@ -2,7 +2,7 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "Build FW",
|
"label": "Build 32bit FW",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "make -C fw/hello-world clean all",
|
"command": "make -C fw/hello-world clean all",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
@@ -16,9 +16,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Execute VP",
|
"label": "Build 64bit FW",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "build/Debug/src/riscv-vp -f fw/hello-world/hello.elf -p pctrace=contrib/TGC_C_cycles.json",
|
"command": "make -C fw/hello-world RISCV_ARCH=rv64imc RISCV_ABI=lp64 clean all",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"echo": true,
|
"echo": true,
|
||||||
@@ -30,9 +30,37 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Execute VP with GDB-Server",
|
"label": "Run 32bit VP",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "build/Debug/src/riscv-vp -f fw/hello-world/hello.elf -g 10000",
|
"command": "build/Debug/src/riscv-vp --isa 'rv32gc|msu_vp' -f fw/hello-world/hello.elf -p pctrace=contrib/TGC_C_cycles.json",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "dedicated",
|
||||||
|
"showReuseMessage": false,
|
||||||
|
"clear": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Run 64bit VP",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "build/Debug/src/riscv-vp --isa 'rv64gc|msu_vp' -f fw/hello-world/hello.elf -p pctrace=contrib/TGC_C_cycles.json",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "dedicated",
|
||||||
|
"showReuseMessage": false,
|
||||||
|
"clear": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Run 32bit VP with GDB-Server",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "build/Debug/src/riscv-vp --isa 'rv32gc|msu_vp' -f fw/hello-world/hello.elf -g 10000",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"echo": true,
|
"echo": true,
|
||||||
@@ -44,7 +72,7 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Execute 64bit VP with GDB-Server",
|
"label": "Run 64bit VP with GDB-Server",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "build/Debug/src/riscv-vp --isa 'rv64gc|msu_vp' -v TRACEALL -f fw/hello-world/hello.elf -g 10000 |& tee run.log",
|
"command": "build/Debug/src/riscv-vp --isa 'rv64gc|msu_vp' -v TRACEALL -f fw/hello-world/hello.elf -g 10000 |& tee run.log",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
|
|||||||
Reference in New Issue
Block a user