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