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