It's better to see the cxx_config and systemc examples as just that, examples. The -s/-r check in SystemC is just forgotten. I really expected only one feature to be tried at a time, so -s/-r together with -c is not well explained. I expect any practical use of either feature to involve writing your own control structure and, to an extent, handling the specific timing yourself. Making the example programs more complicated/better at checking arguments goes against the aim of them being short, comprehensible examples.
I'm certainly not against the examples being made better, but I would like to argue that they should try and remain short. Maybe a few example mains with different, hard coded, features would have been a better structure. If you have any ideas, I'd be interested to hear them. Oh, for the SystemC interface, I recommend looking at sc_gem5_control.cc as I think this is a better way to structure SystemC control than the systemc/main.cc example. - Andrew ________________________________________ From: gem5-dev [[email protected]] On Behalf Of Cagdas Dirik (cdirik) via gem5-dev [[email protected]] Sent: 14 November 2014 18:51 To: gem5 Developer List Subject: [gem5-dev] how do checkpoint save/restore, switch cpu options work in tandem? I have been looking at initialization and startup sequence for cxx_config and systemc variants, and I am a bit confused on checkpoint save, restore and switch cpu options (-s, -r, and -c) because code is a bit inconsistent and different that .py variant. Can anyone provide some clarification please? For cxx_config, you can NOT specify both -s and -r. However, this check is omitted in systemc variant. Is there a specific reason, or simply forgotten? How do we envision -c flag to really work with -s and -r? Number of ticks provided with each of these options end up being relative time between checkpoint save/restore and switch cpu, but that is not clear from the usage definition (.py variant clearly marks ticks as relative or absolute). Should we explicitly mark these ticks as relative time? Cagdas _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev -- 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-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
