Sun Jul 31 15:36:28 2011 UTC ()
Add CPU_MIPS_LOONGSON2 flag (rather defining a CPU_ARCH_MIPS3_LOONGSON2).
This is much less intrusive and disruptive.


(matt)
diff -r1.103 -r1.104 src/sys/arch/mips/include/cpu.h

cvs diff -r1.103 -r1.104 src/sys/arch/mips/include/cpu.h (expand / switch to context diff)
--- src/sys/arch/mips/include/cpu.h 2011/07/06 09:27:35 1.103
+++ src/sys/arch/mips/include/cpu.h 2011/07/31 15:36:28 1.104
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.h,v 1.103 2011/07/06 09:27:35 matt Exp $	*/
+/*	$NetBSD: cpu.h,v 1.104 2011/07/31 15:36:28 matt Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -280,6 +280,7 @@
 #define	CPU_MIPS_I_D_CACHE_COHERENT	0x0800	/* I-cache funcs don't need to flush the D-cache */
 #define	CPU_MIPS_NO_LLADDR		0x1000
 #define	CPU_MIPS_HAVE_MxCR		0x2000	/* have mfcr, mtcr insns */
+#define	CPU_MIPS_LOONGSON2		0x4000
 #define	MIPS_NOT_SUPP			0x8000
 
 #endif	/* !_LOCORE */