2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
2010-05-22 04:47:15 +00:00
|
|
|
#include "stdafx.h"
|
2015-12-06 09:59:58 +00:00
|
|
|
#include "TLBClass.h"
|
|
|
|
#include <Project64-core/N64System/SystemGlobals.h>
|
2016-01-13 11:15:30 +00:00
|
|
|
#include <Project64-core/N64System/Mips/RegisterClass.h>
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-12-10 19:08:39 +00:00
|
|
|
CTLB::CTLB(CTLB_CB * CallBack) :
|
|
|
|
m_CB(CallBack)
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
2015-12-14 10:51:33 +00:00
|
|
|
WriteTrace(TraceTLB, TraceDebug, "Start");
|
2015-12-10 19:08:39 +00:00
|
|
|
memset(m_tlb, 0, sizeof(m_tlb));
|
|
|
|
memset(m_FastTlb, 0, sizeof(m_FastTlb));
|
2015-11-09 06:21:32 +00:00
|
|
|
Reset(true);
|
2015-12-14 10:51:33 +00:00
|
|
|
WriteTrace(TraceTLB, TraceDebug, "Done");
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
2015-04-28 22:19:02 +00:00
|
|
|
CTLB::~CTLB()
|
2015-03-29 17:19:28 +00:00
|
|
|
{
|
2015-12-14 10:51:33 +00:00
|
|
|
WriteTrace(TraceTLB, TraceDebug, "Start");
|
|
|
|
WriteTrace(TraceTLB, TraceDebug, "Done");
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
2015-12-10 19:08:39 +00:00
|
|
|
void CTLB::Reset(bool InvalidateTLB)
|
2015-03-29 17:19:28 +00:00
|
|
|
{
|
2015-11-09 06:21:32 +00:00
|
|
|
uint32_t count;
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
for (count = 0; count < 64; count++)
|
|
|
|
{
|
|
|
|
m_FastTlb[count].ValidEntry = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (InvalidateTLB)
|
|
|
|
{
|
|
|
|
for (count = 0; count < 32; count++)
|
|
|
|
{
|
|
|
|
m_tlb[count].EntryDefined = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
for (count = 0; count < 32; count++)
|
2015-11-09 06:21:32 +00:00
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
SetupTLB_Entry(count, false);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
|
|
|
}
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
2015-12-10 19:08:39 +00:00
|
|
|
bool CTLB::AddressDefined(uint32_t VAddr)
|
2015-03-29 17:19:28 +00:00
|
|
|
{
|
2015-11-09 06:21:32 +00:00
|
|
|
uint32_t i;
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
if (VAddr >= 0x80000000 && VAddr <= 0xBFFFFFFF)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
for (i = 0; i < 64; i++)
|
|
|
|
{
|
|
|
|
if (m_FastTlb[i].ValidEntry &&
|
|
|
|
VAddr >= m_FastTlb[i].VSTART &&
|
|
|
|
VAddr <= m_FastTlb[i].VEND)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
2015-04-28 22:19:02 +00:00
|
|
|
void CTLB::Probe()
|
2015-03-29 17:19:28 +00:00
|
|
|
{
|
2015-11-09 06:21:32 +00:00
|
|
|
int Counter;
|
|
|
|
|
2015-12-14 10:51:33 +00:00
|
|
|
WriteTrace(TraceTLB, TraceDebug, "Start");
|
2015-11-09 06:21:32 +00:00
|
|
|
g_Reg->INDEX_REGISTER |= 0x80000000;
|
2015-12-10 19:08:39 +00:00
|
|
|
for (Counter = 0; Counter < 32; Counter++)
|
2015-11-09 06:21:32 +00:00
|
|
|
{
|
|
|
|
if (!m_tlb[Counter].EntryDefined)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t & TlbEntryHiValue = m_tlb[Counter].EntryHi.Value;
|
|
|
|
uint32_t Mask = ~m_tlb[Counter].PageMask.Mask << 13;
|
|
|
|
uint32_t TlbValueMasked = TlbEntryHiValue & Mask;
|
|
|
|
uint32_t EntryHiMasked = g_Reg->ENTRYHI_REGISTER & Mask;
|
2010-05-22 04:47:15 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
if (TlbValueMasked == EntryHiMasked)
|
|
|
|
{
|
|
|
|
if ((TlbEntryHiValue & 0x100) != 0 || //Global
|
|
|
|
((TlbEntryHiValue & 0xFF) == (g_Reg->ENTRYHI_REGISTER & 0xFF))) //SameAsid
|
|
|
|
{
|
|
|
|
g_Reg->INDEX_REGISTER = Counter;
|
|
|
|
int FastIndx = Counter << 1;
|
|
|
|
m_FastTlb[FastIndx].Probed = true;
|
|
|
|
m_FastTlb[FastIndx + 1].Probed = true;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-12-14 10:51:33 +00:00
|
|
|
WriteTrace(TraceTLB, TraceDebug, "Done");
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
2015-04-28 22:19:02 +00:00
|
|
|
void CTLB::ReadEntry()
|
|
|
|
{
|
2015-11-09 06:21:32 +00:00
|
|
|
uint32_t index = g_Reg->INDEX_REGISTER & 0x1F;
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-12-10 19:08:39 +00:00
|
|
|
g_Reg->PAGE_MASK_REGISTER = m_tlb[index].PageMask.Value;
|
|
|
|
g_Reg->ENTRYHI_REGISTER = (m_tlb[index].EntryHi.Value & ~m_tlb[index].PageMask.Value);
|
2015-11-09 06:21:32 +00:00
|
|
|
g_Reg->ENTRYLO0_REGISTER = m_tlb[index].EntryLo0.Value;
|
|
|
|
g_Reg->ENTRYLO1_REGISTER = m_tlb[index].EntryLo1.Value;
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
2015-12-10 19:08:39 +00:00
|
|
|
void CTLB::WriteEntry(int index, bool Random)
|
2015-03-29 17:19:28 +00:00
|
|
|
{
|
2015-11-09 06:21:32 +00:00
|
|
|
int FastIndx;
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-12-14 10:51:33 +00:00
|
|
|
WriteTrace(TraceTLB, TraceDebug, "%02d %d %08X %08X %08X %08X ", index, Random, g_Reg->PAGE_MASK_REGISTER, g_Reg->ENTRYHI_REGISTER, g_Reg->ENTRYLO0_REGISTER, g_Reg->ENTRYLO1_REGISTER);
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
//Check to see if entry is unmapping it self
|
|
|
|
if (m_tlb[index].EntryDefined)
|
|
|
|
{
|
|
|
|
FastIndx = index << 1;
|
|
|
|
if (*_PROGRAM_COUNTER >= m_FastTlb[FastIndx].VSTART &&
|
|
|
|
*_PROGRAM_COUNTER < m_FastTlb[FastIndx].VEND &&
|
|
|
|
m_FastTlb[FastIndx].ValidEntry && m_FastTlb[FastIndx].VALID)
|
|
|
|
{
|
2015-12-14 10:51:33 +00:00
|
|
|
WriteTrace(TraceTLB, TraceDebug, "Ignored PC: %X VAddr Start: %X VEND: %X", *_PROGRAM_COUNTER, m_FastTlb[FastIndx].VSTART, m_FastTlb[FastIndx].VEND);
|
2015-11-09 06:21:32 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (*_PROGRAM_COUNTER >= m_FastTlb[FastIndx + 1].VSTART &&
|
|
|
|
*_PROGRAM_COUNTER < m_FastTlb[FastIndx + 1].VEND &&
|
|
|
|
m_FastTlb[FastIndx + 1].ValidEntry && m_FastTlb[FastIndx + 1].VALID)
|
|
|
|
{
|
2015-12-14 10:51:33 +00:00
|
|
|
WriteTrace(TraceTLB, TraceDebug, "Ignored PC: %X VAddr Start: %X VEND: %X", *_PROGRAM_COUNTER, m_FastTlb[FastIndx + 1].VSTART, m_FastTlb[FastIndx + 1].VEND);
|
2015-11-09 06:21:32 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
//Reset old addresses
|
|
|
|
if (m_tlb[index].EntryDefined)
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
for (FastIndx = index << 1; FastIndx <= (index << 1) + 1; FastIndx++)
|
2015-11-09 06:21:32 +00:00
|
|
|
{
|
|
|
|
if (!m_FastTlb[FastIndx].ValidEntry)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (!m_FastTlb[FastIndx].VALID)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (m_tlb[index].PageMask.Value == g_Reg->PAGE_MASK_REGISTER &&
|
|
|
|
m_tlb[index].EntryHi.Value == g_Reg->ENTRYHI_REGISTER)
|
|
|
|
{
|
|
|
|
if (FastIndx == (index << 1) && m_tlb[index].EntryLo0.Value == g_Reg->ENTRYLO0_REGISTER)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (FastIndx != (index << 1) && m_tlb[index].EntryLo1.Value == g_Reg->ENTRYLO1_REGISTER)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
2015-12-10 19:08:39 +00:00
|
|
|
m_CB->TLB_Unmaped(m_FastTlb[FastIndx].VSTART, m_FastTlb[FastIndx].Length);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//fill in m_tlb entry
|
|
|
|
m_tlb[index].PageMask.Value = g_Reg->PAGE_MASK_REGISTER;
|
|
|
|
m_tlb[index].EntryHi.Value = g_Reg->ENTRYHI_REGISTER;
|
|
|
|
m_tlb[index].EntryLo0.Value = g_Reg->ENTRYLO0_REGISTER;
|
|
|
|
m_tlb[index].EntryLo1.Value = g_Reg->ENTRYLO1_REGISTER;
|
|
|
|
m_tlb[index].EntryDefined = true;
|
2015-12-10 19:08:39 +00:00
|
|
|
SetupTLB_Entry(index, Random);
|
2015-11-09 06:21:32 +00:00
|
|
|
m_CB->TLB_Changed();
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
2015-12-10 19:08:39 +00:00
|
|
|
void CTLB::SetupTLB_Entry(int index, bool Random)
|
2015-03-29 17:19:28 +00:00
|
|
|
{
|
2015-11-09 06:21:32 +00:00
|
|
|
//Fix up Fast TLB entries
|
|
|
|
if (!m_tlb[index].EntryDefined)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
int FastIndx = index << 1;
|
|
|
|
if (m_FastTlb[FastIndx].VALID)
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
m_CB->TLB_Unmaped(m_FastTlb[FastIndx].VSTART, m_FastTlb[FastIndx].Length);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
|
|
|
m_FastTlb[FastIndx].Length = (m_tlb[index].PageMask.Mask << 12) + 0xFFF;
|
2015-12-10 19:08:39 +00:00
|
|
|
m_FastTlb[FastIndx].VSTART = m_tlb[index].EntryHi.VPN2 << 13;
|
2015-11-09 06:21:32 +00:00
|
|
|
m_FastTlb[FastIndx].VEND = m_FastTlb[FastIndx].VSTART + m_FastTlb[FastIndx].Length;
|
|
|
|
m_FastTlb[FastIndx].PHYSSTART = m_tlb[index].EntryLo0.PFN << 12;
|
|
|
|
m_FastTlb[FastIndx].PHYSEND = m_FastTlb[FastIndx].PHYSSTART + m_FastTlb[FastIndx].Length;
|
|
|
|
m_FastTlb[FastIndx].VALID = m_tlb[index].EntryLo0.V;
|
|
|
|
m_FastTlb[FastIndx].DIRTY = m_tlb[index].EntryLo0.D;
|
|
|
|
m_FastTlb[FastIndx].GLOBAL = m_tlb[index].EntryLo0.GLOBAL & m_tlb[index].EntryLo1.GLOBAL;
|
|
|
|
m_FastTlb[FastIndx].ValidEntry = false;
|
|
|
|
m_FastTlb[FastIndx].Random = Random;
|
|
|
|
m_FastTlb[FastIndx].Probed = false;
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
FastIndx = (index << 1) + 1;
|
|
|
|
if (m_FastTlb[FastIndx].VALID)
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
m_CB->TLB_Unmaped(m_FastTlb[FastIndx].VSTART, m_FastTlb[FastIndx].Length);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
|
|
|
m_FastTlb[FastIndx].Length = (m_tlb[index].PageMask.Mask << 12) + 0xFFF;
|
2015-12-10 19:08:39 +00:00
|
|
|
m_FastTlb[FastIndx].VSTART = (m_tlb[index].EntryHi.VPN2 << 13) + (m_FastTlb[FastIndx].Length + 1);
|
2015-11-09 06:21:32 +00:00
|
|
|
m_FastTlb[FastIndx].VEND = m_FastTlb[FastIndx].VSTART + m_FastTlb[FastIndx].Length;
|
|
|
|
m_FastTlb[FastIndx].PHYSSTART = m_tlb[index].EntryLo1.PFN << 12;
|
|
|
|
m_FastTlb[FastIndx].PHYSEND = m_FastTlb[FastIndx].PHYSSTART + m_FastTlb[FastIndx].Length;
|
|
|
|
m_FastTlb[FastIndx].VALID = m_tlb[index].EntryLo1.V;
|
|
|
|
m_FastTlb[FastIndx].DIRTY = m_tlb[index].EntryLo1.D;
|
|
|
|
m_FastTlb[FastIndx].GLOBAL = m_tlb[index].EntryLo0.GLOBAL & m_tlb[index].EntryLo1.GLOBAL;
|
|
|
|
m_FastTlb[FastIndx].ValidEntry = false;
|
|
|
|
m_FastTlb[FastIndx].Random = Random;
|
|
|
|
m_FastTlb[FastIndx].Probed = false;
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
//Test both entries to see if they are valid
|
2015-12-10 19:08:39 +00:00
|
|
|
for (FastIndx = index << 1; FastIndx <= (index << 1) + 1; FastIndx++)
|
2015-11-09 06:21:32 +00:00
|
|
|
{
|
|
|
|
if (!m_FastTlb[FastIndx].VALID)
|
|
|
|
{
|
|
|
|
m_FastTlb[FastIndx].ValidEntry = true;
|
|
|
|
continue;
|
|
|
|
}
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
if (m_FastTlb[FastIndx].VEND <= m_FastTlb[FastIndx].VSTART)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (m_FastTlb[FastIndx].VSTART >= 0x80000000 && m_FastTlb[FastIndx].VEND <= 0xBFFFFFFF)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
2020-11-22 19:06:50 +00:00
|
|
|
if (m_FastTlb[FastIndx].PHYSEND > 0x1FFFFFFF)
|
2015-11-09 06:21:32 +00:00
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-09 06:21:32 +00:00
|
|
|
//MAP the new m_tlb entry for reading and writing
|
|
|
|
m_FastTlb[FastIndx].ValidEntry = true;
|
2015-12-10 19:08:39 +00:00
|
|
|
m_CB->TLB_Mapped(m_FastTlb[FastIndx].VSTART, m_FastTlb[FastIndx].Length, m_FastTlb[FastIndx].PHYSSTART, !m_FastTlb[FastIndx].DIRTY);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
2015-12-10 19:08:39 +00:00
|
|
|
bool CTLB::PAddrToVAddr(uint32_t PAddr, uint32_t & VAddr, uint32_t & Index)
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
2015-11-09 06:21:32 +00:00
|
|
|
for (int i = Index; i < 64; i++)
|
|
|
|
{
|
|
|
|
if (m_FastTlb[i].ValidEntry == false)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (PAddr >= m_FastTlb[i].PHYSSTART && PAddr < m_FastTlb[i].PHYSEND)
|
|
|
|
{
|
|
|
|
VAddr = m_FastTlb[i].VSTART + (PAddr - m_FastTlb[i].PHYSSTART);
|
|
|
|
Index = i + 1;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
2012-09-28 20:17:44 +00:00
|
|
|
|
2015-12-10 19:08:39 +00:00
|
|
|
void CTLB::RecordDifference(CLog &LogFile, const CTLB& rTLB)
|
2012-09-28 20:17:44 +00:00
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
for (int i = 0, n = sizeof(m_tlb) / sizeof(m_tlb[0]); i < n; i++)
|
2015-11-09 06:21:32 +00:00
|
|
|
{
|
|
|
|
if (m_tlb[i].EntryDefined != rTLB.m_tlb[i].EntryDefined)
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
LogFile.LogF("TLB[%d] Defined: %s %s\r\n", i, m_tlb[i].EntryDefined ? "Yes" : "No", rTLB.m_tlb[i].EntryDefined ? "Yes" : "No");
|
2015-11-09 06:21:32 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (!m_tlb[i].EntryDefined)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (m_tlb[i].PageMask.Value != rTLB.m_tlb[i].PageMask.Value)
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
LogFile.LogF("TLB[%d] PageMask: %X %X\r\n", i, m_tlb[i].PageMask.Value, rTLB.m_tlb[i].PageMask.Value);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
|
|
|
if (m_tlb[i].EntryHi.Value != rTLB.m_tlb[i].EntryHi.Value)
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
LogFile.LogF("TLB[%d] EntryHi: %X %X\r\n", i, m_tlb[i].EntryHi.Value, rTLB.m_tlb[i].EntryHi.Value);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
|
|
|
if (m_tlb[i].EntryLo0.Value != rTLB.m_tlb[i].EntryLo0.Value)
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
LogFile.LogF("TLB[%d] EntryLo0: %X %X\r\n", i, m_tlb[i].EntryLo0.Value, rTLB.m_tlb[i].EntryLo0.Value);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
|
|
|
if (m_tlb[i].EntryLo1.Value != rTLB.m_tlb[i].EntryLo1.Value)
|
|
|
|
{
|
2015-12-10 19:08:39 +00:00
|
|
|
LogFile.LogF("TLB[%d] EntryLo1: %X %X\r\n", i, m_tlb[i].EntryLo1.Value, rTLB.m_tlb[i].EntryLo1.Value);
|
2015-11-09 06:21:32 +00:00
|
|
|
}
|
|
|
|
}
|
2012-09-28 20:17:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CTLB::operator == (const CTLB& rTLB) const
|
|
|
|
{
|
2015-11-09 21:22:53 +00:00
|
|
|
const size_t n = sizeof(m_tlb) / sizeof(m_tlb[0]);
|
2015-11-09 19:50:16 +00:00
|
|
|
for (size_t i = 0; i < n; i++)
|
2015-11-09 06:21:32 +00:00
|
|
|
{
|
|
|
|
if (m_tlb[i].EntryDefined != rTLB.m_tlb[i].EntryDefined)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (!m_tlb[i].EntryDefined)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (m_tlb[i].PageMask.Value != rTLB.m_tlb[i].PageMask.Value ||
|
|
|
|
m_tlb[i].EntryHi.Value != rTLB.m_tlb[i].EntryHi.Value ||
|
|
|
|
m_tlb[i].EntryLo0.Value != rTLB.m_tlb[i].EntryLo0.Value ||
|
|
|
|
m_tlb[i].EntryLo1.Value != rTLB.m_tlb[i].EntryLo1.Value)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
2012-09-28 20:17:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CTLB::operator != (const CTLB& rTLB) const
|
|
|
|
{
|
2015-11-09 06:21:32 +00:00
|
|
|
return !(*this == rTLB);
|
2015-12-10 19:08:39 +00:00
|
|
|
}
|