5f582defcbd2f97d5ba41e30e0bf070cb39e4e0e
[binutils-gdb.git] / sim / tic80 / ChangeLog
1 Mon May 19 14:58:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * sim-calls.c (sim_open): Set the simulator base magic number.
4 (sim_load): Delete prototype of sim_load_file.
5 (sim_open): Define sd to be &simulation.
6
7 Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
8
9 * insns (illegal, fp_unavailable): Halt instead of abort the
10 simulator.
11
12 * insns: Replace calls to engine_error with sim_engine_abort.
13 Ditto for engine_halt V sim_engine_halt.
14
15 Tue May 13 15:24:12 1997 Andrew Cagney <cagney@b2.cygnus.com>
16
17 * interp.c (engine_run_until_stop): Delete. Moved to common.
18 (engine_step): Ditto.
19 (engine_step): Ditto.
20 (engine_halt): Ditto.
21 (engine_restart): Ditto.
22 (engine_halt): Ditto.
23 (engine_error): Ditto.
24
25 * sim-calls.c (sim_stop): Delete. Moved to common.
26 (sim_stop_reason): Ditto.
27 (sim_resume): Ditto.
28
29 * Makefile.in (SIM_OBJS): Link in generic sim-engine, sim-run,
30 sim-resume, sim-reason, sim-stop modules.
31
32 Fri May 16 11:57:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
33
34 * ic (compute): Drop check for REG == 0, now always forced to
35 zero.
36
37 * cpu.h (GPR_SET): New macro update the gpr.
38 * insns (do_add): Use GPR_SET to update the GPR register.
39
40 * sim-calls.c (sim_fetch_register): Pretend that r0 is zero.
41
42 * Makefile.in (tmp-igen): Specify zero-r0 so that every
43 instruction clears r0.
44
45 * interp.c (engine_run_until_stop): Igen now generates code to
46 clear r0.
47 (engine_step): Ditto.
48
49 Thu May 15 11:45:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
50
51 * insns (do_shift): When rot==0 and zero/sign merge treat it as
52 32.
53 (set_fp_reg): For interger conversion, use sim-fpu fpu2i
54 functions.
55 (do_fmpy): Perform iii and uuu using integer arithmetic.
56
57 * Makefile.in (ENGINE_H): Assume everything depends on the fpu.
58
59 * insns (get_fp_reg): Use sim_fpu_u32to to perform unsigned
60 conversion.
61 (do_fcmp): Update to use new fp compare functions. Make reg nr arg
62 instead of reg. Stops fp overflow.
63 (get_fp_reg): Assume val is valid when reg == 0.
64 (set_fp_reg): Fix double conversion.
65
66 * misc.c (tic80_trace_fpu1): New function, trace simple fp op.
67
68 * insns (do_frnd): Add tracing.
69
70 * cpu.h (TRACE_FPU1): Ditto.
71
72 * insns (do_trap): Printf formatting.
73
74 Wed May 14 18:05:50 1997 Mike Meissner <meissner@cygnus.com>
75
76 * misc.c (tic80_trace_fpu{3,2,2i}): Align columns with other
77 insns. Use %g to print floating point instead of %f in case the
78 numbers are real large.
79
80 Tue May 13 18:00:10 1997 Mike Meissner <meissner@cygnus.com>
81
82 * insns (do_trap): For system calls that are defined, but not
83 provided return EINVAL. Temporarily add traps 74-79 to just print
84 the register state.
85
86 * interp.c (engine_{run_until_stop,step}): Before executing
87 instructions, make sure r0 == 0.
88
89 Tue May 13 16:39:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
90
91 * alu.h (IMEM): Take full cia not just IP as argument.
92
93 * interp.c (engine_run_until_stop): Delete handling of annuled
94 instructions.
95 (engine_step): Ditto.
96
97 * insn (do_branch): New function.
98 (do_bbo, do_bbz, do_bcnd, do_bsr, do_jsr): Use do_branch to handle
99 annuled branches.
100
101 Mon May 12 17:15:52 1997 Mike Meissner <meissner@cygnus.com>
102
103 * insns (do_{ld,st}): Fix tracing for ld/st.
104
105 Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
106
107 * sim-calls.c (sim_stop_reason): Restore keep_running after a
108 CNTRL-C, don't re-clear it.
109
110 * interp.c (engine_error): stop rather than signal with SIGABRT
111 when an error.
112
113 * insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in
114 rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
115 (do_st): Converse for store.
116
117 * misc.c (tic80_trace_fpu2i): Correct printf format for int type.
118
119 Sun May 11 11:02:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
120
121 * sim-calls.c (sim_stop_reason): Return a SIGINT if keep_running
122 was cleared.
123
124 * interp.c (engine_step): New function. Single step the simulator
125 taking care of cntrl-c during a step.
126
127 * sim-calls.c (sim_resume): Differentiate between stepping and
128 running so that a cntrl-c during a step is reported.
129
130 Sun May 11 10:54:31 1997 Mark Alexander <marka@cygnus.com>
131
132 * sim-calls.c (sim_fetch_register): Use correct reg base.
133 (sim_store_register): Ditto.
134
135 Sun May 11 10:25:14 1997 Michael Meissner <meissner@cygnus.com>
136
137 * cpu.h (tic80_trace_shift): Add declaration.
138 (TRACE_SHIFT): New macro to trace shift instructions.
139
140 * misc.c (tic80_trace_alu2): Align spacing.
141 (tic80_trace_shift): New function to trace shifts.
142
143 * insns (lmo): Add missing 0b prefix to bits.
144 (do_shift): Use ~ (unsigned32)0, instead of -1. Use TRACE_SHIFT
145 instead of TRACE_ALU2.
146 (sl r): Use EndMask as is, instead of using Source+1 register.
147 (subu): Operands are unsigned, not signed.
148 (do_{ld,st}): Fix endian problems with ld.d/st.d.
149
150 Sat May 10 12:35:47 1997 Michael Meissner <meissner@cygnus.com>
151
152 * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not
153 signed.
154
155 Fri May 9 15:47:36 1997 Mike Meissner <meissner@cygnus.com>
156
157 * insns (cmp_vals,do_cmp): Produce the correct bits as specified
158 by the architecture.
159 (xor): Fix xor immediate patterns to use the correct bits.
160
161 Fri May 9 09:55:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
162
163 * alu.h (long_immediate): Adjust the CIA delay-pointer as well as
164 the NIA when a 64bit insn.
165
166 Thu May 8 11:57:47 1997 Michael Meissner <meissner@cygnus.com>
167
168 * insns (jsr,bsr): For non-allulled calls, set r31 so that the
169 return address does not reexecute the instruction in the delay
170 slot.
171 (bbo,bbz): Complement bit number to reverse the one's complement
172 that the assembler is required to do.
173
174 * misc.c (tic80_trace_*): Change format slightly to accomidate
175 real large decimal values.
176
177 Thu May 8 14:07:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
178
179 * sim-calls.c (sim_do_command): Implement.
180 (sim_store_register): Fix typo T2H v H2T.
181
182 Wed May 7 11:48:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
183
184 * cpu.h (TRACE_FPU2, TRACE_FPU3, TRACE_FPU2I): Add.
185 * insn: Clean up fpu tracing.
186
187 * sim-calls.c (sim_create_inferior): Start out with interrupts
188 enabled.
189
190 * cpu.h (TRACE_SINK3), misc.c (tic80_trace_sink3): Three argument
191 sink
192
193 * insns (rdcr, swcr, wrcr, brcr, rmo, lmo): Implement.
194
195 * insns (do_*): Remove MY_INDEX/indx argument from support functions,
196 igen now handles this.
197
198 * cpu.h (CR): New macro - access TIc80 control registers.
199
200 * misc.c: New file.
201 (tic80_cr2index): New function, map control register opcode index
202 into the internal CR enum.
203
204 * interp.c
205 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Move from
206 here
207 * misc.c: to here.
208
209 * Makefile.in (SIM_OBJS): Add misc.o.
210
211 Tue May 6 15:22:58 1997 Mike Meissner <meissner@cygnus.com>
212
213 * cpu.h ({,v}{S,D}P_FPR): Delete unused macros that won't work on
214 big endian hosts.
215 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Declare
216 new functions.
217 (TRACE_{ALU{2,3},NOP,SINK{1,2},{,U}COND_BR,LD,ST}): New macros to
218 trace various instruction types.
219
220 * insns: Modify all instructions to support semantic tracing.
221
222 * interp.c (toplevel): Include itable.h.
223 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): New
224 functions to provide semantic level tracing information.
225
226 Mon May 5 11:50:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
227
228 * alu.h: Update usage of core object to reflect recent changes in
229 ../common/sim-*core.
230 * sim-calls.c (sim_open): Ditto.
231
232 Mon May 5 14:10:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
233
234 * insn (cmnd): No-op cache flushes.
235
236 * insns (do_trap): Allow writes to STDERR.
237
238 * Makefile.in (SIM_OBJS): Link in sim-fpu.o.
239 (SIM_EXTRA_LIBS): Link in the math library.
240
241 * alu.h: Add support for floating point unit using sim-alu.
242
243 * insns (fadd, fsub, fmpy, fdiv, fcmp, frnd*): Implement.
244
245 Fri May 2 14:57:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
246
247 * sim-calls.c: Include sim-utils.h and sim-options.h.
248
249 * sim-main.h (sim_state): Drop sim_events and sim_core members,
250 moved to simulator base type.
251
252 * alu.h (IMEM, MEM, STORE): Update track changes in common
253 directory.
254
255 * insns: Drop cia argument from functions, igen now handles this.
256
257 * interp.c (engine_init): Include string.h/strings.h to define
258 memset et.al.
259
260 * sim-main.h (sim_cia): Delcare, tracking common dir changes.
261
262 * cpu.h (sim_cpu): Update instruction_address with sim_cia.
263
264 Wed Apr 30 11:26:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
265
266 * sim-main.h (signal.h): Include so that SIG* available to all
267 callers of sig_halt.
268
269 * insns (do_shift): New function, implement shift operations.
270 (do_trap): Add handler for trap 73 - SIGTRAP.
271
272 Tue Apr 29 10:58:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
273
274 * alu.h (MEM, STORE): Force addresses to be correctly aligned.
275
276 * insns (do_jsr): Fix.
277 (do_st, do_ld): Handle 64bit transfers.
278 (do_trap): Match libgloss.
279 (rdcr): Implement nop - Dest == r0 - variant.
280
281 * sim-calls.c (sim_create_inferior): Initialize SP.
282
283 * Makefile.in (ENGINE_H): Everything now depends on sim-options.h.
284 (support.o): Depends on ENGINE_H.
285
286 * cpu.h: Four accumulators.
287
288 * Makefile.in (tmp-igen): Include line number information in
289 generated files.
290
291 * insns (dld, dst): Fill in.
292
293 Mon Apr 28 13:02:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
294
295 * insns (vld): Fix instruction format wrong.
296
297 Thu Apr 24 16:43:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
298
299 * dc: Add additional rules so that minor opcode files are
300 detected.
301 * insns: Enable more instructions.
302
303 * sim-calls.c (sim_fetch_register,sim_store_register, sim_write):
304 Implement.
305
306 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
307
308 * configure: Regenerated to track ../common/aclocal.m4 changes.
309 * Makefile.in (SIM_OBJS): Add sim-module.o, sim-profile.o.
310 * sim-calls.c (sim_open): Call sim_module_uninstall if argument
311 parsing fails. Call sim_post_argv_init.
312 (sim_close): Call sim_module_uninstall.
313
314 Wed Apr 23 20:05:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
315
316 * insns (and, bbo, bcnd, bsr, dcache, jsr, or, xor, nor): Enable.
317 * ic: Add fields for enabled instructions.
318