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