3 * configure: Regenerate.
7 * configure: Regenerate.
11 * configure: Regenerate.
15 * configure.ac: Call SIM_AC_OPTION_WARNINGS.
16 * configure: Regenerate.
17 * cpu.h (decode_opcode, decode_r8c, decode_m32c,
18 trace_register_changes): Convert old style prototypes.
19 (m32c_dump_all_registers): New prototype.
20 * gdb-if.c: Include stdlib.h.
22 (siggnal, handle_step): Mark static.
23 (sim_resume): Move rc decl to top of scope.
24 * load.c: Include load.h.
25 (decode_opcode); Convert old style prototype.
26 (m32c_load): Move base decl to top of scope.
27 * load.h (m32c_set_mach): Change mach type to unsigned long.
28 * m32c.opc (getbyte, decode_m32c): Convert old style prototypes.
29 (prefix): Convert old style prototype and mark static.
30 * mem.c (mem_ptr, mem_usage_stats, e, mem_get_pc, stdin_ready,
31 m32c_sim_restore_console, update_timer_a): Convert old style
33 (mem_put_byte): Mark static.
34 * mem.h (mem_get_pc, m32c_sim_restore_console): Convert old style
36 * r8c.opc (getbyte, IMM, decode_r8c): Convert old style prototypes.
37 * reg.c (stack_heap_stats, trace_register_changes,
38 m32c_dump_all_registers): Convert old style prototypes.
39 (put_reg): Move b decl to top of scope.
40 * sample2.c (start): Convert old style prototype.
41 * srcdest.c (disp8, disp16, disp24, disp20): Convert old style
43 (decode_srcdest4, decode_jumpdest): Move sd init below decls.
44 * timer_a.h (update_timer_a): Convert old style prototype.
45 * trace.c: Include trace.h.
46 (load_file_and_line): Move file decl to top of scope.
47 (sim_disasm_one): Convert old style prototype.
51 * config.in, configure: Regenerate.
55 * aclocal.m4, config.in, configure: Regenerate.
59 * configure: Regenerate.
63 * configure: Regenerate.
64 * config.in: Regenerate.
68 * gdb-if.c (sim_do_command): Add const to cmd. Move args
69 to top and add const. Call strdup on cmd and free at end.
73 * gdb-if.c (sim_load): Add const to prog.
77 * configure: Regenerate.
81 * aclocal.m4, configure: Regenerate.
85 * config.in, configure: Regenerate.
91 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
96 * gdb-if.c: Include config.h before system header files.
98 * syscalls.c: Likewise.
103 * aclocal.m4, config.in, configure: Regenerate.
107 * blinky.S, gloss.S, sample.S: Reformat copyright header.
111 * aclocal.m4: New file.
112 * configure: Regenerate.
116 * configure.ac: Change include to common/acinclude.m4.
120 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
121 call. Replace common.m4 include with SIM_AC_COMMON.
122 * configure: Regenerate.
126 * configure.ac: Rename from configure.in.
130 * configure.in: Add "dnl" before copyright notice.
134 * gdb-if.c (sim_complete_command): New stub function.
138 * gdb-if.c (sim_store_register): Update return value to
143 * Makefile.in: Use CC_FOR_BUILD to build opc2c.
147 * main.c (setup_tcp_console): Check error return from socket() call
148 by its equality to -1 not by it being negative.
152 * gdb-if.c (sim_write): Add const to buf arg.
153 * mem.h (mem_put_blk): Add const to bufptr arg.
154 * mem.c (mem_put_blk): Likewise, and add const to cast.
158 * m32c.opc (MATH_OP): When doing subtraction, also set carry if
163 * configure: Regenerate.
167 * config.in: Regenerate.
168 * configure: Likewise.
170 * configure: Regenerate.
174 * configure.in: Check for sys/select.h, termios.h, sys/socket.h,
175 netinet/in.h, and netinet/tcp.h.
176 * configure: Regenerate.
177 * config.in: Add those headers.
178 * main.c: Check for them.
179 (setup_tcp_console): Disable if no networking.
180 (main): Note missing networking or termios.
181 * mem.c: Check for those headers.
182 (stdin_ready): Disable if no termios.
183 (m32c_sim_restore_console): Disable if no termios.
184 (mem_get_byte): Disable console input if no termios.
188 * r8c.opc, m32c.opc: Add parentheses to remove warnings.
192 * int.c (trigger_peripheral_interrupt): Clear interrupt pending
193 bit when peripheral interrupts are serviced.
197 * configure: Regenerate to track ../common/common.m4 changes.
202 * m32c.opc (BRK, GDBBRK): Remove debug logic.
203 * main.c (main): Add option to set raw console.
204 * mem.h (m32c_use_raw_console): Declare.
205 * mem.c (m32c_sim_restore_console): Only restore console if it's
207 (m32c_use_raw_console): Define.
208 (mem_get_byte): Set raw console if m32c_use_raw_console is set.
214 * configure: Regenerate.
218 * Makefile.in: Add Timer A support.
219 * cpu.h (m32c_opcode_pc): New.
221 * gdb-if.c (sim_open): Add Timer A support. Support unbuffered
223 * int.c (trigger_interrupt): Manage the U flag properly.
224 (trigger_based_interrupt): Likewise.
225 (trigger_fixed_interrupt): New.
226 (trigger_peripheral_interrupt): New.
227 * int.h (trigger_peripheral_interrupt): New.
228 * m32c.opc: Use m32c_opcode_pc throughout, as needed.
229 (decode_m32c): Detect jump-to-zero with traceback.
230 (BRK): Try to do the right thing, keeping track of whether we're
231 in gdb or not, and if the user has provided a handler or not.
232 (GBRK): Alternate break opcode for gdb, in case the user's app
233 needs to use BRK for itself.
235 * main.c: Add Timer A support. Support TCP-based console.
236 (setup_tcp_console): New.
237 (main): Add Timer A support. Support TCP-based console.
238 * mem.h (m32c_sim_restore_console): New.
239 * mem.c: Add Timer A support. Support TCP-based console.
240 (mem_ptr): Enhance NULL pointer detection.
242 (m32c_sim_restore_console): New.
243 (mem_get_byte): Check for console input ready.
244 (update_timer_a): New.
245 * r8c.opc (SSTR): Use r0l, not r0h.
246 (REIT): Fix return frame logic.
247 * reg.c (print_flags): New.
248 (trace_register_changes): Use it.
249 (m32c_dump_all_registers): New.
252 * load.c: Fix indentation.
253 * trace.c: Fix indentation.
254 * trace.h: Fix indentation.
258 * r8c.opc (decode_r8c): Don't bother reading the destination
259 before moving a constant into it. Fix borrow comparison for SUB.
263 * configure: Regenerated.
267 * configure: Regenerated.
271 * configure: Regenerated.
275 * mem.c (mem_put_byte): Hook simulated UART to stdout.
276 (mem_put_hi): Hook in simulated trace port.
277 (mem_get_byte): Hook in simulated uart control port.
278 * opc2c: Be more picky about matching special comments.
279 * r8c.opc (shift_op): Limit shift counts to -16..16.
280 (BMcnd): Map conditional codes.
281 * reg.c (condition_true): Mask condition code to 4 bits.
282 * syscalls.c: Include local syscall.h.
283 * syscall.h: New, copied from libgloss.