diff options
Diffstat (limited to 'src/arch/arm/tlb.hh')
-rw-r--r-- | src/arch/arm/tlb.hh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/arch/arm/tlb.hh b/src/arch/arm/tlb.hh index c2894e5cd..a779a492d 100644 --- a/src/arch/arm/tlb.hh +++ b/src/arch/arm/tlb.hh @@ -88,6 +88,8 @@ class TLB : public BaseTLB int size; // TLB Size int nlu; // not last used entry (for replacement) + uint32_t _attr; // Memory attributes for last accessed TLB entry + #if FULL_SYSTEM TableWalker *tableWalker; #endif @@ -151,6 +153,19 @@ class TLB : public BaseTLB static bool validVirtualAddress(Addr vaddr); + /** Accessor functions for memory attributes for last accessed TLB entry + */ + void + setAttr(uint32_t attr) + { + _attr = attr; + } + uint32_t + getAttr() const + { + return _attr; + } + #if FULL_SYSTEM Fault translateFs(RequestPtr req, ThreadContext *tc, Mode mode, Translation *translation, bool &delay, bool timing); |