tcl/target: update riscv commands in configs

Adjust configs for the changed command riscv virt2phys_mode.

Change-Id: Ib365bbb74b3b17e8f0b594e08ab73871f86cf89e
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/9190
Tested-by: jenkins
This commit is contained in:
Tomas Vanek
2025-10-26 10:25:05 +01:00
parent 12ab80ab45
commit d7fb95d800
3 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME target create $_TARGETNAME riscv -chain-position $_TARGETNAME
riscv set_mem_access sysbus riscv set_mem_access sysbus
riscv set_enable_virt2phys off riscv virt2phys_mode off
$_TARGETNAME configure -work-area-phys $_WORKAREAADDR -work-area-size $_WORKAREASIZE -work-area-backup 1 $_TARGETNAME configure -work-area-phys $_WORKAREAADDR -work-area-size $_WORKAREASIZE -work-area-backup 1

View File

@@ -27,7 +27,7 @@ set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME target create $_TARGETNAME riscv -chain-position $_TARGETNAME
riscv set_mem_access progbuf riscv set_mem_access progbuf
riscv set_enable_virt2phys off riscv virt2phys_mode off
$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x10000 -work-area-backup 1 $_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x10000 -work-area-backup 1

View File

@@ -100,7 +100,7 @@ if { [info exists _TARGETNAME_CM0] } {
if { [info exists _TARGETNAME_RV0] } { if { [info exists _TARGETNAME_RV0] } {
target create $_TARGETNAME_RV0 riscv -dap $_CHIPNAME.dap -ap-num 0xa000 -coreid 0 target create $_TARGETNAME_RV0 riscv -dap $_CHIPNAME.dap -ap-num 0xa000 -coreid 0
$_TARGETNAME_RV0 riscv set_enable_virt2phys off $_TARGETNAME_RV0 riscv virt2phys_mode off
$_TARGETNAME_RV0 configure -event reset-init "_rv_reset_init" $_TARGETNAME_RV0 configure -event reset-init "_rv_reset_init"
@@ -117,7 +117,7 @@ if { [info exists _TARGETNAME_CM1] } {
if { [info exists _TARGETNAME_RV1] } { if { [info exists _TARGETNAME_RV1] } {
target create $_TARGETNAME_RV1 riscv -dap $_CHIPNAME.dap -ap-num 0xa000 -coreid 1 target create $_TARGETNAME_RV1 riscv -dap $_CHIPNAME.dap -ap-num 0xa000 -coreid 1
$_TARGETNAME_RV1 riscv set_enable_virt2phys off $_TARGETNAME_RV1 riscv virt2phys_mode off
} }
if { [info exists USE_SMP] } { if { [info exists USE_SMP] } {