mem-ruby: Fix maskLowOrderBits
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Sat, 7 Sep 2019 09:45:25 +0000 (11:45 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 30 Sep 2019 20:58:46 +0000 (20:58 +0000)
commit4a701c11e4c071ba0f196b376a73123a1ab952e7
treeee162ac8a02082bee9ada7f1827ba3252326a6b1
parenta5408244d1fb6dcad6234b601b5aa8d439fd49cd
mem-ruby: Fix maskLowOrderBits

The function was wrong when number = 63. Also, use the more reliable
src/base/bitfield.hh's mbits when posible.

maskLowOrderBits has only been kept because SLICC does not accept
a templated function.

Change-Id: I8dd680da02ceb9e614e2f9cbf8f1ac52cead8d45
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21084
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/common/Address.cc
src/mem/ruby/profiler/AddressProfiler.cc
src/mem/ruby/structures/Prefetcher.cc