Fix for FS O3CPU compile ... missing forward class declaration/header file after files got split for ISA-independence
src/cpu/o3/alpha/thread_context.hh:
Use 'this' when accessing cpu
src/cpu/o3/cpu.hh:
add numActiveThreds function
src/cpu/o3/thread_context.hh:
forward class declarations
src/cpu/o3/thread_context_impl.hh:
add quiesce event header file
src/cpu/thread_context.hh:
add exit() function to thread context (read comments in file)
src/sim/syscall_emul.cc:
adjust exitFunc syscall
--HG--
extra : convert_revision : 323dc871e2b4f4ee5036be388ceb6634cd85a83e
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
*
|
||||
* Authors: Steve Reinhardt
|
||||
* Ali Saidi
|
||||
* Korey Sewell
|
||||
*/
|
||||
|
||||
#include <fcntl.h>
|
||||
@@ -92,7 +91,9 @@ SyscallReturn
|
||||
exitFunc(SyscallDesc *desc, int callnum, Process *process,
|
||||
ThreadContext *tc)
|
||||
{
|
||||
exitSimLoop("target called exit()", tc->getSyscallArg(0) & 0xff);
|
||||
if (tc->exit()) {
|
||||
exitSimLoop("target called exit()", tc->getSyscallArg(0) & 0xff);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user