Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc32, leon: Require separate snoop tags set to regard snooping to be enabled

Even if data snooping is enabled, without separate snoop tags snooping will not
work when the MMU is enabled.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Andreas Larsson and committed by
David S. Miller
e8e2bfd1 f118e9ab

+1 -1
+1 -1
arch/sparc/include/asm/leon.h
··· 108 108 { 109 109 u32 cctrl; 110 110 __asm__ __volatile__("lda [%%g0] 2, %0\n\t" : "=r"(cctrl)); 111 - return (cctrl >> 23) & 1; 111 + return ((cctrl >> 23) & 1) && ((cctrl >> 17) & 1); 112 112 }; 113 113 114 114 static inline void sparc_leon3_disable_cache(void)