syscall_emul.cc (2665:a124942bacb8) | syscall_emul.cc (2667:fe64b8353b1c) |
---|---|
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; --- 29 unchanged lines hidden (view full) --- 38#include "sim/syscall_emul.hh" 39#include "base/chunk_generator.hh" 40#include "base/trace.hh" 41#include "cpu/exec_context.hh" 42#include "cpu/base.hh" 43#include "mem/page_table.hh" 44#include "sim/process.hh" 45 | 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; --- 29 unchanged lines hidden (view full) --- 38#include "sim/syscall_emul.hh" 39#include "base/chunk_generator.hh" 40#include "base/trace.hh" 41#include "cpu/exec_context.hh" 42#include "cpu/base.hh" 43#include "mem/page_table.hh" 44#include "sim/process.hh" 45 |
46#include "sim/sim_events.hh" | 46#include "sim/sim_exit.hh" |
47 48using namespace std; 49using namespace TheISA; 50 51void 52SyscallDesc::doSyscall(int callnum, Process *process, ExecContext *xc) 53{ 54 DPRINTFR(SyscallVerbose, "%d: %s: syscall %s called w/arguments %d,%d,%d,%d\n", --- 31 unchanged lines hidden (view full) --- 86 return 0; 87} 88 89 90SyscallReturn 91exitFunc(SyscallDesc *desc, int callnum, Process *process, 92 ExecContext *xc) 93{ | 47 48using namespace std; 49using namespace TheISA; 50 51void 52SyscallDesc::doSyscall(int callnum, Process *process, ExecContext *xc) 53{ 54 DPRINTFR(SyscallVerbose, "%d: %s: syscall %s called w/arguments %d,%d,%d,%d\n", --- 31 unchanged lines hidden (view full) --- 86 return 0; 87} 88 89 90SyscallReturn 91exitFunc(SyscallDesc *desc, int callnum, Process *process, 92 ExecContext *xc) 93{ |
94 new SimExitEvent("target called exit()", xc->getSyscallArg(0) & 0xff); | 94 exitSimLoop("target called exit()", xc->getSyscallArg(0) & 0xff); |
95 96 return 1; 97} 98 99 100SyscallReturn 101getpagesizeFunc(SyscallDesc *desc, int num, Process *p, ExecContext *xc) 102{ --- 355 unchanged lines hidden --- | 95 96 return 1; 97} 98 99 100SyscallReturn 101getpagesizeFunc(SyscallDesc *desc, int num, Process *p, ExecContext *xc) 102{ --- 355 unchanged lines hidden --- |