From 313bdb8503318cfd738cc4cf9bebb20cdab4e36c Mon Sep 17 00:00:00 2001 From: visa Date: Sun, 9 Oct 2016 03:29:53 +0000 Subject: 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. --- sys/arch/mips64/include/pte.h | 4 ++-- 1 file 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; \ -- cgit v1.2.3-59-g8ed1b