Add support for v4 SystemMode.
[external/binutils.git] / sim / arm / ChangeLog
1 2000-05-25  Nick Clifton  <nickc@cygnus.com>
2
3         * armcopro.c (MMUMCR): Only indicate mode change if a singal has
4         really changed.
5         (MMUWrite): Only indicate mode change if a singal has really
6         changed.
7
8         * armdefs.h (SYSTEMMODE): Define.
9         (BANK_CAN_ACEESS_SPSR): Define.
10
11         * armemu.c (ARM_Emulate26): If the mode has changed allow the PC
12         to advance before stopping the emulation.
13
14         * arminit.c (ARMul_Reset): Ensure Mode field of State is set
15         correctly.
16
17         * armos.c (ARMul_OSInit): Create a initial stack pointer for
18         System mode.
19
20         * armsupp.c (ModeToBank): Remove unused first parameter.
21         Add support for System Mode.
22         (ARMul_GetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
23         (ARMul_SetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
24         (ARMul_FixSPSR): Use BANK_CAN_ACCESS_SPSR macro.
25         (ARMulSwitchMode): Add support for System Mode.
26
27 Wed May 24 14:40:34 2000  Andrew Cagney  <cagney@b1.cygnus.com>
28
29         * configure: Regenerated to track ../common/aclocal.m4 changes.
30
31 2000-05-23  Nick Clifton  <nickc@cygnus.com>
32
33         * wrapper.c (sim_store_register): Special handling for CPSR
34         register.
35
36 2000-03-11  Philip Blundell  <philb@gnu.org>
37
38         * armemu.c (LoadSMult, LoadMult): Correct handling of aborts.
39         Patch from Allan Skillman <Allan.Skillman@arm.com>.
40
41 Wed Mar 22 15:24:21 2000  glen mccready  <gkm@pobox.com>
42
43         * wrapper.c (sim_open,sim_close): Copy into myname, free myname.
44
45 2000-02-08  Nick Clifton  <nickc@cygnus.com>
46
47         * wrapper.c: Fix compile time warning messages.
48         * armcopro.c: Fix compile time warning messages.
49         * armdefs.h: Fix compile time warning messages.
50         * armemu.c: Fix compile time warning messages.
51         * armemu.h: Fix compile time warning messages.
52         * armos.c: Fix compile time warning messages.
53         * armsupp.c: Fix compile time warning messages.
54         * armvirt.c: Fix compile time warning messages.
55         * bag.c: Fix compile time warning messages.
56         
57 2000-02-02  Bernd Schmidt  <bernds@cygnus.co.uk>
58
59         * *.[ch]: Use indent to make readable.
60
61 1999-11-22  Nick Clifton  <nickc@cygnus.com>
62
63         * armos.c (SWIread): Generate an error message if a huge read is
64         performed.
65         (SWIwrite): Generate an error message if a huge write is
66         performed.
67
68 1999-10-27  Nick Clifton  <nickc@cygnus.com>
69
70         * thumbemu.c (ARMul_ThumbDecode): Accept 0xbebe as a thumb
71         breakpoint. 
72
73 1999-10-08  Ulrich Drepper  <drepper@cygnus.com>
74
75         * armos.c (SWIopen): Always pass third parameter with 0666 since
76         otherwise uninitialized memory gets access if the O_CREAT bit is
77         set and so we possibly cannot access the file afterwards.
78
79 1999-09-29  Doug Evans  <devans@casey.cygnus.com>
80
81         * armos.c (SWIWrite0): Send output to stdout instead of stderr.
82         (ARMul_OSHandleSWI, case SWI_WriteC,AngelSWI_Reason_WriteC): Ditto.
83
84 Thu Sep  2 18:15:53 1999  Andrew Cagney  <cagney@b1.cygnus.com>
85
86         * configure: Regenerated to track ../common/aclocal.m4 changes.
87
88
89 1999-05-08  Felix Lee  <flee@cygnus.com>
90
91         * configure: Regenerated to track ../common/aclocal.m4 changes.
92         
93 1999-04-06  Keith Seitz  <keiths@cygnus.com>
94
95         * wrapper.c (stop_simulator): New global.
96         (sim_stop): Set sim state to STOP and set
97         stop_simulator.
98         (sim_resume): Reset stop_simulator.
99         (sim_stop_reason): If stop_simulator is set, tell gdb
100         that the we took SIGINT.
101         * armemu.c (ARMul_Emulate26): Don't loop forever. Stop if
102         stop_simulator is set.
103
104 1999-04-02  Keith Seitz  <keiths@cygnus.com>
105
106         * armemu.c (ARMul_Emulate26): If NEED_UI_LOOP_HOOK, call ui_loop_hook
107         whenever the counter expires.
108         * Makefile.in (SIM_EXTRA_CFLAGS): Include define NEED_UI_LOOP_HOOK.
109
110 1999-03-24  Nick Clifton  <nickc@cygnus.com>
111
112         * armemu.c (ARMul_Emulate26): Handle new breakpoint value.
113         * thumbemu.c (ARMul_ThumbDecode): Handle new breakpoint value.
114
115 Mon Sep 14 09:00:05 1998  Nick Clifton  <nickc@cygnus.com>
116
117         * wrapper.c (sim_open): Set endianness according to BFD or command
118         line switch.
119
120         * tconfig.in: Define SIM_HAVE_BIENDIAN.
121
122 Thu Aug 27 11:00:05 1998  Nick Clifton  <nickc@cygnus.com>
123
124         * armemu.c (Multiply64): Test for Rm (rather than Rs) not being
125         the same as either RdHi or RdLo.
126
127 Thu Jul  2 10:24:35 1998  Nick Clifton  <nickc@cygnus.com>
128
129         * armos.c (ARMul_OSHandleSWI: AngelSWI_Reason_ReportException):
130         Set Reg[0] based on reason for for the exception.
131
132 Thu Jun  4 15:22:03 1998  Jason Molenda  (crash@bugshack.cygnus.com)
133
134         * armos.c (SWIwrite0): New function.
135         (WriteCommandLineTo): New function.
136         (SWIopen): New function.
137         (SWIread): New function.
138         (SWIwrite): New function.
139         (SWIflen): New function.
140         (ARMul_OSHandleSWI): Call new functions instead of handling     
141         these here.
142         (ARMul_OSHandleSWI): Handle Angel SWIs correctly.
143         (*): Reformat spacing to be a bit more GNUly.
144         Most code taken from a patch by Anthony Thompson 
145         (athompso@cambridge.arm.com)
146
147 Tue Jun  2 15:22:22 1998  Nick Clifton  <nickc@cygnus.com>
148
149         * armos.h: Add Angel SWI and its reason codes.
150         * armos.c (ARMul_OSHandleSWI): Ignore Angel SWIs (for now).
151
152 Mon Jun  1 17:14:19 1998  Anthony Thompson (athompso@cambridge.arm.com)
153
154         * armos.c (ARMul_OSHandleSWI::SWI_Open): Handle special case
155         of ":tt" to catch stdin in addition to stdout.
156         (ARMul_OSHandleSWI::SWI_Seek): Return 0 or 1 to indicate failure
157         or success of lseek().
158
159 Wed May 20 17:36:25 1998  Nick Clifton  <nickc@cygnus.com>
160
161         * armos.c (ARMul_OSHandleSWI): Special case code to catch attempts
162         to open stdout.
163
164 Wed Apr 29 15:29:55 1998  Jeff Johnston  <jjohnstn@cygnus.com>
165
166         * armos.c (ARMul_OSHandleSWI): Added code for SWI_Clock,
167         SWI_Flen, and SWI_Time.  Also fixed SWI_Seek code to only
168         seek from offset 0 and not to use R2 for whence since it is
169         not passed as part of the SWI call.
170
171 Tue Apr 28 18:33:31 1998  Geoffrey Noer  <noer@cygnus.com>
172
173         * configure: Regenerated to track ../common/aclocal.m4 changes.
174
175 Sun Apr 26 15:31:55 1998  Tom Tromey  <tromey@creche>
176
177         * configure: Regenerated to track ../common/aclocal.m4 changes.
178         * config.in: Ditto.
179
180 Sun Apr 26 15:20:26 1998  Tom Tromey  <tromey@cygnus.com>
181
182         * acconfig.h: New file.
183         * configure.in: Reverted change of Apr 24; use sinclude again.
184
185 Fri Apr 24 14:16:40 1998  Tom Tromey  <tromey@creche>
186
187         * configure: Regenerated to track ../common/aclocal.m4 changes.
188         * config.in: Ditto.
189
190 Fri Apr 24 11:20:19 1998  Tom Tromey  <tromey@cygnus.com>
191
192         * configure.in: Don't call sinclude.
193
194 Sat Apr  4 20:36:25 1998  Andrew Cagney  <cagney@b1.cygnus.com>
195
196         * configure: Regenerated to track ../common/aclocal.m4 changes.
197
198 Fri Mar 27 16:15:52 1998  Andrew Cagney  <cagney@b1.cygnus.com>
199
200         * configure: Regenerated to track ../common/aclocal.m4 changes.
201
202 Wed Mar 25 12:35:29 1998  Andrew Cagney  <cagney@b1.cygnus.com>
203
204         * configure: Regenerated to track ../common/aclocal.m4 changes.
205
206 Wed Mar 18 12:38:12 1998  Andrew Cagney  <cagney@b1.cygnus.com>
207
208         * configure: Regenerated to track ../common/aclocal.m4 changes.
209
210 Tue Mar 10 09:26:38 1998  Nick Clifton  <nickc@cygnus.com>
211
212         * armopts.h: Remove definition of LITTLEND - it is not used.
213
214 Tue Feb 17 12:35:54 1998  Andrew Cagney  <cagney@b1.cygnus.com>
215
216         * wrapper.c (sim_store_register, sim_fetch_register): Pass in
217         length parameter. Return -1.
218
219 Sun Feb  1 16:47:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
220
221         * configure: Regenerated to track ../common/aclocal.m4 changes.
222
223 Sat Jan 31 18:15:41 1998  Andrew Cagney  <cagney@b1.cygnus.com>
224
225         * configure: Regenerated to track ../common/aclocal.m4 changes.
226
227 Mon Jan 19 22:26:29 1998  Doug Evans  <devans@seba>
228
229         * configure: Regenerated to track ../common/aclocal.m4 changes.
230
231 Mon Dec 15 23:17:11 1997  Andrew Cagney  <cagney@b1.cygnus.com>
232
233         * configure: Regenerated to track ../common/aclocal.m4 changes.
234         * config.in: Ditto.
235
236 Tue Dec  9 11:30:48 1997  Nick Clifton  <nickc@cygnus.com>
237
238         * Makefile.in: Updated with changes from branch.
239         * armdefs.h:   ditto
240         * armemu.c:    ditto   these changes
241         * armemu.h:    ditto   add support for
242         * armos.c:     ditto   the Thumb instruction
243         * armsupp.c:   ditto   set and the new v4
244         * armvirt.c:   ditto   architecture.
245         * wrapper.c:   ditto
246         * thumbemu.c:  New file from branch.
247
248
249 Thu Dec  4 09:21:05 1997  Doug Evans  <devans@canuck.cygnus.com>
250
251         * configure: Regenerated to track ../common/aclocal.m4 changes.
252
253 Thu Oct 30 13:54:06 1997  Nick Clifton  <nickc@cygnus.com>
254
255         * armos.c (ARMul_OSHandleSWI): Add support for GetEnv SWI.  Patch
256         from Tony Thompson at ARM: athompso@arm.com 
257
258         * wrapper.c (sim_create_inferior): Add code to create an execution
259         environment.  Patch from Tony Thompson at ARM: athompso@arm.com
260
261 Wed Oct 22 14:43:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
262
263         * wrapper.c (sim_load): Pass lma_p and sim_write args to
264         sim_load_file.
265
266 Fri Oct  3 09:28:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
267
268         * configure: Regenerated to track ../common/aclocal.m4 changes.
269
270 Wed Sep 24 17:38:57 1997  Andrew Cagney  <cagney@b1.cygnus.com>
271
272         * configure: Regenerated to track ../common/aclocal.m4 changes.
273
274 Tue Sep 23 11:04:38 1997  Andrew Cagney  <cagney@b1.cygnus.com>
275
276         * configure: Regenerated to track ../common/aclocal.m4 changes.
277
278 Mon Sep 22 11:46:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
279
280         * configure: Regenerated to track ../common/aclocal.m4 changes.
281
282 Fri Sep 19 17:45:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
283
284         * configure: Regenerated to track ../common/aclocal.m4 changes.
285
286 Mon Sep 15 17:36:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
287
288         * configure: Regenerated to track ../common/aclocal.m4 changes.
289
290 Thu Sep  4 17:21:23 1997  Doug Evans  <dje@seba>
291
292         * configure: Regenerated to track ../common/aclocal.m4 changes.
293
294 Wed Aug 27 18:13:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
295
296         * configure: Regenerated to track ../common/aclocal.m4 changes.
297         * config.in: Ditto.
298
299 Tue Aug 26 10:37:27 1997  Andrew Cagney  <cagney@b1.cygnus.com>
300
301         * wrapper.c (sim_kill): Delete.
302         (sim_create_inferior): Add ABFD argument.
303         (sim_load): Move setting of PC from here.
304         (sim_create_inferior): To here.
305
306 Mon Aug 25 17:50:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
307
308         * configure: Regenerated to track ../common/aclocal.m4 changes.
309         * config.in: Ditto.
310
311 Mon Aug 25 15:35:45 1997  Andrew Cagney  <cagney@b1.cygnus.com>
312
313         * wrapper.c (sim_open): Add ABFD argument.
314
315 Tue May 20 10:13:26 1997  Andrew Cagney  <cagney@b1.cygnus.com>
316
317         * wrapper.c (sim_open): Add callback argument.
318         (sim_set_callbacks): Drop SIM_DESC argument.
319
320 Thu Apr 24 00:39:51 1997  Doug Evans  <dje@canuck.cygnus.com>
321
322         * configure: Regenerated to track ../common/aclocal.m4 changes.
323
324 Fri Apr 18 13:32:23 1997  Andrew Cagney  <cagney@b1.cygnus.com>
325
326         * wrapper.c (sim_stop): Stub sim_stop function.
327
328 Thu Apr 17 18:33:01 1997  Fred Fish  <fnf@cygnus.com>
329
330         * arminit.c (ARMul_NewState): Preinitialize the state to
331         all zero/NULL.
332
333 Thu Apr 17 02:39:02 1997  Doug Evans  <dje@canuck.cygnus.com>
334
335         * Makefile.in (SIM_OBJS): Add sim-load.o.
336         * wrapper.c (sim_kind,myname): New static locals.
337         (sim_open): Set sim_kind, myname.
338         (sim_load): Call sim_load_file to do work.  Set start address from bfd.
339         (sim_create_inferior): Return SIM_RC.  Delete start_address arg.
340
341 Thu Apr 17 11:48:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
342
343         * wrapper.c (sim_trace): Update so that it matches prototype.
344
345 Mon Apr  7 15:45:02 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
346
347         * configure: Regenerated to track ../common/aclocal.m4 changes.
348         * config.in: Ditto.
349
350 Mon Apr  7 12:01:17 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
351
352         * Makefile.in (armemu32.o): Replace $< with autoconf recommended
353         $(srcdir)/....
354         (armemu26.o): Ditto.
355
356 Wed Apr  2 15:06:28 1997  Doug Evans  <dje@canuck.cygnus.com>
357
358         * wrapper.c (sim_open): New arg `kind'.
359
360         * configure: Regenerated to track ../common/aclocal.m4 changes.
361
362 Wed Apr  2 14:50:44 1997  Ian Lance Taylor  <ian@cygnus.com>
363
364         * COPYING: Update FSF address.
365
366 Wed Apr  2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
367
368         * configure: Regenerated to track ../common/aclocal.m4 changes.
369
370 Wed Mar 19 01:14:00 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
371
372         * configure: Regenerated to track ../common/aclocal.m4 changes.
373
374 Mon Mar 17 15:10:07 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
375
376         * configure: Re-generate.
377
378 Fri Mar 14 10:34:11 1997  Michael Meissner  <meissner@cygnus.com>
379
380         * configure: Regenerate to track ../common/aclocal.m4 changes.
381
382 Thu Mar 13 12:38:56 1997  Doug Evans  <dje@canuck.cygnus.com>
383
384         * wrapper.c (sim_open): Has result now.
385         (sim_*): New SIM_DESC argument.
386
387 Tue Feb  4 13:22:21 1997  Doug Evans  <dje@canuck.cygnus.com>
388
389         * Makefile.in (@COMMON_MAKEFILE_FRAG@): Use
390         COMMON_{PRE,POST}_CONFIG_FRAG instead.
391         * configure.in: sinclude ../common/aclocal.m4.
392         * configure: Regenerated.
393
394 Thu Jan 23 11:46:23 1997  Stu Grossman  (grossman@critters.cygnus.com)
395
396         * configure configure.in Makefile.in:  Update to new configure
397         scheme which is more compatible with WinGDB builds.
398         * configure.in:  Improve comment on how to run autoconf.
399         * configure:  Re-run autoconf to get new ../common/aclocal.m4.
400         * Makefile.in:  Use autoconf substitution to install common
401         makefile fragment.
402
403 Wed Nov 20 01:05:10 1996  Doug Evans  <dje@canuck.cygnus.com>
404
405         * run.c: Deleted, use one in ../common now.
406         * Makefile.in: Delete everything that's been moved to
407         ../common/Make-common.in.
408         (SIM_OBJS): Define.
409         * configure.in: Simplify using macros in ../common/aclocal.m4.
410         * configure: Regenerated.
411         * config.in: New file.
412         * armos.c: #include config.h.
413         * wrapper.c (mem_size): Value is in bytes now.
414         (sim_callback): New global.
415         (arm_sim_set_profile{,_size}): Delete.
416         (arm_sim_set_mem_size): Rename to sim_size.
417         (sim_do_command): Call printf_filtered via callback.
418         (sim_set_callbacks): Record callback.
419
420 Thu Oct  3 16:10:27 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
421
422         * Makefile.in (mostlyclean): Remove config.log.
423
424 Wed Jun 26 12:17:24 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
425
426         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
427         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
428         (docdir): Removed.
429         * configure.in (AC_PREREQ): autoconf 2.5 or higher.
430         (AC_PROG_INSTALL): Added.
431         * configure: Rebuilt.
432
433 Wed Feb 21 12:14:31 1996  Ian Lance Taylor  <ian@cygnus.com>
434
435         * configure: Regenerate with autoconf 2.7.
436
437 Fri Dec 15 16:27:30 1995  Ian Lance Taylor  <ian@cygnus.com>
438
439         * run.c (main): Use new bfd_big_endian macro.
440
441 Mon Nov 20 17:40:38 1995  Doug Evans  <dje@canuck.cygnus.com>
442
443         * run.c: Include "getopt.h".
444         (verbose): Delete.
445         (usage): Make static.
446         (main): Call arm_sim_set_verbosity.
447         Only load sections marked SEC_LOAD.
448         * wrapper.c (mem_size, verbosity): New static global.
449         (arm_sim_set_mem_size): Renamed from sim_size.  Callers updated.
450         (arm_sim_set_profile{,_size}): Renamed from sim_foo.  Callers updated.
451         
452 Fri Nov 17 19:35:11 1995  Doug Evans  <dje@canuck.cygnus.com>
453
454         * armdefs.h (ARMul_State): New member `verbose'.
455         * armrdi.c (ARMul_ConsolePrint): Add missing va_end.
456         * run.c (verbose): Make global.
457         * wrapper.c (init): Set state->verbose.
458         (ARMul_ConsolePrint): Don't print anything if !verbose.
459
460 Fri Oct 13 15:30:30 1995  Doug Evans  <dje@canuck.cygnus.com>
461
462         * armos.c: #include dbg_rdi.h.
463         (ARMul_OSHandleSWI): Handle SWI_Breakpoint.
464         * armos.h (SWI_Breakpoint): Define.
465         * wrapper.c: #include armemu.h, dbg_rdi.h.
466         (rc): Delete.
467         (sim_resume): Use state->EndCondition to record stop state.
468         Call FLUSHPIPE before returning.
469         (sim_stop_reason): Determine reason from state->EndCondition.
470
471 Fri Oct 13 15:04:05 1995  steve chamberlain  <sac@slash.cygnus.com>
472
473         * wrapper.c (sim_set_callbacks): New.
474
475 Thu Sep 28 19:45:56 1995  Doug Evans  <dje@deneb.cygnus.com>
476
477         * armos.c (ARMul_OSHandleSWI): Result of read/write calls is
478         number of bytes not read/written (or -1).
479
480 Wed Sep 20 13:35:54 1995  Ian Lance Taylor  <ian@cygnus.com>
481
482         * Makefile.in (maintainer-clean): New synonym for realclean.
483
484 Fri Sep  8 14:27:20 1995  Ian Lance Taylor  <ian@cygnus.com>
485
486         * configure.in: Remove AC_PROG_INSTALL.
487         * configure: Rebuild.
488         * Makefile.in (INSTALL): Revert to using install.sh.
489         (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
490         (INSTALL_XFORM, INSTALL_XFORM1): Restore.
491         (mostlyclean): Make the same as clean, not distclean.
492         (clean): Remove config.log.
493         (install): Don't install in $(tooldir).
494
495 Thu Sep  7 12:00:17 1995  Doug Evans  <dje@canuck.cygnus.com>
496
497         (Try to) Update to new bfd autoconf scheme.
498         * run.c: Don't include sysdep.h.
499         * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
500         (CC, CFLAGS, AR, RANLIB): Likewise.
501         (HDEFINES, TDEFINES): Define.
502         (CC_FOR_BUILD): Delete.
503         (host_makefile_frag): Delete.
504         (Makefile): Don't depend on frags.
505         * configure.in (sysdep.h): Don't create symlink.
506         (host_makefile_frag, frags): Deleted.
507         (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
508         * configure: Regenerated.
509
510 Thu Aug  3 10:45:37 1995  Fred Fish  <fnf@cygnus.com>
511
512         * Update all FSF addresses except those in COPYING* files.
513
514 Wed Jul  5 16:15:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
515
516         * Makefile.in (clean): Remove run, libsim.a.
517
518         * Makefile.in, configure.in: converted to autoconf.
519         * configure: New file, generated with autconf 2.4.
520
521         * arm.mt: Removed.
522
523 Fri Jun 30 16:49:47 1995  Stan Shebs  <shebs@andros.cygnus.com>
524
525         * wrapper.c (sim_do_command): New function.
526
527 Tue Jun 13 10:57:32 1995  Steve Chamberlain  <sac@slash.cygnus.com>
528
529         * armos.c (ARMul_OSHandleSWI): New version to work with
530         newlib simply.
531
532 Thu Jun  8 14:37:14 1995  Steve Chamberlain  <sac@slash.cygnus.com>
533
534         * run.c (main): Grab return value from right register.
535
536 Wed May 24 14:37:31 1995  Steve Chamberlain  <sac@slash.cygnus.com>
537
538         * New.
539
540