3 * Makefile.in: Use CC_FOR_BUILD to build opc2c.
7 * main.c (setup_tcp_console): Check error return from socket() call
8 by its equality to -1 not by it being negative.
12 * gdb-if.c (sim_write): Add const to buf arg.
13 * mem.h (mem_put_blk): Add const to bufptr arg.
14 * mem.c (mem_put_blk): Likewise, and add const to cast.
18 * m32c.opc (MATH_OP): When doing subtraction, also set carry if
23 * configure: Regenerate.
27 * config.in: Regenerate.
28 * configure: Likewise.
30 * configure: Regenerate.
34 * configure.in: Check for sys/select.h, termios.h, sys/socket.h,
35 netinet/in.h, and netinet/tcp.h.
36 * configure: Regenerate.
37 * config.in: Add those headers.
38 * main.c: Check for them.
39 (setup_tcp_console): Disable if no networking.
40 (main): Note missing networking or termios.
41 * mem.c: Check for those headers.
42 (stdin_ready): Disable if no termios.
43 (m32c_sim_restore_console): Disable if no termios.
44 (mem_get_byte): Disable console input if no termios.
48 * r8c.opc, m32c.opc: Add parentheses to remove warnings.
52 * int.c (trigger_peripheral_interrupt): Clear interrupt pending
53 bit when peripheral interrupts are serviced.
57 * configure: Regenerate to track ../common/common.m4 changes.
62 * m32c.opc (BRK, GDBBRK): Remove debug logic.
63 * main.c (main): Add option to set raw console.
64 * mem.h (m32c_use_raw_console): Declare.
65 * mem.c (m32c_sim_restore_console): Only restore console if it's
67 (m32c_use_raw_console): Define.
68 (mem_get_byte): Set raw console if m32c_use_raw_console is set.
74 * configure: Regenerate.
78 * Makefile.in: Add Timer A support.
79 * cpu.h (m32c_opcode_pc): New.
81 * gdb-if.c (sim_open): Add Timer A support. Support unbuffered
83 * int.c (trigger_interrupt): Manage the U flag properly.
84 (trigger_based_interrupt): Likewise.
85 (trigger_fixed_interrupt): New.
86 (trigger_peripheral_interrupt): New.
87 * int.h (trigger_peripheral_interrupt): New.
88 * m32c.opc: Use m32c_opcode_pc throughout, as needed.
89 (decode_m32c): Detect jump-to-zero with traceback.
90 (BRK): Try to do the right thing, keeping track of whether we're
91 in gdb or not, and if the user has provided a handler or not.
92 (GBRK): Alternate break opcode for gdb, in case the user's app
93 needs to use BRK for itself.
95 * main.c: Add Timer A support. Support TCP-based console.
96 (setup_tcp_console): New.
97 (main): Add Timer A support. Support TCP-based console.
98 * mem.h (m32c_sim_restore_console): New.
99 * mem.c: Add Timer A support. Support TCP-based console.
100 (mem_ptr): Enhance NULL pointer detection.
102 (m32c_sim_restore_console): New.
103 (mem_get_byte): Check for console input ready.
104 (update_timer_a): New.
105 * r8c.opc (SSTR): Use r0l, not r0h.
106 (REIT): Fix return frame logic.
107 * reg.c (print_flags): New.
108 (trace_register_changes): Use it.
109 (m32c_dump_all_registers): New.
112 * load.c: Fix indentation.
113 * trace.c: Fix indentation.
114 * trace.h: Fix indentation.
118 * r8c.opc (decode_r8c): Don't bother reading the destination
119 before moving a constant into it. Fix borrow comparison for SUB.
123 * configure: Regenerated.
127 * configure: Regenerated.
131 * configure: Regenerated.
135 * mem.c (mem_put_byte): Hook simulated UART to stdout.
136 (mem_put_hi): Hook in simulated trace port.
137 (mem_get_byte): Hook in simulated uart control port.
138 * opc2c: Be more picky about matching special comments.
139 * r8c.opc (shift_op): Limit shift counts to -16..16.
140 (BMcnd): Map conditional codes.
141 * reg.c (condition_true): Mask condition code to 4 bits.
142 * syscalls.c: Include local syscall.h.
143 * syscall.h: New, copied from libgloss.