2012-07-03 11:59:04 +02:00
|
|
|
From: Stephan Kulow <coolo@suse.de>, Bernhard M. Wiedemann <bwiedemann@suse.de>
|
2012-05-29 10:10:16 +02:00
|
|
|
|
|
|
|
KVM defaults to a basically non-existant CPUid, so it needs special
|
|
|
|
handling model 1 is Pentium Pro (1995) and model 3 is Pentium II (1997),
|
|
|
|
model 2 was never released
|
|
|
|
|
|
|
|
Index: gmp-5.0.5/mpn/x86_64/fat/fat.c
|
|
|
|
===================================================================
|
2012-07-03 11:59:04 +02:00
|
|
|
--- gmp-5.0.5.orig/mpn/x86_64/fat/fat.c
|
|
|
|
+++ gmp-5.0.5/mpn/x86_64/fat/fat.c
|
2012-05-29 10:10:16 +02:00
|
|
|
@@ -201,9 +201,12 @@ __gmpn_cpuvec_init (void)
|
|
|
|
case 6:
|
|
|
|
switch (model)
|
|
|
|
{
|
|
|
|
+ case 0x02: /* KVM default */
|
|
|
|
+ /* generic will do */
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
case 0x00:
|
|
|
|
case 0x01:
|
|
|
|
- case 0x02:
|
|
|
|
case 0x03:
|
|
|
|
case 0x04:
|
|
|
|
case 0x05:
|
2012-07-03 11:59:04 +02:00
|
|
|
@@ -276,8 +279,10 @@ __gmpn_cpuvec_init (void)
|
|
|
|
{
|
|
|
|
switch (family)
|
|
|
|
{
|
|
|
|
- case 5:
|
|
|
|
case 6:
|
|
|
|
+ if(model == 2) /* KVM default */
|
|
|
|
+ break; /* generic will do */
|
|
|
|
+ case 5:
|
|
|
|
abort ();
|
|
|
|
|
|
|
|
case 15: /* k8 */
|