Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d478ac59
Commit
d478ac59
authored
Aug 04, 2014
by
Ganesh Gopalasubramanian
Committed by
Ganesh Gopalasubramanian
Aug 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compute extend family info for AMD CPU and update for BTVER2
From-SVN: r213544
parent
b085b0e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/ChangeLog
+5
-0
gcc/config/i386/driver-i386.c
+3
-2
No files found.
gcc/ChangeLog
View file @
d478ac59
2014
-
08
-
04
Ganesh
Gopalasubramanian
<
Ganesh
.
Gopalasubramanian
@
amd
.
com
>
*
config
/
i386
/
driver
-
i386
.
c
(
host_detect_local_cpu
):
Handle
AMD
's extended
family information. Handle BTVER2 cpu with cpuid family value.
2014-08-04 Tom de Vries <tom@codesourcery.com>
* doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
...
...
gcc/config/i386/driver-i386.c
View file @
d478ac59
...
...
@@ -432,7 +432,8 @@ const char *host_detect_local_cpu (int argc, const char **argv)
model
=
(
eax
>>
4
)
&
0x0f
;
family
=
(
eax
>>
8
)
&
0x0f
;
if
(
vendor
==
signature_INTEL_ebx
)
if
(
vendor
==
signature_INTEL_ebx
||
vendor
==
signature_AMD_ebx
)
{
unsigned
int
extended_model
,
extended_family
;
...
...
@@ -576,7 +577,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
if
(
name
==
signature_NSC_ebx
)
processor
=
PROCESSOR_GEODE
;
else
if
(
has_movbe
)
else
if
(
has_movbe
&&
family
==
22
)
processor
=
PROCESSOR_BTVER2
;
else
if
(
has_avx2
)
processor
=
PROCESSOR_BDVER4
;
...
...
Write
Preview
Markdown
is supported
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