Marcos, Thanks for your help. I digest it a little bit and mount the diskimage on my local machine. Surprisingly, I see the diskimage contains a lot of pseudo-instructions including taskset, which is initially I wanna write the wheel for. Though I don't need to implement the taskset, the link you post is a great material to study and help me to understand gem5.
I was very naive at first and thinking that getting a new m5op_x86.o could suffice, and building gem5 could update the pseudo instructions as well. Now read from the make file helped me to understand how util/m5 works. Best regards, Wei ----- Original Message ----- From: "Marcos Horro Varela" <[email protected]> To: "gem5 users mailing list" <[email protected]> Sent: Friday, April 22, 2016 2:38:36 AM Subject: Re: [gem5-users] How to make use of modified util/m5/m5.c 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 -- Marcos Horro Varela, BSc student University of A Coruña +34 618 62 67 37 http://markos-horro.com _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
