Skip to contentSkip to conversation

sim: or1k: add or1k target to sim

PATCH New Doug Evans 1 participant 1 message Oct 18, 2017

lore
Share & tools
lore

Doug Evans

author
#0 lore raw

PATCH v6 3/6 sim: or1k: add or1k target to sim

Quoted 14 lines · Stafford Horne

This adds the OpenRISC 32-bit sim target. The OpenRISC sim is a CGEN based sim so the bulk of the code is generated from the .cpu files by CGEN. The engine decode and execute logic in mloop uses scache with pseudo-basic-block extraction and supports both full and fast (switch) modes.

The sim does not implement an mmu at the moment. The sim does implement fpu instructions via the common sim-fpu implementation.

sim/ChangeLog:

2017-09-13 Stafford Horne <[email protected]>
Peter Gavin <[email protected]>

Quoted 10 lines

* configure.tgt: Add or1k sim.
* or1k/README: New file.
* or1k/Makefile.in: New file.
* or1k/configure.ac: New file.
* or1k/mloop.in: New file.
* or1k/or1k-sim.h: New file.
* or1k/or1k.c: New file.
* or1k/sim-if.c: New file.
* or1k/sim-main.h: New file.
* or1k/traps.c: New file.

LGTM