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