Daniel Carvalho has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/21083 )

Change subject: mem-ruby: Remove shiftLowOrderBits
......................................................................

mem-ruby: Remove shiftLowOrderBits

There is no need to encapsulate a shift operation.

Change-Id: Ie711d8d4975d1d9dde656cc2284a048410cfdadb
Signed-off-by: Daniel R. Carvalho <oda...@yahoo.com.br>
---
M src/mem/ruby/common/Address.cc
M src/mem/ruby/common/Address.hh
2 files changed, 0 insertions(+), 7 deletions(-)



diff --git a/src/mem/ruby/common/Address.cc b/src/mem/ruby/common/Address.cc
index af8ddb4..1afefc2 100644
--- a/src/mem/ruby/common/Address.cc
+++ b/src/mem/ruby/common/Address.cc
@@ -59,12 +59,6 @@
 }

 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 6aed96a..31f52e5 100644
--- a/src/mem/ruby/common/Address.hh
+++ b/src/mem/ruby/common/Address.hh
@@ -40,7 +40,6 @@
 // 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);

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/21083
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ie711d8d4975d1d9dde656cc2284a048410cfdadb
Gerrit-Change-Number: 21083
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Carvalho <oda...@yahoo.com.br>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to