+2018-05-31 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/85591
+ * config/i386/cpuinfo.c (get_amd_cpu): Return
+ AMDFAM15H_BDVER2 for AMDFAM15H model 0x2.
+
2018-05-30 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
* crtstuff.c: Remove declaration of _Jv_RegisterClasses.
/* AMD Family 15h "Bulldozer". */
case 0x15:
__cpu_model.__cpu_type = AMDFAM15H;
+
+ if (model == 0x2)
+ __cpu_model.__cpu_subtype = AMDFAM15H_BDVER2;
/* Bulldozer version 1. */
- if ( model <= 0xf)
+ else if (model <= 0xf)
__cpu_model.__cpu_subtype = AMDFAM15H_BDVER1;
/* Bulldozer version 2 "Piledriver" */
- if (model >= 0x10 && model <= 0x2f)
+ else if (model <= 0x2f)
__cpu_model.__cpu_subtype = AMDFAM15H_BDVER2;
/* Bulldozer version 3 "Steamroller" */
- if (model >= 0x30 && model <= 0x4f)
+ else if (model <= 0x4f)
__cpu_model.__cpu_subtype = AMDFAM15H_BDVER3;
/* Bulldozer version 4 "Excavator" */
- if (model >= 0x60 && model <= 0x7f)
+ else if (model <= 0x7f)
__cpu_model.__cpu_subtype = AMDFAM15H_BDVER4;
break;
/* AMD Family 16h "btver2" */