Upstream tons of RISC-V changes.
authorTim Newsome <tim@sifive.com>
Wed, 19 Aug 2020 20:24:56 +0000 (13:24 -0700)
committerTomas Vanek <vanekt@fbl.cz>
Wed, 14 Oct 2020 04:43:05 +0000 (05:43 +0100)
commitb68674a1da7249c52b00b511fe0ceb20ace5ae4d
tree8eeb361d60a8112792c7757d0e291e0ec1d2f875
parentfc7edd57ac6678d1113bc09265798de3fdc68347
Upstream tons of RISC-V changes.

These are all the changes from https://github.com/riscv/riscv-openocd
(approximately 91dc0c0c) made just to src/target/riscv/*. Some of the
new code is disabled because it requires some other target-independent
changes which I didn't want to include here.

Built like this, OpenOCD passes:
* All single-RV32 tests against spike.
* All single-RV64 tests against spike.
* Enough HiFive1 tests. (I suspect the failures are due to the test
suite rotting.)
* Many dual-RV32 (-rtos hwthread) against spike.
* Many dual-RV64 (-rtos hwthread) against spike.

I suspect this is an overall improvement compared to what's in mainline
right now, and it gets me a lot closer to getting all the riscv-openocd
work upstreamed.

Change-Id: Ide2f80c9397400780ff6780d78a206bc6a6e2f98
Signed-off-by: Tim Newsome <tim@sifive.com>
Reviewed-on: http://openocd.zylin.com/5821
Tested-by: jenkins
Reviewed-by: Jan Matyas <matyas@codasip.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
16 files changed:
doc/openocd.texi
src/helper/log.h
src/target/riscv/asm.h
src/target/riscv/batch.c
src/target/riscv/batch.h
src/target/riscv/debug_defines.h
src/target/riscv/encoding.h
src/target/riscv/gdb_regs.h
src/target/riscv/opcodes.h
src/target/riscv/program.c
src/target/riscv/program.h
src/target/riscv/riscv-011.c
src/target/riscv/riscv-013.c
src/target/riscv/riscv.c
src/target/riscv/riscv.h
src/target/riscv/riscv_semihosting.c