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