diff options
author | Tim Newsome <tim@sifive.com> | 2017-06-09 14:09:35 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-06-09 14:09:35 -0700 |
commit | 48611c513b2348c3e934449649d57932dd5bfe24 (patch) | |
tree | 85cafd7d082104a663be104403a1777de47ed818 /debug/targets | |
parent | 023f25cc3f09eafb9b8c80c258d58e437b859b16 (diff) | |
download | riscv-tests-48611c513b2348c3e934449649d57932dd5bfe24.zip riscv-tests-48611c513b2348c3e934449649d57932dd5bfe24.tar.gz riscv-tests-48611c513b2348c3e934449649d57932dd5bfe24.tar.bz2 |
Make HiFive1 testing (mostly) work again
Currently failing:
DebugChangeString
DebugFunctionCall
InstantHaltTest
Diffstat (limited to 'debug/targets')
-rwxr-xr-x | debug/targets/HiFive1/link.lds | 2 | ||||
-rw-r--r-- | debug/targets/HiFive1/openocd.cfg | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/debug/targets/HiFive1/link.lds b/debug/targets/HiFive1/link.lds index 1dbb99c..1e0645a 100755 --- a/debug/targets/HiFive1/link.lds +++ b/debug/targets/HiFive1/link.lds @@ -13,7 +13,7 @@ SECTIONS .data : { *(.data) } .sdata : { - _gp = . + 0x800; + __global_pointer$ = . + 0x800; *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata*) *(.sdata .sdata.* .gnu.linkonce.s.*) diff --git a/debug/targets/HiFive1/openocd.cfg b/debug/targets/HiFive1/openocd.cfg index 72a5446..5bde59b 100644 --- a/debug/targets/HiFive1/openocd.cfg +++ b/debug/targets/HiFive1/openocd.cfg @@ -14,10 +14,13 @@ jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913 set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME riscv -chain-position $_TARGETNAME -$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 8096 -work-area-backup 1 -rtos riscv +$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 8096 -work-area-backup 1 +#-rtos riscv flash bank my_first_flash fespi 0x20000000 0 0 0 $_TARGETNAME init #reset halt flash protect 0 64 last off + +echo "Ready for Remote Connections" |