From 72f53947d27c4ce522c40fcc57649236faa59950 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Wed, 22 Oct 2014 20:14:23 +0100 Subject: [PATCH] support extents --- memory.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/memory.h b/memory.h index 0da0065..b41c798 100644 --- a/memory.h +++ b/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