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
cee5f8c9
Commit
cee5f8c9
authored
Jun 15, 2012
by
Matthias Braun
Browse files
fix warning
parent
2f448650
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_architecture.c
View file @
cee5f8c9
...
...
@@ -24,6 +24,7 @@
*/
#include
"config.h"
#include
<stdbool.h>
#include
"lc_opts.h"
#include
"lc_opts_enum.h"
...
...
@@ -762,9 +763,10 @@ static void x86_cpuid(cpuid_registers *regs, unsigned level)
#endif
}
static
int
x86_toogle_cpuid
(
void
)
static
bool
x86_toogle_cpuid
(
void
)
{
unsigned
eflags_before
=
0
,
eflags_after
=
0
;
unsigned
eflags_before
=
0
;
unsigned
eflags_after
=
0
;
#if defined(__GNUC__)
#ifdef __i386__
...
...
@@ -781,8 +783,7 @@ static int x86_toogle_cpuid(void)
:
"=r"
(
eflags_before
),
"=r"
(
eflags_after
)
::
"cc"
);
#else
/* cpuid always available on 64bit */
return
true
;
eflags_after
=
0x00200000
;
#endif
#elif defined(_MSC_VER)
#if defined(_M_IX86)
...
...
@@ -798,7 +799,7 @@ static int x86_toogle_cpuid(void)
mov
eflags_after
,
eax
}
#else
return
true
;
eflags_after
=
0x00200000
;
#endif
#endif
return
(
eflags_before
^
eflags_after
)
&
0x00200000
;
...
...
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