Add RISC-V support. 78/4578/5
authorTim Newsome <tim@sifive.com>
Wed, 18 Jul 2018 20:34:23 +0000 (13:34 -0700)
committerMatthias Welwarsky <matthias@welwarsky.de>
Tue, 24 Jul 2018 12:07:26 +0000 (13:07 +0100)
commita51ab8ddf63a0d60eaaf3b8f3eedcada1e773c20
tree60cd18e3649cbc2700abfe7724954e97de640229
parent9363705820d9552bd24a4e876041a90a881ede55
Add RISC-V support.

This supports both 0.11 and 0.13 versions of the debug spec.

Support for `-rtos riscv` will come in a separate commit since it was
easy to separate out, and is likely to be more controversial.

Flash support for the SiFive boards will also come in a later commit.

Change-Id: I1d38fe669c2041b4e21a5c54a091594aac3e2190
Signed-off-by: Tim Newsome <tim@sifive.com>
Reviewed-on: http://openocd.zylin.com/4578
Tested-by: jenkins
Reviewed-by: Liviu Ionescu <ilg@livius.net>
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
22 files changed:
doc/openocd.texi
src/helper/log.h
src/target/Makefile.am
src/target/riscv/Makefile.am [new file with mode: 0644]
src/target/riscv/asm.h [new file with mode: 0644]
src/target/riscv/batch.c [new file with mode: 0644]
src/target/riscv/batch.h [new file with mode: 0644]
src/target/riscv/debug_defines.h [new file with mode: 0644]
src/target/riscv/encoding.h [new file with mode: 0644]
src/target/riscv/gdb_regs.h [new file with mode: 0644]
src/target/riscv/opcodes.h [new file with mode: 0644]
src/target/riscv/program.c [new file with mode: 0644]
src/target/riscv/program.h [new file with mode: 0644]
src/target/riscv/riscv-011.c [new file with mode: 0644]
src/target/riscv/riscv-013.c [new file with mode: 0644]
src/target/riscv/riscv.c [new file with mode: 0644]
src/target/riscv/riscv.h [new file with mode: 0644]
src/target/riscv/riscv_semihosting.c [new file with mode: 0644]
src/target/target.c
tcl/board/sifive-e31arty.cfg [new file with mode: 0644]
tcl/board/sifive-e51arty.cfg [new file with mode: 0644]
tcl/board/sifive-hifive1.cfg [new file with mode: 0644]

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)