Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdlib: change default exit event for SIMPOINT_BEGIN #1085

Merged
merged 1 commit into from May 13, 2024

Conversation

studyztp
Copy link
Contributor

The SIMPOINT_BEGIN should do nothing by default since it might be used in various cases.

In [https://www.mail-archive.com/gem5-users@gem5.org/msg22383.html](mailing list), a user discovered a bug with the current simpoints-se-restore.py example.
The bug is caused by the default behavior of the SIMPOINT_BEGIN exit event.
When taking a checkpoint with simpoints-se-checkpoint.py, it stores the future exit event scheduled at the beginning of the simulation. I did not notice this when I wrote and tested the example script due to the long print out log and my custom handler of the SIMPOINT_BEGIN exit event.
In the restoring, the SIMPOINT_BEGIN exit event was triggered right before the region end, so it resets the stats before the final stats dump. Therefore, the simulation time is 0 as the user discovered.
This patch should fix this bug.

Change-Id: I800dfbd28d7b2c842864a1ab7d84b8f8e17b9b3c

The SIMPOINT_BEGIN should not reset the stats by default since it might
be used in various cases.

Change-Id: I800dfbd28d7b2c842864a1ab7d84b8f8e17b9b3c
Copy link
Contributor

@powerjg powerjg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, I'll let @BobbyRBruce sign off

@BobbyRBruce BobbyRBruce merged commit 6b427a8 into gem5:develop May 13, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants