summaryrefslogtreecommitdiff
path: root/src/sim/syscall_emul.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-04-24 23:11:21 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-04-24 23:11:21 -0700
commit9d0fa27d092d6947eb78ed2580fcaa2b743a8f86 (patch)
tree89e6a6ce78690906b66c889233c8dfb1669b12d0 /src/sim/syscall_emul.cc
parent7c056e44e551119b3ba925ae99a6c7e1a667fa04 (diff)
downloadgem5-9d0fa27d092d6947eb78ed2580fcaa2b743a8f86.tar.xz
SPARC: Tighten up the clone system call and SPARCs copyRegs.
Diffstat (limited to 'src/sim/syscall_emul.cc')
-rw-r--r--src/sim/syscall_emul.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc
index 108d75063..941c56530 100644
--- a/src/sim/syscall_emul.cc
+++ b/src/sim/syscall_emul.cc
@@ -723,11 +723,7 @@ cloneFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
ctc->setPC(tc->readNextPC());
ctc->setNextPC(tc->readNextPC() + sizeof(TheISA::MachInst));
-
- // In SPARC, need NNPC too...
- #if THE_ISA == SPARC_ISA
- ctc->setNextNPC(tc->readNextNPC() + sizeof(TheISA::MachInst));
- #endif
+ ctc->setNextNPC(tc->readNextNPC() + sizeof(TheISA::MachInst));
ctc->activate();