summaryrefslogtreecommitdiff
path: root/libcpu/i386_disasm.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-01-22 06:08:30 +0000
committerUlrich Drepper <drepper@redhat.com>2008-01-22 06:08:30 +0000
commit06ec9db81eb938c7ece66f1a8667a1e2b346dae3 (patch)
treed7b4bcc14292dfd968b16919cdb0c23949dbfa92 /libcpu/i386_disasm.c
parent4d8bc811506292938ab66120e51c9810e1d21c3d (diff)
downloadelfutils-06ec9db81eb938c7ece66f1a8667a1e2b346dae3.tar.gz
Fix problems in last checkin.
Diffstat (limited to 'libcpu/i386_disasm.c')
-rw-r--r--libcpu/i386_disasm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c
index 9024571c..843fd749 100644
--- a/libcpu/i386_disasm.c
+++ b/libcpu/i386_disasm.c
@@ -589,22 +589,26 @@ i386_disasm (const uint8_t **startp, const uint8_t *end, GElf_Addr addr,
#endif
case 0x98:
+#ifdef X86_64
if (prefixes == (has_rex_w | has_rex))
{
str = "cltq";
break;
}
+#endif
if (prefixes & ~has_data16)
goto print_prefix;
str = prefixes & has_data16 ? "cbtw" : "cwtl";
break;
case 0x99:
+#ifdef X86_64
if (prefixes == (has_rex_w | has_rex))
{
str = "cqto";
break;
}
+#endif
if (prefixes & ~has_data16)
goto print_prefix;
str = prefixes & has_data16 ? "cwtd" : "cltd";