Skip to content

Commit f4e2f7c

Browse files
committed
ARC: mm: TLB Miss optim: avoid re-reading ECR
For setting PTE Dirty bit, reuse the prior test for ST miss. No need to reload ECR and test for ST cause code as the prev condition code is still valid (uncloberred) Signed-off-by: Vineet Gupta <[email protected]>
1 parent 0fb1f35 commit f4e2f7c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/arc/mm/tlbex.S

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,7 @@ ENTRY(EV_TLBMissD)
380380

381381
;----------------------------------------------------------------
382382
; UPDATE_PTE: Let Linux VM know that page was accessed/dirty
383-
lr r3, [ecr]
384383
or r0, r0, _PAGE_ACCESSED ; Accessed bit always
385-
btst_s r3, ECR_C_BIT_DTLB_ST_MISS ; See if it was a Write Access ?
386384
or.nz r0, r0, _PAGE_DIRTY ; if Write, set Dirty bit as well
387385
st_s r0, [r1] ; Write back PTE
388386

0 commit comments

Comments
 (0)