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