projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge vm1.(none):/home/stever/bk/newmem-head
[gem5.git]
/
src
/
mem
/
translating_port.hh
diff --git
a/src/mem/translating_port.hh
b/src/mem/translating_port.hh
index 7354278bac2c003d1571918221090791717fb6f6..76c7947be9be809f34cdf48bc876e2f161488793 100644
(file)
--- a/
src/mem/translating_port.hh
+++ b/
src/mem/translating_port.hh
@@
-35,16
+35,25
@@
#include "mem/port.hh"
class PageTable;
#include "mem/port.hh"
class PageTable;
+class Process;
class TranslatingPort : public FunctionalPort
{
class TranslatingPort : public FunctionalPort
{
+ public:
+ enum AllocType {
+ Always,
+ Never,
+ NextPage
+ };
+
private:
PageTable *pTable;
private:
PageTable *pTable;
- bool allocating;
+ Process *process;
+ AllocType allocating;
public:
TranslatingPort(const std::string &_name,
public:
TranslatingPort(const std::string &_name,
- P
ageTable *p_table, bool alloc = false
);
+ P
rocess *p, AllocType alloc
);
virtual ~TranslatingPort();
bool tryReadBlob(Addr addr, uint8_t *p, int size);
virtual ~TranslatingPort();
bool tryReadBlob(Addr addr, uint8_t *p, int size);