mirror of
https://github.com/jscrane/r65emu.git
synced 2024-10-14 05:24:09 +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:
|
||||
address _acc, _base;
|
||||
|
||||
private:
|
||||
friend class Memory;
|
||||
int _pages;
|
||||
};
|
||||
|
||||
// insert a new device instance
|
||||
//
|
||||
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]; }
|
||||
|
||||
// primary access interface
|
||||
|
Loading…
Reference in New Issue
Block a user