aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/nat/x86-xstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/nat/x86-xstate.c b/gdb/nat/x86-xstate.c
index 9fdc572..5ae014a 100644
--- a/gdb/nat/x86-xstate.c
+++ b/gdb/nat/x86-xstate.c
@@ -42,11 +42,11 @@ xsave_feature_offset (uint64_t xcr0, int feature)
int
x86_xsave_length ()
{
- uint32_t ecx;
+ uint32_t ebx;
- if (!x86_cpuid_count (0xd, 0, nullptr, nullptr, &ecx, nullptr))
+ if (!x86_cpuid_count (0xd, 0, nullptr, &ebx, nullptr, nullptr))
return 0;
- return ecx;
+ return ebx;
}
/* See x86-xstate.h. */