syscall_emul.cc (7720:65d338a8dba4) | syscall_emul.cc (7823:dac01f14f20f) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 45 unchanged lines hidden (view full) --- 54void 55SyscallDesc::doSyscall(int callnum, LiveProcess *process, ThreadContext *tc) 56{ 57#if TRACING_ON 58 int index = 0; 59#endif 60 DPRINTFR(SyscallVerbose, 61 "%d: %s: syscall %s called w/arguments %d,%d,%d,%d\n", | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 45 unchanged lines hidden (view full) --- 54void 55SyscallDesc::doSyscall(int callnum, LiveProcess *process, ThreadContext *tc) 56{ 57#if TRACING_ON 58 int index = 0; 59#endif 60 DPRINTFR(SyscallVerbose, 61 "%d: %s: syscall %s called w/arguments %d,%d,%d,%d\n", |
62 curTick, tc->getCpuPtr()->name(), name, | 62 curTick(), tc->getCpuPtr()->name(), name, |
63 process->getSyscallArg(tc, index), 64 process->getSyscallArg(tc, index), 65 process->getSyscallArg(tc, index), 66 process->getSyscallArg(tc, index)); 67 68 SyscallReturn retval = (*funcPtr)(this, callnum, process, tc); 69 70 DPRINTFR(SyscallVerbose, "%d: %s: syscall %s returns %d\n", | 63 process->getSyscallArg(tc, index), 64 process->getSyscallArg(tc, index), 65 process->getSyscallArg(tc, index), 66 process->getSyscallArg(tc, index)); 67 68 SyscallReturn retval = (*funcPtr)(this, callnum, process, tc); 69 70 DPRINTFR(SyscallVerbose, "%d: %s: syscall %s returns %d\n", |
71 curTick,tc->getCpuPtr()->name(), name, retval.value()); | 71 curTick(),tc->getCpuPtr()->name(), name, retval.value()); |
72 73 if (!(flags & SyscallDesc::SuppressReturnValue)) 74 process->setSyscallReturn(tc, retval); 75} 76 77 78SyscallReturn 79unimplementedFunc(SyscallDesc *desc, int callnum, LiveProcess *process, --- 760 unchanged lines hidden --- | 72 73 if (!(flags & SyscallDesc::SuppressReturnValue)) 74 process->setSyscallReturn(tc, retval); 75} 76 77 78SyscallReturn 79unimplementedFunc(SyscallDesc *desc, int callnum, LiveProcess *process, --- 760 unchanged lines hidden --- |