* arc-dis.c: Include sysdep.h first, remove some redundant includes.
[external/binutils.git] / opcodes / ChangeLog
1 2012-05-18  Alan Modra  <amodra@gmail.com>
2
3         * arc-dis.c: Include sysdep.h first, remove some redundant includes.
4         * bfin-dis.c: Likewise.
5         * i860-dis.c: Likewise.
6         * ia64-dis.c: Likewise.
7         * ia64-gen.c: Likewise.
8         * m68hc11-dis.c: Likewise.
9         * mmix-dis.c: Likewise.
10         * msp430-dis.c: Likewise.
11         * or32-dis.c: Likewise.
12         * rl78-dis.c: Likewise.
13         * rx-dis.c: Likewise.
14         * tic4x-dis.c: Likewise.
15         * tilegx-opc.c: Likewise.
16         * tilepro-opc.c: Likewise.
17         * rx-decode.c: Regenerate.
18
19 2012-05-17  James Lemke  <jwlemke@codesourcery.com>
20
21         * ppc-opc.c (powerpc_macros): Add entries for e_extlwi to e_clrlslwi.
22
23 2012-05-17  James Lemke  <jwlemke@codesourcery.com>
24
25         * ppc-opc.c (extract_sprg): Use ALLOW8_SPRG to include VLE.
26
27 2012-05-17  Daniel Richard G.  <skunk@iskunk.org>
28             Nick Clifton  <nickc@redhat.com>
29
30         PR 14072
31         * configure.in: Add check that sysdep.h has been included before
32         any system header files.
33         * configure: Regenerate.
34         * config.in: Regenerate.
35         * sysdep.h: Generate an error if included before config.h.
36         * alpha-opc.c: Include sysdep.h before any other header file.
37         * alpha-dis.c: Likewise.
38         * avr-dis.c: Likewise.
39         * cgen-opc.c: Likewise.
40         * cr16-dis.c: Likewise.
41         * cris-dis.c: Likewise.
42         * crx-dis.c: Likewise.
43         * d10v-dis.c: Likewise.
44         * d10v-opc.c: Likewise.
45         * d30v-dis.c: Likewise.
46         * d30v-opc.c: Likewise.
47         * h8500-dis.c: Likewise.
48         * i370-dis.c: Likewise.
49         * i370-opc.c: Likewise.
50         * m10200-dis.c: Likewise.
51         * m10300-dis.c: Likewise.
52         * micromips-opc.c: Likewise.
53         * mips-opc.c: Likewise.
54         * mips61-opc.c: Likewise.
55         * moxie-dis.c: Likewise.
56         * or32-opc.c: Likewise.
57         * pj-dis.c: Likewise.
58         * ppc-dis.c: Likewise.
59         * ppc-opc.c: Likewise.
60         * s390-dis.c: Likewise.
61         * sh-dis.c: Likewise.
62         * sh64-dis.c: Likewise.
63         * sparc-dis.c: Likewise.
64         * sparc-opc.c: Likewise.
65         * spu-dis.c: Likewise.
66         * tic30-dis.c: Likewise.
67         * tic54x-dis.c: Likewise.
68         * tic80-dis.c: Likewise.
69         * tic80-opc.c: Likewise.
70         * tilegx-dis.c: Likewise.
71         * tilepro-dis.c: Likewise.
72         * v850-dis.c: Likewise.
73         * v850-opc.c: Likewise.
74         * vax-dis.c: Likewise.
75         * w65-dis.c: Likewise.
76         * xgate-dis.c: Likewise.
77         * xtensa-dis.c: Likewise.
78         * rl78-decode.opc: Likewise.
79         * rl78-decode.c: Regenerate.
80         * rx-decode.opc: Likewise.
81         * rx-decode.c: Regenerate.
82
83 2012-05-17  Alan Modra  <amodra@gmail.com>
84
85         * ppc_dis.c: Don't include elf/ppc.h.
86
87 2012-05-16  Meador Inge  <meadori@codesourcery.com>
88
89         * arm-dis.c (arm_opcodes): Don't disassemble STMFD/LDMIA sp!, {reg}
90         to PUSH/POP {reg}.
91
92 2012-05-15  James Murray <jsm@jsm-net.demon.co.uk>
93             Stephane Carrez <stcarrez@nerim.fr>
94
95         * configure.in: Add S12X and XGATE co-processor support to m68hc11
96         target.
97         * disassemble.c: Likewise.
98         * configure: Regenerate.
99         * m68hc11-dis.c: Make objdump output more consistent, use hex
100         instead of decimal and use 0x prefix for hex.
101         * m68hc11-opc.c: Add S12X and XGATE opcodes.
102
103 2012-05-14  James Lemke  <jwlemke@codesourcery.com>
104
105         * ppc-dis.c (get_powerpc_dialect): Use is_ppc_vle.
106         (PPC_OPCD_SEGS, VLE_OPCD_SEGS): New defines.
107         (vle_opcd_indices): New array.
108         (lookup_vle): New function.
109         (disassemble_init_powerpc): Revise for second (VLE) opcode table.
110         (print_insn_powerpc): Likewise.
111         * ppc-opc.c: Likewise.
112
113 2012-05-14  Catherine Moore  <clm@codesourcery.com>
114             Maciej W. Rozycki  <macro@codesourcery.com>
115             Rhonda Wittels  <rhonda@codesourcery.com>
116             Nathan Froyd <froydnj@codesourcery.com>
117
118         * ppc-opc.c (insert_arx, extract_arx): New functions.
119         (insert_ary, extract_ary): New functions.
120         (insert_li20, extract_li20): New functions.
121         (insert_rx, extract_rx): New functions.
122         (insert_ry, extract_ry): New functions.
123         (insert_sci8, extract_sci8): New functions.
124         (insert_sci8n, extract_sci8n): New functions.
125         (insert_sd4h, extract_sd4h): New functions.
126         (insert_sd4w, extract_sd4w): New functions.
127         (insert_vlesi, extract_vlesi): New functions.
128         (insert_vlensi, extract_vlensi): New functions.
129         (insert_vleui, extract_vleui): New functions.
130         (insert_vleil, extract_vleil): New functions.
131         (BI_MASK, BB_MASK, BT): Use PPC_OPERAND_CR_BIT.
132         (BI16, BI32, BO32, B8): New.
133         (B15, B24, CRD32, CRS): New.
134         (CRD, OBF, BFA, CR, CRFS): Use PPC_OPERAND_CR_REG.
135         (DB, IMM20, RD, Rx, ARX, RY, RZ): New.
136         (ARY, SCLSCI8, SCLSCI8N, SE_SD, SE_SDH): New.
137         (SH6_MASK): Use PPC_OPSHIFT_INV.
138         (SI8, UI5, OIMM5, UI7, BO16): New.
139         (VLESIMM, VLENSIMM, VLEUIMM, VLEUIMML): New.
140         (XT6, XA6, XB6, XB6S, XC6): Use PPC_OPSHIFT_INV.
141         (ALLOW8_SPRG): New.
142         (insert_sprg, extract_sprg): Check ALLOW8_SPRG.
143         (OPVUP, OPVUP_MASK OPVUP): New
144         (BD8, BD8_MASK, BD8IO, BD8IO_MASK): New.
145         (EBD8IO, EBD8IO1_MASK, EBD8IO2_MASK, EBD8IO3_MASK): New.
146         (BD15, BD15_MASK, EBD15, EBD15_MASK, EBD15BI, EBD15BI_MASK): New.
147         (BD24,BD24_MASK, C_LK, C_LK_MASK, C, C_MASK): New.
148         (IA16, IA16_MASK, I16A, I16A_MASK, I16L, I16L_MASK): New.
149         (IM7, IM7_MASK, LI20, LI20_MASK, SCI8, SCI8_MASK): New.
150         (SCI8BF, SCI8BF_MASK, SD4, SD4_MASK): New.
151         (SE_IM5, SE_IM5_MASK): New.
152         (SE_R, SE_R_MASK, SE_RR, SE_RR_MASK): New.
153         (EX, EX_MASK, BO16F, BO16T, BO32F, BO32T): New.
154         (BO32DNZ, BO32DZ): New.
155         (NO371, PPCSPE, PPCISEL, PPCEFS, MULHW): Include PPC_OPCODE_VLE.
156         (PPCVLE): New.
157         (powerpc_opcodes): Add new VLE instructions.  Update existing
158         instruction to include PPCVLE if supported.
159         * ppc-dis.c (ppc_opts): Add vle entry.
160         (get_powerpc_dialect): New function.
161         (powerpc_init_dialect): VLE support.
162         (print_insn_big_powerpc): Call get_powerpc_dialect.
163         (print_insn_little_powerpc): Likewise.
164         (operand_value_powerpc): Handle negative shift counts.
165         (print_insn_powerpc): Handle 2-byte instruction lengths.
166
167 2012-05-11  Daniel Richard G.  <skunk@iskunk.org>
168
169         PR binutils/14028
170         * configure.in: Invoke ACX_HEADER_STRING.
171         * configure: Regenerate.
172         * config.in: Regenerate.
173         * sysdep.h: If STRINGS_WITH_STRING is defined then include both
174         string.h and strings.h.
175
176 2012-05-11  Nick Clifton  <nickc@redhat.com>
177
178         PR binutils/14006
179         * arm-dis.c (print_insn): Fix detection of instruction mode in
180         files containing multiple executable sections.
181
182 2012-05-03  Sean Keys  <skeys@ipdatasys.com>
183
184         * Makefile.in, configure: regenerate
185         * disassemble.c (disassembler): Recognize ARCH_XGATE.
186         * xgate-dis.c (read_memory, print_insn, print_insn_xgate):
187         New functions.
188         * configure.in: Recognize xgate.
189         * xgate-dis.c, xgate-opc.c: New files for support of xgate
190         * Makefile.am (CFILES, ALL_MACHINES): New files for disassembly
191         and opcode generation for xgate.
192
193 2012-04-30  DJ Delorie  <dj@redhat.com>
194
195         * rx-decode.opc (MOV): Do not sign-extend immediates which are
196         already the maximum bit size.
197         * rx-decode.c: Regenerate.
198
199 2012-04-27  David S. Miller  <davem@davemloft.net>
200
201         * sparc-dis.c (v9a_asr_reg_names): Add 'cfr'.
202         * sparc-opc.c (sparc_opcodes): Add rd/wr cases for %cfr.
203
204         * sparc-opc.c (sparc_opcodes): Add 'wr X, %pause' and 'pause'.
205         * sparc-dis.c (v9a_asr_reg_names): Add 'pause'.
206
207         * sparc-opc.c (CBCOND): New define.
208         (CBCOND_XCC): Likewise.
209         (cbcond): New helper macro.
210         (sparc_opcodes): Add compare-and-branch instructions.
211
212         * sparc-dis.c (print_insn_sparc): Handle ')'.
213         * sparc-opc.c (sparc_opcodes): Add crypto instructions.
214
215         * sparc-opc.c (sparc_opcodes): Rework table to put HWCAP values
216         into new struct sparc_opcode 'hwcaps' field instead of 'flags'.
217
218 2012-04-12  David S. Miller  <davem@davemloft.net>
219
220         * sparc-dis.c (X_DISP10): Define.
221         (print_insn_sparc): Handle '='.
222
223 2012-04-01  Mike Frysinger  <vapier@gentoo.org>
224
225         * bfin-dis.c (fmtconst): Replace decimal handling with a single
226         sprintf call and the '*' field width.
227
228 2012-03-23  Maxim Kuvyrkov  <maxim@codesourcery.com>
229
230         * mips-dis.c (mips_arch_choices): Add entry for Broadcom XLP.
231
232 2012-03-16  Alan Modra  <amodra@gmail.com>
233
234         * ppc-dis.c (PPC_OPC_SEGS, PPC_OP_TO_SEG): Delete.
235         (powerpc_opcd_indices): Bump array size.
236         (disassemble_init_powerpc): Set powerpc_opcd_indices entries
237         corresponding to unused opcodes to following entry.
238         (lookup_powerpc): New function, extracted and optimised from..
239         (print_insn_powerpc): ..here.
240
241 2012-03-15  Alan Modra  <amodra@gmail.com>
242             James Lemke  <jwlemke@codesourcery.com>
243
244         * disassemble.c (disassemble_init_for_target): Handle ppc init.
245         * ppc-dis.c (private): New var.
246         (powerpc_init_dialect): Don't return calloc failure, instead use
247         private.
248         (PPC_OPCD_SEGS, PPC_OP_TO_SEG): Define.
249         (powerpc_opcd_indices): New array.
250         (disassemble_init_powerpc): New function.
251         (print_insn_big_powerpc): Don't init dialect here.
252         (print_insn_little_powerpc): Likewise.
253         (print_insn_powerpc): Start search using powerpc_opcd_indices.
254
255 2012-03-10  Edmar Wienskoski  <edmar@freescale.com>
256
257         * ppc-dis.c (ppc_opts): Add entries for "e5500" and "e6500".
258         * ppc-opc.c (insert_ls, TMR, ESYNC, XSYNCLE_MASK): New.
259         (PPCVEC2, PPCTMR, E6500): New short names.
260         (powerpc_opcodes): Add vabsdub, vabsduh, vabsduw, dni, mvidsplt,
261         mviwsplt, icblq., mftmr, mttmr, dcblq., miso, lvexbx, lvexhx,
262         lvexwx, stvexbx, stvexhx, stvexwx, lvepx, lvepxl, stvepx, stvepxl,
263         lvtrx, lvtrxl, lvtlx, lvtlxl, stvfrx, stvfrxl, stvflx, stvflxl,
264         lvswx, lvswxl, stvswx, stvswxl, lvsm mnemonics. Accept LS, ESYNC
265         optional operands on sync instruction for E6500 target.
266
267 2012-03-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
268
269         * s390-opc.txt: Set instruction type of pku to SS_L2RDRD.
270
271 2012-02-27  Alan Modra  <amodra@gmail.com>
272
273         * mt-dis.c: Regenerate.
274
275 2012-02-27  Alan Modra  <amodra@gmail.com>
276
277         * v850-opc.c (extract_v8): Rearrange to make it obvious this
278         is the inverse of corresponding insert function.
279         (extract_d22, extract_u9, extract_r4): Likewise.
280         (extract_d9): Correct sign extension.
281         (extract_d16_15): Don't assume "long" is 32 bits, and don't
282         rely on implementation defined behaviour for shift right of
283         signed types.
284         (extract_d16_16, extract_d17_16, extract_i9): Likewise.
285         (extract_d23): Likewise, and correct mask.
286
287 2012-02-27  Alan Modra  <amodra@gmail.com>
288
289         * crx-dis.c (print_arg): Mask constant to 32 bits.
290         * crx-opc.c (cst4_map): Use int array.
291
292 2012-02-27  Alan Modra  <amodra@gmail.com>
293
294         * arc-dis.c (BITS): Don't use shifts to mask off bits.
295         (FIELDD): Sign extend with xor,sub.
296
297 2012-02-25  Walter Lee  <walt@tilera.com>
298
299         * tilegx-opc.c: Handle TILEGX_OPC_LD4S_TLS and TILEGX_OPC_LD_TLS.
300         * tilepro-opc.c: Handle TILEPRO_OPC_LW_TLS and
301         TILEPRO_OPC_LW_TLS_SN.
302
303 2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>
304
305         * i386-opc.h (HLEPrefixNone): New.
306         (HLEPrefixLock): Likewise.
307         (HLEPrefixAny): Likewise.
308         (HLEPrefixRelease): Likewise.
309
310 2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>
311
312         * i386-dis.c (HLE_Fixup1): New.
313         (HLE_Fixup2): Likewise.
314         (HLE_Fixup3): Likewise.
315         (Ebh1): Likewise.
316         (Evh1): Likewise.
317         (Ebh2): Likewise.
318         (Evh2): Likewise.
319         (Ebh3): Likewise.
320         (Evh3): Likewise.
321         (MOD_C6_REG_7): Likewise.
322         (MOD_C7_REG_7): Likewise.
323         (RM_C6_REG_7): Likewise.
324         (RM_C7_REG_7): Likewise.
325         (XACQUIRE_PREFIX): Likewise.
326         (XRELEASE_PREFIX): Likewise.
327         (dis386): Use Ebh1/Evh1 on add, adc, and, btc, btr, bts,
328         cmpxchg, dec, inc, neg, not, or, sbb, sub, xor and xadd. Use
329         Ebh2/Evh2 on xchg.  Use Ebh3/Evh3 on mov.
330         (reg_table): Use Ebh1/Evh1 on add, adc, and, dec, inc, neg,
331         not, or, sbb, sub and xor.  Use Ebh3/Evh3 on mov.  Use
332         MOD_C6_REG_7 and MOD_C7_REG_7.
333         (mod_table): Add MOD_C6_REG_7 and MOD_C7_REG_7.
334         (rm_table): Add RM_C6_REG_7 and RM_C7_REG_7.  Add xend and
335         xtest.
336         (prefix_name): Handle XACQUIRE_PREFIX and XRELEASE_PREFIX.
337         (CMPXCHG8B_Fixup): Handle HLE prefix on cmpxchg8b.
338
339         * i386-gen.c (cpu_flag_init): Add CPU_HLE_FLAGS and
340         CPU_RTM_FLAGS.
341         (cpu_flags): Add CpuHLE and CpuRTM.
342         (opcode_modifiers): Add HLEPrefixOk.
343
344         * i386-opc.h (CpuHLE): New.
345         (CpuRTM): Likewise.
346         (HLEPrefixOk): Likewise.
347         (i386_cpu_flags): Add cpuhle and cpurtm.
348         (i386_opcode_modifier): Add hleprefixok.
349
350         * i386-opc.tbl: Add HLEPrefixOk=3 to mov.  Add HLEPrefixOk to
351         add, adc, and, btc, btr, bts, cmpxchg, dec, inc, neg, not, or,
352         sbb, sub, xor and xadd.  Add HLEPrefixOk=2 to xchg with memory
353         operand.  Add xacquire, xrelease, xabort, xbegin, xend and
354         xtest.
355         * i386-init.h: Regenerated.
356         * i386-tbl.h: Likewise.
357
358 2012-01-24  DJ Delorie  <dj@redhat.com>
359
360         * rl78-decode.opc (rl78_decode_opcode): Add NOT1.
361         * rl78-decode.c: Regenerate.
362
363 2012-01-17  James Murray  <jsm@jsm-net.demon.co.uk>
364
365         PR binutils/10173
366         * cr16-dis.c (print_arg): Test symtab_size not num_symbols.
367
368 2012-01-17  Andreas Schwab  <schwab@linux-m68k.org>
369
370         * m68k-opc.c (m68k_opcodes): Fix entries for pmove with BADx/BACx
371         register and move them after pmove with PSR/PCSR register.
372
373 2012-01-13  H.J. Lu  <hongjiu.lu@intel.com>
374
375         * i386-dis.c (mod_table): Add vmfunc.
376
377         * i386-gen.c (cpu_flag_init): Add CPU_VMFUNC_FLAGS.
378         (cpu_flags): CpuVMFUNC.
379
380         * i386-opc.h (CpuVMFUNC): New.
381         (i386_cpu_flags): Add cpuvmfunc.
382
383         * i386-opc.tbl: Add vmfunc.
384         * i386-init.h: Regenerated.
385         * i386-tbl.h: Likewise.
386
387 For older changes see ChangeLog-2011
388 \f
389 Local Variables:
390 mode: change-log
391 left-margin: 8
392 fill-column: 74
393 version-control: never
394 End: