diff options
author | Gabe Black <gabeblack@google.com> | 2017-10-18 21:16:37 -0700 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2018-06-19 14:24:25 +0000 |
commit | e27448fd0e21dbf4ef77a8bbb33a4053e31cb67d (patch) | |
tree | 95d86625aff66c80f96577180de7f4d8d97809d7 /src/mem/physical.hh | |
parent | 9494e7d16a18802b756fdc0e814837d5c98bbd86 (diff) | |
download | gem5-e27448fd0e21dbf4ef77a8bbb33a4053e31cb67d.tar.xz |
mem: Use the caching in the AddrRangeMap class in PhysicalMemory
Use it instead of custom implemented caching.
Change-Id: Ie21012a77a3cb6ce57f34f879fa391678913896a
Reviewed-on: https://gem5-review.googlesource.com/5244
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/physical.hh')
-rw-r--r-- | src/mem/physical.hh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mem/physical.hh b/src/mem/physical.hh index cc733b2d6..3fb3510b8 100644 --- a/src/mem/physical.hh +++ b/src/mem/physical.hh @@ -118,11 +118,7 @@ class PhysicalMemory : public Serializable std::string _name; // Global address map - AddrRangeMap<AbstractMemory*> addrMap; - - // a mutable cache for the last address map iterator that matched - // an address - mutable AddrRangeMap<AbstractMemory*>::const_iterator rangeCache; + AddrRangeMap<AbstractMemory*, 1> addrMap; // All address-mapped memories std::vector<AbstractMemory*> memories; |