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