]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/arm/ChangeLog
sim: update zlib handling
[thirdparty/binutils-gdb.git] / sim / arm / ChangeLog
CommitLineData
aadc9410
MF
12015-03-31 Mike Frysinger <vapier@gentoo.org>
2
3 * config.in, configure: Regenerate.
4
49d62f89
MF
52015-03-30 Mike Frysinger <vapier@gentoo.org>
6
7 * Makefile.in (SIM_RUN_OBJS): Delete.
8 (SIM_EXTRA_CFLAGS): Delete -DSIM_TARGET_SWITCHES and
9 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
10 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
11 * sim-main.h: New file.
12 * wrapper.c: Delete armdefs.h, sim-utils.h, and run-sim.h includes.
13 Add sim-main.h and sim-options.h includes.
14 (sim_callback, mem_size, trace): Add TODO comments.
15 (state): Delete static and add TODO comment.
16 (sim_kind, myname, big_endian): Delete.
17 (init): Change big_endian to CURRENT_TARGET_BYTE_ORDER check.
18 (sim_size, sim_trace, sim_info, sim_target_display_usage, sim_load,
19 sim_do_command, sim_set_callbacks, sim_complete_command): Delete.
20 (sim_target_parse_command_line): Mark static.
21 (free_state): New function.
22 (sim_open): Rewrite to use new common logic.
23 (sim_close): Delete body.
24
dbf8e8af
MF
252015-03-30 Mike Frysinger <vapier@gentoo.org>
26
27 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
28 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
29 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
30 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
31
58b991b1
MF
322015-03-30 Mike Frysinger <vapier@gentoo.org>
33
34 * armemu.c [MODE32] (handle_v6_insn): Move definition.
35 (ARMul_Emulate26): Initialize do_int after label target.
36 * armemu.h (UNDEF_Test, UNDEF_Shift, UNDEF_MSRPC, UNDEF_MRSPC,
37 UNDEF_MULPCDest, UNDEF_MULDestEQOp1, UNDEF_LSRBPC,
38 UNDEF_LSRBaseEQOffWb, UNDEF_LSRBaseEQDestWb, UNDEF_LSRPCBaseWb,
39 UNDEF_LSRPCOffWb, UNDEF_LSMNoRegs, UNDEF_LSMPCBase,
40 UNDEF_LSMUserBankWb, UNDEF_LSMBaseInListWb, UNDEF_SWPPC,
41 UNDEF_CoProHS, UNDEF_MCRPC, UNDEF_LSCPCBaseWb,
42 UNDEF_UndefNotBounced, UNDEF_ShortInt, UNDEF_IllegalMode,
43 UNDEF_Prog32SigChange, UNDEF_Data32SigChange): Define to while(0).
44 * armsupp.c (ARMul_Align): Convert old style prototype.
45 * bag.c (addtolist, killwholelist): Mark static.
46 (BAG_newbag): Convert old style prototype.
47 * maverick.c (mv_compute_host_endianness): Delete.
48 * wrapper.c (verbosity, sim_set_verbose): Delete.
49 (init): Set state->verbose to 0.
50
c4c9c44f
MF
512015-03-30 Mike Frysinger <vapier@gentoo.org>
52
53 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
54 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT,
55 SIM_AC_OPTION_INLINE, and SIM_AC_OPTION_WARNINGS.
56 * config.in, configure: Regenerate.
57
457983e3
MF
582015-03-30 Mike Frysinger <vapier@gentoo.org>
59
60 * Makefile.in (COPRO): Delete.
61 (SIM_OBJS): Expand COPRO.
62 * configure.ac: Deletd stdint.h check.
63 (COPRO): Delete.
64 * configure: Regenerate.
65
ae7d0cac
MF
662015-03-16 Mike Frysinger <vapier@gentoo.org>
67
68 * config.in, configure: Regenerate.
69 * tconfig.in: Rename file ...
70 * tconfig.h: ... here.
71
465fb143
MF
722015-03-14 Mike Frysinger <vapier@gentoo.org>
73
74 * Makefile.in (SIM_EXTRA_CFLAGS): Add
75 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
76 (SIM_RUN_OBJS): Set to run.o.
77
5cddc23a
MF
782015-03-14 Mike Frysinger <vapier@gentoo.org>
79
80 * configure.ac (AC_CHECK_HEADERS): Delete unistd.h.
81 * aclocal.m4, configure: Regenerate.
82
2974be62
AM
832014-08-19 Alan Modra <amodra@gmail.com>
84
85 * configure: Regenerate.
86
faa743bb
RM
872014-08-15 Roland McGrath <mcgrathr@google.com>
88
89 * configure: Regenerate.
90 * config.in: Regenerate.
91
1d63324c
NC
922014-03-18 Nick Clifton <nickc@redhat.com>
93
94 * wrapper.c: Convert function declarations to ISO C format.
95 (sim_open): Delete code for handling t,d and z command line
96 options.
97
8d052926
NC
982014-03-14 Nick Clifton <nickc@redhat.com>
99
100 * wrapper.c (op_print): New function.
101 (sim_dis_read): New function.
102 (print_insn): New function - disassembles the given instruction.
103 (sim_trace): Note that tracing is now allowed.
104 (sim_create_inferior): Default to emulating v6.
105 Initialise the disassembler machinery.
106 (sim_target_parse_command_line): Add support for -t -d and -z
107 options.
108 (sim_target_display_usage): Note existence of -d and -z options.
109 (sim_open): Parse -t -d and -z options.
110 * armemu.h: Add exports of trace, disas and trace_funcs.
111 Add prototype for print_insn.
112 * armemu.c (ARMul_Emulate26): Add tracing code.
113 Delete unused variables.
114 * thumbemu (handle_v6_thumb_insn): Delete unused variable Rd.
115 Move Rm variable into switch cases.
116 Add tracing code.
117
118 * armcopro.c (XScale_cp15_init): Add a return value.
119 (XScale_cp13_init): Likewise.
120 (XScale_cp14_init): Likewise.
121 (XScale_cp15_LDC): Delete unused function.
122 (XScale_cp15_STC): Likewise.
123 * maverick.c: Delete comment inside comment.
124 (DSPInit): Delete unused function.
125 (DSPMCR4): Fix compile time warning about missing parenthesis.
126 (DSPMCR5): Likewise.
127 (DSPCDP6): Delete unused variable opcode2.
128
b9366cf3
DM
1292014-03-14 David McQuillan <dmcq@tao-group.com>
130
131 PR sim/8388
132 * armemu.c (WriteR15Load): New function. Determines if the state
133 can be changed upon a write to R15.
134 (LoadMult): Use WriteR15Load.
135 * armemu.h (WRITEDESTB): Use WriteR15Load.
136
60d847df
MF
1372014-03-10 Mike Frysinger <vapier@gentoo.org>
138
139 * wrapper.c (sim_do_command): Add const to cmd.
140
b2b255bd
MF
1412014-03-05 Mike Frysinger <vapier@gentoo.org>
142
143 * wrapper.c (sim_load): Add const to prog.
144
bf3d9781
AM
1452013-09-23 Alan Modra <amodra@gmail.com>
146
147 * configure: Regenerate.
148
31e6ad7d
MF
1492013-06-03 Mike Frysinger <vapier@gentoo.org>
150
151 * aclocal.m4, configure: Regenerate.
152
590919de
MF
1532013-05-07 Jayant Sonar <jayant.sonar@kpitcummins.com>
154 Kaushik Phatak <Kaushik.Phatak@kpitcummins.com>
155
156 * armemu.c (ARMul_Emulate32): Emulate instructions MOVW and MOVT.
157
19a3671c
JB
1582012-12-19 Joel Brobecker <brobecker@adacore.com>
159
160 * COPYING: Update to GPL version 3.
161
f253d86d
NC
1622012-09-03 Nick Clifton <nickc@redhat.com>
163
164 PR sim/14540
165 * armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction
166 is denied.
167
9256caa6
KB
1682012-08-01 Kevin Buettner <kevinb@redhat.com>
169
170 * wrapper.c (libiberty.h): Include.
171 (sim_store_register, sim_fetch_register): On success, return
172 length, instead of -1.
173
5f3ef9d0
JB
1742012-06-15 Joel Brobecker <brobecker@adacore.com>
175
176 * config.in, configure: Regenerate.
177
b0f05691
NC
1782012-06-13 Nick Clifton <nickc@redhat.com>
179
180 * wrapper.c (sim_create_inferior): Treat WMMX2 binaries as iWMMXt
181 binaries (for now).
182
a493e3e2
PA
1832012-05-24 Pedro Alves <palves@redhat.com>
184
185 PR gdb/7205
186
187 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
188
a6ff997c
NC
1892012-05-18 Nick Clifton <nickc@redhat.com>
190
191 PR 14072
192 * wrapper.c: Include config.h before system header files.
193
2232061b
MF
1942012-03-24 Mike Frysinger <vapier@gentoo.org>
195
196 * aclocal.m4, config.in, configure: Regenerate.
197
db2e4d67
MF
1982011-12-03 Mike Frysinger <vapier@gentoo.org>
199
200 * aclocal.m4: New file.
201 * configure: Regenerate.
202
9c082ca8
MF
2032011-10-17 Mike Frysinger <vapier@gentoo.org>
204
205 * configure.ac: Change include to common/acinclude.m4.
206
6ffe910a
MF
2072011-10-17 Mike Frysinger <vapier@gentoo.org>
208
209 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
210 call. Replace common.m4 include with SIM_AC_COMMON.
211 * configure: Regenerate.
212
161fc452
NC
2132011-07-01 Nick Clifton <nickc@redhat.com>
214
215 PR sim/12737
216 * iwmmxt.c (WCMPGT): Sign extend 32-bit values before performing a
217 signed compare.
218 (WMAC): Extend computed result before adding to result register.
219 (WRSA): Sign extend 32-bit values before shifting.
220
af9f7da7
MF
2212011-04-16 Mike Frysinger <vapier@gentoo.org>
222
223 * wrapper.c (sim_complete_command): New stub function.
224
363a6e9f
OS
2252010-05-26 Ozkan Sezer <sezeroz@gmail.com>
226
227 * communicate.c (MYread_char): Check error return from accept() call
228 by its equality to -1 not by it being negative.
229 (MYread_charwait): Likewise.
230 * main.c (main): Likewise for both socket() and accept() calls.
231
5558e7e6
MF
2322010-04-14 Mike Frysinger <vapier@gentoo.org>
233
234 * wrapper.c (sim_write): Add const to buffer arg.
235
3725885a
RW
2362010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
237
238 * configure: Regenerate.
239
d6416cdc
RW
2402009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
241
81ecdfbb
RW
242 * config.in: Regenerate.
243 * configure: Likewise.
244
d6416cdc
RW
245 * configure: Regenerate.
246
a85c0b49
JS
2472008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
248
249 * arminit.c, iwmmxt.c: Include <string.h> to
250 eliminate warning.
b5bd9624
HPN
2512008-07-11 Hans-Peter Nilsson <hp@axis.com>
252
253 * configure: Regenerate to track ../common/common.m4 changes.
254 * config.in: Ditto.
255
6efef468
JM
2562008-06-06 Vladimir Prus <vladimir@codesourcery.com>
257 Daniel Jacobowitz <dan@codesourcery.com>
258 Joseph Myers <joseph@codesourcery.com>
259
260 * configure: Regenerate.
261 * wrapper.c (sim_target_display_usage): Add help parameter.
262
e1c9b6f1
MM
2632007-02-27 Mark Mitchell <mark@codesourcery.com>
264
265 * armos.c (SWIflen): Do not treate file descriptor zero as
266 special.
267
1306df90
NC
2682007-02-15 Nick Clifton <nickc@redhat.com>
269
270 * armemu.c (handle_v6_insn): Fix typo in sign extension test of
271 the sext and sxtah instructions.
272
8944021f
DJ
2732007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
274
275 Reported by timeless@gmail.com:
276 * wrapper.c (sim_target_parse_arg_array): Do not return void value.
277
edc5d9ec
HPN
2782006-12-21 Hans-Peter Nilsson <hp@axis.com>
279
280 * acconfig.h: Remove.
281 * config.in: Regenerate.
282
e85e3205
RE
2832006-06-13 Richard Earnshaw <rearnsha@arm.com>
284
285 * configure: Regenerated.
286
2f0122dc
DJ
2872006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
288
289 * configure: Regenerated.
290
20e95c23
DJ
2912006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
292
293 * configure: Regenerated.
294
4b1d9c58
PB
2952006-03-07 Paul Brook <paul@codesourcery.com>
296
297 * elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
298
eeea4660
DJ
2992006-02-01 Shaun Jackman <sjackman@gmail.com>
300
301 * armos.c (ARMul_OSHandleSWI): Handle the RedBoot system
302 call meminfo. Return ENOSYS for unhandled RedBoot syscalls.
303
aba6488e
MM
3042005-11-23 Mark Mitchell <mark@codesourcery.com>
305
306 * wrapper.c (gdb/signals.h): Include it.
307 (SIGTRAP): Don't define.
308 (SIGBUS): Likewise.
309 (sim_stop_reason): Use TARGET_SIGNAL_* instead of SIG*.
310
2be701a3
DJ
3112005-11-16 Shaun Jackman <sjackman@gmail.com>
312
eeea4660 313 * armos.c: Include limits.h
2be701a3
DJ
314 (unlink): Remove this macro. It is unused in this file and
315 conflicts with sim_callback->unlink.
316 (PATH_MAX): Define as 1024 if not already defined.
317 (ReadFileName): New function.
318 (SWIopen): Fix a potential buffer overflow.
319 (SWIremove): New function.
320 (SWIrename): Ditto.
321 (ARMul_OSHandleSWI): Handle the RDP calls SWI_IsTTY,
322 SWI_Remove, and SWI_Rename, as well as the RDI calls
323 AngelSWI_Reason_IsTTY, AngelSWI_Reason_Remove, and
324 AngelSWI_Reason_Rename.
325
c4793bac
PB
3262005-09-19 Paul Brook <paul@codesourcery.com>
327
328 * armdefs.h: Define ARMsword and ARMsdword. Use stdint.h when
329 available.
330 * armemu.c: Use them.
331 * armvirt.c (ARMul_MemoryInit): Use correct type for size.
332 * configure.ac: Check for stdint.h.
333 * config.in: Regenerate.
334 * configure: Regenerate.
335
546aee7a
NC
3362005-05-24 Nick Clifton <nickc@redhat.com>
337
338 * thumbemu.c (handle_v6_thumb_insn): New function.
339 (ARMul_ThumbDecode): Call handle_v6_thumb_insn() when an undefined
340 instruction binary is encountered.
341
380d9419
NC
3422005-05-12 Nick Clifton <nickc@redhat.com>
343
344 * Update the address and phone number of the FSF organization in
345 the GPL notices in the following files:
346 COPYING, Makefile.in, armcopro.c, armdefs.h, armemu.c,
347 armemu.h, armfpe.h, arminit.c, armopts.h, armos.c, armos.h,
348 armrdi.c, armsupp.c, armvirt.c, bag.c, bag.h, communicate.c,
349 communicate.h, dbg_conf.h, dbg_cp.h, dbg_hif.h, dbg_rdi.h,
350 gdbhost.c, gdbhost.h, iwmmxt.c, iwmmxt.h, kid.c, main.c,
351 maverick.c, parent.c, thumbemu.c, wrapper.c
352
8207e0f2
NC
3532005-04-20 Nick Clifton <nickc@redhat.com>
354
355 * armemu.c (handle_v6_insn): New function - emulate a few of the
356 v6 instructions - the ones now generated by GCC.
357 (ARMulEmulate32): Call handle_v6_insn when a possible v6 insn is
358 found.
359 * armdefs.h (struct ARMul_State): Add new field: is_v6.
360 (ARM_v6_Prop): Define.
361 * arminit.c (ARMul_NewState): Initialise the v6 flag.
362 (ARMul_SelectProcessor): Determine if the v6 flag should be
363 set.
364 * wrapper.c (sim_create_inferior): For unknown architectures,
365 default to allowing the v6 instructions.
366
16d55f14
NC
3672005-04-18 Nick Clifton <nickc@redhat.com>
368
369 * iwmmxt.c (WMAC, WMADD): Move casts from the LHS of an assignment
370 operator to the RHS.
371 (WSLL, WSRA, WSRL, WUNPCKEH, WUNPACKEL): Use ULL suffix to
372 indicate an unsigned long long constant.
373
2b193c4a
MK
3742005-03-23 Mark Kettenis <kettenis@gnu.org>
375
376 * configure: Regenerate.
377
35695fd6
AC
3782005-01-14 Andrew Cagney <cagney@gnu.org>
379
380 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
381 explicit call to AC_CONFIG_HEADER.
382 * configure: Regenerate.
383
f0569246
AC
3842005-01-12 Andrew Cagney <cagney@gnu.org>
385
386 * configure.ac: Update to use ../common/common.m4.
387 * configure: Re-generate.
388
38f48d72
AC
3892005-01-11 Andrew Cagney <cagney@localhost.localdomain>
390
391 * configure: Regenerated to track ../common/aclocal.m4 changes.
392
b7026657
AC
3932005-01-07 Andrew Cagney <cagney@gnu.org>
394
395 * configure.ac: Rename configure.in, require autoconf 2.59.
396 * configure: Re-generate.
397
379832de
HPN
3982004-12-08 Hans-Peter Nilsson <hp@axis.com>
399
400 * configure: Regenerate for ../common/aclocal.m4 update.
401
0aaa4a81
AC
4022004-06-28 Andrew Cagney <cagney@gnu.org>
403
404 * armemu.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
405
a4c9740c
MM
4062003-12-29 Mark Mitchell <mark@codesourcery.com>
407
408 * armos.c (fcntl.h): Do not include it.
409 (O_RDONLY): Do not define.
410 (O_WRONLY): Likewise.
411 (O_RDWR): Likewise.
412 (targ-vals.h): Include it.
413 (translate_open_mode): Use TARGET_O_* instead of O_*.
414 (SWIopen): Likewise.
415 * Makefile.in (armos.o): Depend on targ-vals.h.
416
c88931b0
NC
4172003-04-13 Nick Clifton <nickc@redhat.com>
418
419 * armvirt.c (GetWord): Only call XScale_check_memacc if in XScale
420 mode.
421 (PutWord): Likewise.
422
3a3d6f65
NC
4232003-03-30 Nick Clifton <nickc@redhat.com>
424
425 * configure.in (CON_FLAGS): Remove.
426 (COPRO): Unconditionally include iwmmxt.o.
427 * configure: Regenerate.
428 * Makefile.in (CON_FLAGS): Remove.
429 * armcopro.c: Remove use of __IWMMXT__ flag.
430 * wrapper.c: Likewise.
431 * armemu.c: Likewise.
432 Add explanatory comment for suppressed code.
433
4342003-03-27 Nick Clifton <nickc@redhat.com>
435
436 * armos.c (ARMul_OsHandleSWI): Catch SWIs for unhandled vectors.
437
0f026fd0
NC
4382003-03-27 Nick Clifton <nickc@redhat.com>
439
440 * configure.in: (CON_FLAGS): Define and intialise.
441 (COPRO): Add iwmmxt.o if configuring for XScale.
442 * configure: Regenerate.
443 * Makefile.in (iwmmxt.o): Add rule to build.
444 (COM_FLAGS): Define.
445 (ALL_FLAGS): Add CON_FLAGS.
446 * armcopro.c (ARMul_CoProInit): Initialise iWMMXt coprocessors.
447 * armdefs.h (struct ARMul_State): Add 'is_iWMMXt' field.
448 (ARM_iWMMXt_Prop): Define.
449 * armemu.c (ARMul_Emulate16): Intercept iWMMXt instructions and
450 pass to coprocessor.
451 * arminit.c (ARMul_NewState): Initialise 'is_iWMMXt'.
452 (ARMul_Abort): Catch branches through uninitialised vectors.
453 * armos.c (softevtorcode): Update comment.
454 (ARMul_OsInit): Use ARMUndefinedInstrV.
0f026fd0
NC
455 * wrapper.c (sim_create_inferior): Handle iWMMXt processor type.
456 (sim_store_register): Handle iWMMXt registers.
457 (sim_fetch_register): Handle iWMMXt registers.
458 * iwmmxt.h: New file. Exported iWMMXt coprocessor emulator
459 functions.
460 * iwmmxt.c: New file: iWMMXt emulator.
461
dd97b6fd 4622003-03-20 Nick Clifton <nickc@redhat.com>
f603c8fe
NC
463
464 * Contribute support for Cirrus Maverick ARM co-processor,
465 written by Aldy Hernandez <aldyh@redhat.com> and
466 Andrew Cagney <cagney@redhat.com>:
467
468 * maverick.c: New file: Support for Maverick floating point
469 co-processor.
470 * Makefile.in: Add maverick.o target.
471 * configure.in (COPRO): Add maverick.o.
472 * configure: Regenerate.
473 * armcopro.c (ARMul_CoProInit): Only initialise co-processors
474 available on target processor. Add code to initialse Maverick
475 co-processor support code.
476 * armdefs.h (ARMul_state): Add is_ep9312 field.
477 (ARM_ep9312_Prop): Define.
478 * armemu.h: Add prototypes for Maverick co-processor
479 functions.
480 * arminit.c (ARMul_SelectProcessor): Initialise the
481 co-processor support once the chip has been selected.
482 * wrapper.c: Add support for Maverick co-processor.
483 (init): Do not call ARMul_CoProInit. Delays this until the
484 chip has been selected.
485
0d9fd8f1
NC
4862003-03-02 Nick Clifton <nickc@redhat.com>
487
488 * armos.c (SWIWrite0): Catch big-endian bug when printing
489 characters.
490
6b4a8935
AC
4912003-02-27 Andrew Cagney <cagney@redhat.com>
492
493 * wrapper.c (sim_create_inferior, sim_open): Rename _bfd to bfd.
494
45fdcabe
BE
4952003-01-10 Ben Elliston <bje@redhat.com>
496
497 * README.Cygnus: Rename from this ..
498 * README: .. to this.
499
058f270d
AC
5002002-09-27 Andrew Cagney <ac131313@redhat.com>
501
502 * wrapper.c (sim_open): Add support for -m<mem-size>.
503 (mem_size): Reduce to 2MB.
504 Fix PR gdb/433.
505
c7a7b500
NC
5062002-08-15 Nick Clifton <nickc@redhat.com>
507
508 * armos.c (ARMul_OSHandleSWI): Catch and ignore SWIs of -1, they
509 can be caused by an interrupted system call being resumed by GDB.
510
630ace25
NC
5112002-07-05 Nick Clifton <nickc@cambridge.redhat.com>
512
513 * armemu.c (ARMul_Emulate32): Add more tests for valid MIA, MIAPH
514 and MIAxy instructions.
515
7b77dec6
NC
5162002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
517
518 * armos.h (ADP_Stopped_RunTimeError): Set correct value.
519
c8cca39f
AC
5202002-06-16 Andrew Cagney <ac131313@redhat.com>
521
522 * configure: Regenerated to track ../common/aclocal.m4 changes.
523
26216b98
AC
5242002-06-12 Andrew Cagney <ac131313@redhat.com>
525
526 * Makefile.in: Update copyright.
527 (wrapper.o): Specify dependencies.
528 * wrapper.c: Include "gdb/sim-arm.h".
529 (sim_store_register, sim_fetch_register): Rewrite using `enum
530 arm_sim_regs' and a switch.
531
3c25f8c7
AC
5322002-06-09 Andrew Cagney <cagney@redhat.com>
533
534 * wrapper.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
535 * armos.c: Include "gdb/callback.h".
536
5aa682b2
NC
5372002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
538
539 * armcopro.c (XScale_check_memacc): Set the FSR and FAR registers
540 if a Data Abort is detected.
541
7378e198
NC
5422002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
543
10b57fcb
NC
544 * armvirt.c (GetWord): Only perform access checks if 'check'
545 is set.
546 (PutWord): Likewise.
547 * wrapper.c (sim_create_inferior): Report unknown machine
548 numbers.
7378e198
NC
549 * thumbemu.c (ARMul_ThumbDecode, Case 31): Do not set LR to pc +
550 2, it has already been advanced.
551
2984e114
NC
5522002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
553
554 * thumbemu.c (ARMul_ThumbDecode): When decoding a BLX(1)
555 instruction do not add in the second bit of the base address -
556 this has already been accounted for.
557
8b2440b7
NC
5582002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
559
560 * armcopro.c (check_cp13_access): Allow access to register 1 when
561 CRm is 1.
562 (write_cp13_reg): Allow bit 0 of reg 1 of CRm 1 to be written to.
563
de4112fa
NC
5642002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
565
7f53bce4 566 * Makefile.in (SIM_TARGET_SWITCHES): Define.
de4112fa
NC
567 * armos.c (swi_mask): Define. Initialise to supporting all
568 SWI emulations.
569 (ARMul_OSInit): For XScale targets, only support the ANGEL
570 SWI interface. (This is at the request if Intel).
571 (ARMul_OSHandleSWI): Examine swi_mask to see if a particular
572 SWI call should be emulated.
573 Do not fall through from AngelSWI_Reason_WriteC.
574 Propagate exit code from RedBoot Exit SWI.
575 * rdi-dgb.h (swi_mask): Prototype.
576 (SWI_MASK_DEMON, SWI_MASK_ANGEL, SWI_MASK_REDBOOT): Define.
577 * wrapper.c (sim_target_parse_command_line): New function.
578 Look for and handle --swi-support switch.
579 (sim_target_parse_arg_array): New function. Process an argv
580 array for parsing by sim_target_parse_command_line.
581 (sim_target_display_usage): New function. Describe syntax of
582 --swi-suppoort switch.
583 (sim_open): Add call to sim_target_parse_arg_array).
584
d8512e6a
NC
5852002-05-09 Nick Clifton <nickc@cambridge.redhat.com>
586
587 * armos.c (ARMul_OSHandleSWI): Support the RedBoot SWI in ARM
588 mode and some of its system calls.
589
ae60d3dd
AG
5902002-03-17 Anthony Green <green@redhat.com>
591
592 * wrapper.c (mem_size): Increase the default target memory to 8MB.
593
b3ba81f8
KS
5942002-02-21 Keith Seitz <keiths@redhat.com>
595
596 * armos.c (SWIWrite0): Use generic host_callback mechanism
597 for supported OS functions "open", "close", "write", etc.
598 (SWIopen): Likewise.
599 (SWIread): Likewise.
600 (SWIwrite): Likewise.
601 (SWIflen): Likewise.
602 (ARMul_OSHandleSWI): Likewise.
603
c17aa318
NC
6042002-02-05 Nick Clifton <nickc@cambridge.redhat.com>
605
606 * wrapper.c (sim_create_inferior): Modify previous patch so that
607 it is only triggered for COFF format executables.
608
25180f8a
NC
6092002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
610
c17aa318
NC
611 * wrapper.c (sin_create_inferior): If a v5 architecture is
612 detected, assume it might be an XScale binary, since there is no
613 way to distinguish between the two in the COFF file format.
25180f8a 614
57165fb4
NC
6152002-01-10 Nick Clifton <nickc@cambridge.redhat.com>
616
617 * arminit.c (ARMul_Abort): Fix parameters passed to CPRead[13].
618 * armemu.c (ARMul_Emulate32): Fix parameters passed to CPRead[13]
619 and CPRead[14].
620 Fix formatting. Improve layout.
621 * armemu.h: Fix formatting. Improve layout.
622
272fcdcd
NC
6232002-01-09 Nick Clifton <nickc@cambridge.redhat.com>
624
625 * wrapper.c (sim_fetch_register): If fetching more than 4 bytes
626 return zeroes in the other words.
86c735a5 627 General formatting tidy ups.
272fcdcd 628
6746a76a
BH
6292001-11-16 Ben Harris <bjh21@netbsd.org>
630
631 * Makefile.in (armemu32.o): Replace $< with autoconf recommended
632 $(srcdir)/....
633 (armemu26.o): Ditto.
634
ff44f8e3
NC
6352001-10-18 Nick Clifton <nickc@cambridge.redhat.com>
636
637 * armemu.h (CP_ACCESS_ALLOWED): New macro.
638 Fix formatting.
639 * armcopro.c (read_cp14_reg): Make static.
640 (write_cp14_reg): Make static.
641 (check_cp13_access): Use CP_ACCESS_ALLOWED macro.
642 Fix formatting.
643 * armsupp.c (ARMul_LDC): Check CP_ACCESS_ALLOWED.
644 (ARMul_STC): Check CP_ACCESS_ALLOWED.
645 (ARMul_MCR): Check CP_ACCESS_ALLOWED.
646 (ARMul_MRC): Check CP_ACCESS_ALLOWED.
647 (ARMul_CDP): Check CP_ACCESS_ALLOWED.
648 Fix formatting.
649 * armemu.c (MCRR): Check CP_ACCESS_ALLOWED. Test Rd and Rn not
650 equal to 15.
651 (MRRC): Check CP_ACCESS_ALLOWED. Test Rd and Rn not equal to 15.
652 Fix formatting.
653
fb7a8ef0
NC
6542001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
655
656 * armemu.c (ARMul_Emulate32): Fix handling of XScale LDRD and STRD
657 instructions with post indexed addressing modes.
658
dac07255
NC
6592001-05-08 Jens-Christian Lache <lache@tu-harburg.de>
660
661 * armsupp.c (ARMul_FixCPSR): Check Mode not Bank in order to
662 determine rocesor mode.
663
c3ae2f98
MG
6642001-04-18 matthew green <mrg@redhat.com>
665
666 * armcopro.c (write_cp15_reg): Set CHANGEMODE if endianness changes.
667 (read_cp15_reg): Make non-static.
668 (XScale_cp15_LDC): Update for write_cp15_reg() change.
669 (XScale_cp15_MCR): Likewise.
670 (XScale_cp15_write_reg): Likewise.
671 (XScale_check_memacc): New function. Check for breakpoints being
672 activated by memory accesses. Does not support the Branch Target
673 Buffer.
674 (XScale_set_fsr_far): New function. Set FSR and FAR for XScale.
675 (XScale_debug_moe): New function. Set the debug Method Of Entry,
676 if configured.
677 (write_cp14_reg): Reset count counter if requested.
678 * armdefs.h (struct ARMul_State): New members `LastTime' and
679 `CP14R0_CCD' used for the timer/counters.
680 (ARMul_CP13_R0_FIQ, ARMul_CP13_R0_IRQ, ARMul_CP13_R8_PMUS,
681 ARMul_CP14_R0_ENABLE, ARMul_CP14_R0_CLKRST, ARMul_CP14_R0_CCD,
682 ARMul_CP14_R0_INTEN0, ARMul_CP14_R0_INTEN1, ARMul_CP14_R0_INTEN2,
683 ARMul_CP14_R0_FLAG0, ARMul_CP14_R0_FLAG1, ARMul_CP14_R0_FLAG2,
684 ARMul_CP14_R10_MOE_IB, ARMul_CP14_R10_MOE_DB, ARMul_CP14_R10_MOE_BT,
685 ARMul_CP15_R1_ENDIAN, ARMul_CP15_R1_ALIGN, ARMul_CP15_R5_X,
686 ARMul_CP15_R5_ST_ALIGN, ARMul_CP15_R5_IMPRE, ARMul_CP15_R5_MMU_EXCPT,
687 ARMul_CP15_DBCON_M, ARMul_CP15_DBCON_E1, ARMul_CP15_DBCON_E0): New
688 defines for XScale registers.
689 (XScale_check_memacc, XScale_set_fsr_far, XScale_debug_moe): Prototype.
690 (ARMul_Emulate32, ARMul_Emulate26): Clean up function definition.
691 (ARMul_Emulate32): Handle the clock counter and hardware instruction
692 breakpoints. Call XScale_set_fsr_far() for software breakpoints and
693 software interrupts.
694 (LoadMult): Call XScale_set_fsr_far() for data aborts.
695 (LoadSMult): Likewise.
696 (StoreMult): Likewise.
697 (StoreSMult): Likewise.
698 * armemu.h (write_cp15_reg): Update prototype.
699 * arminit.c (ARMul_NewState): Initialise CP14R0_CCD and LastTime.
700 (ARMul_Abort): If XScale, check for FIQ and IRQ being enabled in CP13
701 register 0.
702 * armvirt.c (GetWord): Call XScale_check_memacc().
703 (PutWord): Likewise.
704
3cf84db9
NC
7052001-03-20 Nick Clifton <nickc@redhat.com>
706
707 * armvirt.c (ARMul_ReLoadInstr): Do not enable alignment checking
708 when loading unaligned thumb instructions.
709
4f3c3dbb
NC
7102001-03-06 Nick Clifton <nickc@redhat.com>
711
712 * thumbemu.c (ARMul_ThumbDecode): Delete label bo_blx2.
713 Compute destination address of BLX(1) instruction by
714 taking bit 1 from PC and not from bit 0 of the offset.
715
917bca4f
NC
7162001-02-27 Nick Clifton <nickc@redhat.com>
717
718 * armvirt.c (GetWord): Add new parameter - check - to enable or
719 disable the alignment checking.
720 (PutWord): Add new parameter - check - to enable or disable the
721 alignment checking.
722 (ARMul_ReLoadInstr): Pass extra parameter to GetWord.
723 (ARMul_ReadWord): Pass extra parameter to GetWord.
724 (ARMul_WriteWord): Pass extra parameter to PutWord.
725 (ARMul_StoreHalfWord): Pass extra parameter to PutWord.
726 (ARMul_WriteByte): Pass extra parameter to GetWord.
727 (ARMul_SwapWord): Pass extra parameter to PutWord.
728 (ARMul_SafeReadByte): New Function: Read a byte but do not abort.
729 (ARMul_SafeWriteByte): New Function: Write a byte but do not abort.
730
731 * armdefs.h: Add prototypes for ARMul_SafeReadByte and
732 ARMul_SafeWriteByte.
733
734 * wrapper.c (sim_write): Use ARMul_SafeWriteByte.
735 (sim_read): Use ARMul_SafeReadByte.
736
737 * armos.c (in_SWI_handler): Remove.
738 (SWIWrite0): Use ARMul_SafeReadByte.
739 (WriteCommandLineTo): Use ARMul_SafeWriteByte.
740 (SWIopen): Use ARMul_SafeReadByte.
741 (SWIread): Use ARMul_SafeWriteByte.
742 (SWIwrite): Use ARMul_SafeReadByte.
743 (ARMul_OSHandleSWI): Remove use of is_SWI_handler.
744 (ARMul_OSException): Remove use of is_SWI_handler.
745
2ef048fc
NC
7462001-02-16 Nick Clifton <nickc@redhat.com>
747
748 * armemu.c: Remove Prefetch abort for breakpoints. Instead set
749 the state to RESUME.
750
5f7d0a33
NC
7512001-02-14 Nick Clifton <nickc@redhat.com>
752
44e23e57
NC
753 * armemu.c: Add code to preserve processor mode when a prefetch
754 abort is signalled after processing a breakpoint.
755
5f7d0a33
NC
756 * wrapper.c (sim_create_inferior): Reset processor into ARM mode
757 for any machine type except the early ARMs.
758
1e5d4e46
NC
7592001-02-13 Nick Clifton <nickc@redhat.com>
760
761 * armos.c (in_SWI_handler): New static variable.
762 (ARMul_OSHandleSWI): Set in_SWI_handler whilst emulating a SWI.
763 (ARMul_OSException): Ignore exceptions generated whilst emulating
764 a SWI.
765
179ae6ea
NC
7662001-02-12 Nick Clifton <nickc@redhat.com>
767
768 * armemu.h (NEGBRANCH): Fix defintion.
769
dda308f5
NC
7702001-02-01 Nick Clifton <nickc@redhat.com>
771
772 * armemu.c (LoadSMult): Update base address register after
773 restoring register bank.
774 (StoreMult): Update base address register after restoring register
775 bank.
776
88694af3
NC
7772001-01-31 Nick Clifton <nickc@redhat.com>
778
779 * armvirt.c (PutWord): Detect installation of SWI vector.
780 (SWI_vector_installed): Define.
781 * armos.c (ARMul_OsInit): Reset SWI_vector_installed.
782 * armos.h (SWI_vector_installed): Declare.
783 * wrapper.c (SWI_vector_installed): Remove definition.
784 (sim_write): Remove check of SWI vector installation
785
ac1c9d3a
NC
7862000-12-18 Nick Clifton <nickc@redhat.com>
787
788 * armemu.c (ARMul_Emulate26): Fix test for StoreDouble
789 instruction.
790
9a6b6a66
NC
7912000-12-10 Nick Clifton <nickc@redhat.com>
792
793 * armos.c (ARMul_OSHandleSWI): Add 0x91 as an FPE SWI.
794
760a7bbe
NC
7952000-12-07 Nick Clifton <nickc@redhat.com>
796
797 * armemu.c (ARMul_Emulate26): Detect double word load and
798 store instructions and call emulation routines.
799 (Handle_Load_Double): Emulate a double word load instruction.
800 (Handle_Store_Double): Emulate a double word store
801 instruction.
802
7f53bc35
NC
8032000-12-03 Nick Clifton <nickc@redhat.com>
804
805 * armos.c: Fix formatting.
806 (ARMul_OSHandleSWI): Suppress support of DEMON SWIs when in xscale
807 mode.
808
f1129fb8
NC
8092000-11-29 Nick Clifton <nickc@redhat.com>
810
811 * armdefs.h (State): Add 'v5e' and 'xscale' fields.
812 (ARM_v5e_Prop): Define.
813 (ARM_XScale_Prop): Define.
814
815 * wrapper.c (sim_create_inferior): Select processor based on
816 machine number.
817 (SWI_vector_installed): New boolean. Set to true if the SWI
818 vector address is written to by the executable.
819
820 * arminit.c (ARMul_NewState): Switch default to 32 bit mode.
821 (ARMul_SelectProcessor): Initialise v5e and xscale signals.
822 (ARMul_Abort): Fix calculation of LR address.
823
824 * armos.c (ARMul_OSHandleSWI): If a SWI vector has been installed
825 and a SWI is not handled by the simulator, pass the SWI off to the
826 vector, otherwise issue a warning message and continue.
827
828 * armsupp.c (ARMul_CPSRAltered): Set S bit aswell.
829
830 * thumbemu.c: Add v5 instruction simulation.
831 * armemu.c: Add v5, XScale and El Segundo instruction simulation.
832
833 * armcopro.c: Add XScale co-processor emulation.
834 * armemu.h: Add exported XScale co-processor functions.
835
3943c96b
NC
8362000-09-15 Nick Clifton <nickc@redhat.com>
837
838 * armdefs.h: Rename StrongARM property to v4_ARM and add v5 ARM
839 property. Delete unnecessary processor names.
840 (ARM_Strong_Prop): Delete.
841 (STRONGARM): Delete.
842 (ARM_v4_Prop): Add.
843 (ARM_v5_Prop): Add
844 (State): Delete is_StrongARM boolean. Add is_v4 and is_v5
845 booleans.
846
847 * armemu.h (BUSUSEDINCPCS): Use is_v4 boolean.
848 (BUSUSEDINCPCN): Use is_v4 boolean.
849
850 * arminit.c (ARMul_NewState): Initialise is_v4 and is_v5 fields.
851 (ARMul_SelectProcessor): Change second parameter from 'processor'
852 to 'properties'. Set is_v4 and is_v5 booleans in State.
853
854 * armrdi.c: Remove use of ARM processor names. Replace with ARM
855 processor properties.
856
857 * wrapper.c (sim_create_inferior): Choose properties passed to
858 ARMul_SelectProcessor based on machine number.
859
4bc1de7b
NC
8602000-08-14 Nick Clifton <nickc@redhat.com>
861
862 * armemu.c (LHPOSTDOWN): Compute write back value before
863 performing load in case the offset register is overwritten.
864 (LHPOSTUP): Ditto.
865
0a4321b9
FN
8662000-07-14 Fernando Nasser <fnasser@cygnus.com>
867
868 * wrapper.c (sim_create_inferior): Fix typo in the previous patch.
869
64a10675
FN
8702000-07-14 Fernando Nasser <fnasser@cygnus.com>
871
872 * wrapper.c (sim_create_inferior): Reset mode to ARM when creating a
873 new inferior.
874
b0eae074
AO
8752000-07-04 Alexandre Oliva <aoliva@redhat.com>
876
ae3c7619
AO
877 * armvirt.c (ABORTS): Do not define.
878
1e6b544a
AO
879 * armdefs.h (struct ARMul_State): Add is_StrongARM.
880 (ARM_Strong_Prop, STRONGARM): Define.
881 * arminit.c (ARMul_NewState): Reset is_StrongARM.
882 (ARMul_SelectProcessor): Set is_StrongARM.
883 * wrapper.c (sim_create_inferior): Use bfd machine type to
884 determine processor type to emulate.
885 * armemu.h (BUSUSEDINCPCS, BUSUSEDINCPCN): Don't increment PC
886 when emulating StrongARM.
887
66210567
AO
888 * armemu.c (ARMul_Emulate, t_undefined): Proceed to next insn.
889
e063aa3b
AO
890 * armemu.h (INSN_SIZE): New macro.
891 (SET_ABORT): Save CPSR in SPSR and set LR.
892 * armemu.c (ARMul_Emulate, isize): Set to INSN_SIZE.
893 (WriteR15, WriteSR15): Do not discard bit 1 in Thumb mode.
894 * arminit.c (ARMul_Abort): Use new SETABORT and INSN_SIZE.
895
13b6dd6f
AO
896 * armemu.c (LoadSMult): Use WriteR15() to discard the least
897 significant bits of PC.
898
892c6b9d
AO
899 * armemu.h (WRITEDESTB): New macro.
900 * armemu.c (ARMul_Emulate26, bl): Use WriteR15Branch() to
901 modify PC. Moved the existing logic...
902 (WriteR15Branch): ... here. New function.
903 (WriteR15, WriteSR15): Drop the two least significant bits.
904 (LoadSMult): Use WriteR15Branch() to modify PC.
905 (LoadMult): Use WRITEDESTB() instead of WRITEDEST().
906
cf52c765
AO
907 * armemu.h (GETSPSR): Call ARMul_GetSPSR().
908 * armsupp.c (ARMul_CPSRAltered): Zero out bits as they're
909 extracted from state->Cpsr, but preserve the unused bits.
910 (ARMul_GetCPSR): Get bits preserved in state->Cpsr.
911 (ARMul_GetSPSR, ARMul_FixCPSR): Use ARMul_GetCPSR() to
912 get the full CPSR word.
913
4ef2594f
AO
914 * armemu.h (PSR_FBITS, PSR_SBITS, PSR_XBITS, PSR_CBITS): New.
915 (SETPSR_F, SETPSR_S, SETPSR_X, SETPSR_C): New macros.
916 (SETPSR, SET_INTMODE, SETCC): Removed.
917 * armsupp.c (ARMul_FixCPSR, ARMul_FixSPSR): Do not test bit
918 mask. Use SETPSR_* to modify PSR.
919 (ARMul_SetCPSR): Load all bits from value.
920 * armemu.c (ARMul_Emulate, msr): Do not test bit mask.
921
e62263b8
AO
922 * armemu.c (ARMul_Emulate): Compute writeback value before
923 loading, since the offset register may be the destination
924 register.
925
b0eae074
AO
926 * armdefs.h (SYSTEMBANK): Define as USERBANK.
927 * armsupp.c (ARMul_SwitchMode): Remove SYSTEMBANK cases.
928
ee9a7772
AO
9292000-06-22 Alexandre Oliva <aoliva@cygnus.com>
930
f9c22bc3
AO
931 * armemu.c (Multiply64): Fix computation of flag N.
932
ee9a7772
AO
933 * armemu.c (MultiplyAdd64): Fix computation of flag N.
934
fe47e8df
AO
9352000-06-20 Alexandre Oliva <aoliva@cygnus.com>
936
937 * armemu.h (NEGBRANCH): Do not overwrite the two most significant
938 bits of the offset.
939
c1a72ffd
NC
9402000-05-25 Nick Clifton <nickc@cygnus.com>
941
942 * armcopro.c (MMUMCR): Only indicate mode change if a singal has
943 really changed.
944 (MMUWrite): Only indicate mode change if a singal has really
945 changed.
946
947 * armdefs.h (SYSTEMMODE): Define.
948 (BANK_CAN_ACEESS_SPSR): Define.
949
950 * armemu.c (ARM_Emulate26): If the mode has changed allow the PC
951 to advance before stopping the emulation.
952
953 * arminit.c (ARMul_Reset): Ensure Mode field of State is set
954 correctly.
955
956 * armos.c (ARMul_OSInit): Create a initial stack pointer for
957 System mode.
958
959 * armsupp.c (ModeToBank): Remove unused first parameter.
960 Add support for System Mode.
961 (ARMul_GetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
962 (ARMul_SetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
963 (ARMul_FixSPSR): Use BANK_CAN_ACCESS_SPSR macro.
964 (ARMulSwitchMode): Add support for System Mode.
965
966Wed May 24 14:40:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
eb2d80b4
AC
967
968 * configure: Regenerated to track ../common/aclocal.m4 changes.
969
3463c3fb
NC
9702000-05-23 Nick Clifton <nickc@cygnus.com>
971
972 * wrapper.c (sim_store_register): Special handling for CPSR
973 register.
974
5d0d395e
FCE
9752000-03-11 Philip Blundell <philb@gnu.org>
976
977 * armemu.c (LoadSMult, LoadMult): Correct handling of aborts.
978 Patch from Allan Skillman <Allan.Skillman@arm.com>.
979
6c9e0292
FCE
980Wed Mar 22 15:24:21 2000 glen mccready <gkm@pobox.com>
981
982 * wrapper.c (sim_open,sim_close): Copy into myname, free myname.
983
6d358e86
NC
9842000-02-08 Nick Clifton <nickc@cygnus.com>
985
986 * wrapper.c: Fix compile time warning messages.
987 * armcopro.c: Fix compile time warning messages.
988 * armdefs.h: Fix compile time warning messages.
989 * armemu.c: Fix compile time warning messages.
990 * armemu.h: Fix compile time warning messages.
991 * armos.c: Fix compile time warning messages.
992 * armsupp.c: Fix compile time warning messages.
993 * armvirt.c: Fix compile time warning messages.
d0187574 994 * bag.c: Fix compile time warning messages.
6d358e86 995
dfcd3bfb
JM
9962000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
997
998 * *.[ch]: Use indent to make readable.
999
c2d11a7d
JM
10001999-11-22 Nick Clifton <nickc@cygnus.com>
1001
1002 * armos.c (SWIread): Generate an error message if a huge read is
1003 performed.
1004 (SWIwrite): Generate an error message if a huge write is
1005 performed.
1006
5c44784c
JM
10071999-10-27 Nick Clifton <nickc@cygnus.com>
1008
1009 * thumbemu.c (ARMul_ThumbDecode): Accept 0xbebe as a thumb
1010 breakpoint.
1011
2df3850c
JM
10121999-10-08 Ulrich Drepper <drepper@cygnus.com>
1013
1014 * armos.c (SWIopen): Always pass third parameter with 0666 since
1015 otherwise uninitialized memory gets access if the O_CREAT bit is
1016 set and so we possibly cannot access the file afterwards.
1017
2acceee2
JM
10181999-09-29 Doug Evans <devans@casey.cygnus.com>
1019
1020 * armos.c (SWIWrite0): Send output to stdout instead of stderr.
1021 (ARMul_OSHandleSWI, case SWI_WriteC,AngelSWI_Reason_WriteC): Ditto.
1022
d4f3574e
SS
1023Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1024
1025 * configure: Regenerated to track ../common/aclocal.m4 changes.
1026
cd0fc7c3
SS
10271999-05-08 Felix Lee <flee@cygnus.com>
1028
1029 * configure: Regenerated to track ../common/aclocal.m4 changes.
1030
7a292a7a
SS
10311999-04-06 Keith Seitz <keiths@cygnus.com>
1032
1033 * wrapper.c (stop_simulator): New global.
1034 (sim_stop): Set sim state to STOP and set
1035 stop_simulator.
1036 (sim_resume): Reset stop_simulator.
1037 (sim_stop_reason): If stop_simulator is set, tell gdb
1038 that the we took SIGINT.
1039 * armemu.c (ARMul_Emulate26): Don't loop forever. Stop if
1040 stop_simulator is set.
1041
10421999-04-02 Keith Seitz <keiths@cygnus.com>
1043
1044 * armemu.c (ARMul_Emulate26): If NEED_UI_LOOP_HOOK, call ui_loop_hook
1045 whenever the counter expires.
1046 * Makefile.in (SIM_EXTRA_CFLAGS): Include define NEED_UI_LOOP_HOOK.
1047
10481999-03-24 Nick Clifton <nickc@cygnus.com>
1049
1050 * armemu.c (ARMul_Emulate26): Handle new breakpoint value.
1051 * thumbemu.c (ARMul_ThumbDecode): Handle new breakpoint value.
1052
c906108c
SS
1053Mon Sep 14 09:00:05 1998 Nick Clifton <nickc@cygnus.com>
1054
1055 * wrapper.c (sim_open): Set endianness according to BFD or command
1056 line switch.
1057
1058 * tconfig.in: Define SIM_HAVE_BIENDIAN.
1059
1060Thu Aug 27 11:00:05 1998 Nick Clifton <nickc@cygnus.com>
1061
1062 * armemu.c (Multiply64): Test for Rm (rather than Rs) not being
1063 the same as either RdHi or RdLo.
1064
1065Thu Jul 2 10:24:35 1998 Nick Clifton <nickc@cygnus.com>
1066
1067 * armos.c (ARMul_OSHandleSWI: AngelSWI_Reason_ReportException):
1068 Set Reg[0] based on reason for for the exception.
1069
1070Thu Jun 4 15:22:03 1998 Jason Molenda (crash@bugshack.cygnus.com)
1071
1072 * armos.c (SWIwrite0): New function.
1073 (WriteCommandLineTo): New function.
1074 (SWIopen): New function.
1075 (SWIread): New function.
1076 (SWIwrite): New function.
1077 (SWIflen): New function.
1078 (ARMul_OSHandleSWI): Call new functions instead of handling
1079 these here.
1080 (ARMul_OSHandleSWI): Handle Angel SWIs correctly.
1081 (*): Reformat spacing to be a bit more GNUly.
1082 Most code taken from a patch by Anthony Thompson
1083 (athompso@cambridge.arm.com)
1084
1085Tue Jun 2 15:22:22 1998 Nick Clifton <nickc@cygnus.com>
1086
1087 * armos.h: Add Angel SWI and its reason codes.
1088 * armos.c (ARMul_OSHandleSWI): Ignore Angel SWIs (for now).
1089
1090Mon Jun 1 17:14:19 1998 Anthony Thompson (athompso@cambridge.arm.com)
1091
1092 * armos.c (ARMul_OSHandleSWI::SWI_Open): Handle special case
1093 of ":tt" to catch stdin in addition to stdout.
1094 (ARMul_OSHandleSWI::SWI_Seek): Return 0 or 1 to indicate failure
1095 or success of lseek().
1096
1097Wed May 20 17:36:25 1998 Nick Clifton <nickc@cygnus.com>
1098
1099 * armos.c (ARMul_OSHandleSWI): Special case code to catch attempts
1100 to open stdout.
1101
1102Wed Apr 29 15:29:55 1998 Jeff Johnston <jjohnstn@cygnus.com>
1103
1104 * armos.c (ARMul_OSHandleSWI): Added code for SWI_Clock,
1105 SWI_Flen, and SWI_Time. Also fixed SWI_Seek code to only
1106 seek from offset 0 and not to use R2 for whence since it is
1107 not passed as part of the SWI call.
1108
1109Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
1110
1111 * configure: Regenerated to track ../common/aclocal.m4 changes.
1112
1113Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1114
1115 * configure: Regenerated to track ../common/aclocal.m4 changes.
1116 * config.in: Ditto.
1117
1118Sun Apr 26 15:20:26 1998 Tom Tromey <tromey@cygnus.com>
1119
1120 * acconfig.h: New file.
1121 * configure.in: Reverted change of Apr 24; use sinclude again.
1122
1123Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1124
1125 * configure: Regenerated to track ../common/aclocal.m4 changes.
1126 * config.in: Ditto.
1127
1128Fri Apr 24 11:20:19 1998 Tom Tromey <tromey@cygnus.com>
1129
1130 * configure.in: Don't call sinclude.
1131
1132Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
1133
1134 * configure: Regenerated to track ../common/aclocal.m4 changes.
1135
1136Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
1137
1138 * configure: Regenerated to track ../common/aclocal.m4 changes.
1139
1140Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
1141
1142 * configure: Regenerated to track ../common/aclocal.m4 changes.
1143
1144Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
1145
1146 * configure: Regenerated to track ../common/aclocal.m4 changes.
1147
1148Tue Mar 10 09:26:38 1998 Nick Clifton <nickc@cygnus.com>
1149
1150 * armopts.h: Remove definition of LITTLEND - it is not used.
1151
1152Tue Feb 17 12:35:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
1153
1154 * wrapper.c (sim_store_register, sim_fetch_register): Pass in
1155 length parameter. Return -1.
1156
1157Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1158
1159 * configure: Regenerated to track ../common/aclocal.m4 changes.
1160
1161Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1162
1163 * configure: Regenerated to track ../common/aclocal.m4 changes.
1164
1165Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1166
1167 * configure: Regenerated to track ../common/aclocal.m4 changes.
1168
1169Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1170
1171 * configure: Regenerated to track ../common/aclocal.m4 changes.
1172 * config.in: Ditto.
1173
1174Tue Dec 9 11:30:48 1997 Nick Clifton <nickc@cygnus.com>
1175
1176 * Makefile.in: Updated with changes from branch.
1177 * armdefs.h: ditto
1178 * armemu.c: ditto these changes
1179 * armemu.h: ditto add support for
1180 * armos.c: ditto the Thumb instruction
1181 * armsupp.c: ditto set and the new v4
1182 * armvirt.c: ditto architecture.
1183 * wrapper.c: ditto
1184 * thumbemu.c: New file from branch.
1185
1186
1187Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1188
1189 * configure: Regenerated to track ../common/aclocal.m4 changes.
1190
1191Thu Oct 30 13:54:06 1997 Nick Clifton <nickc@cygnus.com>
1192
1193 * armos.c (ARMul_OSHandleSWI): Add support for GetEnv SWI. Patch
1194 from Tony Thompson at ARM: athompso@arm.com
1195
1196 * wrapper.c (sim_create_inferior): Add code to create an execution
1197 environment. Patch from Tony Thompson at ARM: athompso@arm.com
1198
1199Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1200
1201 * wrapper.c (sim_load): Pass lma_p and sim_write args to
1202 sim_load_file.
1203
1204Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1205
1206 * configure: Regenerated to track ../common/aclocal.m4 changes.
1207
1208Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1209
1210 * configure: Regenerated to track ../common/aclocal.m4 changes.
1211
1212Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1213
1214 * configure: Regenerated to track ../common/aclocal.m4 changes.
1215
1216Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1217
1218 * configure: Regenerated to track ../common/aclocal.m4 changes.
1219
1220Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1221
1222 * configure: Regenerated to track ../common/aclocal.m4 changes.
1223
1224Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1225
1226 * configure: Regenerated to track ../common/aclocal.m4 changes.
1227
1228Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1229
1230 * configure: Regenerated to track ../common/aclocal.m4 changes.
1231
1232Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1233
1234 * configure: Regenerated to track ../common/aclocal.m4 changes.
1235 * config.in: Ditto.
1236
1237Tue Aug 26 10:37:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
1238
1239 * wrapper.c (sim_kill): Delete.
1240 (sim_create_inferior): Add ABFD argument.
1241 (sim_load): Move setting of PC from here.
1242 (sim_create_inferior): To here.
1243
1244Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1245
1246 * configure: Regenerated to track ../common/aclocal.m4 changes.
1247 * config.in: Ditto.
1248
1249Mon Aug 25 15:35:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
1250
1251 * wrapper.c (sim_open): Add ABFD argument.
1252
1253Tue May 20 10:13:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
1254
1255 * wrapper.c (sim_open): Add callback argument.
1256 (sim_set_callbacks): Drop SIM_DESC argument.
1257
1258Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1259
1260 * configure: Regenerated to track ../common/aclocal.m4 changes.
1261
1262Fri Apr 18 13:32:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1263
1264 * wrapper.c (sim_stop): Stub sim_stop function.
1265
1266Thu Apr 17 18:33:01 1997 Fred Fish <fnf@cygnus.com>
1267
1268 * arminit.c (ARMul_NewState): Preinitialize the state to
1269 all zero/NULL.
1270
1271Thu Apr 17 02:39:02 1997 Doug Evans <dje@canuck.cygnus.com>
1272
1273 * Makefile.in (SIM_OBJS): Add sim-load.o.
1274 * wrapper.c (sim_kind,myname): New static locals.
1275 (sim_open): Set sim_kind, myname.
1276 (sim_load): Call sim_load_file to do work. Set start address from bfd.
1277 (sim_create_inferior): Return SIM_RC. Delete start_address arg.
1278
1279Thu Apr 17 11:48:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1280
1281 * wrapper.c (sim_trace): Update so that it matches prototype.
1282
1283Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1284
1285 * configure: Regenerated to track ../common/aclocal.m4 changes.
1286 * config.in: Ditto.
1287
1288Mon Apr 7 12:01:17 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1289
1290 * Makefile.in (armemu32.o): Replace $< with autoconf recommended
1291 $(srcdir)/....
1292 (armemu26.o): Ditto.
1293
1294Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1295
1296 * wrapper.c (sim_open): New arg `kind'.
1297
1298 * configure: Regenerated to track ../common/aclocal.m4 changes.
1299
1300Wed Apr 2 14:50:44 1997 Ian Lance Taylor <ian@cygnus.com>
1301
1302 * COPYING: Update FSF address.
1303
1304Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1305
1306 * configure: Regenerated to track ../common/aclocal.m4 changes.
1307
1308Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1309
1310 * configure: Regenerated to track ../common/aclocal.m4 changes.
1311
1312Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1313
1314 * configure: Re-generate.
1315
1316Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1317
1318 * configure: Regenerate to track ../common/aclocal.m4 changes.
1319
1320Thu Mar 13 12:38:56 1997 Doug Evans <dje@canuck.cygnus.com>
1321
1322 * wrapper.c (sim_open): Has result now.
1323 (sim_*): New SIM_DESC argument.
1324
1325Tue Feb 4 13:22:21 1997 Doug Evans <dje@canuck.cygnus.com>
1326
1327 * Makefile.in (@COMMON_MAKEFILE_FRAG@): Use
1328 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1329 * configure.in: sinclude ../common/aclocal.m4.
1330 * configure: Regenerated.
1331
1332Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1333
1334 * configure configure.in Makefile.in: Update to new configure
1335 scheme which is more compatible with WinGDB builds.
1336 * configure.in: Improve comment on how to run autoconf.
1337 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1338 * Makefile.in: Use autoconf substitution to install common
1339 makefile fragment.
1340
1341Wed Nov 20 01:05:10 1996 Doug Evans <dje@canuck.cygnus.com>
1342
1343 * run.c: Deleted, use one in ../common now.
1344 * Makefile.in: Delete everything that's been moved to
1345 ../common/Make-common.in.
1346 (SIM_OBJS): Define.
1347 * configure.in: Simplify using macros in ../common/aclocal.m4.
1348 * configure: Regenerated.
1349 * config.in: New file.
1350 * armos.c: #include config.h.
1351 * wrapper.c (mem_size): Value is in bytes now.
1352 (sim_callback): New global.
1353 (arm_sim_set_profile{,_size}): Delete.
1354 (arm_sim_set_mem_size): Rename to sim_size.
1355 (sim_do_command): Call printf_filtered via callback.
1356 (sim_set_callbacks): Record callback.
1357
1358Thu Oct 3 16:10:27 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1359
1360 * Makefile.in (mostlyclean): Remove config.log.
1361
1362Wed Jun 26 12:17:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1363
1364 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1365 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1366 (docdir): Removed.
1367 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1368 (AC_PROG_INSTALL): Added.
1369 * configure: Rebuilt.
1370
1371Wed Feb 21 12:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
1372
1373 * configure: Regenerate with autoconf 2.7.
1374
1375Fri Dec 15 16:27:30 1995 Ian Lance Taylor <ian@cygnus.com>
1376
1377 * run.c (main): Use new bfd_big_endian macro.
1378
1379Mon Nov 20 17:40:38 1995 Doug Evans <dje@canuck.cygnus.com>
1380
1381 * run.c: Include "getopt.h".
1382 (verbose): Delete.
1383 (usage): Make static.
1384 (main): Call arm_sim_set_verbosity.
1385 Only load sections marked SEC_LOAD.
1386 * wrapper.c (mem_size, verbosity): New static global.
1387 (arm_sim_set_mem_size): Renamed from sim_size. Callers updated.
1388 (arm_sim_set_profile{,_size}): Renamed from sim_foo. Callers updated.
1389
1390Fri Nov 17 19:35:11 1995 Doug Evans <dje@canuck.cygnus.com>
1391
1392 * armdefs.h (ARMul_State): New member `verbose'.
1393 * armrdi.c (ARMul_ConsolePrint): Add missing va_end.
1394 * run.c (verbose): Make global.
1395 * wrapper.c (init): Set state->verbose.
1396 (ARMul_ConsolePrint): Don't print anything if !verbose.
1397
1398Fri Oct 13 15:30:30 1995 Doug Evans <dje@canuck.cygnus.com>
1399
1400 * armos.c: #include dbg_rdi.h.
1401 (ARMul_OSHandleSWI): Handle SWI_Breakpoint.
1402 * armos.h (SWI_Breakpoint): Define.
1403 * wrapper.c: #include armemu.h, dbg_rdi.h.
1404 (rc): Delete.
1405 (sim_resume): Use state->EndCondition to record stop state.
1406 Call FLUSHPIPE before returning.
1407 (sim_stop_reason): Determine reason from state->EndCondition.
1408
1409Fri Oct 13 15:04:05 1995 steve chamberlain <sac@slash.cygnus.com>
1410
1411 * wrapper.c (sim_set_callbacks): New.
1412
1413Thu Sep 28 19:45:56 1995 Doug Evans <dje@deneb.cygnus.com>
1414
1415 * armos.c (ARMul_OSHandleSWI): Result of read/write calls is
1416 number of bytes not read/written (or -1).
1417
1418Wed Sep 20 13:35:54 1995 Ian Lance Taylor <ian@cygnus.com>
1419
1420 * Makefile.in (maintainer-clean): New synonym for realclean.
1421
1422Fri Sep 8 14:27:20 1995 Ian Lance Taylor <ian@cygnus.com>
1423
1424 * configure.in: Remove AC_PROG_INSTALL.
1425 * configure: Rebuild.
1426 * Makefile.in (INSTALL): Revert to using install.sh.
1427 (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
1428 (INSTALL_XFORM, INSTALL_XFORM1): Restore.
1429 (mostlyclean): Make the same as clean, not distclean.
1430 (clean): Remove config.log.
1431 (install): Don't install in $(tooldir).
1432
1433Thu Sep 7 12:00:17 1995 Doug Evans <dje@canuck.cygnus.com>
1434
1435 (Try to) Update to new bfd autoconf scheme.
1436 * run.c: Don't include sysdep.h.
1437 * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
1438 (CC, CFLAGS, AR, RANLIB): Likewise.
1439 (HDEFINES, TDEFINES): Define.
1440 (CC_FOR_BUILD): Delete.
1441 (host_makefile_frag): Delete.
1442 (Makefile): Don't depend on frags.
1443 * configure.in (sysdep.h): Don't create symlink.
1444 (host_makefile_frag, frags): Deleted.
1445 (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
1446 * configure: Regenerated.
1447
1448Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
1449
1450 * Update all FSF addresses except those in COPYING* files.
1451
1452Wed Jul 5 16:15:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1453
1454 * Makefile.in (clean): Remove run, libsim.a.
1455
1456 * Makefile.in, configure.in: converted to autoconf.
1457 * configure: New file, generated with autconf 2.4.
1458
1459 * arm.mt: Removed.
1460
1461Fri Jun 30 16:49:47 1995 Stan Shebs <shebs@andros.cygnus.com>
1462
1463 * wrapper.c (sim_do_command): New function.
1464
1465Tue Jun 13 10:57:32 1995 Steve Chamberlain <sac@slash.cygnus.com>
1466
1467 * armos.c (ARMul_OSHandleSWI): New version to work with
1468 newlib simply.
1469
1470Thu Jun 8 14:37:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
1471
1472 * run.c (main): Grab return value from right register.
1473
1474Wed May 24 14:37:31 1995 Steve Chamberlain <sac@slash.cygnus.com>
1475
1476 * New.
1477
1478