ESESC switching to MIPS64

502 views
Skip to first unread message

Gabriel Southern

unread,
Apr 6, 2015, 4:55:53 PM4/6/15
to es...@googlegroups.com
This afternoon I pushed a very large commit to the ESESC repository on GitHub.  This incorporates a number of changes and improvements made to ESESC at UCSC during roughly the last 9 months.

The most significant changes is that ESESC has switched ISA support to MIPS64.  I will add some documentation during the upcoming week about how to use the MIPS cross compiler to generate binaries.

In the meantime anyone wanting to use the legacy version of ESESC can access the release_2013_armv7 branch (https://github.com/masc-ucsc/esesc/tree/release_2013_armv7).  This branch may possibly get bug fixes (unlikely).  But other than that it is not maintained by the MASC group at UCSC anymore.

The new version simplifies the interface between QEMU and ESESC in a variety of ways, and MIPS64 is a much cleaner ISA to use for simulation than ARMv7.  We may add ARMv8 support in the future and possibly other ISAs as well.

Most of the work for porting to MIPS64 was done by Prof. Renau.  But if anyone has question I will try to answer them if I can (if I have time).

-Gabriel

Matheus Ogleari

unread,
Apr 14, 2015, 5:01:35 PM4/14/15
to es...@googlegroups.com
Hello,

Has documentation been released yet for making the MIPS64 binaries? I have some benchmarks I would like to compile in mips64 so I was wondering if there was already a machine, script, or something set up for me to do that? 

Thanks


Matheus Ogleari
----
University of California, Santa Cruz
PhD Candidate, Computer Engineering

--
You received this message because you are subscribed to the Google Groups "ESESC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to esesc+un...@googlegroups.com.
To post to this group, send email to es...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gabriel Southern

unread,
Apr 14, 2015, 5:23:12 PM4/14/15
to es...@googlegroups.com
We are using the MIPS cross compiler to compile binaries.  We've been able to compile almost all the SPEC CPU 2000 and CPU 2006 benchmarks.  However, we will not be including the binaries with ESESC due to licensing restrictions.  We may release an updated version of launcher at a later time.

Alfredo J Velasco

unread,
Jun 8, 2015, 3:58:30 PM6/8/15
to es...@googlegroups.com
I went on the codescape site to download the crosscompiler, but I'm not sure how to use it. 


After decompressing the tarball, I tried to use the gcc binaries in: /install-mips-img-elf/bin/ to compile c source code, but it throws reference errors because the binaries do not recognize standard functions like printf etc. 

A short example on how to crosscompile a benchmark or any source code would be extremely appreciated. 

Thank you. 

Deepak Sirone

unread,
Jun 9, 2015, 1:22:25 PM6/9/15
to es...@googlegroups.com

Hi,

    You need to download http://codescape-mips-sdk.imgtec.com/components/toolchain/2015.01-5/Codescape.GNU.Tools.2015.01-5.for.MIPS.IMG.Linux.CentOS-5.x86_64.tar.gz
. I don't think the baremetal toolchain has libraries included in it. Add the install-mips-img-linux-gnu/bin to your $PATH variable. Afterwards download your benchmark source and replace the variables in its Makefile accordingly(as in CC should be mips-img-linux-gnu-gcc instead of gcc).  The extra flags needed for esesc compatibility are :
        -static -EL -mabi=64 -mips64r6 -fno-stack-protector -falign-jumps=16 -falign-functions=16
I have gotten the benchmarks like blackscholes and freqmine in parsec to compile. Still working on the ones which require graphics libraries like the x window system. Post your problems here,  I may be able to help you.

Deepak Sirone



Raghavendra Pradyumna Pothukuchi

unread,
Sep 18, 2015, 11:45:49 AM9/18/15
to ESESC
Hi,

Te binaries contain gcc and g++ but to compile suites like SPEC, we need gfortran too. So, does anyone know if there is a standard crosscompiler for gfortran for linux on MIPS.

Thanks!
Raghavendra

aaku...@ncsu.edu

unread,
Feb 5, 2019, 11:23:32 AM2/5/19
to ESESC
Could you please share the information to switch to MIPS 64?

Jose Renau

unread,
Feb 5, 2019, 12:46:47 PM2/5/19
to es...@googlegroups.com

The general instructions.

For compiling wiht MIPS or RISCV check the docs/Usage.md file.

There are no by default MIPS binaries, but you can compile with the default, just use this flags:

-EL -mabi=64 -mips64r6 -static


Jose Renau
Professor, Computer Science & Engineering
--
You received this message because you are subscribed to the Google Groups "ESESC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to esesc+un...@googlegroups.com.
To post to this group, send email to es...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sent from Mailspring

aaku...@ncsu.edu

unread,
Feb 5, 2019, 2:27:01 PM2/5/19
to ESESC

I am facing this issue with the latest build: 
[ 85%] Performing build step for 'qemu'
  GEN   config-host.h
  GEN   trace/generated-tracers.h
  GEN   trace/generated-tcg-tracers.h
  GEN   trace/generated-helpers-wrappers.h
  GEN   trace/generated-helpers.h
make[3]: *** No rule to make target `/home/akulkarn/projs/esesc/emul/qemu/qemu-bridge-helper.c', needed by `qemu-bridge-helper.o'.  Stop.
make[2]: *** [qemu/stampdir/qemu-build] Error 2
make[1]: *** [CMakeFiles/qemu.dir/all] Error 2
make: *** [all] Error 2
[akulkarn@tensw-exe15 ~/build_release]$ 

Jose Renau

unread,
Feb 5, 2019, 4:01:45 PM2/5/19
to es...@googlegroups.com

This is an old checkout, when you do a git pull to the latest, you'll see different directories (emul/qemu is gone)

Jose Renau
Professor, Computer Science & Engineering
--
You received this message because you are subscribed to the Google Groups "ESESC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to esesc+un...@googlegroups.com.
To post to this group, send email to es...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sent from Mailspring
Reply all
Reply to author
Forward
0 new messages