process.hh (11800:54436a1784dc) | process.hh (11851:824055fe6b30) |
---|---|
1/* 2 * Copyright (c) 2007-2008 The Florida State University 3 * Copyright (c) 2009 The University of Edinburgh 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 25 unchanged lines hidden (view full) --- 34#define __POWER_PROCESS_HH__ 35 36#include <string> 37#include <vector> 38 39#include "mem/page_table.hh" 40#include "sim/process.hh" 41 | 1/* 2 * Copyright (c) 2007-2008 The Florida State University 3 * Copyright (c) 2009 The University of Edinburgh 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 25 unchanged lines hidden (view full) --- 34#define __POWER_PROCESS_HH__ 35 36#include <string> 37#include <vector> 38 39#include "mem/page_table.hh" 40#include "sim/process.hh" 41 |
42class LiveProcess; | |
43class ObjectFile; | 42class ObjectFile; |
44class System; | |
45 | 43 |
46class PowerLiveProcess : public LiveProcess | 44class PowerProcess : public Process |
47{ 48 protected: | 45{ 46 protected: |
49 PowerLiveProcess(LiveProcessParams * params, ObjectFile *objFile); | 47 PowerProcess(ProcessParams * params, ObjectFile *objFile); |
50 51 void initState(); 52 53 public: 54 void argsInit(int intSize, int pageSize); 55 PowerISA::IntReg getSyscallArg(ThreadContext *tc, int &i); 56 /// Explicitly import the otherwise hidden getSyscallArg | 48 49 void initState(); 50 51 public: 52 void argsInit(int intSize, int pageSize); 53 PowerISA::IntReg getSyscallArg(ThreadContext *tc, int &i); 54 /// Explicitly import the otherwise hidden getSyscallArg |
57 using LiveProcess::getSyscallArg; | 55 using Process::getSyscallArg; |
58 void setSyscallArg(ThreadContext *tc, int i, PowerISA::IntReg val); 59 void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value); 60}; 61 62/* No architectural page table defined for this ISA */ 63typedef NoArchPageTable ArchPageTable; 64 65#endif // __POWER_PROCESS_HH__ 66 | 56 void setSyscallArg(ThreadContext *tc, int i, PowerISA::IntReg val); 57 void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value); 58}; 59 60/* No architectural page table defined for this ISA */ 61typedef NoArchPageTable ArchPageTable; 62 63#endif // __POWER_PROCESS_HH__ 64 |