This commit was manufactured by cvs2svn to create branch
[external/binutils.git] / sim / arm / ChangeLog
1 2003-01-10  Ben Elliston  <bje@redhat.com>
2
3         * README.Cygnus: Rename from this ..
4         * README: .. to this.
5
6 2002-09-27  Andrew Cagney  <ac131313@redhat.com>
7
8         * wrapper.c (sim_open): Add support for -m<mem-size>.
9         (mem_size): Reduce to 2MB.
10         Fix PR gdb/433.
11
12 2002-08-15  Nick Clifton  <nickc@redhat.com>
13
14         * armos.c (ARMul_OSHandleSWI): Catch and ignore SWIs of -1, they
15         can be caused by an interrupted system call being resumed by GDB.
16
17 2002-07-05  Nick Clifton  <nickc@cambridge.redhat.com>
18
19         * armemu.c (ARMul_Emulate32): Add more tests for valid MIA, MIAPH
20         and MIAxy instructions.
21         
22 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
23
24         * armos.h (ADP_Stopped_RunTimeError): Set correct value.
25
26 2002-06-16  Andrew Cagney  <ac131313@redhat.com>
27
28         * configure: Regenerated to track ../common/aclocal.m4 changes.
29
30 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
31
32         * Makefile.in: Update copyright.
33         (wrapper.o): Specify dependencies.
34         * wrapper.c: Include "gdb/sim-arm.h".
35         (sim_store_register, sim_fetch_register): Rewrite using `enum
36         arm_sim_regs' and a switch.
37
38 2002-06-09  Andrew Cagney  <cagney@redhat.com>
39
40         * wrapper.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
41         * armos.c: Include "gdb/callback.h".
42
43 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
44
45         * armcopro.c (XScale_check_memacc): Set the FSR and FAR registers
46         if a Data Abort is detected.
47
48 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
49
50         * armvirt.c (GetWord): Only perform access checks if 'check'
51         is set.
52         (PutWord): Likewise.
53         * wrapper.c (sim_create_inferior): Report unknown machine
54         numbers.
55         * thumbemu.c (ARMul_ThumbDecode, Case 31): Do not set LR to pc +
56         2, it has already been advanced.
57
58 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
59
60         * thumbemu.c (ARMul_ThumbDecode): When decoding a BLX(1)
61         instruction do not add in the second bit of the base address -
62         this has already been accounted for.
63
64 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
65
66         * armcopro.c (check_cp13_access): Allow access to register 1 when
67         CRm is 1.
68         (write_cp13_reg): Allow bit 0 of reg 1 of CRm 1 to be written to.
69
70 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
71
72         * Makefile.in (SIM_TARGET_SWITCHES): Define.
73         * armos.c (swi_mask): Define.  Initialise to supporting all
74         SWI emulations.
75         (ARMul_OSInit): For XScale targets, only support the ANGEL
76         SWI interface.  (This is at the request if Intel).
77         (ARMul_OSHandleSWI): Examine swi_mask to see if a particular
78         SWI call should be emulated.
79         Do not fall through from AngelSWI_Reason_WriteC.
80         Propagate exit code from RedBoot Exit SWI.
81         * rdi-dgb.h (swi_mask): Prototype.
82         (SWI_MASK_DEMON, SWI_MASK_ANGEL, SWI_MASK_REDBOOT): Define.
83         * wrapper.c (sim_target_parse_command_line): New function.
84         Look for and handle --swi-support switch.
85         (sim_target_parse_arg_array): New function.  Process an argv
86         array for parsing by sim_target_parse_command_line.
87         (sim_target_display_usage): New function.  Describe syntax of
88         --swi-suppoort switch.
89         (sim_open): Add call to sim_target_parse_arg_array).
90
91 2002-05-09  Nick Clifton  <nickc@cambridge.redhat.com>
92
93         * armos.c (ARMul_OSHandleSWI): Support the RedBoot SWI in ARM
94         mode and some of its system calls.
95
96 2002-03-17  Anthony Green  <green@redhat.com>
97
98         * wrapper.c (mem_size): Increase the default target memory to 8MB.
99
100 2002-02-21  Keith Seitz  <keiths@redhat.com>
101
102         * armos.c (SWIWrite0): Use generic host_callback mechanism
103         for supported OS functions "open", "close", "write", etc.
104         (SWIopen): Likewise.
105         (SWIread): Likewise.
106         (SWIwrite): Likewise.
107         (SWIflen): Likewise.
108         (ARMul_OSHandleSWI): Likewise.
109
110 2002-02-05  Nick Clifton  <nickc@cambridge.redhat.com>
111
112         * wrapper.c (sim_create_inferior): Modify previous patch so that
113         it is only triggered for COFF format executables.
114
115 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
116
117         * wrapper.c (sin_create_inferior): If a v5 architecture is
118         detected, assume it might be an XScale binary, since there is no
119         way to distinguish between the two in the COFF file format.
120
121 2002-01-10  Nick Clifton  <nickc@cambridge.redhat.com>
122
123         * arminit.c (ARMul_Abort): Fix parameters passed to CPRead[13].
124         * armemu.c (ARMul_Emulate32): Fix parameters passed to CPRead[13]
125         and CPRead[14].
126         Fix formatting.  Improve layout.
127         * armemu.h: Fix formatting.  Improve layout.
128
129 2002-01-09  Nick Clifton  <nickc@cambridge.redhat.com>
130
131         * wrapper.c (sim_fetch_register): If fetching more than 4 bytes
132         return zeroes in the other words.
133         General formatting tidy ups.
134
135 2001-11-16  Ben Harris  <bjh21@netbsd.org>
136
137         * Makefile.in (armemu32.o): Replace $< with autoconf recommended
138         $(srcdir)/....
139         (armemu26.o): Ditto.
140
141 2001-10-18  Nick Clifton  <nickc@cambridge.redhat.com>
142
143         * armemu.h (CP_ACCESS_ALLOWED): New macro.
144         Fix formatting.
145         * armcopro.c (read_cp14_reg): Make static.
146         (write_cp14_reg): Make static.
147         (check_cp13_access): Use CP_ACCESS_ALLOWED macro.
148         Fix formatting.
149         * armsupp.c (ARMul_LDC): Check CP_ACCESS_ALLOWED.
150         (ARMul_STC): Check CP_ACCESS_ALLOWED.
151         (ARMul_MCR): Check CP_ACCESS_ALLOWED.
152         (ARMul_MRC): Check CP_ACCESS_ALLOWED.
153         (ARMul_CDP): Check CP_ACCESS_ALLOWED.
154         Fix formatting.
155         * armemu.c (MCRR): Check CP_ACCESS_ALLOWED.  Test Rd and Rn not
156         equal to 15.
157         (MRRC): Check CP_ACCESS_ALLOWED.  Test Rd and Rn not equal to 15.
158         Fix formatting.
159
160 2001-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
161
162         * armemu.c (ARMul_Emulate32): Fix handling of XScale LDRD and STRD
163         instructions with post indexed addressing modes.
164
165 2001-05-08  Jens-Christian Lache  <lache@tu-harburg.de>
166
167         * armsupp.c (ARMul_FixCPSR): Check Mode not Bank in order to
168         determine rocesor mode.
169
170 2001-04-18  matthew green  <mrg@redhat.com>
171
172         * armcopro.c (write_cp15_reg): Set CHANGEMODE if endianness changes.
173         (read_cp15_reg): Make non-static.
174         (XScale_cp15_LDC): Update for write_cp15_reg() change.
175         (XScale_cp15_MCR): Likewise.
176         (XScale_cp15_write_reg): Likewise.
177         (XScale_check_memacc): New function. Check for breakpoints being
178         activated by memory accesses.  Does not support the Branch Target
179         Buffer.
180         (XScale_set_fsr_far): New function. Set FSR and FAR for XScale.
181         (XScale_debug_moe): New function. Set the debug Method Of Entry,
182         if configured.
183         (write_cp14_reg): Reset count counter if requested.
184         * armdefs.h (struct ARMul_State): New members `LastTime' and
185         `CP14R0_CCD' used for the timer/counters.
186         (ARMul_CP13_R0_FIQ, ARMul_CP13_R0_IRQ, ARMul_CP13_R8_PMUS,
187         ARMul_CP14_R0_ENABLE, ARMul_CP14_R0_CLKRST, ARMul_CP14_R0_CCD,
188         ARMul_CP14_R0_INTEN0, ARMul_CP14_R0_INTEN1, ARMul_CP14_R0_INTEN2,
189         ARMul_CP14_R0_FLAG0, ARMul_CP14_R0_FLAG1, ARMul_CP14_R0_FLAG2,
190         ARMul_CP14_R10_MOE_IB, ARMul_CP14_R10_MOE_DB, ARMul_CP14_R10_MOE_BT,
191         ARMul_CP15_R1_ENDIAN, ARMul_CP15_R1_ALIGN, ARMul_CP15_R5_X,
192         ARMul_CP15_R5_ST_ALIGN, ARMul_CP15_R5_IMPRE, ARMul_CP15_R5_MMU_EXCPT,
193         ARMul_CP15_DBCON_M, ARMul_CP15_DBCON_E1, ARMul_CP15_DBCON_E0): New
194         defines for XScale registers.
195         (XScale_check_memacc, XScale_set_fsr_far, XScale_debug_moe): Prototype.
196         (ARMul_Emulate32, ARMul_Emulate26): Clean up function definition.
197         (ARMul_Emulate32): Handle the clock counter and hardware instruction
198         breakpoints.  Call XScale_set_fsr_far() for software breakpoints and
199         software interrupts.
200         (LoadMult): Call XScale_set_fsr_far() for data aborts.
201         (LoadSMult): Likewise.
202         (StoreMult): Likewise.
203         (StoreSMult): Likewise.
204         * armemu.h (write_cp15_reg): Update prototype.
205         * arminit.c (ARMul_NewState): Initialise CP14R0_CCD and LastTime.
206         (ARMul_Abort): If XScale, check for FIQ and IRQ being enabled in CP13
207         register 0.
208         * armvirt.c (GetWord): Call XScale_check_memacc().
209         (PutWord): Likewise.
210
211 2001-03-20  Nick Clifton  <nickc@redhat.com>
212
213         * armvirt.c (ARMul_ReLoadInstr): Do not enable alignment checking
214         when loading unaligned thumb instructions.
215
216 2001-03-06  Nick Clifton  <nickc@redhat.com>
217
218         * thumbemu.c (ARMul_ThumbDecode): Delete label bo_blx2.
219         Compute destination address of BLX(1) instruction by
220         taking bit 1 from PC and not from bit 0 of the offset.        
221
222 2001-02-27  Nick Clifton  <nickc@redhat.com>
223
224         * armvirt.c (GetWord): Add new parameter - check - to enable or
225         disable the alignment checking.
226         (PutWord):  Add new parameter - check - to enable or disable the
227         alignment checking.
228         (ARMul_ReLoadInstr): Pass extra parameter to GetWord.
229         (ARMul_ReadWord): Pass extra parameter to GetWord.
230         (ARMul_WriteWord): Pass extra parameter to PutWord.
231         (ARMul_StoreHalfWord): Pass extra parameter to PutWord.
232         (ARMul_WriteByte): Pass extra parameter to GetWord.
233         (ARMul_SwapWord): Pass extra parameter to PutWord.
234         (ARMul_SafeReadByte): New Function: Read a byte but do not abort.
235         (ARMul_SafeWriteByte): New Function: Write a byte but do not abort.
236         
237         * armdefs.h: Add prototypes for ARMul_SafeReadByte and
238         ARMul_SafeWriteByte.
239         
240         * wrapper.c (sim_write): Use ARMul_SafeWriteByte.
241         (sim_read): Use ARMul_SafeReadByte.
242
243         * armos.c (in_SWI_handler): Remove.
244         (SWIWrite0): Use ARMul_SafeReadByte.
245         (WriteCommandLineTo): Use ARMul_SafeWriteByte.
246         (SWIopen): Use ARMul_SafeReadByte.
247         (SWIread): Use ARMul_SafeWriteByte.
248         (SWIwrite): Use ARMul_SafeReadByte.
249         (ARMul_OSHandleSWI): Remove use of is_SWI_handler.
250         (ARMul_OSException): Remove use of is_SWI_handler.
251         
252 2001-02-16  Nick Clifton  <nickc@redhat.com>
253
254         * armemu.c: Remove Prefetch abort for breakpoints.  Instead set
255         the state to RESUME.
256
257 2001-02-14  Nick Clifton  <nickc@redhat.com>
258
259         * armemu.c: Add code to preserve processor mode when a prefetch
260         abort is signalled after processing a breakpoint.
261
262         * wrapper.c (sim_create_inferior): Reset processor into ARM mode
263         for any machine type except the early ARMs.
264
265 2001-02-13  Nick Clifton  <nickc@redhat.com>
266
267         * armos.c (in_SWI_handler): New static variable.
268         (ARMul_OSHandleSWI): Set in_SWI_handler whilst emulating a SWI.
269         (ARMul_OSException): Ignore exceptions generated whilst emulating
270         a SWI.
271
272 2001-02-12  Nick Clifton  <nickc@redhat.com>
273
274         * armemu.h (NEGBRANCH): Fix defintion.
275
276 2001-02-01  Nick Clifton  <nickc@redhat.com>
277
278         * armemu.c (LoadSMult): Update base address register after
279         restoring register bank.
280         (StoreMult): Update base address register after restoring register
281         bank.
282
283 2001-01-31  Nick Clifton  <nickc@redhat.com>
284
285         * armvirt.c (PutWord): Detect installation of SWI vector.
286         (SWI_vector_installed): Define.
287         * armos.c (ARMul_OsInit): Reset SWI_vector_installed.
288         * armos.h (SWI_vector_installed): Declare.
289         * wrapper.c (SWI_vector_installed): Remove definition.
290         (sim_write): Remove check of SWI vector installation
291
292 2000-12-18  Nick Clifton  <nickc@redhat.com>
293
294         * armemu.c (ARMul_Emulate26): Fix test for StoreDouble
295         instruction.
296
297 2000-12-10  Nick Clifton  <nickc@redhat.com>
298
299         * armos.c (ARMul_OSHandleSWI): Add 0x91 as an FPE SWI.
300
301 2000-12-07  Nick Clifton  <nickc@redhat.com>
302
303         * armemu.c (ARMul_Emulate26): Detect double word load and
304         store instructions and call emulation routines.
305         (Handle_Load_Double): Emulate a double word load instruction.
306         (Handle_Store_Double): Emulate a double word store
307         instruction.
308
309 2000-12-03  Nick Clifton  <nickc@redhat.com>
310
311         * armos.c: Fix formatting.
312         (ARMul_OSHandleSWI): Suppress support of DEMON SWIs when in xscale
313         mode.
314
315 2000-11-29  Nick Clifton  <nickc@redhat.com>
316
317         * armdefs.h (State): Add 'v5e' and 'xscale' fields.
318         (ARM_v5e_Prop): Define.
319         (ARM_XScale_Prop): Define.
320         
321         * wrapper.c (sim_create_inferior): Select processor based on
322         machine number.
323         (SWI_vector_installed): New boolean.  Set to true if the SWI
324         vector address is written to by the executable.
325         
326         * arminit.c (ARMul_NewState): Switch default to 32 bit mode.
327         (ARMul_SelectProcessor): Initialise v5e and xscale signals.
328         (ARMul_Abort): Fix calculation of LR address.
329
330         * armos.c (ARMul_OSHandleSWI): If a SWI vector has been installed
331         and a SWI is not handled by the simulator, pass the SWI off to the
332         vector, otherwise issue a warning message and continue.
333
334         * armsupp.c (ARMul_CPSRAltered): Set S bit aswell.
335         
336         * thumbemu.c: Add v5 instruction simulation.
337         * armemu.c: Add v5, XScale and El Segundo instruction simulation.
338
339         * armcopro.c: Add XScale co-processor emulation.
340         * armemu.h: Add exported XScale co-processor functions.
341         
342 2000-09-15  Nick Clifton  <nickc@redhat.com>
343
344         * armdefs.h: Rename StrongARM property to v4_ARM and add v5 ARM
345         property.  Delete unnecessary processor names.
346         (ARM_Strong_Prop): Delete.
347         (STRONGARM): Delete.
348         (ARM_v4_Prop): Add.
349         (ARM_v5_Prop): Add
350         (State): Delete is_StrongARM boolean.  Add is_v4 and is_v5
351         booleans.
352
353         * armemu.h (BUSUSEDINCPCS): Use is_v4 boolean.
354         (BUSUSEDINCPCN): Use is_v4 boolean.
355
356         * arminit.c (ARMul_NewState): Initialise is_v4 and is_v5 fields.
357         (ARMul_SelectProcessor): Change second parameter from 'processor'
358         to 'properties'.  Set is_v4 and is_v5 booleans in State.
359
360         * armrdi.c: Remove use of ARM processor names.  Replace with ARM
361         processor properties.
362
363         * wrapper.c (sim_create_inferior): Choose properties passed to
364         ARMul_SelectProcessor based on machine number.
365
366 2000-08-14  Nick Clifton  <nickc@redhat.com>
367
368         * armemu.c (LHPOSTDOWN): Compute write back value before
369         performing load in case the offset register is overwritten.
370         (LHPOSTUP): Ditto.
371
372 2000-07-14  Fernando Nasser <fnasser@cygnus.com>
373
374         * wrapper.c (sim_create_inferior): Fix typo in the previous patch.
375
376 2000-07-14  Fernando Nasser <fnasser@cygnus.com>
377
378         * wrapper.c (sim_create_inferior): Reset mode to ARM when creating a
379         new inferior.
380
381 2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
382
383         * armvirt.c (ABORTS): Do not define.
384
385         * armdefs.h (struct ARMul_State): Add is_StrongARM.
386         (ARM_Strong_Prop, STRONGARM): Define.
387         * arminit.c (ARMul_NewState): Reset is_StrongARM.
388         (ARMul_SelectProcessor): Set is_StrongARM.
389         * wrapper.c (sim_create_inferior): Use bfd machine type to
390         determine processor type to emulate.
391         * armemu.h (BUSUSEDINCPCS, BUSUSEDINCPCN): Don't increment PC
392         when emulating StrongARM.
393
394         * armemu.c (ARMul_Emulate, t_undefined): Proceed to next insn.
395
396         * armemu.h (INSN_SIZE): New macro.
397         (SET_ABORT): Save CPSR in SPSR and set LR.
398         * armemu.c (ARMul_Emulate, isize): Set to INSN_SIZE.
399         (WriteR15, WriteSR15): Do not discard bit 1 in Thumb mode.
400         * arminit.c (ARMul_Abort): Use new SETABORT and INSN_SIZE.
401
402         * armemu.c (LoadSMult): Use WriteR15() to discard the least
403         significant bits of PC.
404
405         * armemu.h (WRITEDESTB): New macro.
406         * armemu.c (ARMul_Emulate26, bl): Use WriteR15Branch() to
407         modify PC.  Moved the existing logic...
408         (WriteR15Branch): ... here.  New function.
409         (WriteR15, WriteSR15): Drop the two least significant bits.
410         (LoadSMult): Use WriteR15Branch() to modify PC.
411         (LoadMult): Use WRITEDESTB() instead of WRITEDEST().
412
413         * armemu.h (GETSPSR): Call ARMul_GetSPSR().
414         * armsupp.c (ARMul_CPSRAltered): Zero out bits as they're
415         extracted from state->Cpsr, but preserve the unused bits.
416         (ARMul_GetCPSR): Get bits preserved in state->Cpsr.
417         (ARMul_GetSPSR, ARMul_FixCPSR): Use ARMul_GetCPSR() to
418         get the full CPSR word.
419
420         * armemu.h (PSR_FBITS, PSR_SBITS, PSR_XBITS, PSR_CBITS): New.
421         (SETPSR_F, SETPSR_S, SETPSR_X, SETPSR_C): New macros.
422         (SETPSR, SET_INTMODE, SETCC): Removed.
423         * armsupp.c (ARMul_FixCPSR, ARMul_FixSPSR): Do not test bit
424         mask.  Use SETPSR_* to modify PSR.
425         (ARMul_SetCPSR): Load all bits from value.
426         * armemu.c (ARMul_Emulate, msr): Do not test bit mask.
427
428         * armemu.c (ARMul_Emulate): Compute writeback value before
429         loading, since the offset register may be the destination
430         register.
431
432         * armdefs.h (SYSTEMBANK): Define as USERBANK.
433         * armsupp.c (ARMul_SwitchMode): Remove SYSTEMBANK cases.
434
435 2000-06-22  Alexandre Oliva  <aoliva@cygnus.com>
436
437         * armemu.c (Multiply64): Fix computation of flag N.
438
439         * armemu.c (MultiplyAdd64): Fix computation of flag N.
440
441 2000-06-20  Alexandre Oliva  <aoliva@cygnus.com>
442
443         * armemu.h (NEGBRANCH): Do not overwrite the two most significant
444         bits of the offset.
445
446 2000-05-25  Nick Clifton  <nickc@cygnus.com>
447
448         * armcopro.c (MMUMCR): Only indicate mode change if a singal has
449         really changed.
450         (MMUWrite): Only indicate mode change if a singal has really
451         changed.
452
453         * armdefs.h (SYSTEMMODE): Define.
454         (BANK_CAN_ACEESS_SPSR): Define.
455
456         * armemu.c (ARM_Emulate26): If the mode has changed allow the PC
457         to advance before stopping the emulation.
458
459         * arminit.c (ARMul_Reset): Ensure Mode field of State is set
460         correctly.
461
462         * armos.c (ARMul_OSInit): Create a initial stack pointer for
463         System mode.
464
465         * armsupp.c (ModeToBank): Remove unused first parameter.
466         Add support for System Mode.
467         (ARMul_GetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
468         (ARMul_SetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
469         (ARMul_FixSPSR): Use BANK_CAN_ACCESS_SPSR macro.
470         (ARMulSwitchMode): Add support for System Mode.
471
472 Wed May 24 14:40:34 2000  Andrew Cagney  <cagney@b1.cygnus.com>
473
474         * configure: Regenerated to track ../common/aclocal.m4 changes.
475
476 2000-05-23  Nick Clifton  <nickc@cygnus.com>
477
478         * wrapper.c (sim_store_register): Special handling for CPSR
479         register.
480
481 2000-03-11  Philip Blundell  <philb@gnu.org>
482
483         * armemu.c (LoadSMult, LoadMult): Correct handling of aborts.
484         Patch from Allan Skillman <Allan.Skillman@arm.com>.
485
486 Wed Mar 22 15:24:21 2000  glen mccready  <gkm@pobox.com>
487
488         * wrapper.c (sim_open,sim_close): Copy into myname, free myname.
489
490 2000-02-08  Nick Clifton  <nickc@cygnus.com>
491
492         * wrapper.c: Fix compile time warning messages.
493         * armcopro.c: Fix compile time warning messages.
494         * armdefs.h: Fix compile time warning messages.
495         * armemu.c: Fix compile time warning messages.
496         * armemu.h: Fix compile time warning messages.
497         * armos.c: Fix compile time warning messages.
498         * armsupp.c: Fix compile time warning messages.
499         * armvirt.c: Fix compile time warning messages.
500         * bag.c: Fix compile time warning messages.
501         
502 2000-02-02  Bernd Schmidt  <bernds@cygnus.co.uk>
503
504         * *.[ch]: Use indent to make readable.
505
506 1999-11-22  Nick Clifton  <nickc@cygnus.com>
507
508         * armos.c (SWIread): Generate an error message if a huge read is
509         performed.
510         (SWIwrite): Generate an error message if a huge write is
511         performed.
512
513 1999-10-27  Nick Clifton  <nickc@cygnus.com>
514
515         * thumbemu.c (ARMul_ThumbDecode): Accept 0xbebe as a thumb
516         breakpoint. 
517
518 1999-10-08  Ulrich Drepper  <drepper@cygnus.com>
519
520         * armos.c (SWIopen): Always pass third parameter with 0666 since
521         otherwise uninitialized memory gets access if the O_CREAT bit is
522         set and so we possibly cannot access the file afterwards.
523
524 1999-09-29  Doug Evans  <devans@casey.cygnus.com>
525
526         * armos.c (SWIWrite0): Send output to stdout instead of stderr.
527         (ARMul_OSHandleSWI, case SWI_WriteC,AngelSWI_Reason_WriteC): Ditto.
528
529 Thu Sep  2 18:15:53 1999  Andrew Cagney  <cagney@b1.cygnus.com>
530
531         * configure: Regenerated to track ../common/aclocal.m4 changes.
532
533 1999-05-08  Felix Lee  <flee@cygnus.com>
534
535         * configure: Regenerated to track ../common/aclocal.m4 changes.
536         
537 1999-04-06  Keith Seitz  <keiths@cygnus.com>
538
539         * wrapper.c (stop_simulator): New global.
540         (sim_stop): Set sim state to STOP and set
541         stop_simulator.
542         (sim_resume): Reset stop_simulator.
543         (sim_stop_reason): If stop_simulator is set, tell gdb
544         that the we took SIGINT.
545         * armemu.c (ARMul_Emulate26): Don't loop forever. Stop if
546         stop_simulator is set.
547
548 1999-04-02  Keith Seitz  <keiths@cygnus.com>
549
550         * armemu.c (ARMul_Emulate26): If NEED_UI_LOOP_HOOK, call ui_loop_hook
551         whenever the counter expires.
552         * Makefile.in (SIM_EXTRA_CFLAGS): Include define NEED_UI_LOOP_HOOK.
553
554 1999-03-24  Nick Clifton  <nickc@cygnus.com>
555
556         * armemu.c (ARMul_Emulate26): Handle new breakpoint value.
557         * thumbemu.c (ARMul_ThumbDecode): Handle new breakpoint value.
558
559 Mon Sep 14 09:00:05 1998  Nick Clifton  <nickc@cygnus.com>
560
561         * wrapper.c (sim_open): Set endianness according to BFD or command
562         line switch.
563
564         * tconfig.in: Define SIM_HAVE_BIENDIAN.
565
566 Thu Aug 27 11:00:05 1998  Nick Clifton  <nickc@cygnus.com>
567
568         * armemu.c (Multiply64): Test for Rm (rather than Rs) not being
569         the same as either RdHi or RdLo.
570
571 Thu Jul  2 10:24:35 1998  Nick Clifton  <nickc@cygnus.com>
572
573         * armos.c (ARMul_OSHandleSWI: AngelSWI_Reason_ReportException):
574         Set Reg[0] based on reason for for the exception.
575
576 Thu Jun  4 15:22:03 1998  Jason Molenda  (crash@bugshack.cygnus.com)
577
578         * armos.c (SWIwrite0): New function.
579         (WriteCommandLineTo): New function.
580         (SWIopen): New function.
581         (SWIread): New function.
582         (SWIwrite): New function.
583         (SWIflen): New function.
584         (ARMul_OSHandleSWI): Call new functions instead of handling     
585         these here.
586         (ARMul_OSHandleSWI): Handle Angel SWIs correctly.
587         (*): Reformat spacing to be a bit more GNUly.
588         Most code taken from a patch by Anthony Thompson 
589         (athompso@cambridge.arm.com)
590
591 Tue Jun  2 15:22:22 1998  Nick Clifton  <nickc@cygnus.com>
592
593         * armos.h: Add Angel SWI and its reason codes.
594         * armos.c (ARMul_OSHandleSWI): Ignore Angel SWIs (for now).
595
596 Mon Jun  1 17:14:19 1998  Anthony Thompson (athompso@cambridge.arm.com)
597
598         * armos.c (ARMul_OSHandleSWI::SWI_Open): Handle special case
599         of ":tt" to catch stdin in addition to stdout.
600         (ARMul_OSHandleSWI::SWI_Seek): Return 0 or 1 to indicate failure
601         or success of lseek().
602
603 Wed May 20 17:36:25 1998  Nick Clifton  <nickc@cygnus.com>
604
605         * armos.c (ARMul_OSHandleSWI): Special case code to catch attempts
606         to open stdout.
607
608 Wed Apr 29 15:29:55 1998  Jeff Johnston  <jjohnstn@cygnus.com>
609
610         * armos.c (ARMul_OSHandleSWI): Added code for SWI_Clock,
611         SWI_Flen, and SWI_Time.  Also fixed SWI_Seek code to only
612         seek from offset 0 and not to use R2 for whence since it is
613         not passed as part of the SWI call.
614
615 Tue Apr 28 18:33:31 1998  Geoffrey Noer  <noer@cygnus.com>
616
617         * configure: Regenerated to track ../common/aclocal.m4 changes.
618
619 Sun Apr 26 15:31:55 1998  Tom Tromey  <tromey@creche>
620
621         * configure: Regenerated to track ../common/aclocal.m4 changes.
622         * config.in: Ditto.
623
624 Sun Apr 26 15:20:26 1998  Tom Tromey  <tromey@cygnus.com>
625
626         * acconfig.h: New file.
627         * configure.in: Reverted change of Apr 24; use sinclude again.
628
629 Fri Apr 24 14:16:40 1998  Tom Tromey  <tromey@creche>
630
631         * configure: Regenerated to track ../common/aclocal.m4 changes.
632         * config.in: Ditto.
633
634 Fri Apr 24 11:20:19 1998  Tom Tromey  <tromey@cygnus.com>
635
636         * configure.in: Don't call sinclude.
637
638 Sat Apr  4 20:36:25 1998  Andrew Cagney  <cagney@b1.cygnus.com>
639
640         * configure: Regenerated to track ../common/aclocal.m4 changes.
641
642 Fri Mar 27 16:15:52 1998  Andrew Cagney  <cagney@b1.cygnus.com>
643
644         * configure: Regenerated to track ../common/aclocal.m4 changes.
645
646 Wed Mar 25 12:35:29 1998  Andrew Cagney  <cagney@b1.cygnus.com>
647
648         * configure: Regenerated to track ../common/aclocal.m4 changes.
649
650 Wed Mar 18 12:38:12 1998  Andrew Cagney  <cagney@b1.cygnus.com>
651
652         * configure: Regenerated to track ../common/aclocal.m4 changes.
653
654 Tue Mar 10 09:26:38 1998  Nick Clifton  <nickc@cygnus.com>
655
656         * armopts.h: Remove definition of LITTLEND - it is not used.
657
658 Tue Feb 17 12:35:54 1998  Andrew Cagney  <cagney@b1.cygnus.com>
659
660         * wrapper.c (sim_store_register, sim_fetch_register): Pass in
661         length parameter. Return -1.
662
663 Sun Feb  1 16:47:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
664
665         * configure: Regenerated to track ../common/aclocal.m4 changes.
666
667 Sat Jan 31 18:15:41 1998  Andrew Cagney  <cagney@b1.cygnus.com>
668
669         * configure: Regenerated to track ../common/aclocal.m4 changes.
670
671 Mon Jan 19 22:26:29 1998  Doug Evans  <devans@seba>
672
673         * configure: Regenerated to track ../common/aclocal.m4 changes.
674
675 Mon Dec 15 23:17:11 1997  Andrew Cagney  <cagney@b1.cygnus.com>
676
677         * configure: Regenerated to track ../common/aclocal.m4 changes.
678         * config.in: Ditto.
679
680 Tue Dec  9 11:30:48 1997  Nick Clifton  <nickc@cygnus.com>
681
682         * Makefile.in: Updated with changes from branch.
683         * armdefs.h:   ditto
684         * armemu.c:    ditto   these changes
685         * armemu.h:    ditto   add support for
686         * armos.c:     ditto   the Thumb instruction
687         * armsupp.c:   ditto   set and the new v4
688         * armvirt.c:   ditto   architecture.
689         * wrapper.c:   ditto
690         * thumbemu.c:  New file from branch.
691
692
693 Thu Dec  4 09:21:05 1997  Doug Evans  <devans@canuck.cygnus.com>
694
695         * configure: Regenerated to track ../common/aclocal.m4 changes.
696
697 Thu Oct 30 13:54:06 1997  Nick Clifton  <nickc@cygnus.com>
698
699         * armos.c (ARMul_OSHandleSWI): Add support for GetEnv SWI.  Patch
700         from Tony Thompson at ARM: athompso@arm.com 
701
702         * wrapper.c (sim_create_inferior): Add code to create an execution
703         environment.  Patch from Tony Thompson at ARM: athompso@arm.com
704
705 Wed Oct 22 14:43:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
706
707         * wrapper.c (sim_load): Pass lma_p and sim_write args to
708         sim_load_file.
709
710 Fri Oct  3 09:28:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
711
712         * configure: Regenerated to track ../common/aclocal.m4 changes.
713
714 Wed Sep 24 17:38:57 1997  Andrew Cagney  <cagney@b1.cygnus.com>
715
716         * configure: Regenerated to track ../common/aclocal.m4 changes.
717
718 Tue Sep 23 11:04:38 1997  Andrew Cagney  <cagney@b1.cygnus.com>
719
720         * configure: Regenerated to track ../common/aclocal.m4 changes.
721
722 Mon Sep 22 11:46:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
723
724         * configure: Regenerated to track ../common/aclocal.m4 changes.
725
726 Fri Sep 19 17:45:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
727
728         * configure: Regenerated to track ../common/aclocal.m4 changes.
729
730 Mon Sep 15 17:36:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
731
732         * configure: Regenerated to track ../common/aclocal.m4 changes.
733
734 Thu Sep  4 17:21:23 1997  Doug Evans  <dje@seba>
735
736         * configure: Regenerated to track ../common/aclocal.m4 changes.
737
738 Wed Aug 27 18:13:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
739
740         * configure: Regenerated to track ../common/aclocal.m4 changes.
741         * config.in: Ditto.
742
743 Tue Aug 26 10:37:27 1997  Andrew Cagney  <cagney@b1.cygnus.com>
744
745         * wrapper.c (sim_kill): Delete.
746         (sim_create_inferior): Add ABFD argument.
747         (sim_load): Move setting of PC from here.
748         (sim_create_inferior): To here.
749
750 Mon Aug 25 17:50:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
751
752         * configure: Regenerated to track ../common/aclocal.m4 changes.
753         * config.in: Ditto.
754
755 Mon Aug 25 15:35:45 1997  Andrew Cagney  <cagney@b1.cygnus.com>
756
757         * wrapper.c (sim_open): Add ABFD argument.
758
759 Tue May 20 10:13:26 1997  Andrew Cagney  <cagney@b1.cygnus.com>
760
761         * wrapper.c (sim_open): Add callback argument.
762         (sim_set_callbacks): Drop SIM_DESC argument.
763
764 Thu Apr 24 00:39:51 1997  Doug Evans  <dje@canuck.cygnus.com>
765
766         * configure: Regenerated to track ../common/aclocal.m4 changes.
767
768 Fri Apr 18 13:32:23 1997  Andrew Cagney  <cagney@b1.cygnus.com>
769
770         * wrapper.c (sim_stop): Stub sim_stop function.
771
772 Thu Apr 17 18:33:01 1997  Fred Fish  <fnf@cygnus.com>
773
774         * arminit.c (ARMul_NewState): Preinitialize the state to
775         all zero/NULL.
776
777 Thu Apr 17 02:39:02 1997  Doug Evans  <dje@canuck.cygnus.com>
778
779         * Makefile.in (SIM_OBJS): Add sim-load.o.
780         * wrapper.c (sim_kind,myname): New static locals.
781         (sim_open): Set sim_kind, myname.
782         (sim_load): Call sim_load_file to do work.  Set start address from bfd.
783         (sim_create_inferior): Return SIM_RC.  Delete start_address arg.
784
785 Thu Apr 17 11:48:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
786
787         * wrapper.c (sim_trace): Update so that it matches prototype.
788
789 Mon Apr  7 15:45:02 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
790
791         * configure: Regenerated to track ../common/aclocal.m4 changes.
792         * config.in: Ditto.
793
794 Mon Apr  7 12:01:17 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
795
796         * Makefile.in (armemu32.o): Replace $< with autoconf recommended
797         $(srcdir)/....
798         (armemu26.o): Ditto.
799
800 Wed Apr  2 15:06:28 1997  Doug Evans  <dje@canuck.cygnus.com>
801
802         * wrapper.c (sim_open): New arg `kind'.
803
804         * configure: Regenerated to track ../common/aclocal.m4 changes.
805
806 Wed Apr  2 14:50:44 1997  Ian Lance Taylor  <ian@cygnus.com>
807
808         * COPYING: Update FSF address.
809
810 Wed Apr  2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
811
812         * configure: Regenerated to track ../common/aclocal.m4 changes.
813
814 Wed Mar 19 01:14:00 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
815
816         * configure: Regenerated to track ../common/aclocal.m4 changes.
817
818 Mon Mar 17 15:10:07 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
819
820         * configure: Re-generate.
821
822 Fri Mar 14 10:34:11 1997  Michael Meissner  <meissner@cygnus.com>
823
824         * configure: Regenerate to track ../common/aclocal.m4 changes.
825
826 Thu Mar 13 12:38:56 1997  Doug Evans  <dje@canuck.cygnus.com>
827
828         * wrapper.c (sim_open): Has result now.
829         (sim_*): New SIM_DESC argument.
830
831 Tue Feb  4 13:22:21 1997  Doug Evans  <dje@canuck.cygnus.com>
832
833         * Makefile.in (@COMMON_MAKEFILE_FRAG@): Use
834         COMMON_{PRE,POST}_CONFIG_FRAG instead.
835         * configure.in: sinclude ../common/aclocal.m4.
836         * configure: Regenerated.
837
838 Thu Jan 23 11:46:23 1997  Stu Grossman  (grossman@critters.cygnus.com)
839
840         * configure configure.in Makefile.in:  Update to new configure
841         scheme which is more compatible with WinGDB builds.
842         * configure.in:  Improve comment on how to run autoconf.
843         * configure:  Re-run autoconf to get new ../common/aclocal.m4.
844         * Makefile.in:  Use autoconf substitution to install common
845         makefile fragment.
846
847 Wed Nov 20 01:05:10 1996  Doug Evans  <dje@canuck.cygnus.com>
848
849         * run.c: Deleted, use one in ../common now.
850         * Makefile.in: Delete everything that's been moved to
851         ../common/Make-common.in.
852         (SIM_OBJS): Define.
853         * configure.in: Simplify using macros in ../common/aclocal.m4.
854         * configure: Regenerated.
855         * config.in: New file.
856         * armos.c: #include config.h.
857         * wrapper.c (mem_size): Value is in bytes now.
858         (sim_callback): New global.
859         (arm_sim_set_profile{,_size}): Delete.
860         (arm_sim_set_mem_size): Rename to sim_size.
861         (sim_do_command): Call printf_filtered via callback.
862         (sim_set_callbacks): Record callback.
863
864 Thu Oct  3 16:10:27 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
865
866         * Makefile.in (mostlyclean): Remove config.log.
867
868 Wed Jun 26 12:17:24 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
869
870         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
871         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
872         (docdir): Removed.
873         * configure.in (AC_PREREQ): autoconf 2.5 or higher.
874         (AC_PROG_INSTALL): Added.
875         * configure: Rebuilt.
876
877 Wed Feb 21 12:14:31 1996  Ian Lance Taylor  <ian@cygnus.com>
878
879         * configure: Regenerate with autoconf 2.7.
880
881 Fri Dec 15 16:27:30 1995  Ian Lance Taylor  <ian@cygnus.com>
882
883         * run.c (main): Use new bfd_big_endian macro.
884
885 Mon Nov 20 17:40:38 1995  Doug Evans  <dje@canuck.cygnus.com>
886
887         * run.c: Include "getopt.h".
888         (verbose): Delete.
889         (usage): Make static.
890         (main): Call arm_sim_set_verbosity.
891         Only load sections marked SEC_LOAD.
892         * wrapper.c (mem_size, verbosity): New static global.
893         (arm_sim_set_mem_size): Renamed from sim_size.  Callers updated.
894         (arm_sim_set_profile{,_size}): Renamed from sim_foo.  Callers updated.
895         
896 Fri Nov 17 19:35:11 1995  Doug Evans  <dje@canuck.cygnus.com>
897
898         * armdefs.h (ARMul_State): New member `verbose'.
899         * armrdi.c (ARMul_ConsolePrint): Add missing va_end.
900         * run.c (verbose): Make global.
901         * wrapper.c (init): Set state->verbose.
902         (ARMul_ConsolePrint): Don't print anything if !verbose.
903
904 Fri Oct 13 15:30:30 1995  Doug Evans  <dje@canuck.cygnus.com>
905
906         * armos.c: #include dbg_rdi.h.
907         (ARMul_OSHandleSWI): Handle SWI_Breakpoint.
908         * armos.h (SWI_Breakpoint): Define.
909         * wrapper.c: #include armemu.h, dbg_rdi.h.
910         (rc): Delete.
911         (sim_resume): Use state->EndCondition to record stop state.
912         Call FLUSHPIPE before returning.
913         (sim_stop_reason): Determine reason from state->EndCondition.
914
915 Fri Oct 13 15:04:05 1995  steve chamberlain  <sac@slash.cygnus.com>
916
917         * wrapper.c (sim_set_callbacks): New.
918
919 Thu Sep 28 19:45:56 1995  Doug Evans  <dje@deneb.cygnus.com>
920
921         * armos.c (ARMul_OSHandleSWI): Result of read/write calls is
922         number of bytes not read/written (or -1).
923
924 Wed Sep 20 13:35:54 1995  Ian Lance Taylor  <ian@cygnus.com>
925
926         * Makefile.in (maintainer-clean): New synonym for realclean.
927
928 Fri Sep  8 14:27:20 1995  Ian Lance Taylor  <ian@cygnus.com>
929
930         * configure.in: Remove AC_PROG_INSTALL.
931         * configure: Rebuild.
932         * Makefile.in (INSTALL): Revert to using install.sh.
933         (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
934         (INSTALL_XFORM, INSTALL_XFORM1): Restore.
935         (mostlyclean): Make the same as clean, not distclean.
936         (clean): Remove config.log.
937         (install): Don't install in $(tooldir).
938
939 Thu Sep  7 12:00:17 1995  Doug Evans  <dje@canuck.cygnus.com>
940
941         (Try to) Update to new bfd autoconf scheme.
942         * run.c: Don't include sysdep.h.
943         * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
944         (CC, CFLAGS, AR, RANLIB): Likewise.
945         (HDEFINES, TDEFINES): Define.
946         (CC_FOR_BUILD): Delete.
947         (host_makefile_frag): Delete.
948         (Makefile): Don't depend on frags.
949         * configure.in (sysdep.h): Don't create symlink.
950         (host_makefile_frag, frags): Deleted.
951         (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
952         * configure: Regenerated.
953
954 Thu Aug  3 10:45:37 1995  Fred Fish  <fnf@cygnus.com>
955
956         * Update all FSF addresses except those in COPYING* files.
957
958 Wed Jul  5 16:15:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
959
960         * Makefile.in (clean): Remove run, libsim.a.
961
962         * Makefile.in, configure.in: converted to autoconf.
963         * configure: New file, generated with autconf 2.4.
964
965         * arm.mt: Removed.
966
967 Fri Jun 30 16:49:47 1995  Stan Shebs  <shebs@andros.cygnus.com>
968
969         * wrapper.c (sim_do_command): New function.
970
971 Tue Jun 13 10:57:32 1995  Steve Chamberlain  <sac@slash.cygnus.com>
972
973         * armos.c (ARMul_OSHandleSWI): New version to work with
974         newlib simply.
975
976 Thu Jun  8 14:37:14 1995  Steve Chamberlain  <sac@slash.cygnus.com>
977
978         * run.c (main): Grab return value from right register.
979
980 Wed May 24 14:37:31 1995  Steve Chamberlain  <sac@slash.cygnus.com>
981
982         * New.
983
984