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