Date: Tue, 23 Aug 2016 04:26:30 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r304655 - head/sys/powerpc/booke Message-ID: <201608230426.u7N4QUHl081340@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608230426.u7N4QUHl081340>