summaryrefslogtreecommitdiff
path: root/src/arch/mips/tlb.cc
diff options
context:
space:
mode:
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>2014-08-13 06:57:30 -0400
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>2014-08-13 06:57:30 -0400
commit8b8d991df053dad34cd490db6c8e7c94b5413290 (patch)
tree1cd5393611977cc78a3c8c652db0eefe77d44b2c /src/arch/mips/tlb.cc
parent8d04e32a834c28cea19d748bfe68d1aa0f593898 (diff)
downloadgem5-8b8d991df053dad34cd490db6c8e7c94b5413290.tar.xz
mips: Remove unused private members to fix compile-time warning
Certain versions of clang complain about unused private members if they are not used. This changeset removes such members from the MIPS-specific classes to silence the warning.
Diffstat (limited to 'src/arch/mips/tlb.cc')
-rw-r--r--src/arch/mips/tlb.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/arch/mips/tlb.cc b/src/arch/mips/tlb.cc
index 420707bd0..b43797541 100644
--- a/src/arch/mips/tlb.cc
+++ b/src/arch/mips/tlb.cc
@@ -59,21 +59,6 @@ using namespace MipsISA;
// MIPS TLB
//
-static inline mode_type
-getOperatingMode(MiscReg Stat)
-{
- if ((Stat & 0x10000006) != 0 || (Stat & 0x18) ==0) {
- return mode_kernel;
- } else if ((Stat & 0x18) == 0x8) {
- return mode_supervisor;
- } else if ((Stat & 0x18) == 0x10) {
- return mode_user;
- } else {
- return mode_number;
- }
-}
-
-
TLB::TLB(const Params *p)
: BaseTLB(p), size(p->size), nlu(0)
{