Re: [gem5-users] Is classic memory system thread-safe?

2018-05-18 Thread Jason Lowe-Power
Hi Chen, Yes. All gem5 SimObjects are in one process. They all share a global event queue where they can enqueue events (e.g., fetch at instruction, send a new memory request, etc.). The event queue executes one event at a time (in host/real time), but in simulated time many events can happen at

Re: [gem5-users] Problems with clock() from time.h in x86 32 bit

2018-05-18 Thread Jason Lowe-Power
Hello, I believe that "copyOut" is what is actually taking the emulated data and putting into the simulated process space (or vice versa...). By commenting that out clock() will definitely not work correctly. This seems like it might be a real bug. If you figure out what's going wrong, we'd

Re: [gem5-users] No checkpoint file generated

2018-05-18 Thread Jason Lowe-Power
Hi Ryan, Checkpointing is controlled from the python run scripts. When you run "/sbin/m5 checkpoint" it creates a exit event that exits the simulator event loop. This kicks control back to the Python run script. I don't believe that fs/se.py correctly support this kind of exit. However, you could

Re: [gem5-users] No checkpoint file generated

2018-05-18 Thread Ryan Wang
Hi Jason, Yes, I did not realize that checkpoint command in guest falls back into the python configuration script. Now it works fine. Thanks a lot. Regards, Ryan On Fri, May 18, 2018 at 9:24 AM, Jason Lowe-Power wrote: > Hi Ryan, > > Checkpointing is controlled from the