svn commit: r304655 - head/sys/powerpc/booke
Justin Hibbits
jhibbits at FreeBSD.org
Tue Aug 23 04:26:31 UTC 2016
Author: jhibbits
Date: Tue Aug 23 04:26:30 2016
New Revision: 304655
URL: https://svnweb.freebsd.org/changeset/base/304655
Log:
Take into account mas7/8 when reading/writing TLB entries on e6500
Summary: Current booke/pmap code ignores mas7 and mas8 on e6500 CPU.
Submitted by: Ivan Krivonos <int0dster_gmail.com>
Differential Revision: https://reviews.freebsd.org/D7606
Modified:
head/sys/powerpc/booke/pmap.c
Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c Tue Aug 23 02:54:06 2016 (r304654)
+++ head/sys/powerpc/booke/pmap.c Tue Aug 23 04:26:30 2016 (r304655)
@@ -3166,6 +3166,7 @@ tlb1_read_entry(tlb_entry_t *entry, unsi
case FSL_E500v2:
case FSL_E500mc:
case FSL_E5500:
+ case FSL_E6500:
entry->mas7 = mfspr(SPR_MAS7);
break;
default:
@@ -3206,6 +3207,7 @@ tlb1_write_entry(tlb_entry_t *e, unsigne
switch ((mfpvr() >> 16) & 0xFFFF) {
case FSL_E500mc:
case FSL_E5500:
+ case FSL_E6500:
mtspr(SPR_MAS8, 0);
__asm __volatile("isync");
/* FALLTHROUGH */
More information about the svn-src-head
mailing list