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
52bb5a5f
Commit
52bb5a5f
authored
Nov 16, 2014
by
Christoph Mallon
Browse files
ia32: Slightly simplify the gcc PIC special case in x86_cpuid().
parent
28b5ab75
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_architecture.c
View file @
52bb5a5f
...
...
@@ -732,10 +732,9 @@ static void x86_cpuid(cpuid_registers *regs, unsigned level)
#if defined(__GNUC__)
# if defined(__PIC__) && !defined(__amd64) // GCC cannot handle EBX in PIC
__asm
(
"pushl %%ebx
\n\t
"
"cpuid
\n\t
"
"movl %%ebx, %1
\n\t
"
"popl %%ebx"
"cpuid
\n\t
"
"xchgl %%ebx, %1"
:
"=a"
(
regs
->
r
.
eax
),
"=r"
(
regs
->
r
.
ebx
),
"=c"
(
regs
->
r
.
ecx
),
"=d"
(
regs
->
r
.
edx
)
:
"a"
(
level
)
);
...
...
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