3 * configure.ac: Removed.
9 * aclocal.m4: Regenerate.
10 * configure: Regenerate.
14 * configure: Regenerate.
18 * configure.ac (SIM_AC_COMMON): Delete.
19 * aclocal.m4, configure: Regenerate.
23 * aclocal.m4: Regenerate.
24 * configure: Regenerate.
28 * aclocal.m4: Regenerate.
29 * configure: Regenerate.
33 * configure: Regenerate.
37 * aclocal.m4, configure: Regenerate.
41 * configure: Regenerate.
45 * configure: Regenerate.
49 * configure: Regenerate.
53 * configure: Regenerate.
58 * config.in, configure: Regenerate.
62 * mem.c: Delete HAVE_SYS_SELECT_H.
66 * aclocal.m4, config.in, configure: Regenerate.
70 * configure.ac: Delete call to AC_CHECK_HEADERS_ONCE.
71 * config.in, configure: Regenerate.
75 * m32c.opc: Include defs.h.
80 * gdb-if.c (open): Rename to ...
82 (sim_open, sim_close): Rename open to is_open.
86 * int.c, misc.c, opc2c.c, reg.c, srcdest.c: Include defs.h.
87 * gdb-if.c, load.c, main.c, mem.c, syscalls.c, trace.c: Replace
88 config.h include with defs.h.
92 * config.in, configure: Regenerate.
96 * gdb-if.c: Update include path.
97 * syscalls.c: Likewise.
101 * mem.c: Include errno.h.
102 (mem_put_byte): Print a warning when the write call fails.
103 (mem_put_blk): Declare local buf pointer and use it.
104 (mem_get_byte): Return 0 when the read call fails.
105 (mem_get_blk): Declare local buf pointer and use it.
106 * trace.c (load_file_and_line): Declare ret.
107 Assign fread to ret and use to index f->data.
108 * configure.ac: Delete SIM_AC_OPTION_WARNINGS call.
109 * configure: Regenerate.
113 * m32c.opc: Add scope braces around a few segments.
118 * Makefile.in: Delete safe-fgets.
119 * opc2c.c: Delete safe-fgets.h include.
120 (main): Replace safe_fgets with getline.
121 * safe-fgets.c, safe-fgets.h: Removed.
125 * gdb-if.c: Include libiberty.h.
126 (sim_do_command): Rewrite to use buildargv.
130 * configure: Regenerate.
134 * load.c (m32c_load): Use BFD_VMA_FMT and drop casts.
138 * m32c.opc: Include ansidecl.h.
140 * opc2c.c (dump_lines): Change AU to ATTRIBUTE_UNUSED.
141 * r8c.opc: Include ansidecl.h.
146 * config.in, configure: Regenerate.
150 * Makefile.in (NL_TARGET): Delete.
154 * aclocal.m4, config.in, configure: Regenerate.
158 * configure, config.in: Rebuild.
162 * Makefile.in (LIBS): Remove
166 * configure: Rebuild.
170 * aclocal.m4: Regenerate.
174 * configure: Regenerate.
178 * configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE.
179 * configure: Regenerate.
183 * Makefile.in (NL_TARGET): Define.
184 * syscalls.c: Change syscall.h include to targ-vals.h.
185 (m32c_syscall): Add TARGET_ prefix to all SYS_ constants.
186 * syscall.h: Removed.
190 * configure: Regenerate.
194 * Makefile.in: Set ASAN_OPTIONS when running opc2c.
198 * opc2c.c (main): Remove vlist variable.
202 * aclocal.m4, configure: Regenerate.
206 * Makefile.in (opc2c.o, safe-fgets.o): Call COMPILE_FOR_BUILD.
207 (opc2c): Call LINK_FOR_BUILD.
211 * Makefile.in (opc2c): Delete $(BUILD_LIBS).
215 * configure: Regenerate.
219 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
220 * aclocal.m4, configure: Regenerate.
224 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
225 * aclocal.m4, configure: Regenerate.
229 * gdb-if.c (sim_memory_map): Define.
233 * configure: Regenerate.
237 * config.in, configure: Regenerate.
241 * configure: Regenerate.
245 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
246 * configure: Regenerate.
250 * configure: Regenerate.
254 * configure: Regenerate.
258 * configure: Regenerate.
262 * srcdest.c: Include libiberty.h.
263 (decode_sd23): Use ARRAY_SIZE.
267 * config.in, configure: Regenerate.
271 * configure: Regenerate.
275 * configure: Regenerate.
279 * configure: Regenerate.
283 * configure: Regenerate.
287 * configure: Regenerate.
291 * configure: Regenerate.
295 * configure: Regenerate.
299 * config.in, configure: Regenerate.
303 * sim-if.c (sim_open): Mark argv const.
304 (sim_create_inferior): Mark argv and env const.
308 * configure: Regenerate.
312 * config.in, configure: Regenerate.
316 * config.in, configure: Regenerate.
320 * Makefile.in (sample.x, sample.mot, sample2.x, sample2.o, gloss.o):
322 * blinky.S: Moved to ../testsuite/sim/m32c/.
323 * gloss.S, sample.ld, sample.S, sample2.c: Likewise.
327 * Makefile.in: Delete redundant dependency info.
331 * gdb-if.c (sim_info): Stub function to allow GDB to be built
336 * configure: Regenerate.
340 * configure: Regenerate.
344 * configure: Regenerate.
348 * configure: Regenerate.
352 * configure.ac: Call SIM_AC_OPTION_WARNINGS.
353 * configure: Regenerate.
354 * cpu.h (decode_opcode, decode_r8c, decode_m32c,
355 trace_register_changes): Convert old style prototypes.
356 (m32c_dump_all_registers): New prototype.
357 * gdb-if.c: Include stdlib.h.
359 (siggnal, handle_step): Mark static.
360 (sim_resume): Move rc decl to top of scope.
361 * load.c: Include load.h.
362 (decode_opcode); Convert old style prototype.
363 (m32c_load): Move base decl to top of scope.
364 * load.h (m32c_set_mach): Change mach type to unsigned long.
365 * m32c.opc (getbyte, decode_m32c): Convert old style prototypes.
366 (prefix): Convert old style prototype and mark static.
367 * mem.c (mem_ptr, mem_usage_stats, e, mem_get_pc, stdin_ready,
368 m32c_sim_restore_console, update_timer_a): Convert old style
370 (mem_put_byte): Mark static.
371 * mem.h (mem_get_pc, m32c_sim_restore_console): Convert old style
373 * r8c.opc (getbyte, IMM, decode_r8c): Convert old style prototypes.
374 * reg.c (stack_heap_stats, trace_register_changes,
375 m32c_dump_all_registers): Convert old style prototypes.
376 (put_reg): Move b decl to top of scope.
377 * sample2.c (start): Convert old style prototype.
378 * srcdest.c (disp8, disp16, disp24, disp20): Convert old style
380 (decode_srcdest4, decode_jumpdest): Move sd init below decls.
381 * timer_a.h (update_timer_a): Convert old style prototype.
382 * trace.c: Include trace.h.
383 (load_file_and_line): Move file decl to top of scope.
384 (sim_disasm_one): Convert old style prototype.
388 * config.in, configure: Regenerate.
392 * aclocal.m4, config.in, configure: Regenerate.
396 * configure: Regenerate.
400 * configure: Regenerate.
401 * config.in: Regenerate.
405 * gdb-if.c (sim_do_command): Add const to cmd. Move args
406 to top and add const. Call strdup on cmd and free at end.
410 * gdb-if.c (sim_load): Add const to prog.
414 * configure: Regenerate.
418 * aclocal.m4, configure: Regenerate.
422 * config.in, configure: Regenerate.
428 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
433 * gdb-if.c: Include config.h before system header files.
435 * syscalls.c: Likewise.
440 * aclocal.m4, config.in, configure: Regenerate.
444 * blinky.S, gloss.S, sample.S: Reformat copyright header.
448 * aclocal.m4: New file.
449 * configure: Regenerate.
453 * configure.ac: Change include to common/acinclude.m4.
457 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
458 call. Replace common.m4 include with SIM_AC_COMMON.
459 * configure: Regenerate.
463 * configure.ac: Rename from configure.in.
467 * configure.in: Add "dnl" before copyright notice.
471 * gdb-if.c (sim_complete_command): New stub function.
475 * gdb-if.c (sim_store_register): Update return value to
480 * Makefile.in: Use CC_FOR_BUILD to build opc2c.
484 * main.c (setup_tcp_console): Check error return from socket() call
485 by its equality to -1 not by it being negative.
489 * gdb-if.c (sim_write): Add const to buf arg.
490 * mem.h (mem_put_blk): Add const to bufptr arg.
491 * mem.c (mem_put_blk): Likewise, and add const to cast.
495 * m32c.opc (MATH_OP): When doing subtraction, also set carry if
500 * configure: Regenerate.
504 * config.in: Regenerate.
505 * configure: Likewise.
507 * configure: Regenerate.
511 * configure.in: Check for sys/select.h, termios.h, sys/socket.h,
512 netinet/in.h, and netinet/tcp.h.
513 * configure: Regenerate.
514 * config.in: Add those headers.
515 * main.c: Check for them.
516 (setup_tcp_console): Disable if no networking.
517 (main): Note missing networking or termios.
518 * mem.c: Check for those headers.
519 (stdin_ready): Disable if no termios.
520 (m32c_sim_restore_console): Disable if no termios.
521 (mem_get_byte): Disable console input if no termios.
525 * gdb-if.c (m32c_signal_to_host): Rename to
526 m32c_signal_to_target. Change signal return values from SIGILL,
527 SIGTRAP, SIGSEGV, etc. to TARGET_SIGNAL_ILL, TARGET_SIGNAL_TRAP,
528 TARGET_SIGNAL_SEGV, etc. Fix all callers.
532 * r8c.opc, m32c.opc: Add parentheses to remove warnings.
536 * int.c (trigger_peripheral_interrupt): Clear interrupt pending
537 bit when peripheral interrupts are serviced.
541 * configure: Regenerate to track ../common/common.m4 changes.
546 * m32c.opc (BRK, GDBBRK): Remove debug logic.
547 * main.c (main): Add option to set raw console.
548 * mem.h (m32c_use_raw_console): Declare.
549 * mem.c (m32c_sim_restore_console): Only restore console if it's
551 (m32c_use_raw_console): Define.
552 (mem_get_byte): Set raw console if m32c_use_raw_console is set.
558 * configure: Regenerate.
562 * Makefile.in: Add Timer A support.
563 * cpu.h (m32c_opcode_pc): New.
565 * gdb-if.c (sim_open): Add Timer A support. Support unbuffered
567 * int.c (trigger_interrupt): Manage the U flag properly.
568 (trigger_based_interrupt): Likewise.
569 (trigger_fixed_interrupt): New.
570 (trigger_peripheral_interrupt): New.
571 * int.h (trigger_peripheral_interrupt): New.
572 * m32c.opc: Use m32c_opcode_pc throughout, as needed.
573 (decode_m32c): Detect jump-to-zero with traceback.
574 (BRK): Try to do the right thing, keeping track of whether we're
575 in gdb or not, and if the user has provided a handler or not.
576 (GBRK): Alternate break opcode for gdb, in case the user's app
577 needs to use BRK for itself.
579 * main.c: Add Timer A support. Support TCP-based console.
580 (setup_tcp_console): New.
581 (main): Add Timer A support. Support TCP-based console.
582 * mem.h (m32c_sim_restore_console): New.
583 * mem.c: Add Timer A support. Support TCP-based console.
584 (mem_ptr): Enhance NULL pointer detection.
586 (m32c_sim_restore_console): New.
587 (mem_get_byte): Check for console input ready.
588 (update_timer_a): New.
589 * r8c.opc (SSTR): Use r0l, not r0h.
590 (REIT): Fix return frame logic.
591 * reg.c (print_flags): New.
592 (trace_register_changes): Use it.
593 (m32c_dump_all_registers): New.
596 * load.c: Fix indentation.
597 * trace.c: Fix indentation.
598 * trace.h: Fix indentation.
602 * r8c.opc (decode_r8c): Don't bother reading the destination
603 before moving a constant into it. Fix borrow comparison for SUB.
607 * configure: Regenerated.
611 * configure: Regenerated.
615 * configure: Regenerated.
619 * mem.c (mem_put_byte): Hook simulated UART to stdout.
620 (mem_put_hi): Hook in simulated trace port.
621 (mem_get_byte): Hook in simulated uart control port.
622 * opc2c: Be more picky about matching special comments.
623 * r8c.opc (shift_op): Limit shift counts to -16..16.
624 (BMcnd): Map conditional codes.
625 * reg.c (condition_true): Mask condition code to 4 bits.
626 * syscalls.c: Include local syscall.h.
627 * syscall.h: New, copied from libgloss.