1 |
From 5f7b4a3de6aea5c575c9cf5c92fbfe02bf0e70ce Mon Sep 17 00:00:00 2001 |
2 |
From: unknown author <cooker@mandrivalinux.org> |
3 |
Date: Mon, 5 Jan 2009 13:29:57 +0000 |
4 |
Subject: [PATCH 34/35] transmeta crusoe is 686 |
5 |
|
6 |
--- |
7 |
lib/rpmrc.c | 5 +++++ |
8 |
1 files changed, 5 insertions(+), 0 deletions(-) |
9 |
|
10 |
diff --git a/lib/rpmrc.c b/lib/rpmrc.c |
11 |
index 12d1275..476f45e 100644 |
12 |
--- a/lib/rpmrc.c |
13 |
+++ b/lib/rpmrc.c |
14 |
@@ -847,6 +847,11 @@ static inline int RPMClass(void) |
15 |
|
16 |
sigaction(SIGILL, &oldsa, NULL); |
17 |
|
18 |
+#define USER686 ((1<<4) | (1<<8) | (1<<15)) |
19 |
+ /* Transmeta Crusoe CPUs say that their CPU family is "5" but they have enough features for i686. */ |
20 |
+ if(cpu == 5 && (cap & USER686) == USER686) |
21 |
+ return 6; |
22 |
+ |
23 |
if (cpu < 6) |
24 |
return cpu; |
25 |
|
26 |
-- |
27 |
1.6.1.3 |
28 |
|