summaryrefslogtreecommitdiff
path: root/sys/arch/mips64/include
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2016-10-09 03:29:54 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2016-10-09 03:29:54 +0000
commita5b0e31e9ea02d5df362cb2f6054d5377d12d71d (patch)
treee030f9a0bb25212bed3cd0fb781b30a90e1b8704 /sys/arch/mips64/include
parent24c70baffd302dd8b571d3f3a2374dae943367ea (diff)
Do not use MIPS64r2 instructions on Loongson 2. Now, a generic loongson
kernel has to learn a new trick in order to use TLB RI/XI on 3A2000.
Diffstat (limited to 'sys/arch/mips64/include')
-rw-r--r--sys/arch/mips64/include/pte.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/include/pte.h b/sys/arch/mips64/include/pte.h
index eb385fa7d40..d982b221c8b 100644
--- a/sys/arch/mips64/include/pte.h
+++ b/sys/arch/mips64/include/pte.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pte.h,v 1.20 2016/09/06 13:41:29 visa Exp $ */
+/* $OpenBSD: pte.h,v 1.21 2016/10/09 03:29:53 visa Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -76,7 +76,7 @@ typedef u_int32_t pt_entry_t;
#define PTE_OFFS 4
#endif
-#ifdef CPU_MIPS64R2
+#if defined(CPU_MIPS64R2) && !defined(CPU_LOONGSON2)
#define PTE_CLEAR_SWBITS(reg) \
.set push; \
.set mips64r2; \