From e0de2c34433be76eac7798e58e1ae02f5bffb732 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 8 Apr 2009 22:21:27 -0700 Subject: tlb: More fixing of unified TLB --- src/arch/mips/tlb.cc | 12 +++++------- src/arch/mips/tlb.hh | 5 ++--- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'src/arch/mips') diff --git a/src/arch/mips/tlb.cc b/src/arch/mips/tlb.cc index 9343e35a3..9fc3e20ee 100644 --- a/src/arch/mips/tlb.cc +++ b/src/arch/mips/tlb.cc @@ -562,22 +562,20 @@ TLB::translateData(RequestPtr req, ThreadContext *tc, bool write) } Fault -TLB::translateAtomic(RequestPtr req, ThreadContext *tc, - bool write, bool execute) +TLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode) { - if (execute) + if (mode == Execute) return translateInst(req, tc); else - return translateData(req, tc, write); + return translateData(req, tc, mode == Write); } void TLB::translateTiming(RequestPtr req, ThreadContext *tc, - Translation *translation, bool write, bool execute) + Translation *translation, Mode mode) { assert(translation); - translation->finish(translateAtomic(req, tc, write, execute), - req, tc, write, execute); + translation->finish(translateAtomic(req, tc, mode), req, tc, mode); } diff --git a/src/arch/mips/tlb.hh b/src/arch/mips/tlb.hh index fa2ed3f85..68b1c0c75 100644 --- a/src/arch/mips/tlb.hh +++ b/src/arch/mips/tlb.hh @@ -138,10 +138,9 @@ class TLB : public BaseTLB void regStats(); - Fault translateAtomic(RequestPtr req, ThreadContext *tc, - bool write=false, bool execute=false); + Fault translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode); void translateTiming(RequestPtr req, ThreadContext *tc, - Translation *translation, bool write=false, bool execute=false); + Translation *translation, Mode mode); private: Fault translateInst(RequestPtr req, ThreadContext *tc); -- cgit v1.2.3