summaryrefslogtreecommitdiffstats
path: root/libcpu/i386_disasm.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2009-01-01 18:52:05 -0800
committerUlrich Drepper <[email protected]>2009-01-01 18:52:05 -0800
commit3bf5759aa0cf1cd8f771ce3e34346c7510b89e5f (patch)
tree7eab1fa092b82f560fecff63996ff31c8e3d85e2 /libcpu/i386_disasm.c
parentd4bcd835fa65544190bd746013a0e058cdb4a98e (diff)
Add Intel SSE4 support to disassembler.
Diffstat (limited to 'libcpu/i386_disasm.c')
-rw-r--r--libcpu/i386_disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c
index 76b5a393..a656cdb4 100644
--- a/libcpu/i386_disasm.c
+++ b/libcpu/i386_disasm.c
@@ -408,6 +408,7 @@ i386_disasm (const uint8_t **startp, const uint8_t *end, GElf_Addr addr,
not:
curr = start + 2 * len;
++cnt;
+ bufcnt = 0;
goto next_match;
}
@@ -984,8 +985,7 @@ i386_disasm (const uint8_t **startp, const uint8_t *end, GElf_Addr addr,
r = snprintf (&buf[bufcnt], bufavail, "# %#" PRIx64,
(uint64_t) symaddr);
- if (r < 0)
- goto not;
+ assert (r >= 0);
if ((size_t) r >= bufavail)
goto enomem;
bufcnt += r;