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