From a5408244d1fb6dcad6234b601b5aa8d439fd49cd Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Sat, 7 Sep 2019 11:14:57 +0200 Subject: [PATCH] mem-ruby: Remove shiftLowOrderBits There is no need to encapsulate a shift operation. Change-Id: Ie711d8d4975d1d9dde656cc2284a048410cfdadb Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21083 Reviewed-by: Nikos Nikoleris Reviewed-by: Jason Lowe-Power Reviewed-by: Anthony Gutierrez Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/mem/ruby/common/Address.cc | 6 ------ src/mem/ruby/common/Address.hh | 1 - 2 files changed, 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 @@ -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) { 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); -- 2.30.2