From 81b4c81b84c361e993737e376059698e76d623e8 Mon Sep 17 00:00:00 2001 From: kajoljain379 Date: Wed, 20 Mar 2019 15:24:48 +0530 Subject: [PATCH] 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 --- src/arch/power/radixwalk.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.30.2