Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from sifive/qemu-integration
Browse files Browse the repository at this point in the history
All for the 2019.05 release
  • Loading branch information
cgsfv authored Jun 27, 2019
2 parents f096c82 + 9a25ccb commit 688fe4b
Show file tree
Hide file tree
Showing 10 changed files with 344 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@
[submodule "src/riscv-openocd"]
path = src/riscv-openocd
url = git://github.com/riscv/riscv-openocd.git
[submodule "src/riscv-qemu"]
path = src/riscv-qemu
url = git://github.com/sifive/riscv-qemu.git
342 changes: 327 additions & 15 deletions Makefile

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ we use to build these tools.
* OpenOCD
* LibFTDI
* LibUSB
* RISC-V QEMU (`riscv-qemu-*`)
* QEMU (riscv32-softmmu + riscv64-softmmu)
* ZLib, LibFFI, LibIConv, GetText, GLib, LibPNG, JPEG, PixMan

All the packages has a uniquely named root folder, making it easy to untar/unzip'ing
multiple versions next to each other.
Expand All @@ -34,7 +37,7 @@ which is build using the MinGW toolchain.

### Prerequisites

Several standard packages are needed to build the tools on the different supported platforms.
Several standard packages are needed to build the tools on the different supported platforms.


On Ubuntu, executing the following command should suffice:
Expand Down
4 changes: 4 additions & 0 deletions scripts/openocd.sed
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
s/.Open On-Chip Debugger . VERSION RELSTR . .. PKGBLDDATE .../\"Open On-Chip Debugger \" VERSION \" \(SIFIVE_PACKAGE_VERSION\)\"/
s/.Open On-Chip Debugger . VERSION RELSTR/\"Open On-Chip Debugger \" VERSION \" \(SIFIVE_PACKAGE_VERSION\)\"/
s/For bug reports, read/For bug reports:/
s/http:\/\/openocd\.org\/doc\/doxygen\/bugs\.html/https:\/\/github.com\/sifive\/freedom-tools\/issues/
1 change: 1 addition & 0 deletions scripts/qemu-common.sed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
s/See <https:\/\/qemu\.org\/contribute\/report-a-bug> for how to report bugs\./For bug reports: https:\/\/github.com\/sifive\/freedom-tools\/issues/
1 change: 1 addition & 0 deletions scripts/qemu-configure.sed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
s/libs_qga=\"\"/libs_qga=\"$SIFIVE_LIBS_QGA\"/
1 change: 1 addition & 0 deletions scripts/qemu-vl.sed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:a;N;$!ba;s/case QEMU_OPTION_version:.*case QEMU_OPTION_m:/case QEMU_OPTION_version: version\(\)\; if \(argc < 3\) \{ exit\(0\)\; \} break\; case QEMU_OPTION_m:/
2 changes: 1 addition & 1 deletion src/riscv-gdb
Submodule riscv-gdb updated from c8aa0b to 9b4075
2 changes: 1 addition & 1 deletion src/riscv-openocd
Submodule riscv-openocd updated from c91ff1 to c05ad1
1 change: 1 addition & 0 deletions src/riscv-qemu
Submodule riscv-qemu added at 3cc4af

0 comments on commit 688fe4b

Please sign in to comment.