diff options
author | Tim Newsome <tim@sifive.com> | 2022-12-14 16:36:11 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2022-12-27 10:53:01 -0800 |
commit | b282cafd599c79b98f0d502d7c6daf3b944daf29 (patch) | |
tree | d586fcdb7c651ca97b237ccf5dc7debb8959c8db /README.md | |
parent | c94cafa66a86572bfd1c19834acb178cad0cb0a4 (diff) | |
download | riscv-isa-sim-b282cafd599c79b98f0d502d7c6daf3b944daf29.zip riscv-isa-sim-b282cafd599c79b98f0d502d7c6daf3b944daf29.tar.gz riscv-isa-sim-b282cafd599c79b98f0d502d7c6daf3b944daf29.tar.bz2 |
Change address used in gdb debug example.
PR #889 put a UART at 0x10000000, which conflicts with the old address.
Fixes #1179.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -233,7 +233,7 @@ OUTPUT_ARCH( "riscv" ) SECTIONS { - . = 0x10010000; + . = 0x10110000; .text : { *(.text) } .data : { *(.data) } } @@ -243,7 +243,7 @@ $ riscv64-unknown-elf-gcc -g -Og -T spike.lds -nostartfiles -o rot13-64 rot13-64 To debug this program, first run spike telling it to listen for OpenOCD: ``` -$ spike --rbb-port=9824 -m0x10000000:0x20000 rot13-64 +$ spike --rbb-port=9824 -m0x10100000:0x20000 rot13-64 Listening for remote bitbang connection on port 9824. ``` @@ -299,7 +299,7 @@ $2 = 0 (gdb) print text $3 = "Vafgehpgvba frgf jnag gb or serr!" (gdb) b done -Breakpoint 1 at 0x10010064: file rot13.c, line 22. +Breakpoint 1 at 0x10110064: file rot13.c, line 22. (gdb) c Continuing. Disabling abstract command writes to CSRs. |