1 Thu Mar 26 10:11:01 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
3 * Makefile.in (tmp-igen): Prefix all usage of move-if-change
4 script with $(SHELL) to make NT native builds happy.
5 * configure: Regenerate because of change to ../common/aclocal.m4.
7 Thu Mar 26 11:22:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
9 * configure.in: Make --enable-sim-common the default.
10 * configure: Re-generate.
12 * sim-main.h (CIA_GET, CIA_SET): Save/restore current instruction
13 address into Sate.regs[REG_PC] instead of common struct.
15 Wed Mar 25 17:42:00 1998 Joyce Janczyn <janczyn@cygnus.com>
17 * mn10300.igen (cmp imm8,An): Do not sign extend imm8 value.
19 Wed Mar 25 12:08:00 1998 Joyce Janczyn <janczyn@cygnus.com>
21 * simops.c (OP_F0FD): Initialise variable 'sp'.
23 Thu Mar 26 00:21:32 1998 Andrew Cagney <cagney@b1.cygnus.com>
25 * dv-mn103int.c (decode_group): A group register every 4 bytes not
27 (write_icr): Rewrite equation updating request field.
28 (read_iagr): Fix check that interrupt is still pending.
30 Wed Mar 25 16:14:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
32 * interp.c (sim_open): Tidy up device creation.
34 * dv-mn103int.c (mn103int_port_event): Drive NMI with non-zero
36 (mn103int_io_read_buffer): Convert absolute address to register
38 (read_icr, write_icr): Convert block offset into group offset.
40 Wed Mar 25 15:08:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
42 * interp.c (sim_open): Create second 1mb memory region at
44 (sim_open): Create a device tree.
46 (do_interrupt): Delete, needs to use dv-mn103cpu.c
48 * dv-mn103int.c, dv-mn103cpu.c: New files.
50 Wed Mar 25 08:47:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
52 * mn10300_sim.h (EXTRACT_PSW_LM, INSERT_PSW_LM, PSW_IE, PSW_LM):
56 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
58 * configure: Regenerated to track ../common/aclocal.m4 changes.
60 Wed Mar 25 10:24:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
62 * interp.c (sim-options.h): Include.
63 (sim_kind, myname): Declare when not using common framework.
65 * mn10300_sim.h (do_syscall, generic*): Provide prototypes for
66 functions found in op_utils.c
68 * mn10300.igen (add): Discard unused variables.
70 * configure, config.in: Re-generate with autoconf 2.12.1.
72 Tue Mar 24 15:27:00 1998 Joyce Janczyn <janczyn@cygnus.com>
74 Add support for --enable-sim-common option.
75 * Makefile.in (WITHOUT_COMMON_OBJS): Files included if
77 (WITH_COMMON_OBJS): Files included if --enable-sim-common.
78 (MN10300_OBJS,MN10300_INTERP_DEP): New variables.
80 ({WITHOUT,WITH}_COMMON_RUN_OBJS,SIM_RUN_OBJS): New variables.
81 (SIM_EXTRA_CFLAGS): New variable.
82 (clean-extra): Clean up igen files.
83 (../igen/igen,clean-igen,tmp-igen): New rules.
84 * configure.in: Add support for common framework via
86 * configure: Regenerate.
87 * interp.c: #include sim-main if WITH_COMMON, not mn10300_sim.h.
88 (hash,dispatch,sim_size): Don't compile if ! WITH_COMMON.
89 (init_system,sim_write,compare_simops): Likewise.
90 (sim_set_profile,sim_set_profile_size): Likewise.
91 (sim_stop,sim_resume,sim_trace,sim_info): Likewise.
92 (sim_set_callbacks,sim_stop_reason,sim_read,sim_load): Likewise.
93 (enum interrupt_type): New enum.
94 (interrupt_names): New global.
95 (do_interrupt): New function.
96 (sim_open): Define differently if WITH_COMMON.
97 (sim_close,sim_create_inferior,sim_do_command): Likewise.
98 * mn10300_sim.h ({load,store}_{byte,half,word}): Define versions
100 * mn10300.igen: New file.
101 * mn10300.dc: New file.
102 * op_utils.c: New file.
103 * sim-main.h: New file.
105 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
107 * configure: Regenerated to track ../common/aclocal.m4 changes.
109 Fri Feb 27 18:36:04 1998 Jeffrey A Law (law@cygnus.com)
111 * simops.c (inc): Fix typo.
113 Wed Feb 25 01:59:29 1998 Jeffrey A Law (law@cygnus.com)
115 * simops.c (signed multiply instructions): Cast input operands to
116 signed32 before casting them to signed64 so that the sign bit
117 is propagated properly.
119 Mon Feb 23 20:23:19 1998 Mark Alexander <marka@cygnus.com>
121 * Makefile.in: Last change was bad. Define NL_TARGET
122 so that targ-vals.h will be used instead of syscall.h.
123 * simops.c: Use targ-vals.h instead of syscall.h.
124 (OP_F020): Disable unsupported system calls.
126 Mon Feb 23 09:44:38 1998 Mark Alexander <marka@cygnus.com>
128 * Makefile.in: Get header files from libgloss/mn10300/sys.
130 Sun Feb 22 16:02:24 1998 Jeffrey A Law (law@cygnus.com)
132 * simops.c: Include sim-types.h.
134 Wed Feb 18 13:07:08 1998 Jeffrey A Law (law@cygnus.com)
136 * simops.c (multiply instructions): Cast input operands to a
137 signed64/unsigned64 type as appropriate.
139 Tue Feb 17 12:47:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
141 * interp.c (sim_store_register, sim_fetch_register): Pass in
142 length parameter. Return -1.
144 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
146 * configure: Regenerated to track ../common/aclocal.m4 changes.
148 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
150 * configure: Regenerated to track ../common/aclocal.m4 changes.
152 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
154 * configure: Regenerated to track ../common/aclocal.m4 changes.
156 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
158 * configure: Regenerated to track ../common/aclocal.m4 changes.
161 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
163 * configure: Regenerated to track ../common/aclocal.m4 changes.
165 Tue Nov 11 10:38:52 1997 Jeffrey A Law (law@cygnus.com)
167 * simops.c (call:16 call:32): Stack adjustment is determined solely
170 Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
172 * interp.c (sim_load): Pass lma_p and sim_write args to
175 Tue Oct 21 10:12:03 1997 Jeffrey A Law (law@cygnus.com)
177 * simops.c: Correctly handle register restores for "ret" and "retf"
180 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
182 * configure: Regenerated to track ../common/aclocal.m4 changes.
184 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
186 * configure: Regenerated to track ../common/aclocal.m4 changes.
188 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
190 * configure: Regenerated to track ../common/aclocal.m4 changes.
192 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
194 * configure: Regenerated to track ../common/aclocal.m4 changes.
196 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
198 * configure: Regenerated to track ../common/aclocal.m4 changes.
200 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
202 * configure: Regenerated to track ../common/aclocal.m4 changes.
204 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
206 * configure: Regenerated to track ../common/aclocal.m4 changes.
208 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
210 * configure: Regenerated to track ../common/aclocal.m4 changes.
213 Tue Aug 26 10:41:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
215 * interp.c (sim_kill): Delete.
216 (sim_create_inferior): Add ABFD argument.
217 (sim_load): Move setting of PC from here.
218 (sim_create_inferior): To here.
220 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
222 * configure: Regenerated to track ../common/aclocal.m4 changes.
225 Mon Aug 25 16:14:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
227 * interp.c (sim_open): Add ABFD argument.
229 Tue Jun 24 13:46:20 1997 Jeffrey A Law (law@cygnus.com)
231 * interp.c (sim_resume): Clear State.exited.
232 (sim_stop_reason): If State.exited is nonzero, then indicate that
233 the simulator exited instead of stopped.
234 * mn10300_sim.h (struct _state): Add exited field.
235 * simops.c (syscall): Set State.exited for SYS_exit.
237 Wed Jun 11 22:07:56 1997 Jeffrey A Law (law@cygnus.com)
239 * simops.c: Fix thinko in last change.
241 Tue Jun 10 12:31:32 1997 Jeffrey A Law (law@cygnus.com)
243 * simops.c: "call" stores the callee saved registers into the
244 stack! Update the stack pointer properly when done with
247 * simops.c: Fix return address computation for "call" instructions.
249 Thu May 22 01:43:11 1997 Jeffrey A Law (law@cygnus.com)
251 * interp.c (sim_open): Fix typo.
253 Wed May 21 23:27:58 1997 Jeffrey A Law (law@cygnus.com)
255 * interp.c (sim_resume): Add missing case in big switch
256 statement (for extb instruction).
258 Tue May 20 17:51:30 1997 Jeffrey A Law (law@cygnus.com)
260 * interp.c: Replace all references to load_mem and store_mem
261 with references to load_byte, load_half, load_3_byte, load_word
262 and store_byte, store_half, store_3_byte, store_word.
263 (INLINE): Delete definition.
264 (load_mem_big): Likewise.
265 (max_mem): Make it global.
266 (dispatch): Make this function inline.
267 (load_mem, store_mem): Delete functions.
268 * mn10300_sim.h (INLINE): Define.
269 (RLW): Delete unused definition.
270 (load_mem, store_mem): Delete declarations.
271 (load_mem_big): New definition.
272 (load_byte, load_half, load_3_byte, load_word): New functions.
273 (store_byte, store_half, store_3_byte, store_word): New functions.
274 * simops.c: Replace all references to load_mem and store_mem
275 with references to load_byte, load_half, load_3_byte, load_word
276 and store_byte, store_half, store_3_byte, store_word.
278 Tue May 20 10:21:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
280 * interp.c (sim_open): Add callback to arguments.
281 (sim_set_callbacks): Delete SIM_DESC argument.
283 Mon May 19 13:54:22 1997 Jeffrey A Law (law@cygnus.com)
285 * interp.c (dispatch): Make this an inline function.
287 * simops.c (syscall): Use callback->write regardless of
288 what file descriptor we're writing too.
290 Sun May 18 16:46:31 1997 Jeffrey A Law (law@cygnus.com)
292 * interp.c (load_mem_big): Remove function. It's now a macro
294 (compare_simops): New function.
295 (sim_open): Sort the Simops table before inserting entries
297 * mn10300_sim.h: Remove unused #defines.
298 (load_mem_big): Define.
300 Fri May 16 16:36:17 1997 Jeffrey A Law (law@cygnus.com)
302 * interp.c (load_mem): If we get a load from an out of range
304 (store_mem): Likewise for stores.
305 (max_mem): New variable.
307 Tue May 6 13:24:36 1997 Jeffrey A Law (law@cygnus.com)
309 * mn10300_sim.h: Fix ordering of bits in the PSW.
311 * interp.c: Improve hashing routine to avoid long list
312 traversals for common instructions. Add HASH_STAT support.
313 Rewrite opcode dispatch code using a big switch instead of
314 cascaded if/else statements. Avoid useless calls to load_mem.
316 Mon May 5 18:07:48 1997 Jeffrey A Law (law@cygnus.com)
318 * mn10300_sim.h (struct _state): Add space for mdrq register.
320 * simops.c: Don't abort for trap. Add support for the extended
321 instructions, "getx", "putx", "mulq", "mulqu", "sat16", "sat24",
324 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
326 * configure: Regenerated to track ../common/aclocal.m4 changes.
328 Fri Apr 18 14:04:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
330 * interp.c (sim_stop): Add stub function.
332 Thu Apr 17 03:26:59 1997 Doug Evans <dje@canuck.cygnus.com>
334 * Makefile.in (SIM_OBJS): Add sim-load.o.
335 * interp.c (sim_kind, myname): New static locals.
336 (sim_open): Set sim_kind, myname. Ignore -E arg.
337 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
338 load file into simulator. Set start address from bfd.
339 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
341 Wed Apr 16 19:30:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
343 * simops.c (OP_F020): SYS_execv, SYS_time, SYS_times, SYS_utime
344 only include if implemented by host.
345 (OP_F020): Typecast arg passed to time function;
347 Mon Apr 7 23:57:49 1997 Jeffrey A Law (law@cygnus.com)
349 * simops.c (syscall): Handle new mn10300 calling conventions.
351 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
353 * configure: Regenerated to track ../common/aclocal.m4 changes.
356 Fri Apr 4 20:02:37 1997 Ian Lance Taylor <ian@cygnus.com>
358 * Makefile.in: Change mn10300-opc.o to m10300-opc.o, to match
359 corresponding change in opcodes directory.
361 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
363 * interp.c (sim_open): New arg `kind'.
365 * configure: Regenerated to track ../common/aclocal.m4 changes.
367 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
369 * configure: Regenerated to track ../common/aclocal.m4 changes.
371 Thu Mar 20 11:58:02 1997 Jeffrey A Law (law@cygnus.com)
373 * simops.c: Fix register extraction for a two "movbu" variants.
374 Somewhat simplify "sub" instructions.
375 Correctly sign extend operands for "mul". Put the correct
376 half of the result in MDR for "mul" and "mulu".
377 Implement remaining instructions.
378 Tweak opcode for "syscall".
380 Tue Mar 18 14:21:21 1997 Jeffrey A Law (law@cygnus.com)
382 * simops.c: Do syscall emulation in "syscall" instruction. Add
383 dummy "trap" instruction.
385 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
387 * configure: Regenerated to track ../common/aclocal.m4 changes.
389 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
391 * configure: Re-generate.
393 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
395 * configure: Regenerate to track ../common/aclocal.m4 changes.
397 Thu Mar 13 12:54:45 1997 Doug Evans <dje@canuck.cygnus.com>
399 * interp.c (sim_open): New SIM_DESC result. Argument is now
401 (other sim_*): New SIM_DESC argument.
403 Wed Mar 12 15:04:00 1997 Jeffrey A Law (law@cygnus.com)
405 * simops.c: Fix carry bit computation for "add" instructions.
407 * simops.c: Fix typos in bset insns. Fix arguments to store_mem
408 for bset imm8,(d8,an) and bclr imm8,(d8,an).
410 Wed Mar 5 15:00:10 1997 Jeffrey A Law (law@cygnus.com)
412 * simops.c: Fix register references when computing Z and N bits
415 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
417 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
418 COMMON_{PRE,POST}_CONFIG_FRAG instead.
419 * configure.in: sinclude ../common/aclocal.m4.
420 * configure: Regenerated.
422 Fri Jan 24 10:47:25 1997 Jeffrey A Law (law@cygnus.com)
424 * interp.c (init_system): Allocate 2^19 bytes of space for the
427 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
429 * configure configure.in Makefile.in: Update to new configure
430 scheme which is more compatible with WinGDB builds.
431 * configure.in: Improve comment on how to run autoconf.
432 * configure: Re-run autoconf to get new ../common/aclocal.m4.
433 * Makefile.in: Use autoconf substitution to install common
436 Tue Jan 21 15:03:04 1997 Jeffrey A Law (law@cygnus.com)
438 * simops.c: Undo last change to "rol" and "ror", original code
441 Thu Jan 16 11:28:14 1997 Jeffrey A Law (law@cygnus.com)
443 * simops.c: Fix "rol" and "ror".
445 Wed Jan 15 06:45:58 1997 Jeffrey A Law (law@cygnus.com)
447 * simops.c: Fix typo in last change.
449 Mon Jan 13 13:22:35 1997 Jeffrey A Law (law@cygnus.com)
451 * simops.c: Use REG macros in few places not using them yet.
453 Mon Jan 6 16:21:19 1997 Jeffrey A Law (law@cygnus.com)
455 * mn10300_sim.h (struct _state): Fix number of registers!
457 Tue Dec 31 16:20:41 1996 Jeffrey A Law (law@cygnus.com)
459 * mn10300_sim.h (struct _state): Put all registers into a single
460 array to make gdb implementation easier.
461 (REG_*): Add definitions for all registers in the state array.
462 (SEXT32, SEXT40, SEXT44, SEXT60): Remove unused macros.
463 * simops.c: Related changes.
465 Wed Dec 18 10:10:45 1996 Jeffrey A Law (law@cygnus.com)
467 * interp.c (sim_resume): Handle 0xff as a single byte insn.
469 * simops.c: Fix overflow computation for "add" and "inc"
472 Mon Dec 16 10:03:52 1996 Jeffrey A Law (law@cygnus.com)
474 * simops.c: Handle "break" instruction.
476 * simops.c: Fix restoring the PC for "ret" and "retf" instructions.
478 Wed Dec 11 09:53:10 1996 Jeffrey A Law (law@cygnus.com)
480 * gencode.c (write_opcodes): Also write out the format of the
482 * mn10300_sim.h (simops): Add "format" field.
483 * interp.c (sim_resume): Deal with endianness issues here.
485 Tue Dec 10 15:05:37 1996 Jeffrey A Law (law@cygnus.com)
487 * simops.c (REG0_4): Define.
488 Use REG0_4 for indexed loads/stores.
490 Sat Dec 7 09:50:28 1996 Jeffrey A Law (law@cygnus.com)
492 * simops.c (REG0_16): Fix typo.
494 Fri Dec 6 14:13:34 1996 Jeffrey A Law (law@cygnus.com)
496 * simops.c: Call abort for any instruction that's not currently
499 * simops.c: Define accessor macros to extract register
500 values from instructions. Use them consistently.
502 * interp.c: Delete unused global variable "OP".
503 (sim_resume): Remove unused variable "opcode".
504 * simops.c: Fix some uninitialized variable problems, add
505 parens to fix various -Wall warnings.
507 * gencode.c (write_header): Add "insn" and "extension" arguments
508 to the OP_* declarations.
509 (write_template): Similarly for function templates.
510 * interp.c (insn, extension): Remove global variables. Instead
511 pass them as arguments to the OP_* functions.
512 * mn10300_sim.h: Remove decls for "insn" and "extension".
513 * simops.c (OP_*): Accept "insn" and "extension" as arguments
514 instead of using globals.
516 Thu Dec 5 22:26:31 1996 Jeffrey A Law (law@cygnus.com)
518 * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)"
520 * simops.c: Fix thinkos in last change to "inc dn".
522 Wed Dec 4 10:57:53 1996 Jeffrey A Law (law@cygnus.com)
524 * simops.c: "add imm,sp" does not effect the condition codes.
525 "inc dn" does effect the condition codes.
527 Tue Dec 3 17:37:45 1996 Jeffrey A Law (law@cygnus.com)
529 * simops.c: Treat both operands as signed values for
532 * simops.c: Fix simulation of division instructions.
533 Fix typos/thinkos in several "cmp" and "sub" instructions.
535 Mon Dec 2 12:31:40 1996 Jeffrey A Law (law@cygnus.com)
537 * simops.c: Fix carry bit handling in "sub" and "cmp"
540 * simops.c: Fix "mov imm8,an" and "mov imm16,dn".
542 Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com)
544 * simops.c: Fix overflow computation for many instructions.
546 * simops.c: Fix "mov dm, an", "movbu dm, (an)", and "movhu dm, (an)".
548 * simops.c: Fix "mov am, dn".
550 * simops.c: Fix more bugs in "add imm,an" and
553 Wed Nov 27 09:20:42 1996 Jeffrey A Law (law@cygnus.com)
555 * simops.c: Fix bugs in "movm" and "add imm,an".
557 * simops.c: Don't lose the upper 24 bits of the return
558 pointer in "call" and "calls" instructions. Rough cut
559 at emulated system calls.
561 * simops.c: Implement the remaining 5, 6 and 7 byte instructions.
563 * simops.c: Implement remaining 4 byte instructions.
565 * simops.c: Implement remaining 3 byte instructions.
567 * simops.c: Implement remaining 2 byte instructions. Call
568 abort for instructions we're not implementing now.
570 Tue Nov 26 15:43:41 1996 Jeffrey A Law (law@cygnus.com)
572 * simops.c: Implement lots of random instructions.
574 * simops.c: Implement "movm" and "bCC" insns.
576 * mn10300_sim.h (_state): Add another register (MDR).
578 * simops.c: Implement "cmp", "calls", "rets", "jmp" and
579 a few additional random insns.
581 * mn10300_sim.h (PSW_*): Define for CC status tracking.
582 (REG_D0, REG_A0, REG_SP): Define.
583 * simops.c: Implement "add", "addc" and a few other random
586 * gencode.c, interp.c: Snapshot current simulator code.
588 Mon Nov 25 12:46:38 1996 Jeffrey A Law (law@cygnus.com)
590 * Makefile.in, config.in, configure, configure.in: New files.
591 * gencode.c, interp.c, mn10300_sim.h, simops.c: New files.