1 2014-10-29 Jose E. Marchesi <jose.marchesi@oracle.com>
3 * Makefile.am (AM_CFLAGS): Use -fPIC instead of -fpic to avoid
4 relocation overflows in some platforms.
6 2014-04-13 Mark Wielaard <mjw@redhat.com>
8 * Makefile.am (i386_gendis_LDADD): Remove libmudflap.
10 2013-04-24 Mark Wielaard <mjw@redhat.com>
12 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
14 2012-10-10 Roland McGrath <roland@hack.frob.com>
16 * Makefile.am (%_defs, $(srcdir)/%_dis.h): Redirect to temp file,
17 mv into place with separate command.
19 2012-06-26 Roland McGrath <roland@hack.frob.com>
21 * Makefile.am [!MAINTAINER_MODE] ($(srcdir)/%_dis.h): New rule.
23 2012-02-24 Mark Wielaard <mjw@redhat.com>
25 * Makefile.am (CLEANFILES): Move %_dis.h to...
26 (MAINTAINERCLEANFILES): here.
28 2012-01-21 Ulrich Drepper <drepper@gmail.com>
30 * i386_disasm.c (ADD_NSTRING): Define.
31 (i386_disasm): Print color codes in the appropriate places.
33 2011-10-16 Roland McGrath <roland@hack.frob.com>
35 * Makefile.am (libcpu_i386_a_SOURCES): Add i386_dis.h.
36 (libcpu_x86_64_a_SOURCES): Add x86_64_dis.h.
37 (i386_disasm.o, x86_64_disasm.o): Depend on those in $(srcdir).
38 (%_dis.h): Renamed target pattern to ...
39 ($(srcdir)/%_dis.h): ... this.
40 (noinst_HEADERS, noinst_PROGRAMS): Put under [MAINTAINER_MODE].
42 2010-08-16 Roland McGrath <roland@redhat.com>
44 * Makefile.am (%_defs): New pattern rule.
45 (%_dis.h, %.mnemonics): Define as pattern rules using %_defs input.
46 (CLEANFILES): Include all those files.
48 2010-02-15 Roland McGrath <roland@redhat.com>
50 * Makefile.am: Use config/eu.am for common stuff.
52 2009-04-14 Roland McGrath <roland@redhat.com>
54 * Makefile.am (AM_CFLAGS): Add -fdollars-in-identifiers; it is not the
55 default on every machine.
57 2009-01-23 Roland McGrath <roland@redhat.com>
59 * Makefile.am (i386_parse_CFLAGS): Use quotes around command
60 substitution that can produce leading whitespace.
62 2009-01-01 Ulrich Drepper <drepper@redhat.com>
64 * i386_parse.y (instrtable_out): Optimize match_data table by not
65 emitting 0xff masks for leading bytes.
66 * i386_disasm.c (i386_disasm): Adjust reader of match_data.
68 * i386_disasm.c (i386_disasm): Reset bufcnt when not matched. We
69 don't expect snprintf to fail.
71 2008-12-31 Ulrich Drepper <drepper@redhat.com>
73 * defs/i386: Add dppd, dpps, insertps, movntdqa, mpsadbw, packusdw,
74 pblendvb, pblendw, pcmpeqq, pcmpestri, pcmpestrm, pcmpistri, pcmpistrm,
75 pcmpgtq, phminposuw, pinsrb, pinsrd, pmaxsb, pmaxsd, pmaxud, pmaxuw,
76 pminsb, pminsd, pminud, pminuw, pmovsxbw, pmovsxbd, pmovsxbq, pmovsxwd,
77 pmovsxwq, pmovsxdq, pmovzxbw, pmovzxbd, pmovzxbq, pmovzxwd, pmovzxwq,
78 pmovzxdq, pmuldq, pmulld, popcnt, ptest, roundss, roundps, roundpd,
81 * i386_disasm.c (i386_disasm): Correct resizing of buffer.
83 * i386_parse.y (struct argstring): Add off element.
84 (off_op_str): New global variable.
85 (print_op_str): Print strings as concatenated strings. Keep track
86 of index and length. Update ->off element.
87 (print_op_str_idx): New function.
88 (instrtable_out): Mark op%d_fct as const.
89 Emit two tables for the strings: the string itself (op%d_str) and the
90 index table (op%d_str_idx).
91 * i386_disasm.c (i386_disasm): Adjust for new op%d_str definition.
93 * i386_disasm.c [X86_64] (i386_disasm): Handle rex prefix when
96 * i386_disasm.c (i386_disasm): Minor optimizations.
98 * i386_parse.y (instrtable_out): No need to emit index, the reader can
100 * i386_disasm.c (i386_disasm): The index is not emitted anymore, no
103 * i386_disasm.c (amd3dnow): Mark as const.
105 * defs/i386: Add blendvpd and blendvps opcodes.
107 2008-12-30 Ulrich Drepper <drepper@redhat.com>
109 * defs/i386: Add blendpd and blendps opcodes.
111 2008-12-19 Ulrich Drepper <drepper@redhat.com>
113 * defs/i386: Add entry for AMD 3DNOW.
114 * i386_disasm.c: Implement AMD 3DNOW disassembly.
116 2008-12-17 Ulrich Drepper <drepper@redhat.com>
118 * i386_disasm.c (i386_disasm): If instruction matches prefix,
119 undoing the prefix match finishes the instruction.
121 2008-01-21 Roland McGrath <roland@redhat.com>
123 * defs/i386: Fix typo in comment.
124 * i386_disasm.c (i386_disasm): Handle cltq, cqto.
126 * i386_parse.y: Add sanity check for NMNES macro value.
127 * Makefile.am (i386_parse.o): Fix target in dependency rule.
128 (i386_parse.h): New target with empty commands.
129 (i386_lex.o): Depend on it in place of i386_parse.c.
131 2008-01-21 Ulrich Drepper <drepper@redhat.com>
133 * Makefile.am (EXTRA_DIST): Remove defs/x86_64.
135 2008-01-14 Ulrich Drepper <drepper@redhat.com>
137 * defs/i386: Add fixes for opcodes with register number in opcode,
138 64-bit immediate forms, nop with rex.B.
139 * i386_data.h [X86_64] (FCT_imm64$w): New function.
140 (FCT_oreg): New function.
141 (FCT_oreg$w): New function.
142 * i386_disasm.c (i386_disasm): Reinitialize fmt always before
143 starting the loop to process the string. Handle 0x90 special for
145 * i386_parse.y (fillin_arg): Expand synonyms before concatening to
146 form the function name.
148 2008-01-11 Ulrich Drepper <drepper@redhat.com>
150 * i386_disasm.c (struct output_buffer): Remove symcb and symcbarg.
151 (i386_disasm): Remove appropriate initializers.
152 Use symcb to lookup symbol strings.
154 * i386_disasm.c (struct output_buffer): Add labelbuf, labelbufsize,
155 symaddr_use, and symaddr fields.
156 (i386_disasm): Remove labelbuf and labelbufsize variables.
157 Add back %e format. Implement %a and %l formats.
159 * i386_data.h (general_mod$r_m): Set symaddr_use and symaddr for %rip
162 * i386_disasm.c (i386_disasm): Resize output buffer if necessary.
163 Optimize output_data initialization. Free buffers before return.
164 (struct output_data): Remove op1str field. Adjust code.
165 (i386_disasm): Store final NUL btye at end of functions.
167 2008-01-10 Ulrich Drepper <drepper@redhat.com>
169 * i386_data.h (FCT_crdb): New function.
170 (FCT_ccc): Use FCT_crdb.
173 * defs/i386: Fix a few instructions with immediate arguments.
175 * i386_disasm.c: Rewrite interface to callback functions for operands
176 to take a single pointer to a structure.
177 * i386_data.h: Adjust all functions.
179 2008-01-08 Ulrich Drepper <drepper@redhat.com>
181 * Makefile.am: Enable x86-64 again.
182 * defs/i386: Lots of changes for x86-64.
183 * i386_data.h: Add support for use in x86-64 disassembler.
184 * i386_disasm.c: Likewise.
185 * i386_parse.y: Likewise.
186 * defs/x86_64: Removed.
188 2008-01-04 Ulrich Drepper <drepper@redhat.com>
190 * defs/i386: Cleanups, remove masks which are not needed.
191 Add remaining Intel opcodes.
192 * i386_data.h (FCT_imm8): Check for input buffer overrun.
193 * i386_disasm.c (i386_disasm): Likewise.
194 * i386_parse.y: Remove suffixes which are not needed anymore.
196 2008-01-03 Ulrich Drepper <drepper@redhat.com>
198 * defs/i386: Add yet more SSE instructions.
200 2008-01-02 Ulrich Drepper <drepper@redhat.com>
202 * i386_disasm.c (i386_disasm): Extend matcher to allow tables to
203 contain instructions with prefixes.
204 * defs/i386: Use for many SSE operations.
205 * i386_data.h (FCT_mmxreg2): Removed.
207 2008-01-01 Ulrich Drepper <drepper@redhat.com>
209 * defs/i386: More 0f prefix support.
210 * i386_data.h (FCT_mmxreg): Implement.
211 (FCT_mmxreg2): Implement.
213 * i386_disasm.c (i386_disasm): More special instructions.
214 Fix tttn suffix for cmov.
215 * i386_parse.y: Simplify test for mod/r_m mode.
217 2007-12-31 Ulrich Drepper <drepper@redhat.com>
219 * defs/i386: Fix order or arguments for mov of control/debug registers.
220 * i386_data.h (FCT_ccc): Implement
223 2007-12-30 Ulrich Drepper <drepper@redhat.com>
225 * defs/i386: Fix 0f groups 6 and 7.
226 * i386_data.c (FCT_mod$16r_m): Implement.
227 * i386_disasm.c (i386_disasm): Third parameter can also have string.
229 2007-12-29 Ulrich Drepper <drepper@redhat.com>
231 * defs/i386: Add lots of floating point ops.
232 * i386_data.h (FCT_fmod$fr_m): Removed.
233 (FCT_freg): Implement.
234 * i386_disasm.c (i386_disasm): Implement suffix_D.
235 * i386_parse.y: Emit suffix_D.
237 * defs/i386: Use rel instead of dispA.
238 Fix lcall, dec, div, idiv, imul, inc, jmp, ljmp, mul, neg, not, push,
241 * i386_data.h (FCT_dispA): Removed.
242 (FCT_ds_xx): Add test for end of input buffer.
243 * i386_disasm.c (ABORT_ENTRY): Removed.
244 (i386_disasm): Fix handling of SIB. Pass correct address value to
247 * Makefile.am (*.mnemonics): Filter out INVALID entry.
248 * defs/i386: Define imms8 and use in appropriate places.
249 Add INVALID entries for special opcodes with special mnemonics.
250 Fix int3. Fix typo in shl. Correct xlat.
251 * i386_data.h (FCT_ds_xx): New function.
253 (FCT_ds_bx): New function.
254 (FCT_imms8): New function.
255 * i386_disasm.c (MNE_INVALID): Define.
256 (i386_disasm): Handle invalid opcodes in mnemonics printing, not
257 separately. Fix address value passed to operand handlers.
258 * i386_parse.y (bx_reg): Define.
259 (instrtable_out): Handle INVALID entries differently, just use
260 MNE_INVALID value for .mnemonic.
262 2007-12-28 Ulrich Drepper <drepper@redhat.com>
264 * defs/i386: Fix shift and mov immediate instructions.
265 * i386_data.h (FCT_imm16): Implement.
267 * defs/i386: Use absval instead of abs of lcall and ljmp.
268 Add parameters for cmps. Fix test and mov immediate.
269 * i386_data.h: Implement FCT_absval.
270 * i386_disasm.c: Handle data16 for suffix_w and FCT_imm.
272 * defs/i386: Move entries with 0x9b prefix together.
273 * i386_disasm.c (i386_disasm): Fix recognizing insufficient bytes in
274 input. Handle data16 with suffix_W.
276 * i386_data.h (FCT_*): Add end parameter to all functions. Check
277 before using more bytes.
278 (FCT_sel): Implement.
279 * i386_disasm.c (i386_disasm): Better handle end of input buffer.
282 * Makefile.am: Use m4 to preprocess defs/* files.
283 * defs/i386: Adjust appropriately.
284 * i386_data.c (FCT_ax): Implement.
285 (FCT_ax$w): Use FCT_ax.
286 * i386_disasm.c (ADD_STRING): Use _len instead of len.
287 (i386_disasm): If no instruction can be matched because of lack of
288 input and prefixes have been matched, print prefixes.
289 Recognize abort entries.
290 Handle special cases.
291 * i386_gendis.c: Recognize - input file name.
292 * i386_lex.c: Recognize INVALID token.
293 * i386_parse.y: Handle INVALID token input.
295 * defs/i386: Fix mov, pop.
296 * i386_data.h (FCT_sreg3): Implement.
298 2007-12-27 Ulrich Drepper <drepper@redhat.com>
300 * defs/i386: Fix adc, add, cmp, or, sbb, sub, xchg, xor.
301 * i386_data.h (FCT_imms): New function.
302 (FCT_imm$s): Use FCT_imms for handling of signed values.
303 (FCT_imm8): Sign extend values.
304 * i386_disasm.c (i386_disasm): Implement suffix_w0.
305 * i386_parse.y: Emit suffix w0.
307 * i386_data.h (FCT_disp8): Add 0x prefix.
308 (FCT_ds_si): Implement.
309 * i386_disasm.c (i386_disasm): Increment addr for invalid prefixes.
310 Implement tttn suffix.
311 * i386_parse.y: Emit tttn suffix definition.
313 2007-12-26 Ulrich Drepper <drepper@redhat.com>
315 * i386_data.h (struct instr_enc): Use suffix field.
316 (FCT_dx): Fill in body.
317 (FCT_es_di): Likewise.
318 (FCT_imm$s): Sign-extended byte values.
319 * i386_disasm.c: Protect ADD_CHAR and ADD_STRING macros. Adjust uses.
320 (i386_disasm): Handle suffix.
321 * i386_parse.y: Emit suffix information.
322 * defs/i386: Remove unnecessary suffixes.
324 * Makefile.am: Disable building x86-64 version for now.
326 * defs/i386: Fix and, bound, cmp, or, pop, sbb, sub, xor.
327 * i386_data.h: Pass pointer to prefix to functions. If not prefixes
328 are consumed this means invalid input.
329 * i386_disasm.c: Fix prefix printing. Adjust function calls for
331 * i386_parse.y: Recognize moda prefix.
333 2007-12-21 Ulrich Drepper <drepper@redhat.com>
335 * i386_data.h: Fix SIB handling.
336 * i386_disasm.c: Likewise.
338 2007-12-19 Ulrich Drepper <drepper@redhat.com>
340 * defs/i386: Fix up 'and' opcode.
342 2007-10-31 Ulrich Drepper <drepper@redhat.com>
344 * Makefile.am: Add dependencies of the generated files on the source
346 (i386_lex_CFLAGS): Add -Wno-sign-compare.
348 * defs/i386: A lot more data.
349 * defs/x86_64: Likewise.
350 * i386_data.h (struct instr_enc): Add off1_3, off2_3, and off3_3
352 (opfct_t): Add parameter for third operand.
354 (data_prefix): New function.
355 (FCT_abs): Implement.
356 (FCT_ax): Renamed to FCT_ax$w amd implement.
357 (FCT_disp8): Implement.
358 (FCT_dispA): Implement.
359 (FCT_imm): Implement.
360 (FCT_imm$w): Implement.
361 (FCT_imm$s): Don't zero-pad numbers.
362 (FCT_imm8): Likewise.
364 (general_mod$r_m): New function.
365 (FCT_mod$r_m): Use it.
366 (FCT_mod$r_m$w): New function.
367 (FCT_mod$8r_m): New function.
368 (FCT_reg): Correctly handle 16-bit registers.
369 (FCT_reg$w): New function.
370 * i386_disasm.c (i386_disasm): Handle prefixes better.
371 Pass third parameter to operand functions.
372 * i386_parse.y (struct instruction): Add off3 field.
373 Handle third operand throughout.
375 2007-02-05 Ulrich Drepper <drepper@redhat.com>
377 * i386_disasm.c: New file.
378 * i386_data.h: New file.
379 * i386_gendis.c: New file.
380 * i386_lex.l: New file.
381 * i386_parse.y: New file.
382 * memory-access.h: New file.
383 * x86_64_disasm.c: New file.
384 * defs/i386: New file.
385 * defs/i386.doc: New file.
386 * defs/x86_64: New file.
388 2005-02-15 Ulrich Drepper <drepper@redhat.com>
390 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
392 2005-02-05 Ulrich Drepper <drepper@redhat.com>
394 * Makefile.am (AM_CFLAGS): Define, instead of adding things to DEFS.
396 2003-08-11 Ulrich Drepper <drepper@redhat.com>
398 * Moved to CVS archive.