Date: Sun, 7 Aug 2016 19:09:57 +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: r303817 - head/sys/powerpc/include Message-ID: <201608071909.u77J9vX1070497@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608071909.u77J9vX1070497>