Fix typo in ChangeLog entry.
[external/binutils.git] / sim / aarch64 / ChangeLog
1 2016-12-01  Jim Wilson  <jim.wilson@linaro.org>
2
3         * simulator.c (fsturs): Switch use of rn and st variables.
4         (fsturd, fsturq): Likewise
5
6 2016-08-15  Mike Frysinger  <vapier@gentoo.org>
7
8         * interp.c: Include bfd.h.
9         (symcount, symtab, aarch64_get_sym_value): Delete.
10         (remove_useless_symbols): Change count type to long.
11         (aarch64_get_func): Add SIM_DESC to arg list.  Add symcount
12         and symtab local variables.
13         (sim_create_inferior): Delete storage.  Replace symbol code
14         with a call to trace_load_symbols.
15         * memory.c: Delete bfd.h, elf/internal.h, and elf/common.h
16         includes.
17         (aarch64_get_heap_start): Change aarch64_get_sym_value to
18         trace_sym_value.
19         * memory.h: Delete bfd.h include.
20         (mem_add_blk): Delete unused prototype.
21         * simulator.c (bl, blr): Pass SIM_DESC to aarch64_get_func.
22         * simulator.c (aarch64_get_func): Add SIM_DESC to arg list.
23         (aarch64_get_sym_value): Delete.
24
25 2016-08-12  Nick Clifton  <nickc@redhat.com>
26
27         * simulator.c (aarch64_step): Revert pervious delta.
28         (aarch64_run): Call sim_events_tick after each
29         instruction is simulated, and if necessary call
30         sim_events_process.
31         * simulator.h: Revert previous delta.
32
33 2016-08-11  Nick Clifton  <nickc@redhat.com>
34
35         * interp.c (sim_create_inferior): Allow for being called with a
36         NULL abfd parameter.  If a bfd is provided, initialise the sim
37         with that start address.
38         * simulator.c (HALT_NYI): Just print out the numeric value of the
39         instruction when not tracing.
40         (aarch64_step): Change from static to global.
41         * simulator.h: Add a prototype for aarch64_step().
42
43 2016-07-27  Alan Modra  <amodra@gmail.com>
44
45         * memory.c: Don't include libbfd.h.
46
47 2016-07-21  Nick Clifton  <nickc@redhat.com>
48
49         * simulator.c (fsqrts): Use sqrtf rather than sqrt.
50
51 2016-06-30  Jim Wilson  <jim.wilson@linaro.org>
52
53         * cpustate.h: Include config.h.
54         (union GRegisterValue): Add WORDS_BIGENDIAN check.  For big endian code
55         use anonymous structs to align members.
56         * simulator.c (aarch64_step): Use sim_core_read_buffer and
57         endian_le2h_4 to read instruction from pc.
58
59 2016-05-06  Nick Clifton  <nickc@redhat.com>
60
61         * simulator.c (do_FMLA_by_element): New function.
62         (do_vec_op2): Call it.
63
64 2016-04-27  Nick Clifton  <nickc@redhat.com>
65
66         * simulator.c: Add TRACE_DECODE statements to all emulation
67         functions.
68
69 2016-03-30  Nick Clifton  <nickc@redhat.com>
70
71         * cpustate.c (aarch64_set_reg_s32): New function.
72         (aarch64_set_reg_u32): New function.
73         (aarch64_get_FP_half): Place half precision value into the correct
74         slot of the union.
75         (aarch64_set_FP_half): Likewise.
76         * cpustate.h: Add prototypes for aarch64_set_reg_s32 and
77         aarch64_set_reg_u32.
78         * memory.c (FETCH_FUNC): Cast the read value to the access type
79         before converting it to the return type.  Rename to FETCH_FUNC64.
80         (FETCH_FUNC32): New macro.  Duplicates FETCH_FUNC64 but for 32-bit
81         accesses.  Use for 32-bit memory access functions.
82         * simulator.c (ldrsb_wb): Use sign extension not zero extension.
83         (ldrb_scale_ext, ldrsh32_abs, ldrsh32_wb): Likewise.
84         (ldrsh32_scale_ext, ldrsh_abs, ldrsh64_wb): Likewise.
85         (ldrsh_scale_ext, ldrsw_abs): Likewise.
86         (ldrh32_abs): Store 32 bit value not 64-bits.
87         (ldrh32_wb, ldrh32_scale_ext): Likewise.
88         (do_vec_MOV_immediate): Fix computation of val.
89         (do_vec_MVNI): Likewise.
90         (DO_VEC_WIDENING_MUL): New macro.
91         (do_vec_mull): Use new macro.
92         (do_vec_mul): Use new macro.
93         (do_vec_MLA): Read values before writing.
94         (do_vec_xtl): Likewise.
95         (do_vec_SSHL): Select correct shift value.
96         (do_vec_USHL): Likewise.
97         (do_scalar_UCVTF): New function.
98         (do_scalar_vec): Call new function.
99         (store_pair_u64): Treat reads of SP as reads of XZR.
100
101 2016-03-29  Nick Clifton  <nickc@redhat.com>
102
103         * cpustate.c: Remove space after asterisk in function parameters.
104         * decode.h (greg): Delete unused function.
105         (vreg, shift, extension, scaling, writeback, condcode): Likewise.
106         * simulator.c: Use INSTR macro in more places.
107         (HALT_NYI): Use sim_io_eprintf in place of fprintf.
108         Remove extraneous whitespace.
109
110 2016-03-23  Nick Clifton  <nickc@redhat.com>
111
112         * cpustate.c (aarch64_get_FP_half): New function.  Read a vector
113         register as a half precision floating point number.
114         (aarch64_set_FP_half): New function.  Similar, but for setting
115         a half precision register.
116         (aarch64_get_thread_id): New function.  Returns the value of the
117         CPU's TPIDR register.
118         (aarch64_get_FPCR): New function.  Returns the value of the CPU's
119         floating point control register.
120         (aarch64_set_FPCR): New function.  Set the value of the CPU's FPCR
121         register.
122         * cpustate.h: Add prototypes for new functions.
123         * sim-main.h (struct _sim_cpu): Add FPCR and tpidr fields.
124         * memory.c: Use unaligned core access functions for all memory
125         reads and writes.
126         * simulator.c (HALT_NYI): Generate an error message if tracing
127         will not tell the user why the simulator is halting.
128         (HALT_UNREACHABLE): Delete.  Delete (unneeded) uses of the macro.
129         (INSTR): New time-saver macro.
130         (fldrb_abs): New function.  Loads an 8-bit value using a scaled
131         offset.
132         (fldrh_abs): New function.  Likewise for 16-bit values.
133         (do_vec_SSHL): Allow for negative shift values.
134         (do_vec_USHL): Likewise.
135         (do_vec_SHL): Correct computation of shift amount.
136         (do_vec_SSHR_USHR): Correct decision of signed vs unsigned
137         shifts and computation of shift value.
138         (clz): New function.  Counts leading zero bits.
139         (do_vec_CLZ): New function.  Implements CLZ (vector).
140         (do_vec_MOV_element): Call do_vec_CLZ.
141         (dexSimpleFPCondCompare): Implement.
142         (do_FCVT_half_to_single): New function.  Implements one of the
143         FCVT operations.
144         (do_FCVT_half_to_double): New function.  Likewise.
145         (do_FCVT_single_to_half): New function.  Likewise.
146         (do_FCVT_double_to_half): New function.  Likewise.
147         (dexSimpleFPDataProc1Source): Call new FCVT functions.
148         (do_scalar_SHL): Handle negative shifts.
149         (do_scalar_shift): Handle SSHR.
150         (do_scalar_USHL): New function.
151         (do_double_add): Simplify to just performing a double precision
152         add operation.  Move remaining code into...
153         (do_scalar_vec): ... New function.
154         (dexLoadUnsignedImmediate): Call new fldrb_abs and fldrh_abs
155         functions.
156         (system_get): Add support for TPIDR, CTR, FPCR, FPSR and CPSR
157         registers.
158         (system_set): New function.
159         (do_MSR_immediate): New function.  Stub for now.
160         (do_MSR_reg): New function.  Likewise. Partially implements MSR
161         instruction.
162         (do_SYS): New function.  Stub for now,
163         (dexSystem): Call new functions.
164
165 2016-03-18  Nick Clifton  <nickc@redhat.com>
166
167         * cpustate.c: Remove spurious spaces from TRACE strings.
168         Print hex equivalents of floats and doubles.
169         Check element number against array size when accessing vector
170         registers.
171         (GET_VEC_ELEMENT): Fix off by one error checking for an invalid
172         element index.
173         (SET_VEC_ELEMENT): Likewise.
174         (GET_VEC_ELEMENT): And fix thinko using macro arguments.
175
176         * memory.c: Trace memory reads when --trace-memory is enabled.
177         Remove float and double load and store functions.
178         * memory.h (aarch64_get_mem_float): Delete prototype.
179         (aarch64_get_mem_double): Likewise.
180         (aarch64_set_mem_float): Likewise.
181         (aarch64_set_mem_double): Likewise.
182         * simulator (IS_SET): Always return either 0 or 1.
183         (IS_CLEAR): Likewise.
184         (fldrs_pcrel): Load and store floats using 32-bit memory accesses
185         and doubles using 64-bit memory accesses.
186         (fldrd_pcrel, fldrs_wb, fldrs_abs, fldrs_scale_ext): Likewise.
187         (fldrd_wb, fldrd_abs, fsturs, fsturd, fldurs, fldurd): Likewise.
188         (fstrs_abs, fstrs_wb, fstrs_scale_ext, fstrd_abs): Likewise.
189         (fstrd_wb, fstrd_scale_ext, store_pair_float): Likewise.
190         (store_pair_double, load_pair_float, load_pair_double): Likewise.
191         (do_vec_MUL_by_element): New function.
192         (do_vec_op2): Call do_vec_MUL_by_element.
193         (do_scalar_NEG): New function.
194         (do_double_add): Call do_scalar_NEG.
195
196 2016-03-03  Nick Clifton  <nickc@redhat.com>
197
198         * simulator.c (set_flags_for_sub32): Correct type of signbit.
199         (CondCompare): Swap interpretation of bit 30.
200         (DO_ADDP): Delete macro.
201         (do_vec_ADDP): Copy source registers before starting to update
202         destination register.
203         (do_vec_FADDP): Likewise.
204         (do_vec_load_store): Fix computation of sizeof_operation.
205         (rbit64): Fix type of constant.
206         (aarch64_step): When displaying insn value, display all 32 bits.
207
208 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
209
210         * config.in, configure: Regenerate.
211
212 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
213
214         * configure: Regenerate.
215
216 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
217
218         * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
219         * configure: Regenerate.
220
221 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
222
223         * configure: Regenerate.
224
225 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
226
227         * configure: Regenerate.
228
229 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
230
231         * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
232         * configure: Regenerate.
233
234 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
235
236         * configure: Regenerate.
237
238 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
239
240         * configure: Regenerate.
241
242 2016-01-09  Mike Frysinger  <vapier@gentoo.org>
243
244         * config.in, configure: Regenerate.
245
246 2016-01-06  Mike Frysinger  <vapier@gentoo.org>
247
248         * interp.c (sim_create_inferior): Mark argv and env const.
249         (sim_open): Mark argv const.
250
251 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
252
253         * interp.c: Delete dis-asm.h include.
254         (info, opbuf, op_printf, aarch64_print_insn, sim_dis_read): Delete.
255         (sim_create_inferior): Delete disassemble init logic.
256         (OPTION_DISAS, aarch64_option_handler, aarch64_options): Delete.
257         (sim_open): Delete sim_add_option_table call.
258         * memory.c (mem_error): Delete disas check.
259         * simulator.c: Delete dis-asm.h include.
260         (disas): Delete.
261         (HALT_UNALLOC): Replace disassembly logic with TRACE_DISASM.
262         (HALT_NYI): Likewise.
263         (handle_halt): Delete disas call.
264         (aarch64_step): Replace disas logic with TRACE_DISASM.
265         * simulator.h: Delete dis-asm.h include.
266         (aarch64_print_insn): Delete.
267
268 2016-01-04  Mike Frysinger  <vapier@gentoo.org>
269
270         * simulator.c (MAX, MIN): Delete.
271         (do_vec_maxv): Change MAX to max and MIN to min.
272         (do_vec_fminmaxV): Likewise.
273
274 2016-01-04  Tristan Gingold  <gingold@adacore.com>
275
276         * simulator.c: Remove syscall.h include.
277
278 2016-01-04  Mike Frysinger  <vapier@gentoo.org>
279
280         * configure: Regenerate.
281
282 2016-01-03  Mike Frysinger  <vapier@gentoo.org>
283
284         * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
285         * configure: Regenerate.
286
287 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
288
289         * configure: Regenerate.
290
291 2015-12-27  Mike Frysinger  <vapier@gentoo.org>
292
293         * interp.c (sim_dis_read): Change private_data to application_data.
294         (sim_create_inferior): Likewise.
295
296 2015-12-27  Mike Frysinger  <vapier@gentoo.org>
297
298         * Makefile.in (SIM_OBJS): Delete sim-hload.o.
299
300 2015-12-26  Mike Frysinger  <vapier@gentoo.org>
301
302         * config.in, configure: Regenerate.
303
304 2015-12-26  Mike Frysinger  <vapier@gentoo.org>
305
306         * interp.c (sim_create_inferior): Update comment and argv check.
307
308 2015-12-14  Nick Clifton  <nickc@redhat.com>
309
310         * simulator.c (system_get): New function.  Provides read
311         access to the dczid system register.
312         (do_mrs): New function - implements the MRS instruction.
313         (dexSystem): Call do_mrs for the MRS instruction.  Halt on
314         unimplemented system instructions.
315
316 2015-11-24  Nick Clifton  <nickc@redhat.com>
317
318         * configure.ac: New configure template.
319         * aclocal.m4: Generate.
320         * config.in: Generate.
321         * configure: Generate.
322         * cpustate.c: New file - functions for accessing AArch64 registers.
323         * cpustate.h: New header.
324         * decode.h: New header.
325         * interp.c: New file - interface between GDB and simulator.
326         * Makefile.in: New makefile template.
327         * memory.c: New file - functions for simulating aarch64 memory
328         accesses.
329         * memory.h: New header.
330         * sim-main.h: New header.
331         * simulator.c: New file - aarch64 simulator functions.
332         * simulator.h: New header.