Hello,

First, there are two different things: compiling the kernel, and compiling
the root file system.

If you want to run apps with hard float/soft float, you have to compile
your file system libraries (eventually the native compiler too) with hard
or soft float support, accordingly.

If you compile your kernel with a hard/soft float cross-compiler, the
kernel code may be more or less optimized to execute its own FP code (not
the code of apps).

Regards,

--
Fernando A. Endo, PhD student and researcher

Université de Grenoble, UJF
France


2015-07-16 9:38 GMT+02:00 rahul shrivastava <rshrivasta...@gmail.com>:

> Hi,
>
> I have followed the following link to setup DVFS system in ARM FS
> simulation.
> *http://www.m5sim.org/Running_gem5#Experimenting_with_DVFS
> <http://www.m5sim.org/Running_gem5#Experimenting_with_DVFS>*
>
> One of the step cross compiles the kernel with the following compiler
> which compiles for hard float machines
>
> *arm-linux-gnueabihf.*
>
> However, when I cross compile the kernel with the above compiler and start
> the FS simulation and login from m5term, I could see that the compiler that
> kernel uses is for soft float machine and not for hard float machines
>
>
>
> *root@gem5sim:/lib# ls -l | grep -i armdrwxr-xr-x  3 root root   4096
> 2011-08-15 11:19 arm-linux-gnueabilrwxrwxrwx  1 root root     28 2011-08-15
> 11:14 ld-linux.so.3 -> arm-linux-gnueabi/ld-2.13.so <http://ld-2.13.so>*
>
>
> I have following three questions:
> 1) Shouldn't we cross compile the kernel with arm-linux-gnueabi instead of
> arm-linux-gnueabihf ?
>
> 2) When I cross compile my project with arm-linux-gnueabi and try to
> execute the binary in gem5 FS simulation, I get segfault throwing illegal
> instruction. Could you shed some light on this?
>
> 3) I am using the following options for cross compilation of my project
>
> *-march=armv7 -mthumb -mthumb-interwork -mfpu=vfp -msoft-float*
> Could you please let me know what other options could be required if
> options are any issue?
>
>
> Regards
> Rahul
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to