process.hh (5771:f58d82cb8b7f) | process.hh (5958:2d9737bf3c2f) |
---|---|
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; --- 30 unchanged lines hidden (view full) --- 39// 40#include "config/full_system.hh" 41 42#if !FULL_SYSTEM 43 44#include <string> 45#include <vector> 46 | 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; --- 30 unchanged lines hidden (view full) --- 39// 40#include "config/full_system.hh" 41 42#if !FULL_SYSTEM 43 44#include <string> 45#include <vector> 46 |
47#include "arch/types.hh" |
|
47#include "base/statistics.hh" 48#include "sim/host.hh" 49#include "sim/sim_object.hh" | 48#include "base/statistics.hh" 49#include "sim/host.hh" 50#include "sim/sim_object.hh" |
51#include "sim/syscallreturn.hh" |
|
50 51class GDBListener; 52class PageTable; 53class ProcessParams; 54class LiveProcessParams; 55class SyscallDesc; 56class System; 57class ThreadContext; --- 258 unchanged lines hidden (view full) --- 316 full += '/'; 317 318 return full + filename; 319 } 320 321 std::string getcwd() const { return cwd; } 322 323 virtual void syscall(int64_t callnum, ThreadContext *tc); | 52 53class GDBListener; 54class PageTable; 55class ProcessParams; 56class LiveProcessParams; 57class SyscallDesc; 58class System; 59class ThreadContext; --- 258 unchanged lines hidden (view full) --- 318 full += '/'; 319 320 return full + filename; 321 } 322 323 std::string getcwd() const { return cwd; } 324 325 virtual void syscall(int64_t callnum, ThreadContext *tc); |
326 virtual TheISA::IntReg getSyscallArg(ThreadContext *tc, int i) = 0; 327 virtual void setSyscallArg(ThreadContext *tc, 328 int i, TheISA::IntReg val) = 0; 329 virtual void setSyscallReturn(ThreadContext *tc, 330 SyscallReturn return_value) = 0; |
|
324 325 virtual SyscallDesc* getDesc(int callnum) = 0; 326 327 // this function is used to create the LiveProcess object, since 328 // we can't tell which subclass of LiveProcess to use until we 329 // open and look at the object file. 330 static LiveProcess *create(LiveProcessParams * params); 331}; 332 333 334#endif // !FULL_SYSTEM 335 336#endif // __PROCESS_HH__ | 331 332 virtual SyscallDesc* getDesc(int callnum) = 0; 333 334 // this function is used to create the LiveProcess object, since 335 // we can't tell which subclass of LiveProcess to use until we 336 // open and look at the object file. 337 static LiveProcess *create(LiveProcessParams * params); 338}; 339 340 341#endif // !FULL_SYSTEM 342 343#endif // __PROCESS_HH__ |