openrisc / or1ksim

The OpenRISC 1000 architectural simulator
GNU General Public License v3.0
69 stars 43 forks source link

or1ksim_trace: Expose api for or1k_trace fusesoc core #29

Closed stffrdhrn closed 3 weeks ago

stffrdhrn commented 3 weeks ago

This patch exposes some of the instruction trace api's as a fusesoc core. This is used for verilator targets to support OpenRISC instruction trace logging.

This required a bit of cleanup as fusesoc compiles all verilator files as C++. The C code in or32.c needed to be updated to use const char * and other modern, safe, practices.