diff options
author | Michael LeBeane <michael.lebeane@amd.com> | 2016-09-13 23:17:42 -0400 |
---|---|---|
committer | Michael LeBeane <michael.lebeane@amd.com> | 2016-09-13 23:17:42 -0400 |
commit | 458d4a3c7bff9365e9d732c56f105b5b7bd37739 (patch) | |
tree | 91c48b32127fc2ded18dfc6edf3b4077d3b021e4 /src/cpu/simple_thread.cc | |
parent | 2068af5768fdd15acaf7a8bad766f7005f86e0c2 (diff) | |
download | gem5-458d4a3c7bff9365e9d732c56f105b5b7bd37739.tar.xz |
sim: Refactor quiesce and remove FS asserts
The quiesce family of magic ops can be simplified by the inclusion of
quiesceTick() and quiesce() functions on ThreadContext. This patch also
gets rid of the FS guards, since suspending a CPU is also a valid
operation for SE mode.
Diffstat (limited to 'src/cpu/simple_thread.cc')
-rw-r--r-- | src/cpu/simple_thread.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/simple_thread.cc b/src/cpu/simple_thread.cc index 33c5b47ea..0e17c07b5 100644 --- a/src/cpu/simple_thread.cc +++ b/src/cpu/simple_thread.cc @@ -69,6 +69,7 @@ SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys, { clearArchRegs(); tc = new ProxyThreadContext<SimpleThread>(this); + quiesceEvent = new EndQuiesceEvent(tc); } SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys, |