sim: Add helper functions that add PCEvents with custom arguments
Review Request #1703 - Created Feb. 13, 2013 and submitted
| Information | |
|---|---|
| Ali Saidi | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9534:f957d4fa0e41
---------------------------
sim: Add helper functions that add PCEvents with custom arguments
This changeset adds support for forwarding arguments to the PC
event constructors to following methods:
addKernelFuncEvent
addFuncEvent
Additionally, this changeset adds the following helper method to the
System base class:
addFuncEventOrPanic - Hook a PCEvent to a symbol, panic on failure.
addKernelFuncEventOrPanic - Hook a PCEvent to a kernel symbol, panic
on failure.
System implementations have been updated to use the new functionality
where appropriate.
Issue Summary
3
3
0
0
| Description | From | Last Updated | Status |
|---|---|---|---|
| If you're using std::forward (which you should), you should be saying "Args&&... args" in the argument list. | Nathan Binkert | Feb. 13, 2013, 5:44 a.m. | Open |
| Args&&... here too | Nathan Binkert | Feb. 13, 2013, 5:44 a.m. | Open |
| And here. | Nathan Binkert | Feb. 13, 2013, 5:44 a.m. | Open |
Posted (Feb. 13, 2013, 5:44 a.m.)
-
src/sim/system.hh (Diff revision 1) -
If you're using std::forward (which you should), you should be saying "Args&&... args" in the argument list.
-
src/sim/system.hh (Diff revision 1) -
Args&&... here too
-
src/sim/system.hh (Diff revision 1) -
And here.
