From: kajoljain379 Date: Wed, 20 Mar 2019 09:54:48 +0000 (+0530) Subject: arch-power: Added functionality to update Reference and Change bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67b8a882447953722c563de9e3599fc8e852684d;p=gem5.git arch-power: Added functionality to update Reference and Change bit * Update the "Reference" and the "Change" bits on the page-table entry whenever a page is accessed. Change-Id: Iced7c10019e1ebe618f9723a65c6812d992bf27e Signed-off-by: kajoljain379 --- diff --git a/src/arch/power/radixwalk.cc b/src/arch/power/radixwalk.cc index ded483033..a0e88ed2e 100644 --- a/src/arch/power/radixwalk.cc +++ b/src/arch/power/radixwalk.cc @@ -514,6 +514,13 @@ RadixWalk::walkTree(Addr vaddr ,uint64_t curBase ,ThreadContext * tc , DPRINTF(RadixWalk,"Fault is due to protection violation\n"); } + rpte.ref = 1; + if (mode == BaseTLB::Write) { + rpte.c = 1; + } + gtobe(rpte); + this->writePhysMem(rpte, dataSize); + return AddrTran; }