Hi Wei,

If you want to use a modified version of m5, just compile it like you
did and copy the m5 binary on the image disk that you want to use. Then,
your functions will be visible inside your simulation.

Best,

On 04/22/2016 08:38 AM, Marcos Horro Varela wrote:
> Hello Wei,
> 
> If what I understood was that you are trying to implement 
> pseudo-instructions, I think this could help to solve your problems [1]
> 
> Best regards,
> 
> [1] 
> http://gedare-csphd.blogspot.com.es/2013/02/add-pseudo-instruction-to-gem5.html
> 
> ----- Original Message -----
> From: "Wei Shu" <[email protected]>
> To: "gem5 users mailing list" <[email protected]>
> Sent: Friday, April 22, 2016 1:17:02 AM
> Subject: [gem5-users] How to make use of modified util/m5/m5.c
> 
> Hi all,
> 
> I am using gem5 with X86 ISA under fs mode.
> 
> I put some functions in util/m5/m5.c to interact with Linux kernel system 
> call and
> use $make -f Makefile.x86 to get a .o file called "m5op_x86.o".  I recompile 
> gem5 without seeing any compilation of m5.c.
> 
> At this point when system finishes booting, the function list is printed by 
> usage() without
> newly added ones. I guess the gem5 system did not actually use the .o file. 
> 
> I must missed something and I am confused at this point. Could someone give 
> me a hint that how to make use of recompiled m5op_x86.o?
> 
> Thanks,
> 
> Wei
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> 

-- 
+-------------------------------------------------------------+
| Pierre-Yves Péneau - PhD student |  first.last at lirmm.fr  |
| LIRMM / CNRS - SYSMIC team       |    + 33 4 67 41 85 85    |
| Building 4 Office H2.2           |    http://walafc0.org    |
+-------------------------------------------------------------+

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to