On 05/15/2012 06:23 AM, Stefan Kristiansson wrote:
On 05/13/2012 04:47 PM, Peter Gavin wrote:
Hi guys,
So I just pushed to my repos on github a bunch of changes for both the
CGEN simulator and making the delay slot optional.
Everything seems to work pretty well so far. Almost all of the GCC
testsuite passes using the CGEN simulator, both with and without the
delay slot.
I also added a DejaGNU port for the simulator, which makes it easy to
use without having to keep a separate config file around.
The repos are here:
[email protected]:pgavin/or1k-src.git
[email protected]:pgavin/or1k-gcc.git
[email protected]:pgavin/or1k-dejagnu.git
(Note that I've renamed the gcc repo, you might have to update your
git remotes.)
If you configure with --target=or1knd-elf, you get the non-delay slot
version. But you can compile it for either target, and use the
-mdelay, -mno-delay, or -mcompat-delay options for gcc to control what
kind of code is generated. You can see here for more information on
it: http://opencores.org/or1k/Architecture_Specification#Delay_Slot_Optional
If you want to run the GCC testsuite with the CGEN simulator, install
the or1k-dejagnu package and run:
make check RUNTESTFLAGS="--target_board=or1k-sim"
Let me know if you have any questions.
Very good job indeed!
I've taken it into use, but I'm having some problems
with or1k-dejagnu (possibly by my own ignorance), any hints?
Stefan
---
WARNING: Couldn't find the global config file.
WARNING: No tool specified
Test Run By stefan on Tue May 15 05:59:40 2012
Native configuration is x86_64-unknown-linux-gnu
=== tests ===
Schedule of variations:
or1k-sim
Running target or1k-sim
Using ../or1k-dejagnu/testsuite/../config/base-config.exp as
tool-and-target-specific interface file.
ERROR: couldn't load description file for or1k-sim
Never mind this, it was just a result from my own clumsiness.
I had accidently cd'ed back into the dejagnu build-directory instead of
the gcc build-directory... Sorry about the noise.
Stefan
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc