On 06/04/2016 12:27 AM, Andreas Sandberg wrote:
> On 03/06/2016, 19:42, "gem5-dev on behalf of Jakub Jermář"
>> On 06/03/2016 06:28 PM, Andreas Sandberg wrote:
>>> and phase out SPARC unless someone steps up and want to care for it
>>> long-term. For SPARC to stay, it needs to have at least one working
>>> full-system test that can be redistributed (i.e., not Solaris).
>>
>> The thought of losing the only existing and basically working open
>> source sun4v simulator is simply unbareable :-) I will try to put
>> together a HelenOS testcase for SPARC.
> 
> Fair enough. If we have at least one full-system test case and someone who
> cares about it, we should keep it.

In the meantime, I've put together a HelenOS branch that boots halfway
through the init process (involves the kernel code and about a dozen
userspace servers) and then issues the m5_exit instruction to abort the
simulation. In the future, it should be possible to issue the m5_exit
later when all the pending issues are resolved. The branch also comes
with an easy-to-use script to start the simulation.

In general, one should at least make the following steps:

1. clone the gem5-sparc-fs-regression-test repository:
======================================================
$ bzr clone lp:~jakub/helenos/gem5-sparc-fs-regression-test
$ cd gem5-sparc-fs-regression-test


2. prepare a sparc64 toolchain for building HelenOS/sparc64:
============================================================
$ cd tools/
$ sudo ./toolchain.sh sparc64


3. build gem5 for HelenOS:
==========================
$ cd ../contrib/gem5
$ ./build-from-scratch.sh


4. build HelenOS:
=================
$ cd ../..
$ make all HANDS_OFF=y PROFILE=sparc64/niagara


With everything in place, one just types:

M5_PATH=/path/to/gem5/installation/ tools/ew.py

and waits for the simulation to abort on m5_exit.

As for the next steps, I plan to look into the gem5 regression testing
framework and try to integrate the above with it.

Cheers,
Jakub
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to