]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mn10300/ChangeLog
* config/i386/nbsd.mt (TDEPFILES): Move solib.o from here...
[thirdparty/binutils-gdb.git] / sim / mn10300 / ChangeLog
CommitLineData
e33c0364
AO
12000-05-22 Alexandre Oliva <aoliva@cygnus.com>
2
3 * am33.igen: Fix leading comments of SP-relative offset insns that
4 referred to other registers. Make their offsets unsigned.
5
24a39d88
AO
62000-05-18 Alexandre Oliva <aoliva@cygnus.com>
7
8 * mn10300_sim.h (genericAdd, genericSub, genericCmp, genericOr,
9 genericXor, genericBtst): Use `unsigned32'.
10 * op_utils.c: Likewise.
11 * mn10300.igen, am33.igen: Use `unsigned32', `signed32',
12 `unsigned64' or `signed64' where type width is relevant.
13
bfa8561f
AO
142000-04-25 Alexandre Oliva <aoliva@cygnus.com>
15
16 * am33.igen (inc4 Rn): Use genericAdd so as to modify flags.
17
d8e7020f
AO
182000-04-09 Alexandre Oliva <aoliva@cygnus.com>
19
20 * am33.igen: Make SP-relative offsets unsigned. Add `*am33' for
21 some instructions that were missing it.
22
a9e3a739
FCE
232000-03-03 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
24
25 * Makefile.in (IGEN_INSN): Added am33.igen.
26
d4f3574e
SS
27Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
28
29 * configure: Regenerated to track ../common/aclocal.m4 changes.
30
adf40b2e
JM
31Tue Jul 13 13:26:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
32
33 * interp.c: Clarify error message reporting an unknown board.
34
cd0fc7c3
SS
351999-05-08 Felix Lee <flee@cygnus.com>
36
37 * configure: Regenerated to track ../common/aclocal.m4 changes.
38
7a292a7a
SS
391999-04-16 Frank Ch. Eigler <fche@cygnus.com>
40
41 * interp.c (program_interrupt): Detect undesired recursion using
42 static flag. Set NMIRC register's SYSEF flag during
43 --board=stdeval1 mode.
44 * dv-mn103-int.c (write_icr): Add backdoor address to allow CPU to
45 set SYSEF flag.
46
471999-04-02 Keith Seitz <keiths@cygnus.com>
48
49 * Makefile.in (SIM_EXTRA_CFLAGS): Define a POLL_QUIT_INTERVAL
50 for use in the simulator so that the poll_quit callback is
51 not called too often.
52
53Tue Mar 9 21:26:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
54
55 * dv-mn103int.c (mn103int_ioctl): Return something.
56 * dv-mn103tim.c (write_tm6md): GCC suggested parentheses around &&
57 within ||.
58
59Tue Feb 16 23:57:17 1999 Jeffrey A Law (law@cygnus.com)
60
61 * mn10300.igen (retf): Fix return address computation and store
62 the new pc value into nia.
63
c906108c
SS
641998-12-29 Frank Ch. Eigler <fche@cygnus.com>
65
66 * Makefile.in (WITH_COMMON_OBJS): Build also dv-sockser.o.
67 * interp.c (sim_open): Add stub mn103002 cache control memory regions.
68 Set OPERATING_ENVIRONMENT on "stdeval1" board.
69 (mn10300_core_signal): New function to intercept memory errors.
70 (program_interrupt): New function to dispatch to exception vector
71 (mn10300_exception_*): New functions to snapshot pre/post exception
72 state.
73 * sim-main.h (SIM_CORE_SIGNAL): Define hook - call mn10300_core_signal.
74 (SIM_ENGINE_HALT_HOOK): Do nothing.
75 (SIM_CPU_EXCEPTION*): Define hooks to call mn10300_cpu_exception*().
76 (_sim_cpu): Add exc_* fields to store register value snapshots.
77 * dv-mn103ser.c (*): Support dv-sockser backend for UART I/O.
78 Various endianness and warning fixes.
79 * mn10300.igen (illegal): Call program_interrupt on error.
80 (break): Call program_interrupt on breakpoint
81
82 Several changes from <janczyn@cygnus.com> and <cagney@cygnus.com>
83 merged in:
84 * dv-mn103int.c (mn103int_ioctl): New function for NMI
85 generation. (mn103int_finish): Install it as ioctl handler.
86 * dv-mn103tim.c: Support timer 6 specially. Endianness fixes.
87
c2d11a7d
JM
88Wed Oct 14 12:11:05 1998 Jeffrey A Law (law@cygnus.com)
89
90 * am33.igen: Allow autoincrement stores using the same register
91 for source and destination operands.
92
93Mon Aug 31 10:19:55 1998 Jeffrey A Law (law@cygnus.com)
94
95 * am33.igen: Reverse HI/LO outputs of 4 operand "mul" and "mulu".
96
c906108c
SS
97Fri Aug 28 14:40:49 1998 Joyce Janczyn <janczyn@cygnus.com>
98
99 * interp.c (sim_open): Check for invalid --board option, fix
100 indentation, allocate memory for mem control and DMA regs.
101
102Wed Aug 26 09:29:38 1998 Joyce Janczyn <janczyn@cygnus.com>
103
104 * mn10300.igen (div,divu): Fix divide instructions so divide by 0
105 behaves like the hardware.
106
107Mon Aug 24 11:50:09 1998 Joyce Janczyn <janczyn@cygnus.com>
108
109 * sim-main.h (SIM_HANDLES_LMA): Define SIM_HANDLES_LMA.
110
c2d11a7d
JM
111Wed Aug 12 12:36:07 1998 Jeffrey A Law (law@cygnus.com)
112
113 * am33.igen: Handle case where first DSP operation modifies a
114 register used in the second DSP operation correctly.
115
116Tue Jul 28 10:10:25 1998 Jeffrey A Law (law@cygnus.com)
117
118 * am33.igen: Detect cases where two operands must not match for
119 DSP instructions too.
120
121Mon Jul 27 12:04:17 1998 Jeffrey A Law (law@cygnus.com)
122
123 * am33.igen: Detect cases where two operands must not match in
124 non-DSP instructions.
125
c906108c
SS
126Fri Jul 24 18:15:21 1998 Joyce Janczyn <janczyn@cygnus.com>
127
128 * op_utils.c (do_syscall): Rewrite to use common/syscall.c.
129 (syscall_read_mem, syscall_write_mem): New functions for syscall
130 callbacks.
131 * mn10300_sim.h: Add prototypes for syscall_read_mem and
132 syscall_write_mem.
133 * mn10300.igen: Change C++ style comments to C style comments.
134 Check for divide by zero in div and divu ops.
135
c2d11a7d
JM
136Fri Jul 24 12:49:28 1998 Jeffrey A Law (law@cygnus.com)
137
138 * am33.igen (translate_xreg): New function. Use it as needed.
139
140Thu Jul 23 10:05:28 1998 Jeffrey A Law (law@cygnus.com)
141
142 * am33.igen: Add some missing instructions.
143
144 * am33.igen: Autoincrement loads/store fixes.
145
146Tue Jul 21 09:48:14 1998 Jeffrey A Law (law@cygnus.com)
147
148 * am33.igen: Add mov_lCC DSP instructions.
149
150 * am33.igen: Add most am33 DSP instructions.
151
c906108c
SS
152Thu Jul 9 10:06:55 1998 Jeffrey A Law (law@cygnus.com)
153
154 * mn10300.igen: Fix Z bit for addc and subc instructions.
155 Minor fixes in multiply/divide patterns.
156
c2d11a7d
JM
157 * am33.igen: Add missing mul[u] imm32,Rn. Fix condition code
158 handling for many instructions. Fix sign extension for some
159 24bit immediates.
160
161 * am33.igen: Fix Z bit for remaining addc/subc instructions.
162 Do not sign extend immediate for mov imm,XRn.
163 More random mul, mac & div fixes.
164 Remove some unused variables.
165 Sign extend 24bit displacement in memory addresses.
166
167 * am33.igen: Fix Z bit for addc Rm,Rn and subc Rm,Rn. Various
168 fixes to 2 register multiply, divide and mac instructions. Set
169 Z,N correctly for sat16. Sign extend 24 bit immediate for add,
170 and sub instructions.
171
172 * am33.igen: Add remaining non-DSP instructions.
173
174Wed Jul 8 16:29:12 1998 Jeffrey A Law (law@cygnus.com)
175
176 * am33.igen (translate_rreg): New function. Use it as appropriate.
177
178 * am33.igen: More am33 instructions. Fix "div".
179
180Mon Jul 6 15:39:22 1998 Jeffrey A Law (law@cygnus.com)
181
182 * mn10300.igen: Add am33 support.
183
184 * Makefile.in: Use multi-sim to support both a mn10300 and am33
185 simulator.
186
187 * am33.igen: Add many more am33 instructions.
c906108c
SS
188
189Wed Jul 1 17:07:09 1998 Jeffrey A Law (law@cygnus.com)
190
191 * mn10300_sim.h (FETCH24): Define.
192
c2d11a7d
JM
193 * mn10300_sim.h: Add defines for some registers found on the AM33.
194 * am33.igen: New file with some am33 support.
c906108c
SS
195
196Tue Jun 30 11:23:20 1998 Jeffrey A Law (law@cygnus.com)
197
198 * mn10300_sim.h: Include bfd.h
199 (struct state): Add more room for processor specific registers.
c2d11a7d 200 (REG_E0): Define.
c906108c
SS
201
202Thu Jun 25 10:12:03 1998 Joyce Janczyn <janczyn@cygnus.com>
203
204 * dv-mn103tim.c: Include sim-assert.h
205 * dv-mn103ser.c (do_polling_event): Check for incoming data on
206 serial line and schedule next polling event.
207 (read_status_reg): schedule events to check for incoming data on
208 serial line and issue interrupt if necessary.
209
210Fri Jun 19 16:47:27 1998 Joyce Janczyn <janczyn@cygnus.com>
211
212 * interp.c (sim_open): hook up serial 1 and 2 ports properly (typo).
213
214Fri Jun 19 11:59:26 1998 Joyce Janczyn <janczyn@cygnus.com>
215
216 * interp.c (board): Rename am32 to stdeval1 as this is the name
217 consistently used to refer to the mn1030002 board.
218
219Thu June 18 14:37:14 1998 Joyce Janczyn <janczyn@cygnus.com>
220 * interp.c (sim_open): Fix typo in address of EXTMD register
221 (0x34000280, not 0x3400280).
222
223Wed Jun 17 18:00:18 1998 Jeffrey A Law (law@cygnus.com)
224
225 * simops.c (syscall): Handle change in opcode # for syscall.
226 * mn10300.igen (syscall): Likewise.
227
228Tue June 16 09:36:21 1998 Joyce Janczyn <janczyn@cygnus.com>
229 * dv-mn103int.c (mn103int_finish): Regular interrupts (not NMI or
230 reset) are not enabled on reset.
231
232Sun June 14 17:04:00 1998 Joyce Janczyn <janczyn@cygnus.com>
233 * dv-mn103iop.c (write_*_reg): Check for attempt to write r/o
234 register bits.
235 * dv-mn103ser.c: Fill in methods for reading and writing to serial
236 device registers.
237 * interp.c (sim_open): Make the serial device a polling device.
238
239Fri June 12 16:24:00 1998 Joyce Janczyn <janczyn@cygnus.com>
240 * dv-mn103iop.c: New file for handling am32 io ports.
241 * configure.in: Add mn103iop to hw_device list.
242 * configure: Re-generate.
243 * interp.c (sim_open): Create io port device.
244
245Wed June 10 14:34:00 1998 Joyce Janczyn <janczyn@cygnus.com>
246 * dv-mn103int.c (external_group): Use enumerated types to access
247 correct group addresses.
248 * dv-mn103tim.c (do_counter_event): Underflow of cascaded timer
249 triggers an interrupt on the higher-numbered timer's port.
250
251Mon June 8 13:30:00 1998 Joyce Janczyn <janczyn@cygnus.com>
252 * interp.c: (mn10300_option_handler): New function parses arguments
253 using sim-options.
254 * (board): Add --board option for specifying am32.
255 * (sim_open): Create new timer and serial devices and control
256 configuration of other am32 devices via board option.
257 * dv-mn103tim.c, dv-mn103ser.c: New files for timers and serial devices.
258 * dv-mn103cpu.c: Fix typos in opening comments.
259 * dv-mn103int.c: Adjust interrupt controller settings for am32 instead of am30.
260 * configure.in: Add mn103tim and mn103ser to hw_device list.
261 * configure: Re-generate.
262
263Mon May 25 20:50:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
264
265 * dv-mn103int.c, dv-mn103cpu.c: Rename *_callback to *_method.
266
267 * dv-mn103cpu.c, dv-mn103int.c: Include hw-main.h and
268 sim-main.h. Declare a struct hw_descriptor instead of struct
269 hw_device_descriptor.
270
271Mon May 25 17:33:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
272
273 * dv-mn103cpu.c (struct mn103cpu): Change type of pending_handler
274 to struct hw_event.
275
276Fri May 22 12:17:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
277
278 * configure.in (SIM_AC_OPTION_HARDWARE): Add argument "yes".
279
280Wed May 6 13:29:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
281
282 * interp.c (sim_open): Create a polling PAL device.
283
284Fri May 1 16:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
285
286 * dv-mn103int.c (mn103int_port_event):
287 (mn103int_port_event):
288 (mn103int_io_read_buffer):
289 (mn103int_io_write_buffer):
290
291 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Drop CPU/CIA args.
292 (mn103cpu_port_event): Ditto.
293 (mn103cpu_io_read_buffer): Ditto.
294 (mn103cpu_io_write_buffer): Ditto.
295
296Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
297
298 * configure: Regenerated to track ../common/aclocal.m4 changes.
299
300Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
301
302 * configure: Regenerated to track ../common/aclocal.m4 changes.
303 * config.in: Ditto.
304
305Sun Apr 26 15:19:55 1998 Tom Tromey <tromey@cygnus.com>
306
307 * acconfig.h: New file.
308 * configure.in: Reverted change of Apr 24; use sinclude again.
309
310Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
311
312 * configure: Regenerated to track ../common/aclocal.m4 changes.
313 * config.in: Ditto.
314
315Fri Apr 24 11:19:07 1998 Tom Tromey <tromey@cygnus.com>
316
317 * configure.in: Don't call sinclude.
318
319Tue Apr 14 10:03:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
320
321 * mn10300_sim.h: Declare all functions in op_utils.c using
322 INLINE_SIM_MAIN.
323 * op_utils.c: Ditto.
324 * sim-main.c: New file. Include op_utils.c.
325
326 * mn10300.igen (mov, cmp): Use new igen operators `!' and `=' to
327 differentiate between MOV/CMP immediate/register instructions.
328
329 * configure.in (SIM_AC_OPTION_INLINE): Add and enable.
330 * configure: Regenerate.
331
332Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
333
334 * configure: Regenerated to track ../common/aclocal.m4 changes.
335
336Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
337
338 * interp.c (hw): Delete variable, moved to SIM_DESC.
339 (sim_open): Delete calls to hw_tree_create, hw_tree_finish.
340 Handled by sim-module.
341 (sim_open): Do not anotate tree with trace properties, handled by
342 sim-hw.c
343 (sim_open): Call sim_hw_parse instead of hw_tree_parse.
344
345 * configure: Regenerated to track ../common/aclocal.m4 changes.
346
347Thu Mar 26 20:46:18 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
348
349 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Save the entire PC
350 on the stack when delivering interrupts (not just the lower
351 half)...
352 * mn10300.igen (mov (Di,Am),Dn): Fix decode. Registers were
353 specified in the wrong order.
354
355Fri Mar 27 00:56:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
356
357 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Stop loss of
358 succeeding interrupts, clear pending_handler when the handler
359 isn't re-scheduled.
360
361Thu Mar 26 10:11:01 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
362
363 * Makefile.in (tmp-igen): Prefix all usage of move-if-change
364 script with $(SHELL) to make NT native builds happy.
365 * configure: Regenerate because of change to ../common/aclocal.m4.
366
367Thu Mar 26 11:22:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
368
369 * configure.in: Make --enable-sim-common the default.
370 * configure: Re-generate.
371
372 * sim-main.h (CIA_GET, CIA_SET): Save/restore current instruction
373 address into Sate.regs[REG_PC] instead of common struct.
374
375Wed Mar 25 17:42:00 1998 Joyce Janczyn <janczyn@cygnus.com>
376
377 * mn10300.igen (cmp imm8,An): Do not sign extend imm8 value.
378
379Wed Mar 25 12:08:00 1998 Joyce Janczyn <janczyn@cygnus.com>
380
381 * simops.c (OP_F0FD): Initialise variable 'sp'.
382
383Thu Mar 26 00:21:32 1998 Andrew Cagney <cagney@b1.cygnus.com>
384
385 * dv-mn103int.c (decode_group): A group register every 4 bytes not
386 8.
387 (write_icr): Rewrite equation updating request field.
388 (read_iagr): Fix check that interrupt is still pending.
389
390Wed Mar 25 16:14:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
391
392 * interp.c (sim_open): Tidy up device creation.
393
394 * dv-mn103int.c (mn103int_port_event): Drive NMI with non-zero
395 value.
396 (mn103int_io_read_buffer): Convert absolute address to register
397 block offsets.
398 (read_icr, write_icr): Convert block offset into group offset.
399
400Wed Mar 25 15:08:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
401
402 * interp.c (sim_open): Create second 1mb memory region at
403 0x40000000.
404 (sim_open): Create a device tree.
405 (sim-hw.h): Include.
406 (do_interrupt): Delete, needs to use dv-mn103cpu.c
407
408 * dv-mn103int.c, dv-mn103cpu.c: New files.
409
410Wed Mar 25 08:47:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
411
412 * mn10300_sim.h (EXTRACT_PSW_LM, INSERT_PSW_LM, PSW_IE, PSW_LM):
413 Define.
414 (SP): Define.
415
416Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
417
418 * configure: Regenerated to track ../common/aclocal.m4 changes.
419
420Wed Mar 25 10:24:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
421
422 * interp.c (sim-options.h): Include.
423 (sim_kind, myname): Declare when not using common framework.
424
425 * mn10300_sim.h (do_syscall, generic*): Provide prototypes for
426 functions found in op_utils.c
427
428 * mn10300.igen (add): Discard unused variables.
429
430 * configure, config.in: Re-generate with autoconf 2.12.1.
431
432Tue Mar 24 15:27:00 1998 Joyce Janczyn <janczyn@cygnus.com>
433
434 Add support for --enable-sim-common option.
435 * Makefile.in (WITHOUT_COMMON_OBJS): Files included if
436 ! --enable-sim-common
437 (WITH_COMMON_OBJS): Files included if --enable-sim-common.
438 (MN10300_OBJS,MN10300_INTERP_DEP): New variables.
439 (SIM_OBJS): Rewrite.
440 ({WITHOUT,WITH}_COMMON_RUN_OBJS,SIM_RUN_OBJS): New variables.
441 (SIM_EXTRA_CFLAGS): New variable.
442 (clean-extra): Clean up igen files.
443 (../igen/igen,clean-igen,tmp-igen): New rules.
444 * configure.in: Add support for common framework via
445 --enable-sim-common.
446 * configure: Regenerate.
447 * interp.c: #include sim-main if WITH_COMMON, not mn10300_sim.h.
448 (hash,dispatch,sim_size): Don't compile if ! WITH_COMMON.
449 (init_system,sim_write,compare_simops): Likewise.
450 (sim_set_profile,sim_set_profile_size): Likewise.
451 (sim_stop,sim_resume,sim_trace,sim_info): Likewise.
452 (sim_set_callbacks,sim_stop_reason,sim_read,sim_load): Likewise.
453 (enum interrupt_type): New enum.
454 (interrupt_names): New global.
455 (do_interrupt): New function.
456 (sim_open): Define differently if WITH_COMMON.
457 (sim_close,sim_create_inferior,sim_do_command): Likewise.
458 * mn10300_sim.h ({load,store}_{byte,half,word}): Define versions
459 for WITH_COMMON.
460 * mn10300.igen: New file.
461 * mn10300.dc: New file.
462 * op_utils.c: New file.
463 * sim-main.h: New file.
464
465Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
466
467 * configure: Regenerated to track ../common/aclocal.m4 changes.
468
469Fri Feb 27 18:36:04 1998 Jeffrey A Law (law@cygnus.com)
470
471 * simops.c (inc): Fix typo.
472
473Wed Feb 25 01:59:29 1998 Jeffrey A Law (law@cygnus.com)
474
475 * simops.c (signed multiply instructions): Cast input operands to
476 signed32 before casting them to signed64 so that the sign bit
477 is propagated properly.
478
479Mon Feb 23 20:23:19 1998 Mark Alexander <marka@cygnus.com>
480
481 * Makefile.in: Last change was bad. Define NL_TARGET
482 so that targ-vals.h will be used instead of syscall.h.
483 * simops.c: Use targ-vals.h instead of syscall.h.
484 (OP_F020): Disable unsupported system calls.
485
486Mon Feb 23 09:44:38 1998 Mark Alexander <marka@cygnus.com>
487
488 * Makefile.in: Get header files from libgloss/mn10300/sys.
489
490Sun Feb 22 16:02:24 1998 Jeffrey A Law (law@cygnus.com)
491
492 * simops.c: Include sim-types.h.
493
494Wed Feb 18 13:07:08 1998 Jeffrey A Law (law@cygnus.com)
495
496 * simops.c (multiply instructions): Cast input operands to a
497 signed64/unsigned64 type as appropriate.
498
499Tue Feb 17 12:47:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
500
501 * interp.c (sim_store_register, sim_fetch_register): Pass in
502 length parameter. Return -1.
503
504Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
505
506 * configure: Regenerated to track ../common/aclocal.m4 changes.
507
508Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
509
510 * configure: Regenerated to track ../common/aclocal.m4 changes.
511
512Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
513
514 * configure: Regenerated to track ../common/aclocal.m4 changes.
515
516Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
517
518 * configure: Regenerated to track ../common/aclocal.m4 changes.
519 * config.in: Ditto.
520
521Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
522
523 * configure: Regenerated to track ../common/aclocal.m4 changes.
524
525Tue Nov 11 10:38:52 1997 Jeffrey A Law (law@cygnus.com)
526
527 * simops.c (call:16 call:32): Stack adjustment is determined solely
528 by the imm8 field.
529
530Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
531
532 * interp.c (sim_load): Pass lma_p and sim_write args to
533 sim_load_file.
534
535Tue Oct 21 10:12:03 1997 Jeffrey A Law (law@cygnus.com)
536
537 * simops.c: Correctly handle register restores for "ret" and "retf"
538 instructions.
539
540Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
541
542 * configure: Regenerated to track ../common/aclocal.m4 changes.
543
544Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
545
546 * configure: Regenerated to track ../common/aclocal.m4 changes.
547
548Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
549
550 * configure: Regenerated to track ../common/aclocal.m4 changes.
551
552Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
553
554 * configure: Regenerated to track ../common/aclocal.m4 changes.
555
556Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
557
558 * configure: Regenerated to track ../common/aclocal.m4 changes.
559
560Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
561
562 * configure: Regenerated to track ../common/aclocal.m4 changes.
563
564Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
565
566 * configure: Regenerated to track ../common/aclocal.m4 changes.
567
568Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
569
570 * configure: Regenerated to track ../common/aclocal.m4 changes.
571 * config.in: Ditto.
572
573Tue Aug 26 10:41:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
574
575 * interp.c (sim_kill): Delete.
576 (sim_create_inferior): Add ABFD argument.
577 (sim_load): Move setting of PC from here.
578 (sim_create_inferior): To here.
579
580Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
581
582 * configure: Regenerated to track ../common/aclocal.m4 changes.
583 * config.in: Ditto.
584
585Mon Aug 25 16:14:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
586
587 * interp.c (sim_open): Add ABFD argument.
588
589Tue Jun 24 13:46:20 1997 Jeffrey A Law (law@cygnus.com)
590
591 * interp.c (sim_resume): Clear State.exited.
592 (sim_stop_reason): If State.exited is nonzero, then indicate that
593 the simulator exited instead of stopped.
594 * mn10300_sim.h (struct _state): Add exited field.
595 * simops.c (syscall): Set State.exited for SYS_exit.
596
597Wed Jun 11 22:07:56 1997 Jeffrey A Law (law@cygnus.com)
598
599 * simops.c: Fix thinko in last change.
600
601Tue Jun 10 12:31:32 1997 Jeffrey A Law (law@cygnus.com)
602
603 * simops.c: "call" stores the callee saved registers into the
604 stack! Update the stack pointer properly when done with
605 register saves.
606
607 * simops.c: Fix return address computation for "call" instructions.
608
609Thu May 22 01:43:11 1997 Jeffrey A Law (law@cygnus.com)
610
611 * interp.c (sim_open): Fix typo.
612
613Wed May 21 23:27:58 1997 Jeffrey A Law (law@cygnus.com)
614
615 * interp.c (sim_resume): Add missing case in big switch
616 statement (for extb instruction).
617
618Tue May 20 17:51:30 1997 Jeffrey A Law (law@cygnus.com)
619
620 * interp.c: Replace all references to load_mem and store_mem
621 with references to load_byte, load_half, load_3_byte, load_word
622 and store_byte, store_half, store_3_byte, store_word.
623 (INLINE): Delete definition.
624 (load_mem_big): Likewise.
625 (max_mem): Make it global.
626 (dispatch): Make this function inline.
627 (load_mem, store_mem): Delete functions.
628 * mn10300_sim.h (INLINE): Define.
629 (RLW): Delete unused definition.
630 (load_mem, store_mem): Delete declarations.
631 (load_mem_big): New definition.
632 (load_byte, load_half, load_3_byte, load_word): New functions.
633 (store_byte, store_half, store_3_byte, store_word): New functions.
634 * simops.c: Replace all references to load_mem and store_mem
635 with references to load_byte, load_half, load_3_byte, load_word
636 and store_byte, store_half, store_3_byte, store_word.
637
638Tue May 20 10:21:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
639
640 * interp.c (sim_open): Add callback to arguments.
641 (sim_set_callbacks): Delete SIM_DESC argument.
642
643Mon May 19 13:54:22 1997 Jeffrey A Law (law@cygnus.com)
644
645 * interp.c (dispatch): Make this an inline function.
646
647 * simops.c (syscall): Use callback->write regardless of
648 what file descriptor we're writing too.
649
650Sun May 18 16:46:31 1997 Jeffrey A Law (law@cygnus.com)
651
652 * interp.c (load_mem_big): Remove function. It's now a macro
653 defined elsewhere.
654 (compare_simops): New function.
655 (sim_open): Sort the Simops table before inserting entries
656 into the hash table.
657 * mn10300_sim.h: Remove unused #defines.
658 (load_mem_big): Define.
659
660Fri May 16 16:36:17 1997 Jeffrey A Law (law@cygnus.com)
661
662 * interp.c (load_mem): If we get a load from an out of range
663 address, abort.
664 (store_mem): Likewise for stores.
665 (max_mem): New variable.
666
667Tue May 6 13:24:36 1997 Jeffrey A Law (law@cygnus.com)
668
669 * mn10300_sim.h: Fix ordering of bits in the PSW.
670
671 * interp.c: Improve hashing routine to avoid long list
672 traversals for common instructions. Add HASH_STAT support.
673 Rewrite opcode dispatch code using a big switch instead of
674 cascaded if/else statements. Avoid useless calls to load_mem.
675
676Mon May 5 18:07:48 1997 Jeffrey A Law (law@cygnus.com)
677
678 * mn10300_sim.h (struct _state): Add space for mdrq register.
679 (REG_MDRQ): Define.
680 * simops.c: Don't abort for trap. Add support for the extended
681 instructions, "getx", "putx", "mulq", "mulqu", "sat16", "sat24",
682 and "bsch".
683
684Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
685
686 * configure: Regenerated to track ../common/aclocal.m4 changes.
687
688Fri Apr 18 14:04:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
689
690 * interp.c (sim_stop): Add stub function.
691
692Thu Apr 17 03:26:59 1997 Doug Evans <dje@canuck.cygnus.com>
693
694 * Makefile.in (SIM_OBJS): Add sim-load.o.
695 * interp.c (sim_kind, myname): New static locals.
696 (sim_open): Set sim_kind, myname. Ignore -E arg.
697 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
698 load file into simulator. Set start address from bfd.
699 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
700
701Wed Apr 16 19:30:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
702
703 * simops.c (OP_F020): SYS_execv, SYS_time, SYS_times, SYS_utime
704 only include if implemented by host.
705 (OP_F020): Typecast arg passed to time function;
706
707Mon Apr 7 23:57:49 1997 Jeffrey A Law (law@cygnus.com)
708
709 * simops.c (syscall): Handle new mn10300 calling conventions.
710
711Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
712
713 * configure: Regenerated to track ../common/aclocal.m4 changes.
714 * config.in: Ditto.
715
716Fri Apr 4 20:02:37 1997 Ian Lance Taylor <ian@cygnus.com>
717
718 * Makefile.in: Change mn10300-opc.o to m10300-opc.o, to match
719 corresponding change in opcodes directory.
720
721Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
722
723 * interp.c (sim_open): New arg `kind'.
724
725 * configure: Regenerated to track ../common/aclocal.m4 changes.
726
727Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
728
729 * configure: Regenerated to track ../common/aclocal.m4 changes.
730
731Thu Mar 20 11:58:02 1997 Jeffrey A Law (law@cygnus.com)
732
733 * simops.c: Fix register extraction for a two "movbu" variants.
734 Somewhat simplify "sub" instructions.
735 Correctly sign extend operands for "mul". Put the correct
736 half of the result in MDR for "mul" and "mulu".
737 Implement remaining instructions.
738 Tweak opcode for "syscall".
739
740Tue Mar 18 14:21:21 1997 Jeffrey A Law (law@cygnus.com)
741
742 * simops.c: Do syscall emulation in "syscall" instruction. Add
743 dummy "trap" instruction.
744
745Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
746
747 * configure: Regenerated to track ../common/aclocal.m4 changes.
748
749Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
750
751 * configure: Re-generate.
752
753Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
754
755 * configure: Regenerate to track ../common/aclocal.m4 changes.
756
757Thu Mar 13 12:54:45 1997 Doug Evans <dje@canuck.cygnus.com>
758
759 * interp.c (sim_open): New SIM_DESC result. Argument is now
760 in argv form.
761 (other sim_*): New SIM_DESC argument.
762
763Wed Mar 12 15:04:00 1997 Jeffrey A Law (law@cygnus.com)
764
765 * simops.c: Fix carry bit computation for "add" instructions.
766
767 * simops.c: Fix typos in bset insns. Fix arguments to store_mem
768 for bset imm8,(d8,an) and bclr imm8,(d8,an).
769
770Wed Mar 5 15:00:10 1997 Jeffrey A Law (law@cygnus.com)
771
772 * simops.c: Fix register references when computing Z and N bits
773 for lsr imm8,dn.
774
775Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
776
777 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
778 COMMON_{PRE,POST}_CONFIG_FRAG instead.
779 * configure.in: sinclude ../common/aclocal.m4.
780 * configure: Regenerated.
781
782Fri Jan 24 10:47:25 1997 Jeffrey A Law (law@cygnus.com)
783
784 * interp.c (init_system): Allocate 2^19 bytes of space for the
785 simulator.
786
787Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
788
789 * configure configure.in Makefile.in: Update to new configure
790 scheme which is more compatible with WinGDB builds.
791 * configure.in: Improve comment on how to run autoconf.
792 * configure: Re-run autoconf to get new ../common/aclocal.m4.
793 * Makefile.in: Use autoconf substitution to install common
794 makefile fragment.
795
796Tue Jan 21 15:03:04 1997 Jeffrey A Law (law@cygnus.com)
797
798 * simops.c: Undo last change to "rol" and "ror", original code
799 was correct!
800
801Thu Jan 16 11:28:14 1997 Jeffrey A Law (law@cygnus.com)
802
803 * simops.c: Fix "rol" and "ror".
804
805Wed Jan 15 06:45:58 1997 Jeffrey A Law (law@cygnus.com)
806
807 * simops.c: Fix typo in last change.
808
809Mon Jan 13 13:22:35 1997 Jeffrey A Law (law@cygnus.com)
810
811 * simops.c: Use REG macros in few places not using them yet.
812
813Mon Jan 6 16:21:19 1997 Jeffrey A Law (law@cygnus.com)
814
815 * mn10300_sim.h (struct _state): Fix number of registers!
816
817Tue Dec 31 16:20:41 1996 Jeffrey A Law (law@cygnus.com)
818
819 * mn10300_sim.h (struct _state): Put all registers into a single
820 array to make gdb implementation easier.
821 (REG_*): Add definitions for all registers in the state array.
822 (SEXT32, SEXT40, SEXT44, SEXT60): Remove unused macros.
823 * simops.c: Related changes.
824
825Wed Dec 18 10:10:45 1996 Jeffrey A Law (law@cygnus.com)
826
827 * interp.c (sim_resume): Handle 0xff as a single byte insn.
828
829 * simops.c: Fix overflow computation for "add" and "inc"
830 instructions.
831
832Mon Dec 16 10:03:52 1996 Jeffrey A Law (law@cygnus.com)
833
834 * simops.c: Handle "break" instruction.
835
836 * simops.c: Fix restoring the PC for "ret" and "retf" instructions.
837
838Wed Dec 11 09:53:10 1996 Jeffrey A Law (law@cygnus.com)
839
840 * gencode.c (write_opcodes): Also write out the format of the
841 opcode.
842 * mn10300_sim.h (simops): Add "format" field.
843 * interp.c (sim_resume): Deal with endianness issues here.
844
845Tue Dec 10 15:05:37 1996 Jeffrey A Law (law@cygnus.com)
846
847 * simops.c (REG0_4): Define.
848 Use REG0_4 for indexed loads/stores.
849
850Sat Dec 7 09:50:28 1996 Jeffrey A Law (law@cygnus.com)
851
852 * simops.c (REG0_16): Fix typo.
853
854Fri Dec 6 14:13:34 1996 Jeffrey A Law (law@cygnus.com)
855
856 * simops.c: Call abort for any instruction that's not currently
857 simulated.
858
859 * simops.c: Define accessor macros to extract register
860 values from instructions. Use them consistently.
861
862 * interp.c: Delete unused global variable "OP".
863 (sim_resume): Remove unused variable "opcode".
864 * simops.c: Fix some uninitialized variable problems, add
865 parens to fix various -Wall warnings.
866
867 * gencode.c (write_header): Add "insn" and "extension" arguments
868 to the OP_* declarations.
869 (write_template): Similarly for function templates.
870 * interp.c (insn, extension): Remove global variables. Instead
871 pass them as arguments to the OP_* functions.
872 * mn10300_sim.h: Remove decls for "insn" and "extension".
873 * simops.c (OP_*): Accept "insn" and "extension" as arguments
874 instead of using globals.
875
876Thu Dec 5 22:26:31 1996 Jeffrey A Law (law@cygnus.com)
877
878 * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)"
879
880 * simops.c: Fix thinkos in last change to "inc dn".
881
882Wed Dec 4 10:57:53 1996 Jeffrey A Law (law@cygnus.com)
883
884 * simops.c: "add imm,sp" does not effect the condition codes.
885 "inc dn" does effect the condition codes.
886
887Tue Dec 3 17:37:45 1996 Jeffrey A Law (law@cygnus.com)
888
889 * simops.c: Treat both operands as signed values for
890 "div" instruction.
891
892 * simops.c: Fix simulation of division instructions.
893 Fix typos/thinkos in several "cmp" and "sub" instructions.
894
895Mon Dec 2 12:31:40 1996 Jeffrey A Law (law@cygnus.com)
896
897 * simops.c: Fix carry bit handling in "sub" and "cmp"
898 instructions.
899
900 * simops.c: Fix "mov imm8,an" and "mov imm16,dn".
901
902Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com)
903
904 * simops.c: Fix overflow computation for many instructions.
905
906 * simops.c: Fix "mov dm, an", "movbu dm, (an)", and "movhu dm, (an)".
907
908 * simops.c: Fix "mov am, dn".
909
910 * simops.c: Fix more bugs in "add imm,an" and
911 "add imm,dn".
912
913Wed Nov 27 09:20:42 1996 Jeffrey A Law (law@cygnus.com)
914
915 * simops.c: Fix bugs in "movm" and "add imm,an".
916
917 * simops.c: Don't lose the upper 24 bits of the return
918 pointer in "call" and "calls" instructions. Rough cut
919 at emulated system calls.
920
921 * simops.c: Implement the remaining 5, 6 and 7 byte instructions.
922
923 * simops.c: Implement remaining 4 byte instructions.
924
925 * simops.c: Implement remaining 3 byte instructions.
926
927 * simops.c: Implement remaining 2 byte instructions. Call
928 abort for instructions we're not implementing now.
929
930Tue Nov 26 15:43:41 1996 Jeffrey A Law (law@cygnus.com)
931
932 * simops.c: Implement lots of random instructions.
933
934 * simops.c: Implement "movm" and "bCC" insns.
935
936 * mn10300_sim.h (_state): Add another register (MDR).
937 (REG_MDR): Define.
938 * simops.c: Implement "cmp", "calls", "rets", "jmp" and
939 a few additional random insns.
940
941 * mn10300_sim.h (PSW_*): Define for CC status tracking.
942 (REG_D0, REG_A0, REG_SP): Define.
943 * simops.c: Implement "add", "addc" and a few other random
944 instructions.
945
946 * gencode.c, interp.c: Snapshot current simulator code.
947
948Mon Nov 25 12:46:38 1996 Jeffrey A Law (law@cygnus.com)
949
950 * Makefile.in, config.in, configure, configure.in: New files.
951 * gencode.c, interp.c, mn10300_sim.h, simops.c: New files.
952