powerpc/booke pmap: Use the right 'tlbilx' form to invalidate TIDs

'tlbilxpid' is 'tlbilx 1, 0', while the existing form is 'tlbilx 0, 0',
which translates to 'tlbilxlpid', invalidating a LDPID.  This effectively
invalidates the entire TLB, causing unnecessary reloads.
This commit is contained in:
Justin Hibbits 2019-11-19 01:28:06 +00:00
parent 061f7e2fd0
commit 7194b0a3b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354838

View File

@ -4254,7 +4254,7 @@ tid_flush(tlbtid_t tid)
case FSL_E6500:
mtspr(SPR_MAS6, tid << MAS6_SPID0_SHIFT);
/* tlbilxpid */
__asm __volatile("isync; .long 0x7c000024; isync; msync");
__asm __volatile("isync; .long 0x7c200024; isync; msync");
__asm __volatile("wrtee %0" :: "r"(msr));
return;
}