forked from accellera-official/systemc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sc_event::none - convert from global variable to function
The sc_event::none variable was introduced in 55da81d. The problem with the introduced implementation is that the created event contains a reference to the simulation context. This simulation context is created by the sc_event constructor through the invocation of sc_get_curr_simcontext() on program startup. This commit proposes a change which tracks the none event as part of the simulation context. The change converts sc_event::none to a static member function which returns a reference to the m_none member of the current simulation context. This eases reset of the simulation context as discussed in accellera-official#8. Neither sc_event::none nor sc_get_curr_simcontext() are currently mandated by IEEE Std 1666-2011. For this reason, this change should not affected existing standard-conforming SystemC programs. Signed-off-by: Sören Tempel <[email protected]>
- Loading branch information
Showing
7 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters