]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/aarch64/ChangeLog
Fix fallout from gdb/20413's fix (x32: linux_ptrace_test_ret_to_nx: Cannot PTRACE_PEE...
[thirdparty/binutils-gdb.git] / sim / aarch64 / ChangeLog
CommitLineData
293acfae
AM
12016-07-27 Alan Modra <amodra@gmail.com>
2
3 * memory.c: Don't include libbfd.h.
4
0f118bc7
NC
52016-07-21 Nick Clifton <nickc@redhat.com>
6
0c66ea4c 7 * simulator.c (fsqrts): Use sqrtf rather than sqrt.
0f118bc7 8
c7be4414
JW
92016-06-30 Jim Wilson <jim.wilson@linaro.org>
10
11 * cpustate.h: Include config.h.
12 (union GRegisterValue): Add WORDS_BIGENDIAN check. For big endian code
13 use anonymous structs to align members.
14 * simulator.c (aarch64_step): Use sim_core_read_buffer and
15 endian_le2h_4 to read instruction from pc.
16
fd7ed446
NC
172016-05-06 Nick Clifton <nickc@redhat.com>
18
19 * simulator.c (do_FMLA_by_element): New function.
20 (do_vec_op2): Call it.
21
2cdad34c
NC
222016-04-27 Nick Clifton <nickc@redhat.com>
23
24 * simulator.c: Add TRACE_DECODE statements to all emulation
25 functions.
26
7517e550
NC
272016-03-30 Nick Clifton <nickc@redhat.com>
28
29 * cpustate.c (aarch64_set_reg_s32): New function.
30 (aarch64_set_reg_u32): New function.
31 (aarch64_get_FP_half): Place half precision value into the correct
32 slot of the union.
33 (aarch64_set_FP_half): Likewise.
34 * cpustate.h: Add prototypes for aarch64_set_reg_s32 and
35 aarch64_set_reg_u32.
36 * memory.c (FETCH_FUNC): Cast the read value to the access type
37 before converting it to the return type. Rename to FETCH_FUNC64.
38 (FETCH_FUNC32): New macro. Duplicates FETCH_FUNC64 but for 32-bit
39 accesses. Use for 32-bit memory access functions.
40 * simulator.c (ldrsb_wb): Use sign extension not zero extension.
41 (ldrb_scale_ext, ldrsh32_abs, ldrsh32_wb): Likewise.
42 (ldrsh32_scale_ext, ldrsh_abs, ldrsh64_wb): Likewise.
43 (ldrsh_scale_ext, ldrsw_abs): Likewise.
44 (ldrh32_abs): Store 32 bit value not 64-bits.
45 (ldrh32_wb, ldrh32_scale_ext): Likewise.
46 (do_vec_MOV_immediate): Fix computation of val.
47 (do_vec_MVNI): Likewise.
48 (DO_VEC_WIDENING_MUL): New macro.
49 (do_vec_mull): Use new macro.
50 (do_vec_mul): Use new macro.
51 (do_vec_MLA): Read values before writing.
52 (do_vec_xtl): Likewise.
53 (do_vec_SSHL): Select correct shift value.
54 (do_vec_USHL): Likewise.
55 (do_scalar_UCVTF): New function.
56 (do_scalar_vec): Call new function.
57 (store_pair_u64): Treat reads of SP as reads of XZR.
58
ef0d8ffc
NC
592016-03-29 Nick Clifton <nickc@redhat.com>
60
61 * cpustate.c: Remove space after asterisk in function parameters.
62 * decode.h (greg): Delete unused function.
63 (vreg, shift, extension, scaling, writeback, condcode): Likewise.
64 * simulator.c: Use INSTR macro in more places.
65 (HALT_NYI): Use sim_io_eprintf in place of fprintf.
66 Remove extraneous whitespace.
67
5ab6d79e
NC
682016-03-23 Nick Clifton <nickc@redhat.com>
69
70 * cpustate.c (aarch64_get_FP_half): New function. Read a vector
71 register as a half precision floating point number.
72 (aarch64_set_FP_half): New function. Similar, but for setting
73 a half precision register.
74 (aarch64_get_thread_id): New function. Returns the value of the
75 CPU's TPIDR register.
76 (aarch64_get_FPCR): New function. Returns the value of the CPU's
77 floating point control register.
78 (aarch64_set_FPCR): New function. Set the value of the CPU's FPCR
79 register.
80 * cpustate.h: Add prototypes for new functions.
81 * sim-main.h (struct _sim_cpu): Add FPCR and tpidr fields.
82 * memory.c: Use unaligned core access functions for all memory
83 reads and writes.
84 * simulator.c (HALT_NYI): Generate an error message if tracing
85 will not tell the user why the simulator is halting.
86 (HALT_UNREACHABLE): Delete. Delete (unneeded) uses of the macro.
87 (INSTR): New time-saver macro.
88 (fldrb_abs): New function. Loads an 8-bit value using a scaled
89 offset.
90 (fldrh_abs): New function. Likewise for 16-bit values.
91 (do_vec_SSHL): Allow for negative shift values.
92 (do_vec_USHL): Likewise.
93 (do_vec_SHL): Correct computation of shift amount.
94 (do_vec_SSHR_USHR): Correct decision of signed vs unsigned
95 shifts and computation of shift value.
96 (clz): New function. Counts leading zero bits.
97 (do_vec_CLZ): New function. Implements CLZ (vector).
98 (do_vec_MOV_element): Call do_vec_CLZ.
99 (dexSimpleFPCondCompare): Implement.
100 (do_FCVT_half_to_single): New function. Implements one of the
101 FCVT operations.
102 (do_FCVT_half_to_double): New function. Likewise.
103 (do_FCVT_single_to_half): New function. Likewise.
104 (do_FCVT_double_to_half): New function. Likewise.
105 (dexSimpleFPDataProc1Source): Call new FCVT functions.
106 (do_scalar_SHL): Handle negative shifts.
107 (do_scalar_shift): Handle SSHR.
108 (do_scalar_USHL): New function.
109 (do_double_add): Simplify to just performing a double precision
110 add operation. Move remaining code into...
111 (do_scalar_vec): ... New function.
112 (dexLoadUnsignedImmediate): Call new fldrb_abs and fldrh_abs
113 functions.
114 (system_get): Add support for TPIDR, CTR, FPCR, FPSR and CPSR
115 registers.
116 (system_set): New function.
117 (do_MSR_immediate): New function. Stub for now.
118 (do_MSR_reg): New function. Likewise. Partially implements MSR
119 instruction.
120 (do_SYS): New function. Stub for now,
121 (dexSystem): Call new functions.
122
e101a78b
NC
1232016-03-18 Nick Clifton <nickc@redhat.com>
124
125 * cpustate.c: Remove spurious spaces from TRACE strings.
126 Print hex equivalents of floats and doubles.
127 Check element number against array size when accessing vector
128 registers.
4c0ca98e
NC
129 (GET_VEC_ELEMENT): Fix off by one error checking for an invalid
130 element index.
131 (SET_VEC_ELEMENT): Likewise.
87bba7a5 132 (GET_VEC_ELEMENT): And fix thinko using macro arguments.
4c0ca98e 133
e101a78b
NC
134 * memory.c: Trace memory reads when --trace-memory is enabled.
135 Remove float and double load and store functions.
136 * memory.h (aarch64_get_mem_float): Delete prototype.
137 (aarch64_get_mem_double): Likewise.
138 (aarch64_set_mem_float): Likewise.
139 (aarch64_set_mem_double): Likewise.
140 * simulator (IS_SET): Always return either 0 or 1.
141 (IS_CLEAR): Likewise.
142 (fldrs_pcrel): Load and store floats using 32-bit memory accesses
143 and doubles using 64-bit memory accesses.
144 (fldrd_pcrel, fldrs_wb, fldrs_abs, fldrs_scale_ext): Likewise.
145 (fldrd_wb, fldrd_abs, fsturs, fsturd, fldurs, fldurd): Likewise.
146 (fstrs_abs, fstrs_wb, fstrs_scale_ext, fstrd_abs): Likewise.
147 (fstrd_wb, fstrd_scale_ext, store_pair_float): Likewise.
148 (store_pair_double, load_pair_float, load_pair_double): Likewise.
149 (do_vec_MUL_by_element): New function.
150 (do_vec_op2): Call do_vec_MUL_by_element.
151 (do_scalar_NEG): New function.
152 (do_double_add): Call do_scalar_NEG.
153
57aa1742
NC
1542016-03-03 Nick Clifton <nickc@redhat.com>
155
156 * simulator.c (set_flags_for_sub32): Correct type of signbit.
157 (CondCompare): Swap interpretation of bit 30.
158 (DO_ADDP): Delete macro.
159 (do_vec_ADDP): Copy source registers before starting to update
160 destination register.
161 (do_vec_FADDP): Likewise.
162 (do_vec_load_store): Fix computation of sizeof_operation.
163 (rbit64): Fix type of constant.
164 (aarch64_step): When displaying insn value, display all 32 bits.
165
ce39bd38
MF
1662016-01-10 Mike Frysinger <vapier@gentoo.org>
167
168 * config.in, configure: Regenerate.
169
e19418e0
MF
1702016-01-10 Mike Frysinger <vapier@gentoo.org>
171
172 * configure: Regenerate.
173
16f7876d
MF
1742016-01-10 Mike Frysinger <vapier@gentoo.org>
175
176 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
177 * configure: Regenerate.
178
99d8e879
MF
1792016-01-10 Mike Frysinger <vapier@gentoo.org>
180
181 * configure: Regenerate.
35656e95
MF
182
1832016-01-10 Mike Frysinger <vapier@gentoo.org>
184
185 * configure: Regenerate.
99d8e879 186
347fe5bb
MF
1872016-01-10 Mike Frysinger <vapier@gentoo.org>
188
189 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
190 * configure: Regenerate.
191
22be3fbe
MF
1922016-01-10 Mike Frysinger <vapier@gentoo.org>
193
194 * configure: Regenerate.
195
0dc73ef7
MF
1962016-01-10 Mike Frysinger <vapier@gentoo.org>
197
198 * configure: Regenerate.
199
936df756
MF
2002016-01-09 Mike Frysinger <vapier@gentoo.org>
201
202 * config.in, configure: Regenerate.
203
2e3d4f4d
MF
2042016-01-06 Mike Frysinger <vapier@gentoo.org>
205
206 * interp.c (sim_create_inferior): Mark argv and env const.
207 (sim_open): Mark argv const.
208
1a846c62
MF
2092016-01-05 Mike Frysinger <vapier@gentoo.org>
210
211 * interp.c: Delete dis-asm.h include.
212 (info, opbuf, op_printf, aarch64_print_insn, sim_dis_read): Delete.
213 (sim_create_inferior): Delete disassemble init logic.
214 (OPTION_DISAS, aarch64_option_handler, aarch64_options): Delete.
215 (sim_open): Delete sim_add_option_table call.
216 * memory.c (mem_error): Delete disas check.
217 * simulator.c: Delete dis-asm.h include.
218 (disas): Delete.
219 (HALT_UNALLOC): Replace disassembly logic with TRACE_DISASM.
220 (HALT_NYI): Likewise.
221 (handle_halt): Delete disas call.
222 (aarch64_step): Replace disas logic with TRACE_DISASM.
223 * simulator.h: Delete dis-asm.h include.
224 (aarch64_print_insn): Delete.
225
bc273e17
MF
2262016-01-04 Mike Frysinger <vapier@gentoo.org>
227
228 * simulator.c (MAX, MIN): Delete.
229 (do_vec_maxv): Change MAX to max and MIN to min.
230 (do_vec_fminmaxV): Likewise.
231
ac8eefeb
TG
2322016-01-04 Tristan Gingold <gingold@adacore.com>
233
234 * simulator.c: Remove syscall.h include.
235
9bbf6f91
MF
2362016-01-04 Mike Frysinger <vapier@gentoo.org>
237
238 * configure: Regenerate.
239
0cb8d851
MF
2402016-01-03 Mike Frysinger <vapier@gentoo.org>
241
242 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
243 * configure: Regenerate.
244
1ac72f06
MF
2452016-01-02 Mike Frysinger <vapier@gentoo.org>
246
247 * configure: Regenerate.
248
5d015275
MF
2492015-12-27 Mike Frysinger <vapier@gentoo.org>
250
251 * interp.c (sim_dis_read): Change private_data to application_data.
252 (sim_create_inferior): Likewise.
253
5e744ef8
MF
2542015-12-27 Mike Frysinger <vapier@gentoo.org>
255
256 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
257
1b393626
MF
2582015-12-26 Mike Frysinger <vapier@gentoo.org>
259
260 * config.in, configure: Regenerate.
261
0e967299
MF
2622015-12-26 Mike Frysinger <vapier@gentoo.org>
263
264 * interp.c (sim_create_inferior): Update comment and argv check.
265
f66affe9
MF
2662015-12-14 Nick Clifton <nickc@redhat.com>
267
268 * simulator.c (system_get): New function. Provides read
269 access to the dczid system register.
270 (do_mrs): New function - implements the MRS instruction.
271 (dexSystem): Call do_mrs for the MRS instruction. Halt on
272 unimplemented system instructions.
273
2742015-11-24 Nick Clifton <nickc@redhat.com>
275
276 * configure.ac: New configure template.
277 * aclocal.m4: Generate.
278 * config.in: Generate.
279 * configure: Generate.
280 * cpustate.c: New file - functions for accessing AArch64 registers.
281 * cpustate.h: New header.
282 * decode.h: New header.
283 * interp.c: New file - interface between GDB and simulator.
284 * Makefile.in: New makefile template.
285 * memory.c: New file - functions for simulating aarch64 memory
286 accesses.
287 * memory.h: New header.
288 * sim-main.h: New header.
289 * simulator.c: New file - aarch64 simulator functions.
290 * simulator.h: New header.