1 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3 * armemu.h (GETSPSR): Call ARMul_GetSPSR().
4 * armsupp.c (ARMul_CPSRAltered): Zero out bits as they're
5 extracted from state->Cpsr, but preserve the unused bits.
6 (ARMul_GetCPSR): Get bits preserved in state->Cpsr.
7 (ARMul_GetSPSR, ARMul_FixCPSR): Use ARMul_GetCPSR() to
8 get the full CPSR word.
10 * armemu.h (PSR_FBITS, PSR_SBITS, PSR_XBITS, PSR_CBITS): New.
11 (SETPSR_F, SETPSR_S, SETPSR_X, SETPSR_C): New macros.
12 (SETPSR, SET_INTMODE, SETCC): Removed.
13 * armsupp.c (ARMul_FixCPSR, ARMul_FixSPSR): Do not test bit
14 mask. Use SETPSR_* to modify PSR.
15 (ARMul_SetCPSR): Load all bits from value.
16 * armemu.c (ARMul_Emulate, msr): Do not test bit mask.
18 * armemu.c (ARMul_Emulate): Compute writeback value before
19 loading, since the offset register may be the destination
22 * armdefs.h (SYSTEMBANK): Define as USERBANK.
23 * armsupp.c (ARMul_SwitchMode): Remove SYSTEMBANK cases.
25 2000-06-22 Alexandre Oliva <aoliva@cygnus.com>
27 * armemu.c (Multiply64): Fix computation of flag N.
29 * armemu.c (MultiplyAdd64): Fix computation of flag N.
31 2000-06-20 Alexandre Oliva <aoliva@cygnus.com>
33 * armemu.h (NEGBRANCH): Do not overwrite the two most significant
36 2000-05-25 Nick Clifton <nickc@cygnus.com>
38 * armcopro.c (MMUMCR): Only indicate mode change if a singal has
40 (MMUWrite): Only indicate mode change if a singal has really
43 * armdefs.h (SYSTEMMODE): Define.
44 (BANK_CAN_ACEESS_SPSR): Define.
46 * armemu.c (ARM_Emulate26): If the mode has changed allow the PC
47 to advance before stopping the emulation.
49 * arminit.c (ARMul_Reset): Ensure Mode field of State is set
52 * armos.c (ARMul_OSInit): Create a initial stack pointer for
55 * armsupp.c (ModeToBank): Remove unused first parameter.
56 Add support for System Mode.
57 (ARMul_GetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
58 (ARMul_SetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
59 (ARMul_FixSPSR): Use BANK_CAN_ACCESS_SPSR macro.
60 (ARMulSwitchMode): Add support for System Mode.
62 Wed May 24 14:40:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
64 * configure: Regenerated to track ../common/aclocal.m4 changes.
66 2000-05-23 Nick Clifton <nickc@cygnus.com>
68 * wrapper.c (sim_store_register): Special handling for CPSR
71 2000-03-11 Philip Blundell <philb@gnu.org>
73 * armemu.c (LoadSMult, LoadMult): Correct handling of aborts.
74 Patch from Allan Skillman <Allan.Skillman@arm.com>.
76 Wed Mar 22 15:24:21 2000 glen mccready <gkm@pobox.com>
78 * wrapper.c (sim_open,sim_close): Copy into myname, free myname.
80 2000-02-08 Nick Clifton <nickc@cygnus.com>
82 * wrapper.c: Fix compile time warning messages.
83 * armcopro.c: Fix compile time warning messages.
84 * armdefs.h: Fix compile time warning messages.
85 * armemu.c: Fix compile time warning messages.
86 * armemu.h: Fix compile time warning messages.
87 * armos.c: Fix compile time warning messages.
88 * armsupp.c: Fix compile time warning messages.
89 * armvirt.c: Fix compile time warning messages.
90 * bag.c: Fix compile time warning messages.
92 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
94 * *.[ch]: Use indent to make readable.
96 1999-11-22 Nick Clifton <nickc@cygnus.com>
98 * armos.c (SWIread): Generate an error message if a huge read is
100 (SWIwrite): Generate an error message if a huge write is
103 1999-10-27 Nick Clifton <nickc@cygnus.com>
105 * thumbemu.c (ARMul_ThumbDecode): Accept 0xbebe as a thumb
108 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
110 * armos.c (SWIopen): Always pass third parameter with 0666 since
111 otherwise uninitialized memory gets access if the O_CREAT bit is
112 set and so we possibly cannot access the file afterwards.
114 1999-09-29 Doug Evans <devans@casey.cygnus.com>
116 * armos.c (SWIWrite0): Send output to stdout instead of stderr.
117 (ARMul_OSHandleSWI, case SWI_WriteC,AngelSWI_Reason_WriteC): Ditto.
119 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
121 * configure: Regenerated to track ../common/aclocal.m4 changes.
124 1999-05-08 Felix Lee <flee@cygnus.com>
126 * configure: Regenerated to track ../common/aclocal.m4 changes.
128 1999-04-06 Keith Seitz <keiths@cygnus.com>
130 * wrapper.c (stop_simulator): New global.
131 (sim_stop): Set sim state to STOP and set
133 (sim_resume): Reset stop_simulator.
134 (sim_stop_reason): If stop_simulator is set, tell gdb
135 that the we took SIGINT.
136 * armemu.c (ARMul_Emulate26): Don't loop forever. Stop if
137 stop_simulator is set.
139 1999-04-02 Keith Seitz <keiths@cygnus.com>
141 * armemu.c (ARMul_Emulate26): If NEED_UI_LOOP_HOOK, call ui_loop_hook
142 whenever the counter expires.
143 * Makefile.in (SIM_EXTRA_CFLAGS): Include define NEED_UI_LOOP_HOOK.
145 1999-03-24 Nick Clifton <nickc@cygnus.com>
147 * armemu.c (ARMul_Emulate26): Handle new breakpoint value.
148 * thumbemu.c (ARMul_ThumbDecode): Handle new breakpoint value.
150 Mon Sep 14 09:00:05 1998 Nick Clifton <nickc@cygnus.com>
152 * wrapper.c (sim_open): Set endianness according to BFD or command
155 * tconfig.in: Define SIM_HAVE_BIENDIAN.
157 Thu Aug 27 11:00:05 1998 Nick Clifton <nickc@cygnus.com>
159 * armemu.c (Multiply64): Test for Rm (rather than Rs) not being
160 the same as either RdHi or RdLo.
162 Thu Jul 2 10:24:35 1998 Nick Clifton <nickc@cygnus.com>
164 * armos.c (ARMul_OSHandleSWI: AngelSWI_Reason_ReportException):
165 Set Reg[0] based on reason for for the exception.
167 Thu Jun 4 15:22:03 1998 Jason Molenda (crash@bugshack.cygnus.com)
169 * armos.c (SWIwrite0): New function.
170 (WriteCommandLineTo): New function.
171 (SWIopen): New function.
172 (SWIread): New function.
173 (SWIwrite): New function.
174 (SWIflen): New function.
175 (ARMul_OSHandleSWI): Call new functions instead of handling
177 (ARMul_OSHandleSWI): Handle Angel SWIs correctly.
178 (*): Reformat spacing to be a bit more GNUly.
179 Most code taken from a patch by Anthony Thompson
180 (athompso@cambridge.arm.com)
182 Tue Jun 2 15:22:22 1998 Nick Clifton <nickc@cygnus.com>
184 * armos.h: Add Angel SWI and its reason codes.
185 * armos.c (ARMul_OSHandleSWI): Ignore Angel SWIs (for now).
187 Mon Jun 1 17:14:19 1998 Anthony Thompson (athompso@cambridge.arm.com)
189 * armos.c (ARMul_OSHandleSWI::SWI_Open): Handle special case
190 of ":tt" to catch stdin in addition to stdout.
191 (ARMul_OSHandleSWI::SWI_Seek): Return 0 or 1 to indicate failure
192 or success of lseek().
194 Wed May 20 17:36:25 1998 Nick Clifton <nickc@cygnus.com>
196 * armos.c (ARMul_OSHandleSWI): Special case code to catch attempts
199 Wed Apr 29 15:29:55 1998 Jeff Johnston <jjohnstn@cygnus.com>
201 * armos.c (ARMul_OSHandleSWI): Added code for SWI_Clock,
202 SWI_Flen, and SWI_Time. Also fixed SWI_Seek code to only
203 seek from offset 0 and not to use R2 for whence since it is
204 not passed as part of the SWI call.
206 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
208 * configure: Regenerated to track ../common/aclocal.m4 changes.
210 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
212 * configure: Regenerated to track ../common/aclocal.m4 changes.
215 Sun Apr 26 15:20:26 1998 Tom Tromey <tromey@cygnus.com>
217 * acconfig.h: New file.
218 * configure.in: Reverted change of Apr 24; use sinclude again.
220 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
222 * configure: Regenerated to track ../common/aclocal.m4 changes.
225 Fri Apr 24 11:20:19 1998 Tom Tromey <tromey@cygnus.com>
227 * configure.in: Don't call sinclude.
229 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
231 * configure: Regenerated to track ../common/aclocal.m4 changes.
233 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
235 * configure: Regenerated to track ../common/aclocal.m4 changes.
237 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
239 * configure: Regenerated to track ../common/aclocal.m4 changes.
241 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
243 * configure: Regenerated to track ../common/aclocal.m4 changes.
245 Tue Mar 10 09:26:38 1998 Nick Clifton <nickc@cygnus.com>
247 * armopts.h: Remove definition of LITTLEND - it is not used.
249 Tue Feb 17 12:35:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
251 * wrapper.c (sim_store_register, sim_fetch_register): Pass in
252 length parameter. Return -1.
254 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
256 * configure: Regenerated to track ../common/aclocal.m4 changes.
258 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
260 * configure: Regenerated to track ../common/aclocal.m4 changes.
262 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
264 * configure: Regenerated to track ../common/aclocal.m4 changes.
266 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
268 * configure: Regenerated to track ../common/aclocal.m4 changes.
271 Tue Dec 9 11:30:48 1997 Nick Clifton <nickc@cygnus.com>
273 * Makefile.in: Updated with changes from branch.
275 * armemu.c: ditto these changes
276 * armemu.h: ditto add support for
277 * armos.c: ditto the Thumb instruction
278 * armsupp.c: ditto set and the new v4
279 * armvirt.c: ditto architecture.
281 * thumbemu.c: New file from branch.
284 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
286 * configure: Regenerated to track ../common/aclocal.m4 changes.
288 Thu Oct 30 13:54:06 1997 Nick Clifton <nickc@cygnus.com>
290 * armos.c (ARMul_OSHandleSWI): Add support for GetEnv SWI. Patch
291 from Tony Thompson at ARM: athompso@arm.com
293 * wrapper.c (sim_create_inferior): Add code to create an execution
294 environment. Patch from Tony Thompson at ARM: athompso@arm.com
296 Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
298 * wrapper.c (sim_load): Pass lma_p and sim_write args to
301 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
303 * configure: Regenerated to track ../common/aclocal.m4 changes.
305 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
307 * configure: Regenerated to track ../common/aclocal.m4 changes.
309 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
311 * configure: Regenerated to track ../common/aclocal.m4 changes.
313 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
315 * configure: Regenerated to track ../common/aclocal.m4 changes.
317 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
319 * configure: Regenerated to track ../common/aclocal.m4 changes.
321 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
323 * configure: Regenerated to track ../common/aclocal.m4 changes.
325 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
327 * configure: Regenerated to track ../common/aclocal.m4 changes.
329 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
331 * configure: Regenerated to track ../common/aclocal.m4 changes.
334 Tue Aug 26 10:37:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
336 * wrapper.c (sim_kill): Delete.
337 (sim_create_inferior): Add ABFD argument.
338 (sim_load): Move setting of PC from here.
339 (sim_create_inferior): To here.
341 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
343 * configure: Regenerated to track ../common/aclocal.m4 changes.
346 Mon Aug 25 15:35:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
348 * wrapper.c (sim_open): Add ABFD argument.
350 Tue May 20 10:13:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
352 * wrapper.c (sim_open): Add callback argument.
353 (sim_set_callbacks): Drop SIM_DESC argument.
355 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
357 * configure: Regenerated to track ../common/aclocal.m4 changes.
359 Fri Apr 18 13:32:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
361 * wrapper.c (sim_stop): Stub sim_stop function.
363 Thu Apr 17 18:33:01 1997 Fred Fish <fnf@cygnus.com>
365 * arminit.c (ARMul_NewState): Preinitialize the state to
368 Thu Apr 17 02:39:02 1997 Doug Evans <dje@canuck.cygnus.com>
370 * Makefile.in (SIM_OBJS): Add sim-load.o.
371 * wrapper.c (sim_kind,myname): New static locals.
372 (sim_open): Set sim_kind, myname.
373 (sim_load): Call sim_load_file to do work. Set start address from bfd.
374 (sim_create_inferior): Return SIM_RC. Delete start_address arg.
376 Thu Apr 17 11:48:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
378 * wrapper.c (sim_trace): Update so that it matches prototype.
380 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
382 * configure: Regenerated to track ../common/aclocal.m4 changes.
385 Mon Apr 7 12:01:17 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
387 * Makefile.in (armemu32.o): Replace $< with autoconf recommended
391 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
393 * wrapper.c (sim_open): New arg `kind'.
395 * configure: Regenerated to track ../common/aclocal.m4 changes.
397 Wed Apr 2 14:50:44 1997 Ian Lance Taylor <ian@cygnus.com>
399 * COPYING: Update FSF address.
401 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
403 * configure: Regenerated to track ../common/aclocal.m4 changes.
405 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
407 * configure: Regenerated to track ../common/aclocal.m4 changes.
409 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
411 * configure: Re-generate.
413 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
415 * configure: Regenerate to track ../common/aclocal.m4 changes.
417 Thu Mar 13 12:38:56 1997 Doug Evans <dje@canuck.cygnus.com>
419 * wrapper.c (sim_open): Has result now.
420 (sim_*): New SIM_DESC argument.
422 Tue Feb 4 13:22:21 1997 Doug Evans <dje@canuck.cygnus.com>
424 * Makefile.in (@COMMON_MAKEFILE_FRAG@): Use
425 COMMON_{PRE,POST}_CONFIG_FRAG instead.
426 * configure.in: sinclude ../common/aclocal.m4.
427 * configure: Regenerated.
429 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
431 * configure configure.in Makefile.in: Update to new configure
432 scheme which is more compatible with WinGDB builds.
433 * configure.in: Improve comment on how to run autoconf.
434 * configure: Re-run autoconf to get new ../common/aclocal.m4.
435 * Makefile.in: Use autoconf substitution to install common
438 Wed Nov 20 01:05:10 1996 Doug Evans <dje@canuck.cygnus.com>
440 * run.c: Deleted, use one in ../common now.
441 * Makefile.in: Delete everything that's been moved to
442 ../common/Make-common.in.
444 * configure.in: Simplify using macros in ../common/aclocal.m4.
445 * configure: Regenerated.
446 * config.in: New file.
447 * armos.c: #include config.h.
448 * wrapper.c (mem_size): Value is in bytes now.
449 (sim_callback): New global.
450 (arm_sim_set_profile{,_size}): Delete.
451 (arm_sim_set_mem_size): Rename to sim_size.
452 (sim_do_command): Call printf_filtered via callback.
453 (sim_set_callbacks): Record callback.
455 Thu Oct 3 16:10:27 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
457 * Makefile.in (mostlyclean): Remove config.log.
459 Wed Jun 26 12:17:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
461 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
462 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
464 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
465 (AC_PROG_INSTALL): Added.
466 * configure: Rebuilt.
468 Wed Feb 21 12:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
470 * configure: Regenerate with autoconf 2.7.
472 Fri Dec 15 16:27:30 1995 Ian Lance Taylor <ian@cygnus.com>
474 * run.c (main): Use new bfd_big_endian macro.
476 Mon Nov 20 17:40:38 1995 Doug Evans <dje@canuck.cygnus.com>
478 * run.c: Include "getopt.h".
480 (usage): Make static.
481 (main): Call arm_sim_set_verbosity.
482 Only load sections marked SEC_LOAD.
483 * wrapper.c (mem_size, verbosity): New static global.
484 (arm_sim_set_mem_size): Renamed from sim_size. Callers updated.
485 (arm_sim_set_profile{,_size}): Renamed from sim_foo. Callers updated.
487 Fri Nov 17 19:35:11 1995 Doug Evans <dje@canuck.cygnus.com>
489 * armdefs.h (ARMul_State): New member `verbose'.
490 * armrdi.c (ARMul_ConsolePrint): Add missing va_end.
491 * run.c (verbose): Make global.
492 * wrapper.c (init): Set state->verbose.
493 (ARMul_ConsolePrint): Don't print anything if !verbose.
495 Fri Oct 13 15:30:30 1995 Doug Evans <dje@canuck.cygnus.com>
497 * armos.c: #include dbg_rdi.h.
498 (ARMul_OSHandleSWI): Handle SWI_Breakpoint.
499 * armos.h (SWI_Breakpoint): Define.
500 * wrapper.c: #include armemu.h, dbg_rdi.h.
502 (sim_resume): Use state->EndCondition to record stop state.
503 Call FLUSHPIPE before returning.
504 (sim_stop_reason): Determine reason from state->EndCondition.
506 Fri Oct 13 15:04:05 1995 steve chamberlain <sac@slash.cygnus.com>
508 * wrapper.c (sim_set_callbacks): New.
510 Thu Sep 28 19:45:56 1995 Doug Evans <dje@deneb.cygnus.com>
512 * armos.c (ARMul_OSHandleSWI): Result of read/write calls is
513 number of bytes not read/written (or -1).
515 Wed Sep 20 13:35:54 1995 Ian Lance Taylor <ian@cygnus.com>
517 * Makefile.in (maintainer-clean): New synonym for realclean.
519 Fri Sep 8 14:27:20 1995 Ian Lance Taylor <ian@cygnus.com>
521 * configure.in: Remove AC_PROG_INSTALL.
522 * configure: Rebuild.
523 * Makefile.in (INSTALL): Revert to using install.sh.
524 (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
525 (INSTALL_XFORM, INSTALL_XFORM1): Restore.
526 (mostlyclean): Make the same as clean, not distclean.
527 (clean): Remove config.log.
528 (install): Don't install in $(tooldir).
530 Thu Sep 7 12:00:17 1995 Doug Evans <dje@canuck.cygnus.com>
532 (Try to) Update to new bfd autoconf scheme.
533 * run.c: Don't include sysdep.h.
534 * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
535 (CC, CFLAGS, AR, RANLIB): Likewise.
536 (HDEFINES, TDEFINES): Define.
537 (CC_FOR_BUILD): Delete.
538 (host_makefile_frag): Delete.
539 (Makefile): Don't depend on frags.
540 * configure.in (sysdep.h): Don't create symlink.
541 (host_makefile_frag, frags): Deleted.
542 (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
543 * configure: Regenerated.
545 Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
547 * Update all FSF addresses except those in COPYING* files.
549 Wed Jul 5 16:15:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
551 * Makefile.in (clean): Remove run, libsim.a.
553 * Makefile.in, configure.in: converted to autoconf.
554 * configure: New file, generated with autconf 2.4.
558 Fri Jun 30 16:49:47 1995 Stan Shebs <shebs@andros.cygnus.com>
560 * wrapper.c (sim_do_command): New function.
562 Tue Jun 13 10:57:32 1995 Steve Chamberlain <sac@slash.cygnus.com>
564 * armos.c (ARMul_OSHandleSWI): New version to work with
567 Thu Jun 8 14:37:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
569 * run.c (main): Grab return value from right register.
571 Wed May 24 14:37:31 1995 Steve Chamberlain <sac@slash.cygnus.com>