openrisc / or1ksim

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

Fix the build on big-endian hosts and a related cleanup #19

Closed smaeul closed 2 years ago

smaeul commented 2 years ago

This allows me to compile and run or1ksim on a powerpc64 box.

smaeul commented 2 years ago

I was able to boot Linux to userspace inside or1ksim. I can try to figure out how to run gcc tests as well.

jeremybennett commented 2 years ago

I'm about to disappear on vacation and then to Embedded World. We'll give @juliusbaxter a couple of weeks to comment and then if there are no other comments, I'll merge the PR.

stffrdhrn commented 2 years ago

I'll also look at this. I can just try to run both patches on my system as well .

For gcc tests it uses dejagnu. For that I have a site.exp here. https://github.com/stffrdhrn/or1k-utils

It's setup to just use sim or user mode qemu. To use or1ksim I think we used telnet before. I haven't tried it.

jeremybennett commented 2 years ago

I'll also look at this. I can just try to run both patches on my system as well .

For gcc tests it uses dejagnu. For that I have a site.exp here. https://github.com/stffrdhrn/or1k-utils

It's setup to just use sim or user mode qemu. To use or1ksim I think we used telnet before. I haven't tried it.

IIRC or1ksim can be run as a GDB remote target, so you can set up GCC testing via GDB.

stffrdhrn commented 2 years ago

I tested on x86 and it works fine.