Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5691a23a
Commit
5691a23a
authored
Dec 04, 2010
by
Michael Beck
Browse files
Improved AMD detection.
[r28181]
parent
e25f1843
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_architecture.c
View file @
5691a23a
...
...
@@ -619,14 +619,50 @@ static cpu_support auto_detect_AMD(x86_cpu_info_t const *info) {
auto_arch
=
arch_i486
;
break
;
case
0x05
:
case
0x06
:
// actually, 6 means K7 family
auto_arch
=
arch_k6
;
switch
(
model
)
{
case
0x00
:
/* K5 Model 0 */
case
0x01
:
/* K5 Model 1 */
case
0x02
:
/* K5 Model 2 */
case
0x03
:
/* K5 Model 3 */
auto_arch
=
arch_pentium
;
break
;
case
0x06
:
/* K6 Model 6 */
case
0x07
:
/* K6 Model 7 */
case
0x08
:
/* K6-2 Model 8 */
case
0x09
:
/* K6-III Model 9 */
case
0x0D
:
/* K6-2+ or K6-III+ */
auto_arch
=
arch_k6
;
break
;
case
0x0A
:
auto_arch
=
arch_geode
;
break
;
default:
/* unknown */
break
;
}
break
;
case
0x06
:
switch
(
model
)
{
case
0x01
:
/* Athlon Model 1 */
case
0x02
:
/* Athlon Model 2 */
case
0x03
:
/* Duron Model 3 */
case
0x04
:
/* Athlon Model 4 */
case
0x06
:
/* Athlon MP/Mobile Athlon Model 6 */
case
0x07
:
/* Mobile Duron Model 7 */
case
0x08
:
/* Athlon (TH/AP core) */
case
0x0A
:
/* Athlon (BT core) */
auto_arch
=
arch_athlon
;
break
;
default:
/* unknown K7 */
auto_arch
=
arch_athlon
;
break
;
}
break
;
case
0x0F
:
auto_arch
=
arch_k8
;
break
;
case
0x1F
:
case
0x2F
:
auto_arch
=
arch_k10
;
break
;
default:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment