]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/aarch64/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / sim / aarch64 / ChangeLog
CommitLineData
ebe9564b
MF
12021-02-28 Mike Frysinger <vapier@gentoo.org>
2
3 * configure: Regenerate.
4
760b3e8b
MF
52021-02-21 Mike Frysinger <vapier@gentoo.org>
6
7 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
8 * aclocal.m4, configure: Regenerate.
9
136da8cd
MF
102021-02-13 Mike Frysinger <vapier@gentoo.org>
11
12 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
13 * aclocal.m4, configure: Regenerate.
14
aa09469f
MF
152021-02-06 Mike Frysinger <vapier@gentoo.org>
16
17 * configure: Regenerate.
18
68ed2854
MF
192021-01-11 Mike Frysinger <vapier@gentoo.org>
20
21 * config.in, configure: Regenerate.
22
bf470982
MF
232021-01-09 Mike Frysinger <vapier@gentoo.org>
24
25 * configure: Regenerate.
26
46f900c0
MF
272021-01-08 Mike Frysinger <vapier@gentoo.org>
28
29 * configure: Regenerate.
30
dfb856ba
MF
312021-01-04 Mike Frysinger <vapier@gentoo.org>
32
33 * configure: Regenerate.
34
69b1ffdb
CB
352020-02-06 Carlo Bramini <carlo_bramini@users.sourceforge.net>
36
37 PR sim/25318
38 * simulator.c (blr): Read destination register before calling
39 aarch64_save_LR.
40
cd5b6074
AB
412019-03-28 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * cpustate.c: Add 'libiberty.h' include.
44 * interp.c: Add 'sim-assert.h' include.
45
5c887dd5
JB
462017-09-06 John Baldwin <jhb@FreeBSD.org>
47
48 * configure: Regenerate.
49
bf155438
JW
502017-04-22 Jim Wilson <jim.wilson@linaro.org>
51
52 * simulator.c (vec_load): Add M argument. Rewrite to iterate over
53 registers based on structure size.
54 (LD4, LD3, LD2, LD1_2, LD1_3, LD1_4): Pass new arg to vec_load.
55 (LD1_1): Replace with call to vec_load.
56 (vec_store): Add new M argument. Rewrite to iterate over registers
57 based on structure size.
58 (ST4, ST3, ST2, ST1_2, ST1_3, ST1_4): Pass new arg to vec_store.
59 (ST1_1): Replace with call to vec_store.
60
ae27d3fe
JW
612017-04-08 Jim Wilson <jim.wilson@linaro.org>
62
b630840c
JW
63 * simulator.c (do_vec_FCVTL): New.
64 (do_vec_op1): Call do_vec_FCVTL.
65
ae27d3fe
JW
66 * simulator.c (do_scalar_FCMGE_zero, do_scalar_FCMLE_zero,
67 do_scalar_FCMGT_zero, do_scalar_FCMEQ_zero, do_scalar_FCMLT_zero): New.
68 (do_scalar_vec): Add calls to new functions.
69
f1241682
JW
702017-03-25 Jim Wilson <jim.wilson@linaro.org>
71
72 * simulator.c (set_flags_for_add32): Cast result to uint32_t in carry
73 flag check.
74
8ecbe595
JW
752017-03-03 Jim Wilson <jim.wilson@linaro.org>
76
77 * simulator.c (mul64hi): Shift carry left by 32.
78 (smulh): Change signum to negate. If negate, invert result, and add
79 carry bit if low part of multiply result is zero.
80
ac189e7b
JW
812017-02-25 Jim Wilson <jim.wilson@linaro.org>
82
152e1e1b
JW
83 * simulator.c (do_vec_SMOV_into_scalar): New.
84 (do_vec_UMOV_into_scalar): Renamed from do_vec_MOV_into_scalar.
85 Rewritten.
86 (do_vec_UMOV): Merged into do_vec_UMOV_into_scalar and deleted.
87 (do_vec_op1): Move do_vec_TRN call and do_vec_UZP call. Add
88 do_vec_SMOV_into_scalar call. Delete do_vec_MOV_into_scalar and
89 do_vec_UMOV calls. Add do_vec_UMOV_into_scalar call.
90
ac189e7b
JW
91 * simulator.c (popcount): New.
92 (do_vec_CNT): New.
93 (do_vec_op1): Add do_vec_CNT call.
94
2e7e5e28
JW
952017-02-19 Jim Wilson <jim.wilson@linaro.org>
96
97 * simulator.c (do_vec_ADDV): Mov val declaration inside each case,
98 with type set to input type size.
99 (do_vec_xtl): Change bias from 3 to 4 for byte case.
100
e8f42b5e
JW
1012017-02-14 Jim Wilson <jim.wilson@linaro.org>
102
742e3a77
JW
103 * simulator.c (do_vec_MLA): Rewrite switch body.
104
bf25e9a0
JW
105 * simulator.c (do_vec_bit): Change loop limits from 16 and 8 to 4 and
106 2. Move test_false if inside loop. Fix logic for computing result
107 stored to vd.
108
e8f42b5e
JW
109 * simulator.c: (LDn_STn_SINGLE_LANE_AND_SIZE): New.
110 (do_vec_LDn_single, do_vec_STn_single): New.
111 (do_vec_LDnR): Add and set new nregs var. Replace switch on nregs with
112 loop over nregs using new var n. Add n times size to address in loop.
113 Add n to vd in loop.
114 (do_vec_load_store): Add comment for instruction bit 24. New var
115 single to hold instruction bit 24. Add new code to use single. Move
116 ldnr support inside single if statements. Fix ldnr register counts
117 inside post if statement. Change HALT_NYI calls to HALT_UNALLOC.
118
fbf32f63
JW
1192017-01-23 Jim Wilson <jim.wilson@linaro.org>
120
121 * simulator.c (do_vec_compare): Add case 0x23 for CMTST.
122
05b3d79d
JW
1232017-01-17 Jim Wilson <jim.wilson@linaro.org>
124
125 * simulator.c (do_vec_ADDV): Call aarch64_set_vec_u64 instead of
126 aarch64_set_reg_u64. In case 2, call HALT_UNALLOC if not full. In
127 case 3, call HALT_UNALLOC unconditionally.
128 (do_vec_XTN): Delete shifts. In case 2, change index from i + 4 to
129 i + 2. Delete if on bias, change index to i + bias * X.
130
a4fb5981
JW
1312017-01-09 Jim Wilson <jim.wilson@linaro.org>
132
133 * simulator.c (do_vec_UZP): Rewrite.
134
c0386d4d
JW
1352017-01-04 Jim Wilson <jim.wilson@linaro.org>
136
137 * cpustate.c: Include math.h.
138 (aarch64_set_FP_float): Use signbit to check for signed zero.
139 (aarch64_set_FP_double): Likewise.
140 * simulator.c (do_vec_MOV_immediate, case 0x8): Add missing break.
141 (do_vec_mul): In all DO_VEC_WIDENING_MUL calls, make second and fourth
142 args same size as third arg.
143 (fmaxnm): Use isnan instead of fpclassify.
144 (fminnm, dmaxnm, dminnm): Likewise.
145 (do_vec_MLS): Reverse order of subtraction operands.
146 (dexSimpleFPCondSelect): Call aarch64_get_FP_double or
147 aarch64_get_FP_float to get source register contents.
148 (UINT_MIN, ULONG_MIN, FLOAT_UINT_MAX, FLOAT_UINT_MIN,
149 DOUBLE_UINT_MAX, DOUBLE_UINT_MIN, FLOAT_ULONG_MAX, FLOAT_ULONG_MIN,
150 DOUBLE_ULONG_MAX, DOUBLE_ULONG_MIN): New.
151 (do_fcvtzu): Use ULONG instead of LONG, and UINT instead of INT in
152 raise_exception calls.
153
87903eaf
JW
1542016-12-21 Jim Wilson <jim.wilson@linaro.org>
155
156 * simulator.c (set_flags_for_float_compare): Add code to handle Inf.
157 Add comment to document NaN issue.
158 (set_flags_for_double_compare): Likewise.
159
963201cf
JW
1602016-12-13 Jim Wilson <jim.wilson@linaro.org>
161
162 * simulator.c (NEG, POS): Move before set_flags_for_add64.
163 (set_flags_for_add64): Replace with a modified copy of
164 set_flags_for_sub64.
165
668650d5
JW
1662016-12-03 Jim Wilson <jim.wilson@linaro.org>
167
168 * simulator.c (tbnz, tbz): Cast 1 to uint64_t before shifting.
169 (dexTestBranchImmediate): Shift high bit of pos by 5 not 4.
170
88ddd4a1
JW
1712016-12-01 Jim Wilson <jim.wilson@linaro.org>
172
88256e71 173 * simulator.c (fsturs): Switch use of rn and st variables.
88ddd4a1
JW
174 (fsturd, fsturq): Likewise
175
5357150c
MF
1762016-08-15 Mike Frysinger <vapier@gentoo.org>
177
178 * interp.c: Include bfd.h.
179 (symcount, symtab, aarch64_get_sym_value): Delete.
180 (remove_useless_symbols): Change count type to long.
181 (aarch64_get_func): Add SIM_DESC to arg list. Add symcount
182 and symtab local variables.
183 (sim_create_inferior): Delete storage. Replace symbol code
184 with a call to trace_load_symbols.
185 * memory.c: Delete bfd.h, elf/internal.h, and elf/common.h
186 includes.
187 (aarch64_get_heap_start): Change aarch64_get_sym_value to
188 trace_sym_value.
189 * memory.h: Delete bfd.h include.
190 (mem_add_blk): Delete unused prototype.
191 * simulator.c (bl, blr): Pass SIM_DESC to aarch64_get_func.
192 * simulator.c (aarch64_get_func): Add SIM_DESC to arg list.
193 (aarch64_get_sym_value): Delete.
194
b14bdb3b
NC
1952016-08-12 Nick Clifton <nickc@redhat.com>
196
197 * simulator.c (aarch64_step): Revert pervious delta.
198 (aarch64_run): Call sim_events_tick after each
199 instruction is simulated, and if necessary call
200 sim_events_process.
201 * simulator.h: Revert previous delta.
202
6a277579
NC
2032016-08-11 Nick Clifton <nickc@redhat.com>
204
205 * interp.c (sim_create_inferior): Allow for being called with a
206 NULL abfd parameter. If a bfd is provided, initialise the sim
207 with that start address.
208 * simulator.c (HALT_NYI): Just print out the numeric value of the
209 instruction when not tracing.
b14bdb3b
NC
210 (aarch64_step): Change from static to global.
211 * simulator.h: Add a prototype for aarch64_step().
6a277579 212
293acfae
AM
2132016-07-27 Alan Modra <amodra@gmail.com>
214
215 * memory.c: Don't include libbfd.h.
216
0f118bc7
NC
2172016-07-21 Nick Clifton <nickc@redhat.com>
218
0c66ea4c 219 * simulator.c (fsqrts): Use sqrtf rather than sqrt.
0f118bc7 220
c7be4414
JW
2212016-06-30 Jim Wilson <jim.wilson@linaro.org>
222
223 * cpustate.h: Include config.h.
224 (union GRegisterValue): Add WORDS_BIGENDIAN check. For big endian code
225 use anonymous structs to align members.
226 * simulator.c (aarch64_step): Use sim_core_read_buffer and
227 endian_le2h_4 to read instruction from pc.
228
fd7ed446
NC
2292016-05-06 Nick Clifton <nickc@redhat.com>
230
231 * simulator.c (do_FMLA_by_element): New function.
232 (do_vec_op2): Call it.
233
2cdad34c
NC
2342016-04-27 Nick Clifton <nickc@redhat.com>
235
236 * simulator.c: Add TRACE_DECODE statements to all emulation
237 functions.
238
7517e550
NC
2392016-03-30 Nick Clifton <nickc@redhat.com>
240
241 * cpustate.c (aarch64_set_reg_s32): New function.
242 (aarch64_set_reg_u32): New function.
243 (aarch64_get_FP_half): Place half precision value into the correct
244 slot of the union.
245 (aarch64_set_FP_half): Likewise.
246 * cpustate.h: Add prototypes for aarch64_set_reg_s32 and
247 aarch64_set_reg_u32.
248 * memory.c (FETCH_FUNC): Cast the read value to the access type
249 before converting it to the return type. Rename to FETCH_FUNC64.
250 (FETCH_FUNC32): New macro. Duplicates FETCH_FUNC64 but for 32-bit
251 accesses. Use for 32-bit memory access functions.
252 * simulator.c (ldrsb_wb): Use sign extension not zero extension.
253 (ldrb_scale_ext, ldrsh32_abs, ldrsh32_wb): Likewise.
254 (ldrsh32_scale_ext, ldrsh_abs, ldrsh64_wb): Likewise.
255 (ldrsh_scale_ext, ldrsw_abs): Likewise.
256 (ldrh32_abs): Store 32 bit value not 64-bits.
257 (ldrh32_wb, ldrh32_scale_ext): Likewise.
258 (do_vec_MOV_immediate): Fix computation of val.
259 (do_vec_MVNI): Likewise.
260 (DO_VEC_WIDENING_MUL): New macro.
261 (do_vec_mull): Use new macro.
262 (do_vec_mul): Use new macro.
263 (do_vec_MLA): Read values before writing.
264 (do_vec_xtl): Likewise.
265 (do_vec_SSHL): Select correct shift value.
266 (do_vec_USHL): Likewise.
267 (do_scalar_UCVTF): New function.
268 (do_scalar_vec): Call new function.
269 (store_pair_u64): Treat reads of SP as reads of XZR.
270
ef0d8ffc
NC
2712016-03-29 Nick Clifton <nickc@redhat.com>
272
273 * cpustate.c: Remove space after asterisk in function parameters.
274 * decode.h (greg): Delete unused function.
275 (vreg, shift, extension, scaling, writeback, condcode): Likewise.
276 * simulator.c: Use INSTR macro in more places.
277 (HALT_NYI): Use sim_io_eprintf in place of fprintf.
278 Remove extraneous whitespace.
279
5ab6d79e
NC
2802016-03-23 Nick Clifton <nickc@redhat.com>
281
282 * cpustate.c (aarch64_get_FP_half): New function. Read a vector
283 register as a half precision floating point number.
284 (aarch64_set_FP_half): New function. Similar, but for setting
285 a half precision register.
286 (aarch64_get_thread_id): New function. Returns the value of the
287 CPU's TPIDR register.
288 (aarch64_get_FPCR): New function. Returns the value of the CPU's
289 floating point control register.
290 (aarch64_set_FPCR): New function. Set the value of the CPU's FPCR
291 register.
292 * cpustate.h: Add prototypes for new functions.
293 * sim-main.h (struct _sim_cpu): Add FPCR and tpidr fields.
294 * memory.c: Use unaligned core access functions for all memory
295 reads and writes.
296 * simulator.c (HALT_NYI): Generate an error message if tracing
297 will not tell the user why the simulator is halting.
298 (HALT_UNREACHABLE): Delete. Delete (unneeded) uses of the macro.
299 (INSTR): New time-saver macro.
300 (fldrb_abs): New function. Loads an 8-bit value using a scaled
301 offset.
302 (fldrh_abs): New function. Likewise for 16-bit values.
303 (do_vec_SSHL): Allow for negative shift values.
304 (do_vec_USHL): Likewise.
305 (do_vec_SHL): Correct computation of shift amount.
306 (do_vec_SSHR_USHR): Correct decision of signed vs unsigned
307 shifts and computation of shift value.
308 (clz): New function. Counts leading zero bits.
309 (do_vec_CLZ): New function. Implements CLZ (vector).
310 (do_vec_MOV_element): Call do_vec_CLZ.
311 (dexSimpleFPCondCompare): Implement.
312 (do_FCVT_half_to_single): New function. Implements one of the
313 FCVT operations.
314 (do_FCVT_half_to_double): New function. Likewise.
315 (do_FCVT_single_to_half): New function. Likewise.
316 (do_FCVT_double_to_half): New function. Likewise.
317 (dexSimpleFPDataProc1Source): Call new FCVT functions.
318 (do_scalar_SHL): Handle negative shifts.
319 (do_scalar_shift): Handle SSHR.
320 (do_scalar_USHL): New function.
321 (do_double_add): Simplify to just performing a double precision
322 add operation. Move remaining code into...
323 (do_scalar_vec): ... New function.
324 (dexLoadUnsignedImmediate): Call new fldrb_abs and fldrh_abs
325 functions.
326 (system_get): Add support for TPIDR, CTR, FPCR, FPSR and CPSR
327 registers.
328 (system_set): New function.
329 (do_MSR_immediate): New function. Stub for now.
330 (do_MSR_reg): New function. Likewise. Partially implements MSR
331 instruction.
332 (do_SYS): New function. Stub for now,
333 (dexSystem): Call new functions.
334
e101a78b
NC
3352016-03-18 Nick Clifton <nickc@redhat.com>
336
337 * cpustate.c: Remove spurious spaces from TRACE strings.
338 Print hex equivalents of floats and doubles.
339 Check element number against array size when accessing vector
340 registers.
4c0ca98e
NC
341 (GET_VEC_ELEMENT): Fix off by one error checking for an invalid
342 element index.
343 (SET_VEC_ELEMENT): Likewise.
87bba7a5 344 (GET_VEC_ELEMENT): And fix thinko using macro arguments.
4c0ca98e 345
e101a78b
NC
346 * memory.c: Trace memory reads when --trace-memory is enabled.
347 Remove float and double load and store functions.
348 * memory.h (aarch64_get_mem_float): Delete prototype.
349 (aarch64_get_mem_double): Likewise.
350 (aarch64_set_mem_float): Likewise.
351 (aarch64_set_mem_double): Likewise.
352 * simulator (IS_SET): Always return either 0 or 1.
353 (IS_CLEAR): Likewise.
354 (fldrs_pcrel): Load and store floats using 32-bit memory accesses
355 and doubles using 64-bit memory accesses.
356 (fldrd_pcrel, fldrs_wb, fldrs_abs, fldrs_scale_ext): Likewise.
357 (fldrd_wb, fldrd_abs, fsturs, fsturd, fldurs, fldurd): Likewise.
358 (fstrs_abs, fstrs_wb, fstrs_scale_ext, fstrd_abs): Likewise.
359 (fstrd_wb, fstrd_scale_ext, store_pair_float): Likewise.
360 (store_pair_double, load_pair_float, load_pair_double): Likewise.
361 (do_vec_MUL_by_element): New function.
362 (do_vec_op2): Call do_vec_MUL_by_element.
363 (do_scalar_NEG): New function.
364 (do_double_add): Call do_scalar_NEG.
365
57aa1742
NC
3662016-03-03 Nick Clifton <nickc@redhat.com>
367
368 * simulator.c (set_flags_for_sub32): Correct type of signbit.
369 (CondCompare): Swap interpretation of bit 30.
370 (DO_ADDP): Delete macro.
371 (do_vec_ADDP): Copy source registers before starting to update
372 destination register.
373 (do_vec_FADDP): Likewise.
374 (do_vec_load_store): Fix computation of sizeof_operation.
375 (rbit64): Fix type of constant.
376 (aarch64_step): When displaying insn value, display all 32 bits.
377
ce39bd38
MF
3782016-01-10 Mike Frysinger <vapier@gentoo.org>
379
380 * config.in, configure: Regenerate.
381
e19418e0
MF
3822016-01-10 Mike Frysinger <vapier@gentoo.org>
383
384 * configure: Regenerate.
385
16f7876d
MF
3862016-01-10 Mike Frysinger <vapier@gentoo.org>
387
388 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
389 * configure: Regenerate.
390
99d8e879
MF
3912016-01-10 Mike Frysinger <vapier@gentoo.org>
392
393 * configure: Regenerate.
35656e95
MF
394
3952016-01-10 Mike Frysinger <vapier@gentoo.org>
396
397 * configure: Regenerate.
99d8e879 398
347fe5bb
MF
3992016-01-10 Mike Frysinger <vapier@gentoo.org>
400
401 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
402 * configure: Regenerate.
403
22be3fbe
MF
4042016-01-10 Mike Frysinger <vapier@gentoo.org>
405
406 * configure: Regenerate.
407
0dc73ef7
MF
4082016-01-10 Mike Frysinger <vapier@gentoo.org>
409
410 * configure: Regenerate.
411
936df756
MF
4122016-01-09 Mike Frysinger <vapier@gentoo.org>
413
414 * config.in, configure: Regenerate.
415
2e3d4f4d
MF
4162016-01-06 Mike Frysinger <vapier@gentoo.org>
417
418 * interp.c (sim_create_inferior): Mark argv and env const.
419 (sim_open): Mark argv const.
420
1a846c62
MF
4212016-01-05 Mike Frysinger <vapier@gentoo.org>
422
423 * interp.c: Delete dis-asm.h include.
424 (info, opbuf, op_printf, aarch64_print_insn, sim_dis_read): Delete.
425 (sim_create_inferior): Delete disassemble init logic.
426 (OPTION_DISAS, aarch64_option_handler, aarch64_options): Delete.
427 (sim_open): Delete sim_add_option_table call.
428 * memory.c (mem_error): Delete disas check.
429 * simulator.c: Delete dis-asm.h include.
430 (disas): Delete.
431 (HALT_UNALLOC): Replace disassembly logic with TRACE_DISASM.
432 (HALT_NYI): Likewise.
433 (handle_halt): Delete disas call.
434 (aarch64_step): Replace disas logic with TRACE_DISASM.
435 * simulator.h: Delete dis-asm.h include.
436 (aarch64_print_insn): Delete.
437
bc273e17
MF
4382016-01-04 Mike Frysinger <vapier@gentoo.org>
439
440 * simulator.c (MAX, MIN): Delete.
441 (do_vec_maxv): Change MAX to max and MIN to min.
442 (do_vec_fminmaxV): Likewise.
443
ac8eefeb
TG
4442016-01-04 Tristan Gingold <gingold@adacore.com>
445
446 * simulator.c: Remove syscall.h include.
447
9bbf6f91
MF
4482016-01-04 Mike Frysinger <vapier@gentoo.org>
449
450 * configure: Regenerate.
451
0cb8d851
MF
4522016-01-03 Mike Frysinger <vapier@gentoo.org>
453
454 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
455 * configure: Regenerate.
456
1ac72f06
MF
4572016-01-02 Mike Frysinger <vapier@gentoo.org>
458
459 * configure: Regenerate.
460
5d015275
MF
4612015-12-27 Mike Frysinger <vapier@gentoo.org>
462
463 * interp.c (sim_dis_read): Change private_data to application_data.
464 (sim_create_inferior): Likewise.
465
5e744ef8
MF
4662015-12-27 Mike Frysinger <vapier@gentoo.org>
467
468 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
469
1b393626
MF
4702015-12-26 Mike Frysinger <vapier@gentoo.org>
471
472 * config.in, configure: Regenerate.
473
0e967299
MF
4742015-12-26 Mike Frysinger <vapier@gentoo.org>
475
476 * interp.c (sim_create_inferior): Update comment and argv check.
477
f66affe9
MF
4782015-12-14 Nick Clifton <nickc@redhat.com>
479
480 * simulator.c (system_get): New function. Provides read
481 access to the dczid system register.
482 (do_mrs): New function - implements the MRS instruction.
483 (dexSystem): Call do_mrs for the MRS instruction. Halt on
484 unimplemented system instructions.
485
4862015-11-24 Nick Clifton <nickc@redhat.com>
487
488 * configure.ac: New configure template.
489 * aclocal.m4: Generate.
490 * config.in: Generate.
491 * configure: Generate.
492 * cpustate.c: New file - functions for accessing AArch64 registers.
493 * cpustate.h: New header.
494 * decode.h: New header.
495 * interp.c: New file - interface between GDB and simulator.
496 * Makefile.in: New makefile template.
497 * memory.c: New file - functions for simulating aarch64 memory
498 accesses.
499 * memory.h: New header.
500 * sim-main.h: New header.
501 * simulator.c: New file - aarch64 simulator functions.
502 * simulator.h: New header.