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