Hi Youngil,

We are doing a pretty bad job at calling destructors in gem5 unfortunately, 
that?? why your attempt is not working. Quite a few modules work around this 
issue by registering an ??xit callback?? Have a look at 
src/mem/comm_monitor.hh/cc for example, and search for the member function 
closeStreams. You??l see the callback created in the constructor.

Good luck.

Andreas

From: ???????????? <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, 17 December 2013 06:11
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [gem5-users] Print Statistics at the end of the simulation

Hi, all

I want to execute some functions that print out all the contents in the cache 
at the end of simulation.
I have executed it after certain number of instructions are committed.
That was easy because I can receive committed instructions using 
<BaseCPU::numSimulatedInsts();>
But I want to execute it at the very end of the simulation.
I tried it adding that function in destructor of cache but it doesn?? work.

Please help me.

Youngil Kim
Master?? student.
Embedded and Network Computings Laboratory
Department of Electronics and Computer Engineering
Hanyang University

Room 515, R&D Building
17 Haengdang-Dong, Sungdong-Gu
Seoul, KOREA, 133-791

Cell: +82-10-9885-7140
Tel: +82-2-2220-4987
Fax: +82-2-2220-4987
[email protected]
http://enc.hanyang.ac.kr<http://enc.hanyang.ac.kr/>


-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered 
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to