diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2019-09-07 11:14:57 +0200 |
---|---|---|
committer | Daniel Carvalho <odanrc@yahoo.com.br> | 2019-09-30 20:58:46 +0000 |
commit | a5408244d1fb6dcad6234b601b5aa8d439fd49cd (patch) | |
tree | 42a4d0d8e24510ddb6c19fde7ae70afd78be05a1 | |
parent | 7ccf70a12196d7df31668166b0a3aa67a1106f61 (diff) | |
download | gem5-a5408244d1fb6dcad6234b601b5aa8d439fd49cd.tar.xz |
mem-ruby: Remove shiftLowOrderBits
There is no need to encapsulate a shift operation.
Change-Id: Ie711d8d4975d1d9dde656cc2284a048410cfdadb
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21083
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>
-rw-r--r-- | src/mem/ruby/common/Address.cc | 6 | ||||
-rw-r--r-- | src/mem/ruby/common/Address.hh | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/mem/ruby/common/Address.cc b/src/mem/ruby/common/Address.cc index af8ddb437..1afefc236 100644 --- a/src/mem/ruby/common/Address.cc +++ b/src/mem/ruby/common/Address.cc @@ -59,12 +59,6 @@ maskLowOrderBits(Addr addr, unsigned int number) } Addr -shiftLowOrderBits(Addr addr, unsigned int number) -{ - return (addr >> number); -} - -Addr getOffset(Addr addr) { return bitSelect(addr, 0, RubySystem::getBlockSizeBits() - 1); diff --git a/src/mem/ruby/common/Address.hh b/src/mem/ruby/common/Address.hh index 6aed96a1b..31f52e540 100644 --- a/src/mem/ruby/common/Address.hh +++ b/src/mem/ruby/common/Address.hh @@ -40,7 +40,6 @@ const uint32_t ADDRESS_WIDTH = 64; // address width in bytes // selects bits inclusive Addr bitSelect(Addr addr, unsigned int small, unsigned int big); Addr maskLowOrderBits(Addr addr, unsigned int number); -Addr shiftLowOrderBits(Addr addr, unsigned int number); Addr getOffset(Addr addr); Addr makeLineAddress(Addr addr); Addr makeNextStrideAddress(Addr addr, int stride); |