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