Rename `struct _engine' to new `struct sim_state'.
[binutils-gdb.git] / sim / common / ChangeLog
1 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2
3 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
4 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
5 these.
6
7 * sim-events.c (sim_events_at_large_int): New function. Just
8 schedules an event every large-int ticks.
9 (sim_events_init): Call.
10 (sim_events_tick, sim_events_process): Move async handing to
11 sim_events_process. Move timer decrement so that it occures after
12 events have been processed.
13
14 * sim-basics.h (struct _engine): Remove declaration.
15
16 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
17 everything with same. Rename global struct to SIM_DESC.
18 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
19 * sim-io.h, sim-io.c: Ditto.
20
21 * sim-assert.h: New file. Optional assertion checking macros.
22 * sim-io.c (sim_io_error): Make just this function tolerant to
23 null pointers.
24
25 * sim-xcat.h: New file. Define concatenate macros.
26 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
27 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
28 concat macros.
29
30
31 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
32
33 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
34
35 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
36
37 * sim-inline.h: Add definitions for sim-types.
38 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
39 module.
40
41 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
42
43 * sim-events.h: Remove defunct reference to callback struct.
44
45 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
46
47 * configure: Re-generate.
48
49 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
50
51 * Make-common.in (CSEARCH): Do not include the gdb directory in
52 the search path.
53
54 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
55
56 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
57 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
58 to explicitly incorporate these.
59
60 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
61 specify the alignment restrictions of the target architecture -
62 without this option all alignment restrictions are accomodated.
63 (--enable-sim-assert): New option. Conditionally compile in
64 assertion statements.
65 (--enable-sim-float): New option. Strongly specify the target's
66 floating point support.
67 (--enable-sim-hardware): New option. Specify the hardware devices
68 included in the simulation.
69 (--enable-sim-packages): New option. Specify the hardware
70 packages included in the simulation.
71 (--enable-sim-regparm): New option. Specify that parameters be
72 passed in registers instead of on the stack.
73 (--enable-sim-reserved-bits): New option. Specify that reserved
74 bits within an instruction are are correctly set.
75 (--enable-sim-smp): New option. Specify the level of SMP support
76 to be included in the simulator.
77 (--enable-sim-stdcall): New option. Specify an alternative
78 function call convention.
79 (--enable-sim-xor-endian): New option. Configure xor-endian
80 support used by some targets to implement bi-endian support.
81
82 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
83
84 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
85 host endianness to be overridden.
86 (--enable-sim-endian): Allow the target platform's byte order
87 to be overridden.
88 (--enable-sim-inline): Control the inlining of common components.
89 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
90 (--enable-sim-warnings): Enable additional GCC compiler checks.
91 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
92 SIM_WARNINGS): Add.
93
94 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
95 sim-*-n.h so that the names are uniq on dos machines
96 * sim-core.c, sim-bits.c, sim-endian.c: Update.
97
98 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
99
100 * run.c: #include "libiberty.h".
101 (main): New locals sd,no_args,sim_argv.
102 Run buildargv on -a option. Pass argv to sim_open, argv[0]
103 is program name. Update call to sim_set_callbacks.
104 Record result of sim_open, pass to other sim_foo routines.
105
106 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
107
108 * callback.c (os_printf_filtered): Do not call exit(1) or print a
109 final newline.
110
111 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
112
113 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
114 Route stdout through buffered IO.
115
116 * callback.c: Add os_flush_stderr, os_write_stderr,
117 os_evprintf_filtered functions to route error output through
118 stderr.
119
120 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
121 Correct return type - should be void.
122
123 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
124
125 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
126
127 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
128 not provide a default value as undefined indicates disable code.
129
130 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
131
132 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
133 directory.
134 * sim-events.h, sim-events.c: Ditto.
135 * sim-io.h, sim-io.c: Ditto.
136
137 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
138
139 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
140
141 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
142 extract the tail or least signifiant bits from an integer of the
143 specified size.
144
145 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
146 WITH_TARGET_BITSIZE so that the compilation will fail when an
147 unsupported bitsize value is defined.
148
149 (INSERTED*): Convert to functions.
150 (EXTRACTED*): Ditto.
151
152 (SIGN_EXTEND, SEXT): Change to more terse name.
153
154 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
155
156 * sim-inline.h: Allow explicit control over which .c files will be
157 included by their header.
158
159 * sim-inline.h: Allow explicit control over which .c files use the
160 alternative - REGPARM - parameter passing mechanism.
161
162 * sim-inline.h, sim-inline.c: Don't attempt to include any of
163 icache.c, idecode.c, semantics.c or support.c. Those names are
164 not generally applicable.
165
166 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
167
168 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
169 in a fashion similar to sim-endian-n.
170
171 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
172 both value and address macro's.
173
174 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
175
176 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
177
178 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
179 generic L_word, H_word macro's.
180
181 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
182
183 * sim-basics.h: Borrow code from ppc directory.
184 * sim-bits.c: Ditto.
185 * sim-bits.h: Ditto.
186 * sim-config.h: Ditto.
187 * sim-endian-n.h: Ditto.
188 * sim-endian.c: Ditto.
189 * sim-endian.h: Ditto.
190 * sim-inline.c: Ditto.
191 * sim-inline.h: Ditto.
192 * sim-types.h: Ditto.
193
194 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
195
196 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
197 all the ALU size alternatives and then auto-configure a default.
198
199 * sim-alu.h: Copy ppc/idecode_expression.h.
200
201 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
202
203 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
204 sign extend a bit within a value.
205
206 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
207 a pointer into the middle of a host word.
208 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
209
210 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
211
212 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
213 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
214 appropriate definitions of read, write, etc. Add prototype for
215 system.
216
217 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
218
219 * Makefile.in (libcommon.a): Delete.
220 (callback.o,targ-map.o): Delete, moved to Make-common.in.
221 (gentmap,targ-vals.h,targ-map.c): Likewise.
222 (run-autoconf): Delete.
223 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
224 (common makefile fragment): Moved back into ...
225 * Make-common.in: Resurrect.
226 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
227 * configure: Regenerated.
228
229 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
230
231 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
232 (SIM_AC_OUTPUT): To here.
233
234 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
235
236 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
237 comments and single quotes. Fixes a problem found on hpux.
238
239 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
240
241 * aclocal.m4: Remove Make-common.in from dependencies.
242 * (distclean): Remove targ-vals.def.
243
244 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
245 into here. Makes insertion into makefiles easier. Also, change
246 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
247 targ-map.o, and run are built. They are now built in the
248 individual simulator directories, taking sources from ../common as
249 necessary. This replaces the merging of libcommon.a into
250 linsim.a, which was problematic for the WinGDB build process.
251 * run.c: Include config.h from . instead of ../common.
252 * Make-common.in: Remove. It's no longer necessary.
253
254 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
255
256 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
257 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
258
259 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
260
261 * run.c (main): Set target_byte_order before call to sim_open.
262
263 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
264
265 * callback.c: #include <stdlib.h>
266 (os_error): New function.
267 (default_callback): Add os_error.
268
269 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
270
271 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
272 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
273 specific.
274 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
275
276 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
277
278 * run.c: #include ../common/config.h, tconfig.h.
279 (myname): New static global.
280 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
281 Only process -c ifdef SIM_HAVE_SIMCACHE.
282 Only process -p/-s ifdef SIM_HAVE_PROFILE.
283 Parse program name from argv[0] and use in error messages.
284 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
285 Add support for incomplete h8/300 termination indicators.
286 (usage): Make more verbose.
287 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
288 * Makefile.in,Make-common.in,callback.c: New files.
289 * nltvals.def,gentmap.c,gentvals.sh: New files.
290
291 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
292
293 * run.c: Include stdarg.h if __STDC__.
294
295 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
296
297 * run.c (main): Don't print out anything if the signal
298 number is zero (ie no signal).
299
300 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
301
302 * run.c (main): Print out if the program raised a signal.
303
304 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
305
306 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
307 (main): Ditto.
308
309 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
310
311 * run.c (main): Explicitly cast malloc() parameter.
312
313 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
314
315 * run.c (sim_bfd): New global to hold the bfd pointer for the
316 executable.
317 (main): Initialize sim_bfd.
318
319 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
320
321 * run.c (main): Use new bfd_big_endian macro.
322
323 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
324
325 * run.c (main): Removed SH specific comments, so source is
326 generic. Also updated to only load relevant sections. Moved
327 sim_open() to after callback attach (to match GDB).
328
329 * run.1: Removed SH specific comments.
330
331 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
332
333 * run.c (main): Always return sigrc at end.
334
335 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
336
337 * run.c (main): Print error diagnostic and exit if bfd_openr() or
338 bfd_check_format() fails.
339
340 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
341
342 * run.c, run.1: From sh directory.
343
344