Patchwork add another sandy bridge model number

login
register
mail settings
Submitter Andi Kleen
Date June 8, 2011, 10:09 a.m.
Message ID <20110608100905.GL27166@one.firstfloor.org>
Download mbox | patch
Permalink /patch/99394/
State New
Headers show

Comments

Andi Kleen - June 8, 2011, 10:09 a.m.
Add another sandy bridge model number.

Passes bootstrap & test suite on x86_64-linux. Ok for trunk and 
4.6?

2011-06-6  Andi Kleen  <ak@linux.intel.com>

	* config/i386/driver-i386.c (host_detect_local_cpu):
	Add model 0x2d Intel CPU.
---
 gcc/config/i386/driver-i386.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index 4fc6b45..98cd6f6 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -572,6 +572,7 @@  const char *host_detect_local_cpu (int argc, const char **argv)
 	  cpu = "corei7";
 	  break;
 	case 0x2a:
+	case 0x2d:
 	  /* Sandy Bridge.  */
 	  cpu = "corei7-avx";
 	  break;