mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-21 12:29:51 +00:00
support extents
This commit is contained in:
parent
1df2a2d030
commit
72f53947d2
3
memory.h
3
memory.h
@ -37,13 +37,16 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
address _acc, _base;
|
address _acc, _base;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
friend class Memory;
|
||||||
int _pages;
|
int _pages;
|
||||||
};
|
};
|
||||||
|
|
||||||
// insert a new device instance
|
// insert a new device instance
|
||||||
//
|
//
|
||||||
void put (Device &d, address at);
|
void put (Device &d, address at);
|
||||||
|
void put (Device &d, address at, int ep) { d._pages = ep; put(d, at); }
|
||||||
Device *get (address at) const { return _pages[at/page_size]; }
|
Device *get (address at) const { return _pages[at/page_size]; }
|
||||||
|
|
||||||
// primary access interface
|
// primary access interface
|
||||||
|
Loading…
Reference in New Issue
Block a user