mem-ruby: Remove shiftLowOrderBits
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Sat, 7 Sep 2019 09:14:57 +0000 (11:14 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 30 Sep 2019 20:58:46 +0000 (20:58 +0000)
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>
src/mem/ruby/common/Address.cc
src/mem/ruby/common/Address.hh

index af8ddb437253a780e41679f5a64af5ec0bc5bb1c..1afefc236d6300bdda15f4b3288244ca6e0c3dd3 100644 (file)
@@ -58,12 +58,6 @@ maskLowOrderBits(Addr addr, unsigned int number)
   return (addr & mask);
 }
 
-Addr
-shiftLowOrderBits(Addr addr, unsigned int number)
-{
-    return (addr >> number);
-}
-
 Addr
 getOffset(Addr addr)
 {
index 6aed96a1bb9089fed4f6c9a1757c3de75aed4319..31f52e540de11b616a2d03da81834b51d9a82f93 100644 (file)
@@ -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);