svn commit: r303817 - head/sys/powerpc/include
Justin Hibbits
jhibbits at FreeBSD.org
Sun Aug 7 19:09:58 UTC 2016
Author: jhibbits
Date: Sun Aug 7 19:09:56 2016
New Revision: 303817
URL: https://svnweb.freebsd.org/changeset/base/303817
Log:
Set EN_MAS7_UPDATE HID0 bit for e500 core.
Without enabling this bit, tlbre and tlbsx don't update the MAS7 register,
resulting in garbage in the register after a read (rather, the previous setting
of it for a tlbwe). This can result in mmu_booke_mapdev_attr() thinking
mappings that should match actually don't, because tlb1_read_entry() can't
determine the correct address of a given entry.
MFC after: 11-RELEASE
Modified:
head/sys/powerpc/include/hid.h
Modified: head/sys/powerpc/include/hid.h
==============================================================================
--- head/sys/powerpc/include/hid.h Sun Aug 7 18:12:36 2016 (r303816)
+++ head/sys/powerpc/include/hid.h Sun Aug 7 19:09:56 2016 (r303817)
@@ -208,7 +208,8 @@
#define HID1_E500_ASTME 0x00002000 /* Address bus streaming mode enable */
#define HID1_E500_RFXE 0x00020000 /* Read fault exception enable */
-#define HID0_E500_DEFAULT_SET (HID0_EMCP | HID0_E500_TBEN)
+#define HID0_E500_DEFAULT_SET (HID0_EMCP | HID0_E500_TBEN | \
+ HID0_E500_MAS7UPDEN)
#define HID1_E500_DEFAULT_SET (HID1_E500_ABE | HID1_E500_ASTME)
#define HID0_E500MC_DEFAULT_SET (HID0_EMCP | HID0_E500MC_L2MMU_MHD | \
HID0_E500_MAS7UPDEN)
More information about the svn-src-head
mailing list