process.hh (6658:f4de76601762) process.hh (6701:4842482e1bd1)
1/*
2 * Copyright (c) 2001-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;

--- 311 unchanged lines hidden (view full) ---

320 full += '/';
321
322 return full + filename;
323 }
324
325 std::string getcwd() const { return cwd; }
326
327 virtual void syscall(int64_t callnum, ThreadContext *tc);
1/*
2 * Copyright (c) 2001-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;

--- 311 unchanged lines hidden (view full) ---

320 full += '/';
321
322 return full + filename;
323 }
324
325 std::string getcwd() const { return cwd; }
326
327 virtual void syscall(int64_t callnum, ThreadContext *tc);
328 virtual TheISA::IntReg getSyscallArg(ThreadContext *tc, int i) = 0;
328
329 virtual TheISA::IntReg getSyscallArg(ThreadContext *tc, int &i) = 0;
330 virtual TheISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width);
329 virtual void setSyscallArg(ThreadContext *tc,
330 int i, TheISA::IntReg val) = 0;
331 virtual void setSyscallReturn(ThreadContext *tc,
332 SyscallReturn return_value) = 0;
333
334 virtual SyscallDesc* getDesc(int callnum) = 0;
335
336 // this function is used to create the LiveProcess object, since
337 // we can't tell which subclass of LiveProcess to use until we
338 // open and look at the object file.
339 static LiveProcess *create(LiveProcessParams * params);
340};
341
342
343#endif // !FULL_SYSTEM
344
345#endif // __PROCESS_HH__
331 virtual void setSyscallArg(ThreadContext *tc,
332 int i, TheISA::IntReg val) = 0;
333 virtual void setSyscallReturn(ThreadContext *tc,
334 SyscallReturn return_value) = 0;
335
336 virtual SyscallDesc* getDesc(int callnum) = 0;
337
338 // this function is used to create the LiveProcess object, since
339 // we can't tell which subclass of LiveProcess to use until we
340 // open and look at the object file.
341 static LiveProcess *create(LiveProcessParams * params);
342};
343
344
345#endif // !FULL_SYSTEM
346
347#endif // __PROCESS_HH__