sim: or1k: add or1k target to sim
authorStafford Horne <shorne@gmail.com>
Fri, 8 Dec 2017 20:57:25 +0000 (05:57 +0900)
committerStafford Horne <shorne@gmail.com>
Tue, 12 Dec 2017 14:44:14 +0000 (23:44 +0900)
commitfa8b7c2128cd03135b7d31ae2ecbc2d3273e990d
treea8014af075efa262869a91c4114ab4adb0e20d68
parent58884b0e451043ed2fb4d2fba18134f0fb451ce5
sim: or1k: add or1k target to sim

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-12-12  Stafford Horne  <shorne@gmail.com>
    Peter Gavin  <pgavin@gmail.com>

* 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.
sim/ChangeLog
sim/configure.tgt
sim/or1k/Makefile.in [new file with mode: 0644]
sim/or1k/README [new file with mode: 0644]
sim/or1k/configure.ac [new file with mode: 0644]
sim/or1k/mloop.in [new file with mode: 0644]
sim/or1k/or1k-sim.h [new file with mode: 0644]
sim/or1k/or1k.c [new file with mode: 0644]
sim/or1k/sim-if.c [new file with mode: 0644]
sim/or1k/sim-main.h [new file with mode: 0644]
sim/or1k/traps.c [new file with mode: 0644]