diff options
author | Andreas Hansson <andreas.hanson@arm.com> | 2012-01-31 11:50:07 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hanson@arm.com> | 2012-01-31 11:50:07 -0500 |
commit | 4fdecae443c4f11d24b7da537b6f7a2baadbd130 (patch) | |
tree | 428e7864c689c6b28c854babd875424004dd2816 /src/cpu/thread_state.hh | |
parent | 0ed3c84c7b05d7d3c9d5f0e3f1c05c20afef93b9 (diff) | |
download | gem5-4fdecae443c4f11d24b7da537b6f7a2baadbd130.tar.xz |
Thread: Use inherited baseCpu rather than cpu in SimpleThread
This patch is a trivial simplification, removing the cpu pointer from
SimpleThread and relying on the baseCpu pointer in ThreadState. The
patch does not add or change any functionality, it merely cleans up
the code.
Diffstat (limited to 'src/cpu/thread_state.hh')
-rw-r--r-- | src/cpu/thread_state.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh index a007567c1..f14daaeb8 100644 --- a/src/cpu/thread_state.hh +++ b/src/cpu/thread_state.hh @@ -73,7 +73,7 @@ struct ThreadState { ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process); #endif - ~ThreadState(); + virtual ~ThreadState(); void serialize(std::ostream &os); |