diff options
Diffstat (limited to 'cpu/thread_state.hh')
-rw-r--r-- | cpu/thread_state.hh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpu/thread_state.hh b/cpu/thread_state.hh index 12146bd11..7a19963c8 100644 --- a/cpu/thread_state.hh +++ b/cpu/thread_state.hh @@ -30,6 +30,7 @@ #define __CPU_THREAD_STATE_HH__ #include "cpu/exec_context.hh" +#include "cpu/profile.hh" #if FULL_SYSTEM class EndQuiesceEvent; @@ -103,6 +104,20 @@ struct ThreadState { #endif +#if FULL_SYSTEM + void profileClear() + { + if (profile) + profile->clear(); + } + + void profileSample() + { + if (profile) + profile->sample(profileNode, profilePC); + } +#endif + /** * Temporary storage to pass the source address from copy_load to * copy_store. |