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