]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mips/ChangeLog
Make mips registers of type unsigned_word.
[thirdparty/binutils-gdb.git] / sim / mips / ChangeLog
1 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
4
5 * interp.c (sim_monitor): Make register pointers of type
6 unsigned_word*.
7
8 * sim-main.h: Make registers of type unsigned_word not
9 signed_word.
10
11 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
12
13 start-sanitize-r5900
14 * sim-main.h (BYTES_IN_MMI_REGS, ..., SUB_REG_FETCH, ..., GPR_SB,
15 ...): Move to sim-main.h
16
17 end-sanitize-r5900
18 * interp.c (sync_operation): Rename from SyncOperation, make
19 global, add SD argument.
20 (prefetch): Rename from Prefetch, make global, add SD argument.
21 (decode_coproc): Make global.
22
23 * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
24
25 * gencode.c (build_instruction): Generate DecodeCoproc not
26 decode_coproc calls.
27
28 * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
29 (SizeFGR): Move to sim-main.h
30 (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
31 simSIGINT, simJALDELAYSLOT): Move to sim-main.h
32 (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
33 sim-main.h.
34 (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
35 FP_RM_TOMINF, GETRM): Move to sim-main.h.
36 (Uncached, CachedNoncoherent, CachedCoherent, Cached,
37 isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
38 (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
39 BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
40
41 * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
42 exception.
43 (sim-alu.h): Include.
44 (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
45 (sim_cia): Typedef to instruction_address.
46
47 Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
48
49 * Makefile.in (interp.o): Rename generated file engine.c to
50 oengine.c.
51
52 * interp.c: Update.
53
54 Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
55
56 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
57
58 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
59
60 * gencode.c (build_instruction): For "FPSQRT", output correct
61 number of arguments to Recip.
62
63 Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
64
65 * Makefile.in (interp.o): Depends on sim-main.h
66
67 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
68
69 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
70 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
71 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
72 STATE, DSSTATE): Define
73 (GPR, FGRIDX, ..): Define.
74
75 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
76 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
77 (GPR, FGRIDX, ...): Delete macros.
78
79 * interp.c: Update names to match defines from sim-main.h
80
81 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
82
83 * interp.c (sim_monitor): Add SD argument.
84 (sim_warning): Delete. Replace calls with calls to
85 sim_io_eprintf.
86 (sim_error): Delete. Replace calls with sim_io_error.
87 (open_trace, writeout32, writeout16, getnum): Add SD argument.
88 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
89 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
90 argument.
91 (mips_size): Rename from sim_size. Add SD argument.
92
93 * interp.c (simulator): Delete global variable.
94 (callback): Delete global variable.
95 (mips_option_handler, sim_open, sim_write, sim_read,
96 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
97 sim_size,sim_monitor): Use sim_io_* not callback->*.
98 (sim_open): ZALLOC simulator struct.
99 (PROFILE): Do not define.
100
101 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
102
103 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
104 support.h with corresponding code.
105
106 * sim-main.h (word64, uword64), support.h: Move definition to
107 sim-main.h.
108 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
109
110 * support.h: Delete
111 * Makefile.in: Update dependencies
112 * interp.c: Do not include.
113
114 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
115
116 * interp.c (address_translation, load_memory, store_memory,
117 cache_op): Rename to from AddressTranslation et.al., make global,
118 add SD argument
119
120 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
121 CacheOp): Define.
122
123 * interp.c (SignalException): Rename to signal_exception, make
124 global.
125
126 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
127
128 * sim-main.h (SignalException, SignalExceptionInterrupt,
129 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
130 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
131 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
132 Define.
133
134 * interp.c, support.h: Use.
135
136 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
137
138 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
139 to value_fpr / store_fpr. Add SD argument.
140 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
141 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
142
143 * sim-main.h (ValueFPR, StoreFPR): Define.
144
145 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
146
147 * interp.c (sim_engine_run): Check consistency between configure
148 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
149 and HASFPU.
150
151 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
152 (mips_fpu): Configure WITH_FLOATING_POINT.
153 (mips_endian): Configure WITH_TARGET_ENDIAN.
154 * configure: Update.
155
156 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
157
158 * configure: Regenerated to track ../common/aclocal.m4 changes.
159
160 start-sanitize-r5900
161 Mon Aug 25 19:11:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
162
163 * interp.c (MAX_REG): Allow up-to 128 registers.
164 (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
165 (REGISTER_SA): Ditto.
166 (sim_open): Initialize register_widths for r5900 specific
167 registers.
168 (sim_fetch_register, sim_store_register): Check for request of
169 r5900 specific SA register. Check for request for hi 64 bits of
170 r5900 specific registers.
171
172 end-sanitize-r5900
173 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
174
175 * configure: Regenerated.
176
177 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
178
179 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
180
181 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
182
183 * gencode.c (print_igen_insn_models): Assume certain architectures
184 include all mips* instructions.
185 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
186 instruction.
187
188 * Makefile.in (tmp.igen): Add target. Generate igen input from
189 gencode file.
190
191 * gencode.c (FEATURE_IGEN): Define.
192 (main): Add --igen option. Generate output in igen format.
193 (process_instructions): Format output according to igen option.
194 (print_igen_insn_format): New function.
195 (print_igen_insn_models): New function.
196 (process_instructions): Only issue warnings and ignore
197 instructions when no FEATURE_IGEN.
198
199 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
200
201 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
202 MIPS targets.
203
204 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
205
206 * configure: Regenerated to track ../common/aclocal.m4 changes.
207
208 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
209
210 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
211 SIM_RESERVED_BITS): Delete, moved to common.
212 (SIM_EXTRA_CFLAGS): Update.
213
214 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
215
216 * configure.in: Configure non-strict memory alignment.
217 * configure: Regenerated to track ../common/aclocal.m4 changes.
218
219 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
220
221 * configure: Regenerated to track ../common/aclocal.m4 changes.
222
223 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
224
225 * gencode.c (SDBBP,DERET): Added (3900) insns.
226 (RFE): Turn on for 3900.
227 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
228 (dsstate): Made global.
229 (SUBTARGET_R3900): Added.
230 (CANCELDELAYSLOT): New.
231 (SignalException): Ignore SystemCall rather than ignore and
232 terminate. Add DebugBreakPoint handling.
233 (decode_coproc): New insns RFE, DERET; and new registers Debug
234 and DEPC protected by SUBTARGET_R3900.
235 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
236 bits explicitly.
237 * Makefile.in,configure.in: Add mips subtarget option.
238 * configure: Update.
239
240 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
241
242 * gencode.c: Add r3900 (tx39).
243
244 start-sanitize-tx19
245 * gencode.c: Fix some configuration problems by improving
246 the relationship between tx19 and tx39.
247 end-sanitize-tx19
248
249 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
250
251 * gencode.c (build_instruction): Don't need to subtract 4 for
252 JALR, just 2.
253
254 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
255
256 * interp.c: Correct some HASFPU problems.
257
258 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
259
260 * configure: Regenerated to track ../common/aclocal.m4 changes.
261
262 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
263
264 * interp.c (mips_options): Fix samples option short form, should
265 be `x'.
266
267 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
268
269 * interp.c (sim_info): Enable info code. Was just returning.
270
271 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
272
273 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
274 MFC0.
275
276 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
277
278 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
279 constants.
280 (build_instruction): Ditto for LL.
281
282 start-sanitize-tx19
283 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
284
285 * mips/configure.in, mips/gencode: Add tx19/r1900.
286
287 end-sanitize-tx19
288 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
289
290 * configure: Regenerated to track ../common/aclocal.m4 changes.
291
292 start-sanitize-r5900
293 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
294
295 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
296 for overflow due to ABS of MININT, set result to MAXINT.
297 (build_instruction): For "psrlvw", signextend bit 31.
298
299 end-sanitize-r5900
300 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
301
302 * configure: Regenerated to track ../common/aclocal.m4 changes.
303 * config.in: Ditto.
304
305 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
306
307 * interp.c (sim_open): Add call to sim_analyze_program, update
308 call to sim_config.
309
310 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
311
312 * interp.c (sim_kill): Delete.
313 (sim_create_inferior): Add ABFD argument. Set PC from same.
314 (sim_load): Move code initializing trap handlers from here.
315 (sim_open): To here.
316 (sim_load): Delete, use sim-hload.c.
317
318 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
319
320 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
321
322 * configure: Regenerated to track ../common/aclocal.m4 changes.
323 * config.in: Ditto.
324
325 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
326
327 * interp.c (sim_open): Add ABFD argument.
328 (sim_load): Move call to sim_config from here.
329 (sim_open): To here. Check return status.
330
331 start-sanitize-r5900
332 * gencode.c (build_instruction): Do not define x8000000000000000,
333 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
334
335 end-sanitize-r5900
336 start-sanitize-r5900
337 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
338
339 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
340 "pdivuw" check for overflow due to signed divide by -1.
341
342 end-sanitize-r5900
343 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
344
345 * gencode.c (build_instruction): Two arg MADD should
346 not assign result to $0.
347
348 start-sanitize-r5900
349 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
350
351 * gencode.c (build_instruction): For "ppac5" use unsigned
352 arrithmetic so that the sign bit doesn't smear when right shifted.
353 (build_instruction): For "pdiv" perform sign extension when
354 storing results in HI and LO.
355 (build_instructions): For "pdiv" and "pdivbw" check for
356 divide-by-zero.
357 (build_instruction): For "pmfhl.slw" update hi part of dest
358 register as well as low part.
359 (build_instruction): For "pmfhl" portably handle long long values.
360 (build_instruction): For "pmfhl.sh" correctly negative values.
361 Store half words 2 and three in the correct place.
362 (build_instruction): For "psllvw", sign extend value after shift.
363
364 end-sanitize-r5900
365 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
366
367 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
368 * sim/mips/configure.in: Regenerate.
369
370 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
371
372 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
373 signed8, unsigned8 et.al. types.
374
375 start-sanitize-r5900
376 * gencode.c (build_instruction): For PMULTU* do not sign extend
377 registers. Make generated code easier to debug.
378
379 end-sanitize-r5900
380 * interp.c (SUB_REG_FETCH): Handle both little and big endian
381 hosts when selecting subreg.
382
383 start-sanitize-r5900
384 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
385
386 * gencode.c (type_for_data_len): For 32bit operations concerned
387 with overflow, perform op using 64bits.
388 (build_instruction): For PADD, always compute operation using type
389 returned by type_for_data_len.
390 (build_instruction): For PSUBU, when overflow, saturate to zero as
391 actually underflow.
392
393 end-sanitize-r5900
394 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
395
396 start-sanitize-r5900
397 * gencode.c (build_instruction): Handle "pext5" according to
398 version 1.95 of the r5900 ISA.
399
400 * gencode.c (build_instruction): Handle "ppac5" according to
401 version 1.95 of the r5900 ISA.
402
403 end-sanitize-r5900
404 * interp.c (sim_engine_run): Reset the ZERO register to zero
405 regardless of FEATURE_WARN_ZERO.
406 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
407
408 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
409
410 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
411 (SignalException): For BreakPoints ignore any mode bits and just
412 save the PC.
413 (SignalException): Always set the CAUSE register.
414
415 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
416
417 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
418 exception has been taken.
419
420 * interp.c: Implement the ERET and mt/f sr instructions.
421
422 start-sanitize-r5900
423 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
424
425 * gencode.c (build_instruction): For paddu, extract unsigned
426 sub-fields.
427
428 * gencode.c (build_instruction): Saturate padds instead of padd
429 instructions.
430
431 end-sanitize-r5900
432 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
433
434 * interp.c (SignalException): Don't bother restarting an
435 interrupt.
436
437 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
438
439 * interp.c (SignalException): Really take an interrupt.
440 (interrupt_event): Only deliver interrupts when enabled.
441
442 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
443
444 * interp.c (sim_info): Only print info when verbose.
445 (sim_info) Use sim_io_printf for output.
446
447 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
448
449 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
450 mips architectures.
451
452 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
453
454 * interp.c (sim_do_command): Check for common commands if a
455 simulator specific command fails.
456
457 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
458
459 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
460 and simBE when DEBUG is defined.
461
462 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
463
464 * interp.c (interrupt_event): New function. Pass exception event
465 onto exception handler.
466
467 * configure.in: Check for stdlib.h.
468 * configure: Regenerate.
469
470 * gencode.c (build_instruction): Add UNUSED attribute to tempS
471 variable declaration.
472 (build_instruction): Initialize memval1.
473 (build_instruction): Add UNUSED attribute to byte, bigend,
474 reverse.
475 (build_operands): Ditto.
476
477 * interp.c: Fix GCC warnings.
478 (sim_get_quit_code): Delete.
479
480 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
481 * Makefile.in: Ditto.
482 * configure: Re-generate.
483
484 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
485
486 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
487
488 * interp.c (mips_option_handler): New function parse argumes using
489 sim-options.
490 (myname): Replace with STATE_MY_NAME.
491 (sim_open): Delete check for host endianness - performed by
492 sim_config.
493 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
494 (sim_open): Move much of the initialization from here.
495 (sim_load): To here. After the image has been loaded and
496 endianness set.
497 (sim_open): Move ColdReset from here.
498 (sim_create_inferior): To here.
499 (sim_open): Make FP check less dependant on host endianness.
500
501 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
502 run.
503 * interp.c (sim_set_callbacks): Delete.
504
505 * interp.c (membank, membank_base, membank_size): Replace with
506 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
507 (sim_open): Remove call to callback->init. gdb/run do this.
508
509 * interp.c: Update
510
511 * sim-main.h (SIM_HAVE_FLATMEM): Define.
512
513 * interp.c (big_endian_p): Delete, replaced by
514 current_target_byte_order.
515
516 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
517
518 * interp.c (host_read_long, host_read_word, host_swap_word,
519 host_swap_long): Delete. Using common sim-endian.
520 (sim_fetch_register, sim_store_register): Use H2T.
521 (pipeline_ticks): Delete. Handled by sim-events.
522 (sim_info): Update.
523 (sim_engine_run): Update.
524
525 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
526
527 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
528 reason from here.
529 (SignalException): To here. Signal using sim_engine_halt.
530 (sim_stop_reason): Delete, moved to common.
531
532 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
533
534 * interp.c (sim_open): Add callback argument.
535 (sim_set_callbacks): Delete SIM_DESC argument.
536 (sim_size): Ditto.
537
538 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
539
540 * Makefile.in (SIM_OBJS): Add common modules.
541
542 * interp.c (sim_set_callbacks): Also set SD callback.
543 (set_endianness, xfer_*, swap_*): Delete.
544 (host_read_word, host_read_long, host_swap_word, host_swap_long):
545 Change to functions using sim-endian macros.
546 (control_c, sim_stop): Delete, use common version.
547 (simulate): Convert into.
548 (sim_engine_run): This function.
549 (sim_resume): Delete.
550
551 * interp.c (simulation): New variable - the simulator object.
552 (sim_kind): Delete global - merged into simulation.
553 (sim_load): Cleanup. Move PC assignment from here.
554 (sim_create_inferior): To here.
555
556 * sim-main.h: New file.
557 * interp.c (sim-main.h): Include.
558
559 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
560
561 * configure: Regenerated to track ../common/aclocal.m4 changes.
562
563 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
564
565 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
566
567 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
568
569 * gencode.c (build_instruction): DIV instructions: check
570 for division by zero and integer overflow before using
571 host's division operation.
572
573 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
574
575 * Makefile.in (SIM_OBJS): Add sim-load.o.
576 * interp.c: #include bfd.h.
577 (target_byte_order): Delete.
578 (sim_kind, myname, big_endian_p): New static locals.
579 (sim_open): Set sim_kind, myname. Move call to set_endianness to
580 after argument parsing. Recognize -E arg, set endianness accordingly.
581 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
582 load file into simulator. Set PC from bfd.
583 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
584 (set_endianness): Use big_endian_p instead of target_byte_order.
585
586 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
587
588 * interp.c (sim_size): Delete prototype - conflicts with
589 definition in remote-sim.h. Correct definition.
590
591 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
592
593 * configure: Regenerated to track ../common/aclocal.m4 changes.
594 * config.in: Ditto.
595
596 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
597
598 * interp.c (sim_open): New arg `kind'.
599
600 * configure: Regenerated to track ../common/aclocal.m4 changes.
601
602 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
603
604 * configure: Regenerated to track ../common/aclocal.m4 changes.
605
606 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
607
608 * interp.c (sim_open): Set optind to 0 before calling getopt.
609
610 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
611
612 * configure: Regenerated to track ../common/aclocal.m4 changes.
613
614 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
615
616 * interp.c : Replace uses of pr_addr with pr_uword64
617 where the bit length is always 64 independent of SIM_ADDR.
618 (pr_uword64) : added.
619
620 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
621
622 * configure: Re-generate.
623
624 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
625
626 * configure: Regenerate to track ../common/aclocal.m4 changes.
627
628 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
629
630 * interp.c (sim_open): New SIM_DESC result. Argument is now
631 in argv form.
632 (other sim_*): New SIM_DESC argument.
633
634 start-sanitize-r5900
635 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
636
637 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
638 Change values to avoid overloading DOUBLEWORD which is tested
639 for all insns.
640 * gencode.c: reinstate "offending code".
641
642 end-sanitize-r5900
643 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
644
645 * interp.c: Fix printing of addresses for non-64-bit targets.
646 (pr_addr): Add function to print address based on size.
647 start-sanitize-r5900
648 * gencode.c: #ifdef out offending code until a permanent fix
649 can be added. Code is causing build errors for non-5900 mips targets.
650 end-sanitize-r5900
651
652 start-sanitize-r5900
653 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
654
655 * gencode.c (process_instructions): Correct test for ISA dependent
656 architecture bits in isa field of MIPS_DECODE.
657
658 end-sanitize-r5900
659 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
660
661 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
662
663 start-sanitize-r5900
664 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
665
666 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
667 PMADDUW.
668
669 end-sanitize-r5900
670 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
671
672 * gencode.c (build_mips16_operands): Correct computation of base
673 address for extended PC relative instruction.
674
675 start-sanitize-r5900
676 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
677
678 * Makefile.in, configure, configure.in, gencode.c,
679 interp.c, support.h: add r5900.
680
681 end-sanitize-r5900
682 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
683
684 * interp.c (mips16_entry): Add support for floating point cases.
685 (SignalException): Pass floating point cases to mips16_entry.
686 (ValueFPR): Don't restrict fmt_single and fmt_word to even
687 registers.
688 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
689 or fmt_word.
690 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
691 and then set the state to fmt_uninterpreted.
692 (COP_SW): Temporarily set the state to fmt_word while calling
693 ValueFPR.
694
695 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
696
697 * gencode.c (build_instruction): The high order may be set in the
698 comparison flags at any ISA level, not just ISA 4.
699
700 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
701
702 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
703 COMMON_{PRE,POST}_CONFIG_FRAG instead.
704 * configure.in: sinclude ../common/aclocal.m4.
705 * configure: Regenerated.
706
707 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
708
709 * configure: Rebuild after change to aclocal.m4.
710
711 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
712
713 * configure configure.in Makefile.in: Update to new configure
714 scheme which is more compatible with WinGDB builds.
715 * configure.in: Improve comment on how to run autoconf.
716 * configure: Re-run autoconf to get new ../common/aclocal.m4.
717 * Makefile.in: Use autoconf substitution to install common
718 makefile fragment.
719
720 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
721
722 * gencode.c (build_instruction): Use BigEndianCPU instead of
723 ByteSwapMem.
724
725 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
726
727 * interp.c (sim_monitor): Make output to stdout visible in
728 wingdb's I/O log window.
729
730 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
731
732 * support.h: Undo previous change to SIGTRAP
733 and SIGQUIT values.
734
735 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
736
737 * interp.c (store_word, load_word): New static functions.
738 (mips16_entry): New static function.
739 (SignalException): Look for mips16 entry and exit instructions.
740 (simulate): Use the correct index when setting fpr_state after
741 doing a pending move.
742
743 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
744
745 * interp.c: Fix byte-swapping code throughout to work on
746 both little- and big-endian hosts.
747
748 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
749
750 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
751 with gdb/config/i386/xm-windows.h.
752
753 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
754
755 * gencode.c (build_instruction): Work around MSVC++ code gen bug
756 that messes up arithmetic shifts.
757
758 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
759
760 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
761 SIGTRAP and SIGQUIT for _WIN32.
762
763 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
764
765 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
766 force a 64 bit multiplication.
767 (build_instruction) [OR]: In mips16 mode, don't do anything if the
768 destination register is 0, since that is the default mips16 nop
769 instruction.
770
771 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
772
773 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
774 (build_endian_shift): Don't check proc64.
775 (build_instruction): Always set memval to uword64. Cast op2 to
776 uword64 when shifting it left in memory instructions. Always use
777 the same code for stores--don't special case proc64.
778
779 * gencode.c (build_mips16_operands): Fix base PC value for PC
780 relative operands.
781 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
782 jal instruction.
783 * interp.c (simJALDELAYSLOT): Define.
784 (JALDELAYSLOT): Define.
785 (INDELAYSLOT, INJALDELAYSLOT): Define.
786 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
787
788 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
789
790 * interp.c (sim_open): add flush_cache as a PMON routine
791 (sim_monitor): handle flush_cache by ignoring it
792
793 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
794
795 * gencode.c (build_instruction): Use !ByteSwapMem instead of
796 BigEndianMem.
797 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
798 (BigEndianMem): Rename to ByteSwapMem and change sense.
799 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
800 BigEndianMem references to !ByteSwapMem.
801 (set_endianness): New function, with prototype.
802 (sim_open): Call set_endianness.
803 (sim_info): Use simBE instead of BigEndianMem.
804 (xfer_direct_word, xfer_direct_long, swap_direct_word,
805 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
806 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
807 ifdefs, keeping the prototype declaration.
808 (swap_word): Rewrite correctly.
809 (ColdReset): Delete references to CONFIG. Delete endianness related
810 code; moved to set_endianness.
811
812 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
813
814 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
815 * interp.c (CHECKHILO): Define away.
816 (simSIGINT): New macro.
817 (membank_size): Increase from 1MB to 2MB.
818 (control_c): New function.
819 (sim_resume): Rename parameter signal to signal_number. Add local
820 variable prev. Call signal before and after simulate.
821 (sim_stop_reason): Add simSIGINT support.
822 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
823 functions always.
824 (sim_warning): Delete call to SignalException. Do call printf_filtered
825 if logfh is NULL.
826 (AddressTranslation): Add #ifdef DEBUG around debugging message and
827 a call to sim_warning.
828
829 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
830
831 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
832 16 bit instructions.
833
834 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
835
836 Add support for mips16 (16 bit MIPS implementation):
837 * gencode.c (inst_type): Add mips16 instruction encoding types.
838 (GETDATASIZEINSN): Define.
839 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
840 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
841 mtlo.
842 (MIPS16_DECODE): New table, for mips16 instructions.
843 (bitmap_val): New static function.
844 (struct mips16_op): Define.
845 (mips16_op_table): New table, for mips16 operands.
846 (build_mips16_operands): New static function.
847 (process_instructions): If PC is odd, decode a mips16
848 instruction. Break out instruction handling into new
849 build_instruction function.
850 (build_instruction): New static function, broken out of
851 process_instructions. Check modifiers rather than flags for SHIFT
852 bit count and m[ft]{hi,lo} direction.
853 (usage): Pass program name to fprintf.
854 (main): Remove unused variable this_option_optind. Change
855 ``*loptarg++'' to ``loptarg++''.
856 (my_strtoul): Parenthesize && within ||.
857 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
858 (simulate): If PC is odd, fetch a 16 bit instruction, and
859 increment PC by 2 rather than 4.
860 * configure.in: Add case for mips16*-*-*.
861 * configure: Rebuild.
862
863 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
864
865 * interp.c: Allow -t to enable tracing in standalone simulator.
866 Fix garbage output in trace file and error messages.
867
868 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
869
870 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
871 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
872 * configure.in: Simplify using macros in ../common/aclocal.m4.
873 * configure: Regenerated.
874 * tconfig.in: New file.
875
876 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
877
878 * interp.c: Fix bugs in 64-bit port.
879 Use ansi function declarations for msvc compiler.
880 Initialize and test file pointer in trace code.
881 Prevent duplicate definition of LAST_EMED_REGNUM.
882
883 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
884
885 * interp.c (xfer_big_long): Prevent unwanted sign extension.
886
887 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
888
889 * interp.c (SignalException): Check for explicit terminating
890 breakpoint value.
891 * gencode.c: Pass instruction value through SignalException()
892 calls for Trap, Breakpoint and Syscall.
893
894 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
895
896 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
897 only used on those hosts that provide it.
898 * configure.in: Add sqrt() to list of functions to be checked for.
899 * config.in: Re-generated.
900 * configure: Re-generated.
901
902 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
903
904 * gencode.c (process_instructions): Call build_endian_shift when
905 expanding STORE RIGHT, to fix swr.
906 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
907 clear the high bits.
908 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
909 Fix float to int conversions to produce signed values.
910
911 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
912
913 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
914 (process_instructions): Correct handling of nor instruction.
915 Correct shift count for 32 bit shift instructions. Correct sign
916 extension for arithmetic shifts to not shift the number of bits in
917 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
918 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
919 Fix madd.
920 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
921 It's OK to have a mult follow a mult. What's not OK is to have a
922 mult follow an mfhi.
923 (Convert): Comment out incorrect rounding code.
924
925 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
926
927 * interp.c (sim_monitor): Improved monitor printf
928 simulation. Tidied up simulator warnings, and added "--log" option
929 for directing warning message output.
930 * gencode.c: Use sim_warning() rather than WARNING macro.
931
932 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
933
934 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
935 getopt1.o, rather than on gencode.c. Link objects together.
936 Don't link against -liberty.
937 (gencode.o, getopt.o, getopt1.o): New targets.
938 * gencode.c: Include <ctype.h> and "ansidecl.h".
939 (AND): Undefine after including "ansidecl.h".
940 (ULONG_MAX): Define if not defined.
941 (OP_*): Don't define macros; now defined in opcode/mips.h.
942 (main): Call my_strtoul rather than strtoul.
943 (my_strtoul): New static function.
944
945 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
946
947 * gencode.c (process_instructions): Generate word64 and uword64
948 instead of `long long' and `unsigned long long' data types.
949 * interp.c: #include sysdep.h to get signals, and define default
950 for SIGBUS.
951 * (Convert): Work around for Visual-C++ compiler bug with type
952 conversion.
953 * support.h: Make things compile under Visual-C++ by using
954 __int64 instead of `long long'. Change many refs to long long
955 into word64/uword64 typedefs.
956
957 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
958
959 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
960 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
961 (docdir): Removed.
962 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
963 (AC_PROG_INSTALL): Added.
964 (AC_PROG_CC): Moved to before configure.host call.
965 * configure: Rebuilt.
966
967 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
968
969 * configure.in: Define @SIMCONF@ depending on mips target.
970 * configure: Rebuild.
971 * Makefile.in (run): Add @SIMCONF@ to control simulator
972 construction.
973 * gencode.c: Change LOADDRMASK to 64bit memory model only.
974 * interp.c: Remove some debugging, provide more detailed error
975 messages, update memory accesses to use LOADDRMASK.
976
977 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
978
979 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
980 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
981 stamp-h.
982 * configure: Rebuild.
983 * config.in: New file, generated by autoheader.
984 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
985 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
986 HAVE_ANINT and HAVE_AINT, as appropriate.
987 * Makefile.in (run): Use @LIBS@ rather than -lm.
988 (interp.o): Depend upon config.h.
989 (Makefile): Just rebuild Makefile.
990 (clean): Remove stamp-h.
991 (mostlyclean): Make the same as clean, not as distclean.
992 (config.h, stamp-h): New targets.
993
994 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
995
996 * interp.c (ColdReset): Fix boolean test. Make all simulator
997 globals static.
998
999 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1000
1001 * interp.c (xfer_direct_word, xfer_direct_long,
1002 swap_direct_word, swap_direct_long, xfer_big_word,
1003 xfer_big_long, xfer_little_word, xfer_little_long,
1004 swap_word,swap_long): Added.
1005 * interp.c (ColdReset): Provide function indirection to
1006 host<->simulated_target transfer routines.
1007 * interp.c (sim_store_register, sim_fetch_register): Updated to
1008 make use of indirected transfer routines.
1009
1010 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
1011
1012 * gencode.c (process_instructions): Ensure FP ABS instruction
1013 recognised.
1014 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
1015 system call support.
1016
1017 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
1018
1019 * interp.c (sim_do_command): Complain if callback structure not
1020 initialised.
1021
1022 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
1023
1024 * interp.c (Convert): Provide round-to-nearest and round-to-zero
1025 support for Sun hosts.
1026 * Makefile.in (gencode): Ensure the host compiler and libraries
1027 used for cross-hosted build.
1028
1029 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
1030
1031 * interp.c, gencode.c: Some more (TODO) tidying.
1032
1033 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
1034
1035 * gencode.c, interp.c: Replaced explicit long long references with
1036 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
1037 * support.h (SET64LO, SET64HI): Macros added.
1038
1039 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
1040
1041 * configure: Regenerate with autoconf 2.7.
1042
1043 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
1044
1045 * interp.c (LoadMemory): Enclose text following #endif in /* */.
1046 * support.h: Remove superfluous "1" from #if.
1047 * support.h (CHECKSIM): Remove stray 'a' at end of line.
1048
1049 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
1050
1051 * interp.c (StoreFPR): Control UndefinedResult() call on
1052 WARN_RESULT manifest.
1053
1054 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
1055
1056 * gencode.c: Tidied instruction decoding, and added FP instruction
1057 support.
1058
1059 * interp.c: Added dineroIII, and BSD profiling support. Also
1060 run-time FP handling.
1061
1062 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1063
1064 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
1065 gencode.c, interp.c, support.h: created.