Module Name:    src
Committed By:   snj
Date:           Tue Jan 12 10:18:44 UTC 2016

Modified Files:
        src/sys/arch/arm/arm [netbsd-7-0]: cpufunc.c

Log Message:
Pull up following revision(s) (requested by skrll in ticket #1060):
        sys/arch/arm/arm/cpufunc.c: revision 1.159
PR port-arm/50512: Source code condition impossible
Fix condition which broke ARM1136 function selection when ARM1176 support
was added


To generate a diff of this commit:
cvs rdiff -u -r1.150.2.1 -r1.150.2.1.2.1 src/sys/arch/arm/arm/cpufunc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm/cpufunc.c
diff -u src/sys/arch/arm/arm/cpufunc.c:1.150.2.1 src/sys/arch/arm/arm/cpufunc.c:1.150.2.1.2.1
--- src/sys/arch/arm/arm/cpufunc.c:1.150.2.1	Wed May 27 05:33:29 2015
+++ src/sys/arch/arm/arm/cpufunc.c	Tue Jan 12 10:18:44 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpufunc.c,v 1.150.2.1 2015/05/27 05:33:29 msaitoh Exp $	*/
+/*	$NetBSD: cpufunc.c,v 1.150.2.1.2.1 2016/01/12 10:18:44 snj Exp $	*/
 
 /*
  * arm7tdmi support code Copyright (c) 2001 John Fremlin
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.150.2.1 2015/05/27 05:33:29 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.150.2.1.2.1 2016/01/12 10:18:44 snj Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_cpuoptions.h"
@@ -1920,7 +1920,7 @@ set_cpufuncs(void)
 	    cputype == CPU_ID_ARM1176JZS) {
 		cpufuncs = arm11_cpufuncs;
 #if defined(CPU_ARM1136)
-		if (cputype == CPU_ID_ARM1136JS &&
+		if (cputype == CPU_ID_ARM1136JS ||
 		    cputype == CPU_ID_ARM1136JSR1) {
 			cpufuncs = arm1136_cpufuncs;
 			if (cputype == CPU_ID_ARM1136JS)

Reply via email to