summaryrefslogtreecommitdiff
path: root/sim/process.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-03-09 15:42:09 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-03-09 15:42:09 -0500
commitce3a6343b6c54e95d63403d46c9ddea384e49476 (patch)
tree2acc56fa5c2ea2230658ed9b23a17364a241fdab /sim/process.cc
parentab67095b2a43b5f2d44d1e1a517d1079ddf9f104 (diff)
downloadgem5-ce3a6343b6c54e95d63403d46c9ddea384e49476.tar.xz
no more common syscall emulation, now common for everyone
check abi-tag note section of elf binary for OS add pseudo functions (moved from alpha and made to be generic) move setsyscallreturn into isa traits arch/alpha/SConscript: no more common syscall emulation, now common for everyone arch/alpha/isa_traits.hh: move setsyscallreturn into isa description arch/alpha/linux/process.cc: arch/alpha/tru64/process.cc: use generic functions rather than alpha specific ones arch/sparc/isa_traits.hh: have consts for generic pseudo syscalls arch/sparc/linux/process.cc: use generic functions base/loader/elf_object.cc: check abi-tag note section of elf binary for OS cpu/exec_context.hh: move syssyscallreturn into isa traits sim/process.cc: find call num with a more generic sim/syscall_emul.cc: sim/syscall_emul.hh: add pseudo functions (moved from alpha and made to be generic) --HG-- extra : convert_revision : 5a31024ecde7e39b830365ddd84593ea501a34d2
Diffstat (limited to 'sim/process.cc')
-rw-r--r--sim/process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/process.cc b/sim/process.cc
index fddd9a0b9..894beeb05 100644
--- a/sim/process.cc
+++ b/sim/process.cc
@@ -354,7 +354,7 @@ LiveProcess::syscall(ExecContext *xc)
{
num_syscalls++;
- int64_t callnum = xc->regs.intRegFile[ReturnValueReg];
+ int64_t callnum = xc->regs.intRegFile[SyscallNumReg];
SyscallDesc *desc = getDesc(callnum);
if (desc == NULL)