process.hh (12431:000549e1f497) process.hh (12448:b299e560f1d8)
1/*
2 * Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
3 * Copyright (c) 2001-2005 The Regents of The University of Michigan
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

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

49#include "sim/fd_entry.hh"
50#include "sim/mem_state.hh"
51#include "sim/sim_object.hh"
52
53struct ProcessParams;
54
55class EmulatedDriver;
56class ObjectFile;
1/*
2 * Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
3 * Copyright (c) 2001-2005 The Regents of The University of Michigan
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

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

49#include "sim/fd_entry.hh"
50#include "sim/mem_state.hh"
51#include "sim/sim_object.hh"
52
53struct ProcessParams;
54
55class EmulatedDriver;
56class ObjectFile;
57class PageTableBase;
57class EmulationPageTable;
58class SyscallDesc;
59class SyscallReturn;
60class System;
61class ThreadContext;
62
63class Process : public SimObject
64{
65 public:
58class SyscallDesc;
59class SyscallReturn;
60class System;
61class ThreadContext;
62
63class Process : public SimObject
64{
65 public:
66 Process(ProcessParams *params, PageTableBase *pTable,
66 Process(ProcessParams *params, EmulationPageTable *pTable,
67 ObjectFile *obj_file);
68
69 void serialize(CheckpointOut &cp) const override;
70 void unserialize(CheckpointIn &cp) override;
71
72 void initState() override;
73 DrainState drain() override;
74

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

171 // system object which owns this process
172 System *system;
173
174 Stats::Scalar numSyscalls; // track how many system calls are executed
175
176 bool useArchPT; // flag for using architecture specific page table
177 bool kvmInSE; // running KVM requires special initialization
178
67 ObjectFile *obj_file);
68
69 void serialize(CheckpointOut &cp) const override;
70 void unserialize(CheckpointIn &cp) override;
71
72 void initState() override;
73 DrainState drain() override;
74

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

171 // system object which owns this process
172 System *system;
173
174 Stats::Scalar numSyscalls; // track how many system calls are executed
175
176 bool useArchPT; // flag for using architecture specific page table
177 bool kvmInSE; // running KVM requires special initialization
178
179 PageTableBase* pTable;
179 EmulationPageTable *pTable;
180
181 SETranslatingPortProxy initVirtMem; // memory proxy for initial image load
182
183 ObjectFile *objFile;
184 std::vector<std::string> argv;
185 std::vector<std::string> envp;
186 std::string cwd;
187 std::string executable;

--- 32 unchanged lines hidden ---
180
181 SETranslatingPortProxy initVirtMem; // memory proxy for initial image load
182
183 ObjectFile *objFile;
184 std::vector<std::string> argv;
185 std::vector<std::string> envp;
186 std::string cwd;
187 std::string executable;

--- 32 unchanged lines hidden ---