Update the RX simulator to handle the latest opcode types.
[binutils-gdb.git] / sim / rx / ChangeLog
1 2015-11-10 Nick Clifton <nickc@redhat.com>
2
3 * rx.c (id_names): Add nop4, nop5, nop6 and nop7.
4 (decode_opcode): Likewise.
5 (get_op): Handle RX_Operand_Zero_Indirect.
6 Handle RX_Bad_Size and RX_MAX_SIZE.
7 (put_op): Likewise.
8 (N_MAP): Increase to 90.
9
10 2015-06-23 Mike Frysinger <vapier@gentoo.org>
11
12 * configure.ac (AC_ARG_ENABLE(cycle-accurate)): Call AS_HELP_STRING.
13 (AC_ARG_ENABLE(cycle-stats)): Likewise.
14 * configure: Regenerate.
15
16 2015-06-12 Mike Frysinger <vapier@gentoo.org>
17
18 * configure: Regenerate.
19
20 2015-06-12 Mike Frysinger <vapier@gentoo.org>
21
22 * configure: Regenerate.
23
24 2015-04-24 Nick Clifton <nickc@redhat.com>
25
26 PR sim/18273
27 * reg.c (put_reg): Fix check for valid register number.
28
29 2015-04-13 Mike Frysinger <vapier@gentoo.org>
30
31 * configure: Regenerate.
32
33 2015-03-31 Mike Frysinger <vapier@gentoo.org>
34
35 * config.in, configure: Regenerate.
36
37 2015-03-16 Mike Frysinger <vapier@gentoo.org>
38
39 * aclocal.m4, config.in, configure: Regenerate.
40
41 2015-12-15 Joel Brobecker <brobecker@adacore.com>
42
43 * gdb-if.c (open): Rename to...
44 (rx_sim_is_open): This. Replace all uses of "open" by uses of
45 "rx_sim_is_open" throughout.
46
47 2014-08-19 Alan Modra <amodra@gmail.com>
48
49 * configure: Regenerate.
50
51 2014-08-15 Roland McGrath <mcgrathr@google.com>
52
53 * configure: Regenerate.
54 * config.in: Regenerate.
55
56 2014-03-10 Mike Frysinger <vapier@gentoo.org>
57
58 * gdb-if.c (sim_do_command): Add const to cmd. Move args
59 to top and add const. Call strdup on cmd and free at end.
60
61 2014-03-05 Mike Frysinger <vapier@gentoo.org>
62
63 * gdb-if.c (sim_load): Add const to prog.
64
65 2014-02-17 Kevin Buettner <kevinb@redhat.com>
66
67 * gdb-if.c (rx_signal_to_host): Rename to
68 `rx_signal_to_gdb_signal'. Make static. Update all callers
69 to use new name. Use signal names from include/gdb/signals.h.
70
71 2013-09-23 Alan Modra <amodra@gmail.com>
72
73 * configure: Regenerate.
74
75 2013-06-25 Nick Clifton <nickc@redhat.com>
76
77 * rx.c (SHIFT_OP): A shift by zero still sets the condition
78 codes.
79
80 2013-06-03 Mike Frysinger <vapier@gentoo.org>
81
82 * aclocal.m4, configure: Regenerate.
83
84 2013-01-16 Nick Clifton <nickc@redhat.com>
85
86 * rx.c (decode_opcode): Handle RXO_satr.
87
88 2012-06-15 Joel Brobecker <brobecker@adacore.com>
89
90 * config.in, configure: Regenerate.
91
92 2012-05-24 Pedro Alves <palves@redhat.com>
93
94 PR gdb/7205
95
96 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
97
98 2012-03-24 Mike Frysinger <vapier@gentoo.org>
99
100 * aclocal.m4, config.in, configure: Regenerate.
101
102 2012-03-22 Mike Frysinger <vapier@gentoo.org>
103
104 * configure.ac (CYCLE_ACCURATE): Add template with AC_DEFINE call.
105 (CYCLE_STATS): Likewise.
106
107 2012-03-02 Kevin Buettner <kevinb@redhat.com>
108
109 * load.h (rx_load): Add `callback' parameter to function prototype.
110 (gdb/callback.h): Include.
111 * load.c (load.h): Include.
112 (xprintf, find_section_name_by_offset): New functions.
113 (rx_load): Add `callback' parameter. Add code for printing
114 section loaded using GDB's printf facilities.
115 * gdb-if.c (sim_load, sim_create_inferior): Update calls to
116 rx_load().
117 * main.c (main): Likewise.
118 * syscalls.c, syscalls.h (get_callbacks): New function.
119
120 2011-12-03 Mike Frysinger <vapier@gentoo.org>
121
122 * aclocal.m4: New file.
123 * configure: Regenerate.
124
125 2011-10-17 Mike Frysinger <vapier@gentoo.org>
126
127 * configure.ac: Change include to common/acinclude.m4.
128
129 2011-10-17 Mike Frysinger <vapier@gentoo.org>
130
131 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
132 call. Replace common.m4 include with SIM_AC_COMMON.
133 * configure: Regenerate.
134
135 2011-07-11 Mike Frysinger <vapier@gentoo.org>
136
137 * configure.ac: Rename from configure.in.
138
139 2011-07-11 Mike Frysinger <vapier@gentoo.org>
140
141 * configure.in: Add "dnl" before copyright notice.
142
143 2011-04-16 Mike Frysinger <vapier@gentoo.org>
144
145 * gdb-if.c (sim_complete_command): New stub function.
146
147 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
148
149 * gdb-if.c (sim_store_register): Update return value to
150 match new API.
151
152 2010-12-14 DJ Delorie <dj@redhat.com>
153
154 * rx.c (decode_opcode): For "MVFC PC,", use the address of the
155 opcode, not the address following the opcode.
156 (decode_opcode): RXO_branchrel is relative to the opcode's PC, not
157 the address following the opcode.
158
159 2010-11-11 DJ Delorie <dj@redhat.com>
160
161 * rx.c (lsb_count): New.
162 (divu_cycles): New.
163 (div_cycles): New.
164 (decode_opcode): Fix cycle count math for div, divu, suntil, and
165 swhile.
166
167 2010-09-29 Kevin Buettner <kevinb@redhat.com>
168
169 * mem.c (rx_mem_ptr): When invalidating the decode cache, account
170 for the fact that the instruction decoder never uses swapped
171 addresses.
172
173 2010-09-29 Nick Clifton <nickc@redhat.com>
174
175 * rx.c (decode_opcode: RXO_int): Only break out of the emulation
176 loop if rx_syscall() does not return a RX_STEPPED result.
177
178 2010-09-23 Kevin Buettner <kevinb@redhat.com>
179
180 * rx.c (decode_opcode): Add cycle information for RXO_smovu.
181
182 2010-09-23 Kevin Buettner <kevinb@redhat.com>
183
184 * fpu.c, gdb-if.c, load.c, misc.c, syscalls.c (config.h): Include.
185
186 * rx.c (decode_opcode): Declare `tx' as unsigned.
187
188 * cpu.h (reset_decoder): Declare.
189 * load.c (rx_load): Call `reset_decoder'.
190 * rx.c (reset_decoder): New function.
191
192 2010-07-29 DJ Delorie <dj@redhat.com>
193
194 * rx.c (decode_cache_base): New.
195 (id_names): Remove ediv and edivu.
196 (optype_names): Add TwoReg.
197 (maybe_get_mem_page): New.
198 (rx_get_byte): Call it.
199 (get_op): Add TwoReg support.
200 (put_op): Likewise.
201 (PD, PS, PS2, GD, GS, GS2, DSZ, SSZ, S2SZ, US1, US2, OM): "opcode"
202 is a pointer now.
203 (DO_RETURN): New. We use longjmp to return an exception result.
204 (decode_opcode): Make opcode a pointer to the decode cache. Save
205 decoded opcode information and re-use. Call DO_RETURN instead of
206 return throughout. Remove ediv and edivu.
207 * mem.c (ptdc): New. Adds decode cache.
208 (rx_mem_ptr): Support it.
209 (rx_mem_decode_cache): New.
210 * mem.h (enum mem_ptr_action): add MPA_DECODE_CACHE.
211 (rx_mem_decode_cache): Declare.
212 * gdb-if.c (sim_resume): Add decode_opcode's setjmp logic here...
213 * main.c (main): ...and here. Use a fast loop if neither trace
214 nor disassemble is given.
215 * cpu.h (RX_MAKE_STEPPED, RX_MAKE_HIT_BREAK, RX_MAKE_EXITED,
216 RX_MAKE_STOPPED, RX_EXITED, RX_STOPPED): Adjust so that 0 is not a
217 valid code for anything.
218
219 2010-07-27 DJ Delorie <dj@redhat.com>
220
221 * README.txt: New.
222 * config.h (CYCLE_ACCURATE, CYCLE_STATS): New.
223 * configure.in (--enable-cycle-accurate, --enable-cycle-stats):
224 New. Default to enabled.
225 * configure: Regenerate.
226
227 * cpu.h (regs_type): Add cycle tracking info.
228 (reset_pipeline_stats): Declare.
229 (halt_pipeline_stats): Declare.
230 (pipeline_stats): Declare.
231 * main.c (done): Call pipeline_stats().
232 * mem.h (rx_mem_ptr): Moved to here ...
233 * mem.c (mem_ptr): ... from here. Rename throughout.
234 (mem_put_byte): Move LEDs to Port A. Add Port B to control cycle
235 statistics. Move UART to SCI4.
236 (mem_put_hi): Add TPU 1-2. TPU 1 and 2 count CPU cycles.
237 * reg.c (init_regs): Set Rt reg to -1 (no reg).
238 * rx.c: Add cycle counting and statistics throughout.
239 (rx_get_byte): Optimize for speed.
240 (decode_opcode): Likewise.
241 (reset_pipeline_stats): New.
242 (halt_pipeline_stats): New.
243 (pipeline_stats): New.
244 * trace.c (sim_disasm_one): Print cycle count.
245
246 2010-07-07 Kevin Buettner <kevinb@redhat.com>
247
248 * gdb-if.c (sim_store_register): Add case for sim_rx_acc_regnum.
249
250 2010-06-24 Kevin Buettner <kevinb@redhat.com>
251
252 * gdb-if.c (trace.h): Include.
253 (reg_size, sim_fetch_register): Add cases for sim_rx_acc_regnum.
254
255 2010-06-07 Nick Clifton <nickc@redhat.com>
256
257 * reg.c (set_oszc): Use unsigned int for the mask.
258 (set_szc, set_osz, set_sz): Likewise.
259
260 2010-05-28 Kevin Buettner <kevinb@redhat.com>
261
262 * gdb-if.c (sim_do_command): Add a "sim verbose noisy" command.
263
264 2010-04-14 Mike Frysinger <vapier@gentoo.org>
265
266 * gdb-if.c (sim_write): Add const to buf arg.
267
268 2010-01-30 Masaki Muranaka <monaka@monami-software.com>
269
270 * configure.in: Check if the host has getopt.h.
271 * configure: Regenerate.
272 * config.in: Regenerate.
273 * main.c: Include config.h.
274 Use HAVE_STDLIB_H, HAVE_UNISTD_H, HAVE_GETOPT_H.
275 Include getopt.h in case HAVE_GETOPT_H is defined.
276
277 2009-12-22 Yoshinori Sato <ysato@users.sourceforge.jp>
278
279 * rx/rx.c (decode_opcode): btst bit address mask fix.
280
281 2009-11-30 DJ Delorie <dj@redhat.com>
282
283 * rx/rx.c (decode_opcode): fix SWHILE logic.
284
285 2009-10-27 DJ Delorie <dj@redhat.com>
286 Kevin Buettner <kevinb@redhat.com>
287
288 * load.h: New.
289 * rx.c: New.
290 * syscalls.c: New.
291 * syscalls.h: New.
292 * load.c: New.
293 * configure.in: New.
294 * gdb-if.c: New.
295 * err.c: New.
296 * cpu.h: New.
297 * Makefile.in: New.
298 * fpu.c: New.
299 * mem.c: New.
300 * config.in: New.
301 * err.h: New.
302 * reg.c: New.
303 * mem.h: New.
304 * main.c: New.
305 * misc.h: New.
306 * trace.c: New.
307 * misc.c: New.
308 * syscall.h: New.
309 * trace.h: New.
310 * fpu.h: New.