Commit | Line | Data |
---|---|---|
7c125e3b MF |
1 | 2015-11-21 Mike Frysinger <vapier@gentoo.org> |
2 | ||
3 | PR sim/13834 | |
4 | * Makefile.in (gentmap): Change $< to $(srcdir)/../common/gentmap.c. | |
5 | (callback.o): Change $< to $(srcdir)/../common/callback.c. | |
6 | (options.o): Change $< to $(srcdir)/options.c. | |
7 | ||
a6760b61 PA |
8 | 2015-11-17 Pedro Alves <palves@redhat.com> |
9 | ||
10 | * debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call | |
11 | sim_io_printf_filtered instead of printf_filtered. | |
12 | ||
306f4178 MF |
13 | 2015-06-12 Mike Frysinger <vapier@gentoo.org> |
14 | ||
15 | * configure: Regenerate. | |
16 | ||
0a13382c NC |
17 | 2015-04-29 Nick Clifton <nickc@redhat.com> |
18 | ||
19 | PR 18273 | |
20 | * hw_htab.c (htab_map_binary): Fix overlap check. | |
21 | ||
887bddbc MF |
22 | 2015-04-13 Mike Frysinger <vapier@gentoo.org> |
23 | ||
24 | * Makefile.in (version.o): Change to using create-version.sh from gdb. | |
25 | (create-version.sh): Delete. | |
26 | ||
aadc9410 MF |
27 | 2015-03-31 Mike Frysinger <vapier@gentoo.org> |
28 | ||
29 | * config.in, configure: Regenerate. | |
30 | * Makefile.in (INCLUDES): Add $(ZLIBINC). | |
31 | (ZLIB, ZLIBINC): Define. | |
32 | (BFD_LIB): Add $(ZLIB). | |
33 | ||
576054f1 JS |
34 | 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com> |
35 | ||
36 | * ChangeLog, ChangeLog.00, hw_com.c, ld-cache.h, ppc-instructions: | |
37 | Change immediatly to immediately. | |
38 | ||
ceac4ecf JS |
39 | 2014-08-27 Joel Sherrill <joel.sherrill@oarcorp.com> |
40 | ||
41 | * basics.h, device.c, device.h, hw_htab.c, hw_memory.c: | |
42 | Correct spelling in comments. | |
43 | ||
2974be62 AM |
44 | 2014-08-19 Alan Modra <amodra@gmail.com> |
45 | ||
46 | * configure.ac: Invoke AC_PLUGINS. | |
47 | * configure: Regenerate. | |
48 | * config.in: Regenerate. | |
49 | ||
60d847df MF |
50 | 2014-03-10 Mike Frysinger <vapier@gentoo.org> |
51 | ||
52 | * sim_calls.c (sim_do_command): Add const to cmd. | |
53 | ||
b2b255bd MF |
54 | 2014-03-05 Mike Frysinger <vapier@gentoo.org> |
55 | ||
56 | * sim_calls.c (sim_load): Add const to prog. | |
57 | ||
0d8a6ab7 AK |
58 | 2014-02-17 Aaro Koskinen <aaro.koskinen@iki.fi> |
59 | ||
60 | PR gdb/12202 | |
61 | * Makefile.in (psim): Delete $(LIBS) from dependency. | |
62 | ||
490e58e2 HPN |
63 | 2013-10-15 Hans-Peter Nilsson <hp@axis.com> |
64 | ||
65 | * Makefile.in (srcsim): New variable. | |
66 | (version.c): Adjust call to $(srccom)/create-version.sh as per change. | |
67 | ||
d6c2da54 TT |
68 | 2013-06-28 Tom Tromey <tromey@redhat.com> |
69 | ||
70 | * Make-common.in (version.c): Use version.in, not | |
71 | common/version.in. | |
72 | ||
b652c496 JB |
73 | 2013-06-24 Joel Brobecker <brobecker@adacore.com> |
74 | ||
75 | * Makefile.in (srccom): New variable. | |
76 | (version.c): Update rule dependencies, and re-implement using | |
77 | sim/common/create-version.sh. | |
78 | ||
3fd5675a HAQ |
79 | 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> |
80 | ||
81 | revert: | |
82 | 2013-04-19 Nathan Froyd <froydnj@codesourcery.com> | |
83 | * ppc-instructions (isel): New instruction. | |
84 | ||
b21c850d JB |
85 | 2013-04-19 Nathan Froyd <froydnj@codesourcery.com> |
86 | ||
87 | * ppc-instructions (isel): New instruction. | |
88 | ||
19a3671c JB |
89 | 2012-12-19 Joel Brobecker <brobecker@adacore.com> |
90 | ||
91 | * COPYING: Update to GPL version 3. | |
92 | ||
5f3ef9d0 JB |
93 | 2012-06-15 Joel Brobecker <brobecker@adacore.com> |
94 | ||
95 | * configure: Regenerate. | |
96 | ||
a493e3e2 PA |
97 | 2012-05-24 Pedro Alves <palves@redhat.com> |
98 | ||
99 | PR gdb/7205 | |
0d8a6ab7 | 100 | * Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
a493e3e2 | 101 | |
51e40b12 MF |
102 | 2012-03-14 Michael Haubenwallner <michael.haubenwallner@salomon.at> |
103 | ||
104 | * emul_unix.c (st_pad1, st_pad2, st_pad3): Undefine. | |
105 | ||
12c3e59c JB |
106 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
107 | ||
108 | * dp-bit.c: Reformat copyright header. | |
109 | ||
c35599f8 TT |
110 | 2011-02-11 Ben Golding <ben_golding@yahoo.co.uk> |
111 | ||
112 | * events.c: add #include <stdlib.h> for free(). Fix PR build/13372. | |
113 | ||
9c082ca8 MF |
114 | 2011-10-17 Mike Frysinger <vapier@gentoo.org> |
115 | ||
116 | * configure.ac: Change include to common/acinclude.m4. | |
117 | ||
6ffe910a MF |
118 | 2011-10-17 Mike Frysinger <vapier@gentoo.org> |
119 | ||
120 | * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER | |
121 | call. Replace common.m4 include with SIM_AC_COMMON. | |
122 | * configure: Regenerate. | |
123 | ||
94e4274d JB |
124 | 2011-06-09 Joel Brobecker <brobecker@adacore.com> |
125 | ||
126 | * psim.c (psim_options): Fix length of comparison when checking | |
127 | for --sysroot= option. | |
128 | ||
807b48af | 129 | 2011-06-08 Joel Brobecker <brobecker@adacore.com> |
11eef9ed JB |
130 | |
131 | * psim.c (psim_options): Add option that cause the error | |
132 | in invalid-option error messages. Print the usage when | |
133 | detecting an invalid long-name option. | |
134 | ||
807b48af | 135 | 2011-06-08 Joel Brobecker <brobecker@adacore.com> |
8294052c JB |
136 | |
137 | * psim.c (psim_options): Accept and ignore `--sysroot=...'. | |
138 | ||
91c67767 JB |
139 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix) |
140 | ||
141 | From Stephen Kitt <steve@sk2.org> | |
142 | * vm.c (vm_synchronize_context): Spelling fix in function | |
143 | documentation. | |
144 | ||
af9f7da7 MF |
145 | 2011-04-16 Mike Frysinger <vapier@gentoo.org> |
146 | ||
147 | * sim_calls.c (sim_complete_command): New stub function. | |
148 | ||
d79fe0d6 MF |
149 | 2011-02-14 Mike Frysinger <vapier@gentoo.org> |
150 | ||
151 | * cap.c (cap_remove): Change zfree to free. | |
152 | * corefile.c (core_init): Likewise. | |
153 | * device.c (detach_device_interrupt_edge): Likewise. | |
154 | (clean_device_interrupt_edges): Likewise. | |
155 | (device_instance_delete): Likewise. | |
156 | (device_set_property): Likewise. | |
157 | (clean_device_properties): Likewise. | |
158 | (device_add_range_array_property): Likewise. | |
159 | (device_add_reg_array_property): Likewise. | |
160 | * emul_bugapi.c (emul_bugapi_do_read): Likewise. | |
161 | (emul_bugapi_do_write) | |
162 | * emul_netbsd.c (write_direntries): Likewise. | |
163 | (do_read): Likewise. | |
164 | (do_write): Likewise. | |
165 | (do_getdirentries): Likewise. | |
166 | * emul_unix.c (do_unix_read): Likewise. | |
167 | (do_unix_write): Likewise. | |
168 | * events.c (event_queue_init): Likewise. | |
169 | (event_queue_deschedule): Likewise. | |
170 | (event_queue_process): Likewise. | |
171 | * hw_disk.c (open_disk_image): Likewise. | |
172 | (hw_disk_instance_delete): Likewise. | |
173 | * hw_eeprom.c (hw_eeprom_instance_delete): Likewise. | |
174 | * hw_htab.c (htab_dma_binary): Likewise. | |
175 | * hw_init.c (update_for_binary_section): Likewise. | |
176 | * hw_memory.c (hw_memory_set_available): Likewise. | |
177 | (hw_memory_init_address): Likewise. | |
178 | (hw_memory_instance_release): Likewise. | |
179 | * pk_disklabel.c (disklabel_delete): Likewise. | |
180 | * table.c (table_push): Likewise. | |
181 | * tree.c (parse_reg_property): Likewise. | |
182 | (parse_ranges_property): Likewise. | |
183 | (parse_string_property): Likewise. | |
184 | * main.c (zfree): Delete. | |
185 | * sim_calls.c (zfree): Likewise. | |
186 | * sim_callbacks.h (zfree): Likewise. | |
187 | ||
dae477fe AB |
188 | 2011-01-11 Andrew Burgess <aburgess@broadcom.com> |
189 | ||
190 | * gdb-sim.c (sim_store_register): Update return value to | |
191 | match new API. | |
192 | ||
2e0ddd92 JB |
193 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
194 | ||
195 | * psim.texinfo: Copyright year update. | |
196 | ||
5558e7e6 MF |
197 | 2010-04-14 Mike Frysinger <vapier@gentoo.org> |
198 | ||
199 | * sim_calls.c (sim_write): Add const to buf arg. | |
200 | ||
aaea6334 AS |
201 | 2010-02-14 Andreas Schwab <schwab@linux-m68k.org> |
202 | ||
203 | * ppc-instructions: Fix missing assignment in last change. | |
204 | ||
2ad0ff16 AS |
205 | 2010-02-05 Andreas Schwab <schwab@linux-m68k.org> |
206 | ||
207 | * ppc-instructions: Fix aliasing bugs when calling | |
208 | invalid_arithemetic_operation. | |
209 | ||
68a3e151 NF |
210 | 2009-11-13 Nathan Froyd <froydnj@codesourcery.com> |
211 | ||
212 | * configure.ac: If build != host, create a separate build-config.h | |
213 | file desecribing the build machine. | |
214 | * configure: Regenerate. | |
215 | * lf.c: Include build-config.h instead of config.h. | |
216 | * dgen.c: Likewise. | |
217 | * igen.c: Likewise. | |
218 | * misc.c: Likewise. | |
219 | * misc.h: Likewise. | |
220 | * filter.c: Likewise. | |
221 | * table.c: Likewise. | |
222 | ||
5bc4da4d JS |
223 | 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com> |
224 | ||
225 | * std-config.h: Fix spelling error. | |
226 | ||
93cfa9cf JB |
227 | 2009-09-22 Joel Sherrill <joel.sherrill@oarcorp.com> |
228 | ||
229 | * main.c: Fix spelling error. | |
230 | ||
6ae84130 DE |
231 | 2009-09-15 Andreas Tobler <andreast-list@fgznet.ch> |
232 | Doug Evans <dje@google.com> | |
233 | ||
bf0275b1 | 234 | * configure.ac (sim_hwflags): Use AC_DEFINE to define HAVE_UNION_SEMUN. |
6ae84130 | 235 | * configure: Regenerate. |
bf0275b1 | 236 | * config.in: Regenerate. |
5b81ce52 | 237 | * hw_sem.c: (HAVE_UNION_SEMUN): Renamed from HAS_UNION_SEMUN. |
6ae84130 | 238 | |
d6416cdc RW |
239 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
240 | ||
81ecdfbb RW |
241 | * config.in: Regenerate. |
242 | * configure: Likewise. | |
243 | ||
d6416cdc RW |
244 | * configure: Regenerate. |
245 | ||
96e946ca RW |
246 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
247 | ||
248 | * Makefile.in (datarootdir): New variable. | |
249 | ||
7631938e NF |
250 | 2009-01-12 Nathan Froyd <froydnj@codesourcery.com> |
251 | ||
252 | * ppc-instructions (sync): Add L field. | |
253 | ||
e3b96e32 JS |
254 | 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com> |
255 | ||
256 | * ppc-instructions, ppc-spr-table: Add ability | |
257 | to read tbrl and tbru special registers. | |
258 | ||
00a0b122 JS |
259 | 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com> |
260 | ||
261 | * configure: Regenerated. | |
262 | * configure.ac: Add test for System V shared memory and semaphore. | |
263 | * debug.c, debug.h: Add trace support for new devices. | |
264 | * hw_sem.c, hw_shm.c: New files. | |
265 | * Makefile.in: Add hw_sem.c and hw_shm.c. | |
266 | ||
35689115 HPN |
267 | 2008-07-11 Hans-Peter Nilsson <hp@axis.com> |
268 | ||
269 | * configure.ac: Add test for libz and zlib.h. | |
270 | * Makefile.in (LIBS): Set from @LIBS@. | |
271 | * configure: Regenerate. | |
272 | * config.in: Ditto. | |
273 | ||
6efef468 | 274 | 2008-06-06 Vladimir Prus <vladimir@codesourcery.com> |
72f4393d L |
275 | Daniel Jacobowitz <dan@codesourcery.com> |
276 | Joseph Myers <joseph@codesourcery.com> | |
6efef468 JM |
277 | |
278 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
279 | * configure, config.in: Regenerated. | |
280 | * Makefile.in (LIB_OBJ): Add version.o. | |
281 | (version.c, version.o): New rules. | |
282 | * psim.c (psim_usage): Add help parameter. Print the bug URL. | |
283 | Exit with code 0 for help. | |
284 | (psim_options): Update calls to psim_usage. Handle --help and | |
285 | --version. | |
286 | * psim.h (psim_usage): Update prototype. | |
287 | * main.c (main): Update psim_usage call. | |
288 | ||
29035cbe NH |
289 | 2008-03-14 Nick Hudson <nick.hudson@dsl.pipex.com |
290 | ||
72f4393d L |
291 | * configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR. |
292 | * configure: Regenerate. | |
29035cbe | 293 | |
7cc46491 DJ |
294 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
295 | ||
296 | * gdb-sim.c (regnum2spr): Rename to... | |
297 | (sim_spr_register_name): ... this. Make global. | |
298 | ||
0ad36c84 JG |
299 | 2007-09-04 Jerome Guitton <guitton@adacore.com> |
300 | ||
301 | * sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file | |
302 | name property before parsing it. | |
303 | ||
edc5d9ec HPN |
304 | 2006-12-21 Hans-Peter Nilsson <hp@axis.com> |
305 | ||
306 | * acconfig.h: Remove. | |
307 | * config.in: Regenerate. | |
308 | ||
6a58c676 AC |
309 | 2006-11-22 Tom Marn <tom.marn@telargo.com> |
310 | ||
311 | Committed by Andrew Cagney. | |
312 | * ppc-instructions: Implement optional PowerPC stfiwx instruction. | |
72f4393d | 313 | |
08f7d065 FF |
314 | 2006-07-12 Fred Fish <fnf@specifix.com> |
315 | ||
316 | * sim-endian.h (asm/byteorder.h): Don't include private kernel | |
317 | header. | |
318 | ||
e85e3205 RE |
319 | 2006-06-13 Richard Earnshaw <rearnsha@arm.com> |
320 | ||
321 | * configure: Regenerated. | |
322 | ||
20e95c23 DJ |
323 | 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> |
324 | ||
325 | * Makefile.in: Replace INTLLIBS and INTLDEPS with LIBINTL | |
326 | and LIBINTL_DEP everywhere. | |
327 | (INTL_DIR, INTL_SRC): Remove. | |
328 | (INTL_CFLAGS): Use INCINTL. | |
329 | * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. | |
330 | * configure: Regenerated. | |
331 | ||
4b164edf AS |
332 | 2006-05-05 Andreas Schwab <schwab@suse.de> |
333 | ||
334 | * configure.ac (CFLAGS_FOR_BUILD): Set and substitute. | |
335 | * configure: Regenerate. | |
336 | ||
337 | * Makefile.in (CFLAGS_FOR_BUILD): Define. | |
338 | (BUILD_CFLAGS): Use it instead of hardcoding "-g -O". | |
339 | (gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS. | |
340 | ||
d8006e05 AS |
341 | 2006-04-23 Andreas Schwab <schwab@suse.de> |
342 | ||
343 | * Makefile.in (tmp-ld-decode): Fix dependencies. | |
344 | (tmp-ld-cache): Likewise. | |
345 | (tmp-ld-insn): Likewise. | |
346 | ||
59f6d9d6 MM |
347 | 2006-02-01 Mark Mitchell <mark@codesourcery.com> |
348 | ||
349 | * emul_netbsd.c (emul_netbsd_create): Quote file-name property. | |
350 | * emul_unix.c (emul_unix_create): Likewise. | |
351 | * tree.c (libiberty.h): Include it. | |
352 | (tree_quote_property): New function. | |
353 | * tree.h (tree_quote_property): Declare. | |
354 | ||
e8a15d32 MM |
355 | 2006-01-25 Mark Mitchell <mark@codesourcery.com> |
356 | ||
357 | * words.h (natural32): Define as "int". | |
358 | ||
0b06d9f4 MM |
359 | 2006-01-23 Mark Mitchell <mark@codesourcery.com> |
360 | ||
361 | * words.h (signed32): Define as "int". | |
362 | (unsigned32): Define as "unsigned int". | |
363 | ||
058ad269 MM |
364 | 2005-11-28 Mark Mitchell <mark@codesourcery.com> |
365 | ||
366 | * configure.ac (USE_WIN32API): Define it. | |
367 | * configure.in: Regenerate. | |
368 | * config.in: Likewise. | |
369 | * emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY. | |
370 | * emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir. | |
371 | ||
aba6488e MM |
372 | 2005-11-28 Mark Mitchell <mark@codesourcery.com> |
373 | ||
3a611ef5 | 374 | * psim.c: Include gdb/signals.h. |
72f4393d | 375 | |
aba6488e MM |
376 | * sim_calls.c (gdb/signals.h): Include it. |
377 | (sim_stop_reason): Use TARGET_SIGNAL_*. | |
378 | * psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*. | |
379 | ||
fb6ae37f BE |
380 | 2005-07-15 Ben Elliston <bje@au.ibm.com> |
381 | ||
382 | * hw_htab.c (bfd_get_section_lma): Remove macro; use BFD's. | |
383 | ||
50427dbf BE |
384 | 2005-07-15 Ben Elliston <bje@au.ibm.com> |
385 | ||
386 | * hw_init.c: Comment out tokens after #endif directive. | |
387 | * hw_register.c: Likewise. | |
388 | * hw_trace.c: Likewise. | |
389 | * hw_vm.c: Likewise. | |
390 | ||
f5e8ac0e MI |
391 | 2005-04-20 Manoj Iyer <manjo@austin.ibm.com> |
392 | ||
393 | * psim.c: Added libiberty.h header file. | |
394 | ||
30e66173 | 395 | 2005-04-18 Manoj Iyer <manjo@austin.ibm.com> |
5d74254d | 396 | |
30e66173 MI |
397 | * configure.ac: Added check for long long. |
398 | * config.in: Regenerated. | |
399 | * configure: Regenerated. | |
400 | * words.h: Modified logic to check for HAVE_LONG_LONG instead of | |
401 | __GNUC__, added config.h header file. | |
402 | ||
170cd118 AG |
403 | 2005-03-25 Anthony Green <green@redhat.com> |
404 | ||
405 | * tree.c (parse_reg_property): Fix memset usage. | |
406 | ||
2b193c4a MK |
407 | 2005-03-23 Mark Kettenis <kettenis@gnu.org> |
408 | ||
409 | * configure: Regenerate. | |
410 | ||
38f48d72 AC |
411 | 2005-01-11 Andrew Cagney <cagney@localhost.localdomain> |
412 | ||
413 | * configure.ac: Delete AC_CONFIG_AUX_DIR. | |
414 | * configure: Re-generate. | |
415 | ||
b7026657 AC |
416 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
417 | ||
418 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
419 | * configure: Re-generate. | |
420 | ||
38edcf8a AS |
421 | 2005-01-03 Andreas Schwab <schwab@suse.de> |
422 | ||
423 | * Makefile.in (hw_com.o, hw_eeprom.o): Depend on | |
424 | $(DEVICE_TABLE_H). | |
425 | ||
99b57276 AS |
426 | 2004-11-16 Andreas Schwab <schwab@suse.de> |
427 | ||
428 | * Makefile.in (defines.h): Depend on tmp-defines. | |
429 | (hw.c hw.h): Depend on tmp-hw. | |
430 | (pk.h): Depend on tmp-pk. | |
431 | ||
2b3cc94f AS |
432 | 2004-11-11 Andreas Schwab <schwab@suse.de> |
433 | ||
434 | * sim_calls.c: Include "libiberty.h". | |
435 | ||
1f362c96 AC |
436 | 2004-09-24 Ian Lance Taylor <ian@wasabisystems.com> |
437 | ||
438 | Committed by Andrew Cagney. | |
439 | * configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h. | |
440 | Check for struct statfs. | |
441 | * emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS. | |
442 | * configure, config.in: Regenerate. | |
443 | ||
2a0c8810 NN |
444 | 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org> |
445 | ||
446 | * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc. | |
447 | ||
91cd1042 AC |
448 | 2004-08-04 Andrew Cagney <cagney@gnu.org> |
449 | Jim Blandy <jimb@redhat.com> | |
450 | ||
451 | * sim_callbacks.h (simulator): Declare. | |
452 | * Makefile.in (gdb-sim.o): New rule. | |
453 | (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c. | |
454 | (DEFS_H): Delete. | |
455 | (GDB_SIM_PPC_H): Define. | |
456 | * gdb-sim.c: New file. | |
457 | * sim_calls.c: Do not include "defs.h". | |
458 | (simulator): Drop static. | |
459 | (sim_store_register, sim_fetch_register): Delete. | |
460 | ||
f37b123d AC |
461 | 2004-08-04 Andrew Cagney <cagney@gnu.org> |
462 | ||
463 | * Back out accidently committed change. | |
464 | ||
9f643768 JB |
465 | 2004-08-04 Jim Blandy <jimb@redhat.com> |
466 | ||
467 | Use a fixed register numbering when communicating with the PowerPC | |
468 | simulator. | |
469 | * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not | |
470 | include GDB's "defs.h". | |
471 | (gdb_register_name_table): New variable. | |
472 | (gdb_register_name_table_size): New enum constant. | |
473 | (gdb_register_name): New function. | |
474 | (sim_fetch_register, sim_store_register): Use gdb_register_name, | |
475 | instead of calling gdbarch_register_name. | |
476 | * Makefile.in (GDB_SIM_PPC_H): New variable. | |
477 | (DEFS_H): Delete variable. | |
478 | (sim_calls.o): Update dependencies. | |
479 | ||
5a645dc5 AC |
480 | 2004-07-26 Andrew Cagney <cagney@gnu.org> |
481 | ||
482 | Problem from Olaf Hering <olh@suse.de>. | |
483 | * Makefile.in (install, installdirs): Add DESTDIR. | |
484 | ||
ea5c7021 BE |
485 | 2004-07-10 Ben Elliston <bje@au.ibm.com> |
486 | ||
487 | * tree.c (parse_integer_property): Comment typo fix. | |
488 | ||
6e9114ad JB |
489 | 2004-07-06 Jim Blandy <jimb@redhat.com> |
490 | ||
491 | * Makefile.in: Update all dependency information. | |
492 | (BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H) | |
493 | (EMUL_GENERIC_H): Values updated. | |
494 | (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H) | |
495 | (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H) | |
496 | (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H) | |
497 | (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H) | |
498 | (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H) | |
499 | (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H) | |
500 | (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H) | |
501 | (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H) | |
502 | (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H) | |
503 | (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H) | |
504 | (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H) | |
505 | (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H) | |
506 | (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H) | |
507 | (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H) | |
508 | (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H) | |
509 | (TREE_H, VM_H, VM_N_H, WORDS_H): New variables. | |
510 | (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o) | |
511 | (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o) | |
512 | (events.o, filter.o, filter_filename.o, filter_host.o) | |
513 | (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o) | |
514 | (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o) | |
515 | (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o) | |
516 | (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o) | |
517 | (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o) | |
518 | (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o) | |
519 | (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o) | |
520 | (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies. | |
521 | ||
71d39cfc JB |
522 | 2004-06-28 Jim Blandy <jimb@redhat.com> |
523 | ||
524 | * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an | |
525 | unsigned type before or-ing it with a 64-bit value. | |
526 | ||
dcb74f96 AM |
527 | 2004-06-15 Alan Modra <amodra@bigpond.net.au> |
528 | ||
529 | * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size | |
530 | instead of bfd_get_section_size_before_reloc. | |
531 | (htab_dma_binary(bfd): Likewise. | |
532 | * hw_init.c (update_for_binary_section(bfd): Likewise. | |
533 | ||
3e5e53f9 DJ |
534 | 2004-05-10 Daniel Jacobowitz <dan@debian.org> |
535 | ||
536 | * configure.in (sim_fpu_cflags): Add -I../common. | |
537 | * configure: Regenerated. | |
538 | ||
54273454 AC |
539 | 2004-01-27 Andrew Cagney <cagney@redhat.com> |
540 | ||
541 | * ppc-instructions: Update copyright. | |
542 | (convert_to_integer): Add trailing ";" to label. | |
543 | ||
77be8302 MS |
544 | 2003-10-16 Michael Snyder <msnyder@redhat.com> |
545 | ||
546 | * emul_netbsd.c: Only a comment may follow an #endif. | |
547 | ||
c1da8ded MS |
548 | 2003-10-15 Michael Snyder <msnyder@redhat.com> |
549 | ||
550 | * Makefile.in (sim_calls.o): No longer depends on gdb/tm.h. | |
551 | ||
345d88d9 AC |
552 | 2003-06-22 Andrew Cagney <cagney@redhat.com> |
553 | ||
554 | Written by matthew green <mrg@redhat.com>, with fixes from Aldy | |
555 | Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and | |
556 | Nick Clifton <nickc@redhat.com>. | |
72f4393d | 557 | |
345d88d9 AC |
558 | * ppc-instructions: Include altivec.igen and e500.igen. |
559 | (model_busy, model_data): Add vr_busy and vscr_busy. | |
560 | (model_trace_release): Trace vr_busy and vscr_busy. | |
561 | (model_new_cycle): Update vr_busy and vscr_busy. | |
562 | (model_make_busy): Update vr_busy and vscr_busy. | |
563 | * registers.c (register_description): Add Altivec and e500 | |
564 | registers. | |
565 | * psim.c (psim_read_register, psim_read_register): Handle Altivec | |
566 | and e500 registers. | |
567 | * ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers. | |
568 | * configure.in (sim_filter): When *altivec* add "av". When *spe* | |
569 | or *simd* add e500. | |
570 | (sim_float): When *altivec* define WITH_ALTIVEC. When *spe* add | |
571 | WITH_E500. | |
572 | * configure: Re-generate. | |
573 | * e500.igen, altivec.igen: New files. | |
574 | * e500_expression.h, altivec_expression.h: New files. | |
575 | * idecode_expression.h: Update copyright. Include | |
576 | "e500_expression.h" and "altivec_expression.h". | |
577 | * e500_registers.h, altivec_registers.h: New files. | |
578 | * registers.h: Update copyright. Include "e500_registers.h" and | |
579 | "altivec_registers.h". | |
580 | (registers): Add Altivec and e500 specific registers. | |
581 | * Makefile.in (IDECODE_H): Add "idecode_e500.h" and | |
582 | "idecode_altivec.h". | |
583 | (REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h". | |
584 | (tmp-igen): Add dependencies on altivec.igen and e500.igen . | |
585 | ||
911b2333 AC |
586 | 2003-06-22 Andrew Cagney <cagney@redhat.com> |
587 | ||
588 | Problems reported by Joshua LeVasseur. | |
589 | * emul_chirp.c: Update copyright. | |
590 | (chirp_emul_nextprop): Return the first property. | |
591 | * hw_htab.c: Update copyright. | |
592 | (htab_decode_hash_table): Fix check for htab size. | |
593 | ||
0f2f1341 AC |
594 | 2003-06-21 Andrew Cagney <cagney@redhat.com> |
595 | ||
945d18fb AC |
596 | * interrupts.c: Update copyright. |
597 | (external_interrupt): Fix test for already pending interrupt. | |
598 | Problem found by Joshua LeVasseur. | |
599 | ||
21f86aab AC |
600 | * ppc-instructions: Add missing +8 line. Found by blofeldus at |
601 | yahoo.com. | |
72f4393d | 602 | |
21f86aab AC |
603 | 2003-06-21 Andrew Cagney <cagney@redhat.com> |
604 | ||
605 | From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c | |
606 | (hw_nvram_init_address): Correct call to memset--swap second and | |
607 | third arguments. | |
0f2f1341 | 608 | |
61ca1de7 AC |
609 | 2003-06-21 Andrew Cagney <cagney@redhat.com> |
610 | ||
611 | * hw_com.c (hw_com_device_init_data): Check that the output, and | |
612 | not input file opened. Pointed out by masahino tky3.3web.ne.jp. | |
613 | ||
601cecf0 AC |
614 | 2003-06-20 Andrew Cagney <cagney@redhat.com> |
615 | ||
616 | * sim_calls.c (sim_create_inferior): Assert that | |
617 | psim_write_register succeeded. | |
618 | (sim_fetch_register, sim_store_register): Make "regname" constant. | |
619 | Delete Altivec hack. Return result from psim_read_register / | |
620 | psim_write_register. | |
621 | * psim.h (psim_read_register, psim_write_register): Change return | |
622 | type to int. Update comments. | |
623 | * psim.c: Update copyright. | |
624 | (psim_stack): Assert that the psim_read_register worked. | |
625 | (psim_read_register, psim_read_register): Return the register's | |
626 | size. Allocate the cooked buffer dynamically. | |
627 | * hw_register.c: Update copyright. | |
628 | (do_register_init): Check that psim_write_register succeeded. | |
629 | * hw_init.c: Update copyright. | |
630 | (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert | |
631 | that the register transfer worked. | |
632 | ||
d81bb16a AC |
633 | 2003-06-19 Andrew Cagney <cagney@redhat.com> |
634 | ||
635 | * ld-insn.h: Update copyright. | |
636 | (cache_fields): Define. | |
637 | (insn_table_fields): Add insn_field_6 and insn_field_7. | |
638 | (load_insn_table): Pass in the "cache_rules". | |
639 | * ld-insn.c: Update copyright. | |
640 | (load_insn_table): Add parameter "cache_rules". Handle "cache", | |
641 | "computed" and "scratch" fields. | |
642 | (main): Pass "cache_rules" to load_insn_table. | |
643 | * ld-cache.h: Update copyright. | |
644 | (append_cache_table): Declare. | |
645 | * ld-cache.c: Update copyright. | |
646 | (append_cache_table): New function. | |
647 | (load_cache_table): Call. | |
648 | * gen-model.c: Include "ld-cache.h". | |
649 | * gen-itable.c: Include "ld-cache.h". | |
650 | * igen.c: Move #include "ld-cache.h" to earlier. Update | |
651 | copyright. | |
652 | (main): Permit a NULL "cache_rules". Pass address of | |
653 | "cache_rules" to load_insn_table. | |
654 | * Makefile.in (tmp-ld-insn): Add "ld-cache.o". | |
655 | (tmp-igen): Do not include ppc-cache-rules. | |
656 | (gen-itable.o, gen-model.o): Add "ld-cache.h". | |
657 | * ppc-cache-rules: Delete file. | |
658 | * ppc-instructions: Add cache rules. | |
659 | ||
8d64d0fd AC |
660 | 2003-06-19 Andrew Cagney <cagney@redhat.com> |
661 | ||
662 | * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete. | |
663 | (SIM_FPU_FLAGS): Define. | |
664 | (icache.o): Delete explicit compile command. | |
665 | (semantics.o, idecode.o): Delete explicit compile command. | |
666 | (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS. | |
667 | * gen-support.c (gen_support_c): Generate #include of | |
668 | "sim-inline.h" and "sim-fpu.h", but conditional on | |
669 | HAVE_COMMON_FPU. | |
670 | * gen-idecode.c (gen_idecode_c): Ditto. | |
671 | * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of | |
672 | "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional. | |
673 | Move to before "support.h". | |
674 | * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update | |
675 | copyright. | |
72f4393d | 676 | |
ae451ac6 ILT |
677 | 2003-05-16 Ian Lance Taylor <ian@airs.com> |
678 | ||
679 | * Makefile.in (various): Use $(SHELL) whenever we invoke | |
680 | move-if-change. | |
681 | ||
6b4a8935 AC |
682 | 2003-02-27 Andrew Cagney <cagney@redhat.com> |
683 | ||
684 | * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd. | |
685 | ||
fe1198e6 AC |
686 | 2002-09-27 Andrew Cagney <ac131313@redhat.com> |
687 | ||
688 | * hw_disk.c (hw_disk_init_address): Set device type to "block", | |
689 | not "disk". | |
690 | ||
bf1024d6 AC |
691 | 2002-06-22 Andrew Cagney <ac131313@redhat.com> |
692 | ||
693 | * Makefile.in (INTL_SRC): Define. | |
694 | (INTL_CFLAGS): Define. | |
695 | (INTL_DIR): Define. | |
696 | (STD_CFLAGS): Add INTL_CFLAGS. | |
697 | ||
47243d69 EZ |
698 | 2002-06-17 Elena Zannoni <ezannoni@redhat.com> |
699 | ||
700 | * psim.c (psim_options): Don't choke when gdb invokes us with | |
701 | the --architecture option, just ignore it. | |
702 | ||
c8cca39f AC |
703 | 2002-06-16 Andrew Cagney <ac131313@redhat.com> |
704 | ||
705 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
706 | ||
3c25f8c7 AC |
707 | 2002-06-08 Andrew Cagney <cagney@redhat.com> |
708 | ||
709 | * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h". | |
710 | * sim_calls.c: Ditto. | |
711 | ||
d7a97a9b DD |
712 | 2002-05-30 DJ Delorie <dj@redhat.com> |
713 | ||
714 | * lf.c (lf_print__gnu_copyleft): Convert multiline strings to | |
715 | compatible format. | |
716 | * gen-idecode.c (print_run_until_stop_body): Likewise. | |
717 | * gen-model.c (gen_model_c): Likewise. | |
718 | ||
d395ade3 EZ |
719 | 2002-04-15 Elena Zannoni <ezannoni@redhat.com> |
720 | ||
72f4393d L |
721 | * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for |
722 | AltiVec registers as a temporary stopgap. | |
d395ade3 | 723 | |
23c7880c DB |
724 | 2002-03-24 David O'Brien <obrien@FreeBSD.org> |
725 | ||
726 | * ppc/hw_disk.c: Export a disk device property. | |
727 | ||
ec80ed80 AC |
728 | 2002-03-23 Andrew Cagney <ac131313@redhat.com> |
729 | ||
730 | From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>: | |
731 | * ppc-instructions (lswx): Do the register control with the | |
732 | register count. Initialize the right register in the loop. | |
733 | (mtfsfi) : Correct prefix for the instruction. | |
734 | ||
080fe24b AC |
735 | 2002-02-24 Andrew Cagney <ac131313@redhat.com> |
736 | ||
737 | From wiz at danbala: | |
738 | * std-config.h: Fix grammar and typos. Update copyright. | |
739 | Fix PR gdb/287. | |
740 | ||
43c4bab0 MG |
741 | 2002-01-12 matthew green <mrg@redhat.com> |
742 | ||
743 | * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen. | |
744 | * igen.c (main): Change -I to add include paths for :include: | |
745 | files. | |
746 | Implement -G as per sim/igen, with just gen-icache=N support. | |
747 | Call load_insn_table() with the built include path. | |
748 | ||
749 | * ld-insn.c (parse_include_entry): New. Load an :include: file. | |
750 | (load_insn_table): New `includes' argument. Look for :include: | |
751 | entries and call parse_include_entry() for them. | |
752 | (main): Adjust load_insn_table() call. | |
753 | * ld-insn.h (model_include_fields): New enum. | |
754 | (load_insn_table): Update prototype. | |
755 | * table.c (struct _open_table, struct _table): Rework | |
756 | structures to handle included files. | |
757 | (table_push): Move the guts of table_open() here. | |
758 | ||
759 | * table.c (struct _open table, struct table): Make table object an | |
760 | indirect ptr to the current table file. | |
761 | (current_line, new_table_entry, next_line): Make file arg type | |
762 | open_table. | |
763 | (table_open): Use table_push. | |
764 | (table_entry_read): Point variable file at current table, at eof, pop | |
765 | last open table. | |
766 | ||
767 | * misc.h (NZALLOC): New macro. From sim/igen. | |
768 | ||
769 | * table.h, table.c (table_push): New function. | |
770 | ||
5c884464 MG |
771 | 2002-01-04 matthew green <mrg@redhat.com> |
772 | ||
773 | * bits.c (LSMASKED64): New inline function. | |
774 | (LSEXTRACTED64): Likewise. | |
775 | * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from | |
776 | sim/common/sim-bits.h | |
777 | (LSMASKED64, LSEXTRACTED64): New functions definitions. | |
778 | * Makefile.in (sim-bits.o): Remove target. | |
779 | ||
780 | * main.c (zalloc): Fix typo in error message. | |
781 | ||
3a11ea24 AC |
782 | 2001-12-16 Andrew Cagney <ac131313@redhat.com> |
783 | ||
784 | * configure.in (sim_fpu): Don't add sim-bits.o. | |
785 | * configure: Re-generate. | |
786 | ||
de46f45f MG |
787 | 2001-12-15 matthew green <mrg@redhat.com> |
788 | ||
789 | * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h". | |
790 | (sim_io_error): New function. | |
791 | * sim_calls.c: (sim_io_error): New function. | |
792 | ||
d29d5195 MG |
793 | 2001-12-14 matthew green <mrg@redhat.com> |
794 | ||
795 | * Makefile.in (LIB_OBJ): Add @sim_fpu@. | |
796 | (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables. | |
797 | (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS. | |
798 | (sim-fpu.o, sim-bits.o, tconfig.h): New targets. | |
799 | * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a | |
800 | check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags. | |
801 | * configure: Regenerate. | |
802 | * device.h (device_find_integer_array_property): Match function definition. | |
803 | * gen-icache.c (print_icache_internal_function_declaration): Rename | |
804 | INLINE_ICACHE to PSIM_INLINE_ICACHE. | |
805 | * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE | |
806 | to PSIM_INLINE_IDECODE. | |
807 | * gen-semantics.c (print_semantic_function_header): Rename | |
808 | EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS. | |
809 | * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to | |
810 | PSIM_INLINE_SUPPORT. | |
811 | * igen.c (print_function_name): Also escape `(' and `)'. | |
812 | (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS. | |
813 | (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h" | |
814 | * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN. | |
815 | (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN. | |
816 | (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN. | |
817 | (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS. | |
818 | (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT. | |
819 | (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT. | |
820 | (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS. | |
821 | (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS. | |
822 | (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE. | |
823 | (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE. | |
824 | (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE. | |
825 | (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE. | |
826 | * options.c (options_inline): Fix names. | |
827 | * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN. | |
828 | * sim-endian.h: Likewise. | |
829 | * sim-main.h: New file. | |
830 | * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. | |
831 | ||
6654b4ae AC |
832 | 2001-12-01 Andrew Cagney <ac131313@redhat.com> |
833 | ||
834 | From Mark Peek. | |
835 | * ppc-spr-table: Add SDA and PIR. | |
836 | ||
bebd2b35 AC |
837 | 2001-10-29 Andrew Cagney <ac131313@redhat.com> |
838 | ||
839 | * tree.c (parse_size): Assert #size-cells > 0. | |
840 | (parse_address): Ditto for #address-cells. | |
841 | (parse_reg_property): Only parse the size when #size-cells is | |
842 | non-zero. | |
843 | ||
560ba567 AC |
844 | 2001-10-25 Andrew Cagney <ac131313@redhat.com> |
845 | ||
846 | * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb. | |
847 | * hw_htab.c (htab_map_binary): Don't try to map the text section | |
848 | when it is empty. | |
849 | * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not | |
850 | CHIRP_LOAD_BASE. | |
851 | (emul_chirp_create): Map in the interrupt table. | |
852 | ||
54cfd411 DJ |
853 | 2001-07-16 Daniel Jacobowitz <drow@mvista.com> |
854 | ||
855 | * Makefile.in: Add dependencies on $(CPU_H). | |
856 | ||
d4481806 AC |
857 | Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net> |
858 | ||
859 | * hw_init.c (dma_file): Fixed problem with loading last 1KB of | |
860 | file. | |
72f4393d | 861 | |
c6631388 AC |
862 | 2001-03-04 Andrew Cagney <ac131313@redhat.com> |
863 | ||
864 | * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and | |
865 | <errno.h>. | |
866 | (do_stat): Only do SYS test when SYS_stat defined. | |
867 | (do_sigprocmask): Ditto for SYS_sigprocmask. | |
868 | (do_fstat): Ditto for SYS_fstat. | |
869 | (do_getdirentries): Ditto for SYS_getdirentries. | |
870 | (do_lstat): Ditto for SYS_lstat. | |
871 | ||
428e1889 GK |
872 | 2001-01-15 Geoffrey Keating <geoffk@redhat.com> |
873 | ||
874 | * emul_netbsd.c (do_open): Translate the flag parameter to the | |
875 | open syscall to the numbers supported by the host. | |
876 | ||
4c15ccf7 GK |
877 | 2000-12-12 Geoffrey Keating <geoffk@redhat.com> |
878 | ||
879 | * sim-endian.h: Don't have parameters on macro definitions which | |
880 | are simply renaming functions, to permit use of XCONCAT2 in both | |
881 | the macro name and the arguments in a use of such a definition. | |
882 | ||
7c721b2a MC |
883 | 2000-11-15 Jim Blandy <jimb@redhat.com> |
884 | ||
885 | * sim_calls.c: Doc fix. | |
886 | (sim_fetch_register, sim_store_register): Call | |
887 | gdbarch_register_name directly, instead of going through | |
888 | REGISTER_NAME macro. | |
889 | ||
ae02957b GK |
890 | 2000-10-24 Geoff Keating <geoffk@cygnus.com> |
891 | ||
892 | * ppc-instructions (lfsux): Correct XO field of lfsux instruction. | |
893 | ||
eb2d80b4 AC |
894 | Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com> |
895 | ||
896 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
897 | ||
0c22be81 AC |
898 | Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com> |
899 | ||
900 | * events.c (event_queue_process): Call update_time_from_event | |
901 | every time an event is removed from the queue. | |
902 | (update_time_from_event): Delete assertion that a negative | |
903 | time_from_event implies an empty event queue. | |
904 | ||
25d704f3 AC |
905 | Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com> |
906 | ||
907 | * interrupts.c (deliver_hardware_interrupt): Print time trace in | |
908 | decimal. | |
909 | * events.c (event_queue_process): Cleanup trace message. | |
910 | (update_time_from_event): Trace full event queue. | |
911 | ||
9ff590a5 GK |
912 | 2000-03-25 Geoff Keating <geoffk@cygnus.com> |
913 | ||
914 | * ppc-instructions (Disabled_Exponent_Underflow): Increment | |
915 | the exponent when denormalizing. | |
916 | ||
d4f3574e SS |
917 | Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com> |
918 | ||
919 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
920 | ||
cd0fc7c3 SS |
921 | 1999-05-08 Felix Lee <flee@cygnus.com> |
922 | ||
72f4393d | 923 | * configure.in: Use AC_EXEEXT instead of AM_EXEEXT. |
cd0fc7c3 | 924 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
72f4393d | 925 | |
7a292a7a SS |
926 | 1999-04-02 Keith Seitz <keiths@cygnus.com> |
927 | ||
928 | * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak | |
929 | the frequency at which the poll_quit callback is called. | |
930 | (poll_quit_count): New global. | |
931 | (sim_io_poll_quit): Only call the poll_quit callback | |
932 | after the specified POLL_QUIT_INTERVAL. | |
933 | ||
934 | 1999-02-22 Jim Lemke <jlemke@cygnus.com> | |
935 | ||
936 | * dc-complex: Force expansion on all bits of field BO. | |
937 | Previously, the least-significant (prediction) bit was ignored. | |
938 | * ppc-instructions (conditional branches): Implement mpc860c0 option. | |
939 | * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option. | |
940 | * psim.c (is_num, psim_options): Added parsing for mpc860c0 option. | |
941 | * interrupts.h: Added "mpc860c0_instruction_program_interrupt". | |
942 | * interrupts.c (program_interrupt): Added handling for above interrupt. | |
943 | ||
c906108c SS |
944 | 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com> |
945 | ||
946 | Make the simulator compatible with the MPC750. It would be nicer | |
947 | to make this a real multi-sim, but that's more work than we have | |
948 | time for. | |
949 | * emul_generic.c (emul_add_tree_options): Only require strict | |
950 | alignment if it was explicitly requested at configuration time. | |
951 | Don't make it the default for little-endian machines. | |
952 | * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4, | |
953 | MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1, | |
954 | THRM2, THRM3): Plop in the MPC750 SPR registers. | |
955 | (DABR): This is weird. This was HID5, but the PPC spec says this | |
956 | should be DABR; why did some random processor use it for something | |
957 | else? The HID5 entry dates back to the original checkin of the | |
958 | simulator code in 1995, so remove it. | |
959 | * sim_calls.c (register_names): Delete this; since the user can | |
960 | now change GDB's list of register names dynamically, we can't | |
961 | pretend there's a static mapping here. | |
962 | (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME | |
963 | function to get the register name. That ought to be accurate. | |
964 | However, we're changing a compile-time dependency (using the | |
965 | REGISTER_NAMES macro) into a link- and run-time dependency | |
966 | (calling REGISTER_NAME, which happens to be a function call on the | |
967 | PPC). | |
968 | ||
969 | 1999-01-22 Jim Lemke <jlemke@cygnus.com> | |
970 | ||
971 | * igen.c(gen_semantics_[ch]): setup/use of new option | |
972 | (-o mpc860c0[=n]). | |
973 | interrupts.[ch](mpc860c0_instruction_program_interrupt): added. | |
974 | ppc-instructions(the four branch insn groups): detect problematic br's. | |
975 | psim.c(is_num - added, psim_options): Parse and init new option. | |
976 | These changes are currently under #ifdef WITH_OPTION_MPC860C0. | |
977 | ||
978 | 1998-12-01 Ken Raeburn <raeburn@cygnus.com> | |
979 | ||
980 | * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99. | |
981 | ||
982 | Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
983 | ||
984 | * main.c (sim_io_poll_quit): Stub function. | |
985 | ||
986 | * events.c (SIM_EVENTS_POLL_RATE): Define. | |
987 | (sim_events_poll): Copy function from common/sim-events.c. | |
988 | (event_queue_init): Copy scheduling of sim_events_poll from same. | |
989 | ||
990 | * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function, | |
991 | poll the external environment. | |
992 | ||
993 | 1998-11-19 Michael Meissner <meissner@cygnus.com> | |
994 | ||
995 | * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the | |
996 | fractional type, so that quiet NaN's aren't treated like | |
997 | Infinities. | |
998 | ||
999 | Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com> | |
1000 | ||
1001 | * table.c (table_open): For cygwin hosts, we need to use the | |
1002 | return value from the read routine as the number of bytes to | |
1003 | process. This apparently is due to text-mode vs binary-mode. If | |
1004 | the mounts are done text-mode, then the size returnedby fstat() | |
1005 | may be different than the number of bytes "read" in text mode. | |
1006 | ||
1007 | Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com> | |
1008 | ||
1009 | * emul_netbsd.c (do_open): fix order-of-evaluation problem. | |
1010 | (do_close): ditto. | |
1011 | (do_fstat): ditto. | |
1012 | (do_lstat): ditto. | |
1013 | ||
1014 | 1998-09-03 Michael Meissner <meissner@cygnus.com> | |
1015 | ||
1016 | * emul_{netbsd,unix}.c: Update copyright year. | |
1017 | ||
1018 | Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com> | |
1019 | ||
1020 | * sim_calls.c (sim_fetch_register, sim_store_register): | |
1021 | return zero when nothing to do. | |
1022 | ||
1023 | 1998-06-26 Michael Meissner <meissner@cygnus.com> | |
1024 | ||
1025 | * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h. | |
1026 | * configure: Regenerate. | |
1027 | * emul_{netbsd,unix}.c (toplevel): No longer try to include | |
1028 | sys/mount.h. It conflicts on Linux when gnu libc2 is used. | |
1029 | ||
1030 | Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com> | |
1031 | ||
1032 | * Makefile.in: The run target depended on a target psim$(EXEEXT), | |
1033 | but there was no such target, only plain psim. So I changed the | |
1034 | run target to depend on psim. | |
1035 | ||
1036 | Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com> | |
1037 | ||
1038 | * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are | |
1039 | now defined in ../common/aclocal.m4, and the double definition causes | |
1040 | problems with AC_SUBST of EXEEXT. | |
1041 | * configure: Regenerate. | |
72f4393d | 1042 | |
c906108c SS |
1043 | Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com> |
1044 | ||
1045 | * aclocal.m4: new file for AM_EXEEXT macro | |
1046 | * configure.in: call AM_EXEEXT | |
1047 | * configure: regenerate with autoconf 2.12.1. | |
1048 | * Makefile.in: add EXEEXT support | |
1049 | ||
1050 | Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche> | |
1051 | ||
1052 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1053 | * config.in: Ditto. | |
1054 | ||
1055 | Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com> | |
1056 | ||
1057 | * acconfig.h: New file. | |
1058 | * configure.in: Reverted change of Apr 24; use sinclude again. | |
1059 | Don't call AC_C_CROSS. | |
1060 | ||
1061 | Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche> | |
1062 | ||
1063 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
1064 | * config.in: Ditto. | |
1065 | ||
1066 | Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com> | |
1067 | ||
1068 | * Makefile.in (top_builddir): New macro. | |
1069 | (INTLLIBS): New macro. | |
1070 | (INTLDEPS): Likewise. | |
1071 | (psim): Depend on INTLDEPS; link against INTLLIBS. | |
1072 | * configure.in: Call CY_GNU_GETTEXT. | |
1073 | ||
1074 | Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com> | |
1075 | ||
1076 | * configure: Regenerate with autoconf 2.12.1. | |
1077 | ||
1078 | Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
1079 | ||
1080 | * psim.c (psim_read_register, psim_write_register): Handle updates | |
1081 | for FPSCR. | |
1082 | ||
1083 | * registers.c (register_description): Reconize "FPSCR". | |
1084 | ||
1085 | * emul_netbsd.c (emul_netbsd_create): When FP available, enable | |
1086 | MSR FP exception mode. Do not enable FPSCR bits. | |
1087 | * emul_unix.c (emul_unix_create): Ditto. | |
1088 | ||
1089 | Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
1090 | ||
1091 | * sim_calls.c (sim_store_register, sim_fetch_register): Pass in | |
1092 | length parameter. Return -1. | |
1093 | ||
1094 | Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
1095 | ||
1096 | * ppc-instructions (fdiv, fdivs): Check for divide by zero. | |
1097 | (is_invalid_zero_divide, invalid_zero_divide_operation): New | |
1098 | functions. | |
72f4393d | 1099 | |
c906108c SS |
1100 | Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com> |
1101 | ||
1102 | * sim_calls.c (sim_load): Do not parse PROG using buildargv, use | |
1103 | raw value instead. | |
1104 | ||
1105 | 1997-11-05 Felix Lee <flee@cygnus.com> | |
1106 | ||
1107 | * emul_chirp.c: #ifdef HAVE_UNISTD_H | |
1108 | ||
1109 | Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1110 | ||
1111 | * corefile.c (core_attach): Pad out allocated memory regions so | |
1112 | that they are always correctly aligned. | |
1113 | (struct _core_mapping, core_map_attach, core_init, | |
1114 | new_core_mapping): Change free_buffer to type void*. | |
1115 | ||
1116 | Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com> | |
1117 | ||
1118 | * sim_calls.c (zfree): Call free correctly. | |
1119 | ||
1120 | Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1121 | ||
1122 | * sim_calls.c (zfree): Use free, not mfree. | |
1123 | (sim_io_flush_stdoutput): Replace gdb_flush with callback -> | |
1124 | flush_stdout. | |
1125 | ||
1126 | Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1127 | ||
1128 | * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix | |
1129 | mask extracting shift amount. Correctly condition for setting XER | |
1130 | in sraw. | |
1131 | (ldhau): From Johannes Reisinger, update rA after load. | |
1132 | ||
1133 | Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com> | |
1134 | ||
1135 | * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC, | |
1136 | for MSVC. | |
1137 | * words.h: __int64 instead of long long for MSVC. | |
1138 | ||
1139 | Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1140 | ||
1141 | * sim_calls.c (sim_create_inferior): Check the simulator was | |
1142 | initialized before creating inferior. | |
1143 | ||
1144 | * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract | |
1145 | sign bit using 64 bit and not a 32 bit mask. | |
1146 | ||
1147 | Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1148 | ||
1149 | * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after | |
1150 | it has been used, not before. | |
72f4393d | 1151 | |
c906108c SS |
1152 | Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com> |
1153 | ||
1154 | * sim_calls.c (sim_kill): Delete. | |
1155 | (sim_create_inferior): Add ABFD argument. | |
1156 | (entry_point): Delete variable. | |
1157 | (sim_load): Move setting of PC from here. | |
1158 | (sim_create_inferior): To here. | |
1159 | ||
1160 | Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1161 | ||
1162 | * sim_calls.c (sim_open): Add ABFD argument. | |
1163 | ||
1164 | Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1165 | ||
1166 | * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring | |
1167 | CR register updates dependant on RC value had logic backwards. | |
1168 | ||
1169 | * ppc-instructions (Load String Word Immediate): From Brad Parker | |
1170 | - sense of wrap test in check for overwriting RA wrong. | |
1171 | (Load String Word Indexed): Ditto. | |
72f4393d | 1172 | |
c906108c SS |
1173 | * configure.in: From Erik Landry - set sim_default_model not |
1174 | sim_model for sim-default-model option. | |
1175 | * configure: Regenerate. | |
72f4393d | 1176 | |
c906108c SS |
1177 | * interrupts.c (check_masked_interrupts): Schedule a hardware |
1178 | interrupt delivery when FP interrupts get enabled. | |
1179 | (program_interrupt): Generate FP exceptions instead of aborting. | |
1180 | (deliver_hardware_interrupt): Deliver a FP exception if so | |
1181 | enabled. | |
1182 | ||
1183 | * registers.h: Add definition of fpscr_vx_bits. | |
1184 | ||
1185 | * idecode_expression.h (FPSCR_END): Always update FEX and VX bits | |
1186 | in FPSCR. | |
1187 | (FPSCR_END): Explicitly check for possible floating point | |
1188 | exception conditions. | |
1189 | (FPSCR_BEGIN): Simplify. | |
72f4393d | 1190 | |
c906108c SS |
1191 | * ppc-instructions (Move From FPSCR): Enable. |
1192 | (Move To FPSCR Bit 1): Ditto. | |
1193 | (Move To FPSCR Bit 0): Ditto. | |
1194 | (Move To FPSCR Field Immediate): Ditto. | |
1195 | (Move to Condition Register from FPSCR): Simplify. | |
1196 | (invalid_arithemetic_operation): Generate a QNaN when invalid | |
1197 | operation exception disabled. | |
72f4393d | 1198 | |
c906108c SS |
1199 | Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com> |
1200 | ||
1201 | * sim_calls.c (sim_open): Add callback argument. | |
1202 | (sim_set_callbacks): Delete. | |
1203 | ||
1204 | Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com> | |
1205 | ||
1206 | * sim_callbacks.h (error): Make declaration match gdb's. | |
1207 | * main.c (error): Ditto. | |
1208 | ||
1209 | Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1210 | ||
1211 | * sim_calls.c (sim_stop_reason): Simplify. Was running implies | |
1212 | stopped/SIGINT. Exit implies a status code. | |
1213 | ||
1214 | * psim.c (cntrl_c_simulation): From main.c. Event function that | |
1215 | halts the simulator. | |
1216 | (psim_stop): New. Asynchronously schedule a stop simulator event. | |
1217 | (psim_run_until_stop): Delete. Made redundant by psim_stop. | |
1218 | ||
1219 | * main.c (cntrl_c): Update. | |
1220 | (cntrl_c_simulation): Moved to psim.c. | |
1221 | ||
1222 | * sim_calls.c (sim_stop): New function. Use psim_stop which | |
1223 | schedules a stop event. | |
1224 | (sim_resume): Drop SIGINT handler, now in gdb/main.c. | |
1225 | (sim_resume): Use psim_run as stop variable no longer needed. | |
1226 | ||
1227 | Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
1228 | ||
1229 | * psim.c (psim_options): Handle -E option correctly. | |
1230 | (psim_usage): Document. | |
1231 | ||
1232 | Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com> | |
1233 | ||
1234 | * psim.c (psim_options): Ignore -E option (sets endianness). | |
1235 | * sim_calls.c: #include bfd.h. | |
1236 | (entry_point): New static local. | |
1237 | (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd. | |
1238 | (sim_create_inferior): Return SIM_RC. Delete arg start_address. | |
1239 | ||
1240 | Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com> | |
1241 | ||
1242 | * Makefile.in (INSTALL): Set to @INSTALL@. | |
1243 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. | |
1244 | (install): Depend upon installdirs. Use $(program_transform_name) | |
1245 | directly, rather than using $(INSTALL_XFORM). | |
1246 | (installdirs): New target. | |
1247 | ||
1248 | Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com> | |
1249 | ||
1250 | * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates | |
1251 | rather than the non-portable cat -n. | |
1252 | ||
1253 | Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com> | |
1254 | ||
1255 | * Makefile.in (INSTALL): Change install.sh to install-sh. | |
1256 | ||
1257 | Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com> | |
1258 | ||
1259 | * ppc-instructions: Change milhwu to mulhwu. | |
1260 | ||
1261 | Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com> | |
1262 | ||
1263 | * sim_calls.c (sim_open): New arg `kind'. | |
1264 | ||
1265 | Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com> | |
1266 | ||
1267 | * COPYING: Update FSF address. | |
1268 | ||
1269 | Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
1270 | ||
1271 | * main.c (sim_io_read_stdin): Only compile unbuffered IO code if | |
1272 | all the required features are supported by the host OS. | |
1273 | ||
1274 | Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
1275 | ||
1276 | * emul_bugapi.c (emul_bugapi_create): Guard against NULL images. | |
1277 | ||
1278 | * configure.in (enable-sim-endain): Correct typo in usage (from | |
1279 | Erik Landry <landry@ENGR.ORST.EDU>). | |
1280 | * configure: Re-generate. | |
1281 | ||
1282 | Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> | |
1283 | ||
1284 | * Makefile.in (targ-vals.def): Re-do rule so that it works with | |
1285 | FreeBSD's make. Didn't like $<. | |
1286 | ||
1287 | Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com> | |
1288 | ||
1289 | * sim_calls.c (sim_open): New SIM_DESC result. Argument is now | |
1290 | in argv form. | |
1291 | (other sim_*): New SIM_DESC argument. | |
1292 | ||
1293 | Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com> | |
1294 | ||
1295 | * ppc-opcode-simple-array, ppc-opcode-simple-goto, | |
1296 | ppc-opcode-simple-switch, ppc-opcode-complex-array, | |
1297 | ppc-opcode-complex-goto, ppc-opcode-complex-switch, | |
1298 | ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete, | |
1299 | superseeded by --sim-decode-mechanism option. | |
1300 | ||
1301 | * ppc-opcode-simple, dc-simple: Rename to be 8.3 | |
1302 | * ppc-opcode-complex, dc-complex: Ditto. | |
1303 | * ppc-opcode-stupid, dc-stupid: Ditto. | |
1304 | * ppc-opcode-test-1, dc-test.01: Ditto. | |
1305 | * ppc-opcode-test-2, dc-test.02: Ditto. | |
1306 | ||
1307 | * configure.in (--enable-sim-opcode): Change prefix to dc- instead | |
1308 | of ppc-opcode-. | |
1309 | ||
1310 | Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com> | |
1311 | ||
1312 | * Many of the ppc-opcode-* files are identical baring the type of | |
1313 | lookup table. Instead of having multiple tables, igen can do this | |
1314 | via an additional option. | |
72f4393d | 1315 | |
c906108c SS |
1316 | * ld-decode.h, ld-decode.c (force_decode_gen_type): New function, |
1317 | allow the type of generated table specified in the decode file to | |
1318 | be overridden. | |
1319 | ||
1320 | * ld-decode.c (load_decode_table): Allow the table type to be | |
1321 | overridden. | |
1322 | ||
1323 | * igen.c (main): Add -T <mechanism> option so that an overriding | |
1324 | instruction decode mechanism can be specified. | |
1325 | ||
1326 | * configure.in: New option --sim-decode-mechanism to control | |
1327 | igen's new -T <mechanism> flag. | |
1328 | * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the | |
1329 | configure script. | |
1330 | * configure: Regenerate. | |
72f4393d | 1331 | |
c906108c SS |
1332 | Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com> |
1333 | ||
1334 | * events.c (event_queue_create): Don't use NULL to initialize an | |
1335 | integer field. | |
1336 | (even_queue_{init,schedule_after_signal,tick}): Conditionalize use | |
1337 | of sigprocmask to appropriate autoconf test. | |
1338 | ||
1339 | * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type, | |
1340 | don't assume void. | |
1341 | * sim_calls.c (sim_{ctrl_c,resume}): Ditto. | |
1342 | ||
1343 | * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c | |
1344 | includes our config.h. | |
1345 | ||
1346 | Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com> | |
1347 | ||
1348 | * configure.in: Fix typo in test for callback.c. | |
1349 | * configure: Regenerated. | |
1350 | ||
1351 | Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1352 | ||
1353 | * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being | |
1354 | found in the device tree. | |
1355 | ||
1356 | Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1357 | ||
1358 | * Property create/initialization still wasn't correctly ordered. | |
1359 | Should be delaying everything related to ihandle creation until | |
1360 | after the rest of the tree has been established. | |
72f4393d | 1361 | |
c906108c SS |
1362 | * device.c (device_find_ihandle_runtime_property): Update. |
1363 | (device_add_ihandle_runtime_property): Update. | |
1364 | ||
1365 | * tree.c (parse_ihandle_property): Delay lookup of the device to | |
1366 | be opened until the ihandle initialization phase. | |
1367 | * tree.c (print_properties): Update. | |
1368 | ||
1369 | Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
72f4393d | 1370 | |
c906108c SS |
1371 | * gen-icache.c (print_icache_extraction): Add a reason parameter. |
1372 | Augment each extracted field with a comment citing the codes | |
1373 | origin. Should simplify tracking down incorrect cache | |
1374 | extractions. | |
1375 | ||
1376 | Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1377 | ||
1378 | * gen-icache.c: Generalize code handling XXX_is_NNN so that it | |
1379 | works for normal and boolean table entries. | |
1380 | ||
1381 | * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now | |
1382 | valid. Handle this just like *_{read,write}_register now handles | |
1383 | it. | |
1384 | ||
1385 | Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1386 | ||
1387 | * events.c (insert_event_entry): Correct loop termination | |
1388 | assertions. | |
1389 | ||
1390 | Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1391 | ||
1392 | * psim.c (psim_options): Add new option -c for max-iterations or | |
1393 | count. | |
1394 | (psim_usage): Document. | |
1395 | (psim_max_iterations_exceeded): New function, abort simulation if | |
1396 | max iterations exceeded. | |
1397 | ||
1398 | * gen-idecode.c: Re-work the table lookup code so that it assumes | |
1399 | that the entry is a leaf by default. Simplify the boolean table | |
1400 | entry code so that it involves a mask + test instead of shift + | |
1401 | shift + mask + test. | |
1402 | ||
1403 | * gen-idecode.c: Correct generated igen body so that it no drops | |
1404 | or doubles clock interrupts. | |
1405 | ||
72f4393d | 1406 | |
c906108c SS |
1407 | Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> |
1408 | ||
1409 | * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to | |
1410 | @sim_targ_vals@ | |
1411 | ||
1412 | * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls | |
1413 | if common callback is present. | |
1414 | ||
1415 | Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com> | |
1416 | ||
1417 | * configure.in (sim_callback): If the gdb is post 4.16, configure | |
1418 | callback support from the common directory. | |
1419 | * configure: Regenerate. | |
1420 | ||
1421 | * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and | |
1422 | targ-map.c. | |
1423 | (GDB_OBJ): Add callback support configured in. | |
1424 | (gentmap,targ-vals.def): Build from common directory. | |
1425 | (targ-vals.h,targ-map.c): Build by running gentmap. | |
1426 | (callback.o): Build from source in common directory. | |
1427 | (targ-map.o): Add dependency. | |
1428 | (clean): Remove gentmap. | |
1429 | ||
1430 | Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1431 | ||
1432 | * igen wasn't aborting if the opcode table contained no valid | |
1433 | fields. | |
72f4393d | 1434 | |
c906108c SS |
1435 | * misc.c (name2i): Possibly abort if an invalid name is |
1436 | encountered. | |
1437 | * ld-decode.c: Abort if the table type isn't found. | |
1438 | ||
1439 | Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1440 | ||
1441 | * When performance monitoring is disabled, it is still possible to | |
1442 | determine the simulation speed by looking at the number of elapsed | |
1443 | ticks recorded by the event queue. | |
72f4393d | 1444 | |
c906108c SS |
1445 | * psim.c (psim_write_register, psim_read_register): Force the cpu |
1446 | to zero when it is either of `-1' or `nr_cpus'. In both cases the | |
1447 | next cpu would be zero any way. | |
1448 | ||
1449 | * mon.c (mon_print_info): If possible, print the system cycle | |
1450 | performance. This is an indication of the number of instructions | |
1451 | per second. | |
1452 | ||
1453 | Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1454 | ||
1455 | * The code to allow an event queue to be updated during a signal | |
1456 | was missing. For main.c, a cntrl-c simulation termination wasn't | |
1457 | handled cleanly. | |
72f4393d | 1458 | |
c906108c SS |
1459 | * The simulation would not correctly restart if an event requested |
1460 | that the simulation be halted. | |
72f4393d | 1461 | |
c906108c SS |
1462 | * psim.c (psim_options): Add hack to -i option to optionally |
1463 | include a level vis -i2. | |
1464 | (psim_usage): Document. | |
1465 | ||
1466 | * main.c (cntrl_c, cntrl_c_simulation): New functions. When a | |
1467 | cntrl-c occures schedule an event to halt the simulation. | |
1468 | (main): Catch CNTRL-C signals with the function cntrl_c. | |
1469 | ||
1470 | * events.c (event_queue_process): Mask interrupts while | |
1471 | manipulating the async event queue. | |
1472 | (event_queue_init): Ditto. | |
1473 | (event_queue_schedule_after_signal): Ditto. | |
1474 | ||
1475 | * events.c (event_queue_process): Mark the event queue as being in | |
1476 | the processing state when processing has started. Adjust code | |
1477 | so that it is tolerant of halts. | |
1478 | (event_queue_init): Start the event queue out with processing | |
1479 | false. | |
1480 | (event_queue_tick): Check that processing isn't still being | |
1481 | performed. | |
72f4393d | 1482 | |
c906108c SS |
1483 | * gen-idecode.c (print_run_until_stop_body): Call |
1484 | event_queue_process_events to clear possibly pending events before | |
1485 | starting a simulation run. Re-arange main loop so that simulator | |
1486 | is correctly restarted when an event halts the simulation. | |
1487 | ||
1488 | * psim.c (psim_halt): Handle an event halting the simulation. | |
1489 | * psim.c (psim_init): Adjust initial cpu - == -1 - to match | |
1490 | reworked idecode. | |
1491 | ||
1492 | Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1493 | ||
1494 | * ppc-opcode-complex: Correct typo - was expanding ORA instead of | |
1495 | RA. Based on instruction frequency stats, expand additional | |
1496 | instructions. | |
1497 | * ppc-instructions: Change all `RA == 0' to RA_is_0. | |
72f4393d | 1498 | |
c906108c SS |
1499 | * ppc-opcode-stupid: Move all but the basic table in -complex into |
1500 | here. Update to new format. | |
72f4393d | 1501 | |
c906108c SS |
1502 | * Makefile.in (tmp-defines): New target. Force defines.h to always |
1503 | be built. Hence get ppc-opcode-goto to build. | |
1504 | ||
1505 | Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1506 | ||
1507 | * hw_com.c (hw_com_instance_read, hw_com_instance_write): | |
1508 | Implement. | |
72f4393d | 1509 | |
c906108c SS |
1510 | Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> |
1511 | ||
1512 | * hw_trace.c (hw_trace_init_data): Delete. The trace options need | |
1513 | to be initialized independant of the rest of the simulation | |
1514 | initalization. Otherwize a trace option explictly set from gdb | |
1515 | could be overridden by hw_trace. | |
1516 | ||
1517 | * psim.c (psim_options): Clarify reason why the trace ioctl occures. | |
1518 | ||
1519 | * FIXME: The trace code is too scattered - hw_trace.c, psim.c, | |
1520 | debug.c. It could be much simpler. | |
1521 | ||
1522 | Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
72f4393d | 1523 | |
c906108c SS |
1524 | * Some devices support removable media. Add hooks to the disk |
1525 | device so that it supports this. | |
72f4393d | 1526 | |
c906108c SS |
1527 | * device.c (device_add_string_array_property, |
1528 | device_find_string_array_property): New functions, manipulate | |
1529 | properties containing an array of strings. | |
1530 | (device_find_string_property): Allow a string array. | |
1531 | (device_init_static_properties): Update. | |
1532 | (device_init_runtime_properties): Update. | |
1533 | ||
1534 | * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk | |
1535 | media. If no file image is specified, use the next one in the | |
1536 | image property list. | |
1537 | (hw_disk_init_address): Change the file property so that it is a | |
1538 | string array - use the first entry for the initial file image. | |
1539 | ||
1540 | * tree.c (print_string_aray_property): New function - print a | |
1541 | string array. | |
1542 | (print_properties): Adjust. | |
1543 | (print_string): Write a string, handling double quotes. | |
1544 | ||
1545 | * device.h: Define an ioctl to `change-media' with an optional new | |
1546 | media image. | |
72f4393d | 1547 | |
c906108c SS |
1548 | * hw_disk.c: Allow floppy disk devices to be specified. |
1549 | ||
1550 | * psim.c (psim_command): New function, parse more complex psim | |
1551 | commands such as "change-media" and "trace". | |
1552 | * sim_calls.c (sim_do_command): Use. | |
1553 | ||
1554 | Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1555 | ||
1556 | * For expressions like (RA == 0) that are entered in to the cache | |
1557 | as RA_is_0. If possible generate the result of the expression so | |
1558 | that the compiler gets a better chance of eliminating dead | |
1559 | branches. | |
1560 | ||
1561 | * gen-icache.c (print_icache_extraction): For a cache entry of | |
1562 | the form <name>_is_<const> where it is a boolean field, generate | |
1563 | the result of the expression instead of the expression its self. | |
1564 | (print_icache_body): Remove code that was looking for *_is_0 and | |
1565 | then generating corresponding definitions. | |
1566 | ||
1567 | * gen-icache.c (print_icache_struct): If there is no cache, do not | |
1568 | output expressions in idecode.h file. | |
72f4393d | 1569 | |
c906108c | 1570 | * gen-icache.c (print_icache_body): Output them here. |
72f4393d | 1571 | |
c906108c SS |
1572 | * ppc-opcode-complex: Clarify constant values for SPR==LR register |
1573 | expansion. | |
1574 | ||
1575 | * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries. | |
1576 | ||
1577 | Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1578 | ||
1579 | * The code that put values in and extracted values from the cache | |
1580 | was too compilicated. The cache table did not allow values to be | |
1581 | computed from cache entries. #defines could only be used when a | |
1582 | cache was present, remove the restriction. | |
1583 | ||
1584 | * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A | |
1585 | scratch variable is defined when a cache entry is beinf | |
1586 | filled. Change the definition of a COMPUTE variable to be defined | |
1587 | when the cache entry is being used. | |
1588 | * gen-icache.c: Update. | |
72f4393d | 1589 | |
c906108c SS |
1590 | * ld-cache.h, ld-cache.c: Change field names so that their meaning |
1591 | is more obvious. old_name->field_name, new_name->derived_name. | |
1592 | * gen-icache.c: Update | |
72f4393d | 1593 | |
c906108c SS |
1594 | * gen-icache.h, gen-icache.c (print_icache_body): Make the three |
1595 | different types of cache code - put into cache, extract from | |
1596 | cache, no cache - an explicit argument to print_icache_body. | |
1597 | * gen-icache.c (print_icache_extraction): Ditto. | |
72f4393d | 1598 | |
c906108c SS |
1599 | * gen-semantics.c (print_c_semantic): Update use. |
1600 | * gen-idecode.c (print_jump_insn): Update use. | |
1601 | * gen-icache.c (print_icache_function): Update use. | |
1602 | ||
1603 | * igen.c (main): Change 'R' option so that it does not force the | |
1604 | cache. | |
1605 | ||
1606 | * configure.in (enable-sim-icache): Clarify description. Make | |
1607 | #define one of the defaults regardless of the cache. Probably | |
1608 | should revamp and add a separate option. | |
1609 | ||
1610 | Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1611 | ||
1612 | * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos | |
1613 | partition numbering. | |
1614 | (pk_disklabel_create_instance): Partition 1..4 are valid - not | |
1615 | 1..3. | |
1616 | (is_iso9660): New function, verify a CD9660 File system. | |
1617 | (pk_disklabel_create_instance): Start expanding so that active | |
1618 | partition selection is supported. | |
1619 | ||
1620 | Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1621 | ||
1622 | * The cap object was retaining a reference to the instance of a | |
1623 | device after it was deleted. Instead add and remove cap's from the | |
1624 | cap db as they are created and deleted. This ensuring that a | |
1625 | capibility is only used during the lifetime of the corresponding | |
1626 | object. | |
72f4393d | 1627 | |
c906108c SS |
1628 | * cap.h, cap.c: Correct cap type - was signed32 should be |
1629 | signed_cell. | |
72f4393d | 1630 | |
c906108c SS |
1631 | * cap.c (cap_add, cap_remove): New methods for cap object that |
1632 | allow the explicit addition and removal of internal objects that | |
1633 | the cap knows about. | |
72f4393d | 1634 | |
c906108c SS |
1635 | * cap.c (cap_init): Rewrite. Verify that the only objects |
1636 | remaining in the cap data base are those that were entered first. | |
1637 | Thse objects will be the permenant ones. | |
1638 | * device.c (device_init_address): Remember to initialize the cap | |
1639 | database. | |
72f4393d | 1640 | |
c906108c SS |
1641 | * device.c (device_create_instance_from): Explicitly add device |
1642 | instances to the cap database. Simplify create code. | |
1643 | (device_instance_delete): Explicitly remove device instances from | |
1644 | the cap database. | |
72f4393d | 1645 | |
c906108c SS |
1646 | * device.c (device_create_from): Explicitly add a device to the |
1647 | cap data base. | |
72f4393d | 1648 | |
c906108c SS |
1649 | * device.c (device_create_from): Always set the cap members. |
1650 | ||
1651 | * hw_disk.c: Output the instance when tracing. | |
72f4393d | 1652 | |
c906108c SS |
1653 | Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> |
1654 | ||
1655 | * tree.c (split_device_specifier): Add support for aliases when | |
1656 | looking up a device. Now needs a device as an argument. | |
1657 | (split_property_specifier): Ditto. | |
1658 | ||
1659 | Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1660 | ||
1661 | * The memory "claim" and "release" methods take an address and | |
1662 | size as arguments. These may be multi cell values. Initially fix | |
1663 | the memory code so that they check/detect this. Leave the | |
1664 | adjustment of any clients to later. | |
72f4393d | 1665 | |
c906108c SS |
1666 | * hw_memory.c (hw_memory_instance_claim, |
1667 | hw_memory_instance_release): Handle multi-cell memory devices. | |
72f4393d | 1668 | |
c906108c SS |
1669 | * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the |
1670 | release of memory regions that were not claimed. | |
1671 | ||
1672 | Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1673 | ||
1674 | * device.h, device.c (device_instance_call_method): Correct return | |
1675 | type - can return either 0 or -1, hence should be a signed type. | |
1676 | * device_table.h: Ditto. | |
72f4393d | 1677 | |
c906108c SS |
1678 | * hw_memory.c (hw_memory_instance_claim, |
1679 | hw_memory_instance_release): Update. | |
1680 | * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size, | |
1681 | hw_disk_nr_blocks): Ditto. | |
72f4393d | 1682 | |
c906108c SS |
1683 | Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> |
1684 | ||
1685 | * emul_chirp.c (chirp_emul_claim): Implement using the "claim" | |
1686 | method belonging to "/chosen/memory". | |
1687 | (chirm_emul_release): Ditto. | |
72f4393d | 1688 | |
c906108c SS |
1689 | * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files |
1690 | that are inlined. These modules are called via a table and are | |
1691 | not made inline. | |
1692 | ||
1693 | * hw_init.c (update_for_binary_section): Fix failure to allocate | |
1694 | memory used by the binary in real-mode executions. If "claim" | |
1695 | property is present, allocate memory from the "/chosen/memory" | |
1696 | device. | |
1697 | ||
1698 | * emul_chirp.c (emul_chirp_create): Specify that memory should be | |
1699 | claimed when loading a real image. | |
1700 | ||
1701 | * hw_memory.c (hw_memory_instance_claim): Don't page align memory | |
1702 | allocations. | |
1703 | ||
1704 | * hw_memory.c (hw_memory_instance_release): Avoid infinite loop | |
1705 | when merging adjacent memory chunks. | |
1706 | ||
1707 | Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1708 | ||
1709 | * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add | |
1710 | optional PROCESSOR & CIA args so that this routine also abort an | |
1711 | access. | |
1712 | ||
1713 | * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a | |
1714 | miss-aligned access when a transfer fails abort. | |
72f4393d | 1715 | |
c906108c SS |
1716 | * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer |
1717 | instead of the vm_read_buffer. | |
1718 | * emul_netbsd.c (do_write): Ditto. | |
1719 | * emul_unix.c (do_unix_write): Ditto. | |
1720 | ||
1721 | Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1722 | ||
1723 | * configure.in (--enable-sim-jump): Default is NULL and not -E. | |
1724 | * configure: Regenerate. | |
72f4393d | 1725 | |
c906108c SS |
1726 | * basics.h (__attribute__): Enable attributes if GCC >= 2.6. |
1727 | (UNUSED): Only enable UNUSED if GCC >= 2.7. | |
72f4393d | 1728 | |
c906108c SS |
1729 | * gen-icache.c (print_icache_extraction): Print UNUSED macro |
1730 | instead of explicit __unused__ attribute. | |
1731 | (print_icache_body): Ditto. | |
1732 | * idecode_expression.h (FPSCR_BEGIN): Use UNUSED. | |
1733 | ||
1734 | Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1735 | ||
1736 | * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as | |
1737 | reference point. | |
1738 | ||
1739 | * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as | |
1740 | arguments so that there is a reference point for recovery. | |
1741 | (vm_synchronize_context): Pass processor+cia for errors. | |
1742 | (om_unpack_sr): Ditto. | |
1743 | (om_unpack_srs): Ditto. | |
1744 | * vm.c (vm_create): Review error messages. | |
1745 | ||
1746 | * vm.c: Include "cpu.h" so that cpu_error is visible. | |
1747 | ||
1748 | * ppc-instructions (Return From Interrupt): Pass CIA. | |
1749 | (Instruction Synchronize): Ditto. | |
1750 | * psim.c (psim_init): Ditto. | |
1751 | ||
1752 | Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1753 | ||
1754 | * cpu.h, cpu.c (cpu_error): Aborts simulation with error message, | |
1755 | but also saves current processor state. | |
72f4393d | 1756 | |
c906108c SS |
1757 | * basics.h: Move #include <stdarg.h> to here from device_table.h. |
1758 | ||
1759 | * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA | |
1760 | when simulation aborted. | |
1761 | (program_interrupt): Ditto. | |
1762 | (floating_point_unavailable_interrupt): Ditto. | |
1763 | (alignment_interrupt): Ditto. | |
1764 | (floating_point_assist_interrupt): Ditto. | |
1765 | (perform_oea_interrupt): Ditto. | |
1766 | (machine_check_interrupt): Ditto. | |
1767 | ||
1768 | Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1769 | ||
1770 | * ppc-instructions (Move from Special Purpose Register): Support | |
1771 | move from DEC. | |
1772 | ||
1773 | Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1774 | ||
1775 | * debug.h, debug.c: Add "interrupts" trace option. | |
1776 | ||
1777 | * interrupts.c (data_storage_interrupt): Add tracing. | |
1778 | (machine_check_interrupt): Ditto. | |
1779 | (instruction_storage_interrupt): Ditto. | |
1780 | (alignment_interrupt): Ditto. | |
1781 | (program_interrupt): Ditto. | |
1782 | (floating_point_unavailable_interrupt): Ditto. | |
1783 | (system_call_interrupt): Ditto. | |
1784 | (floating_point_assist_interrupt): Ditto. | |
1785 | (deliver_hardware_interrupt): Ditto. | |
72f4393d | 1786 | |
c906108c SS |
1787 | * interrupts.c (program_interrupt): For UEA mode, halt the |
1788 | processor - so that the current state is saved - instead of | |
1789 | aborting. | |
1790 | (floating_point_unavailable_interrupt): Ditto. | |
1791 | (floating_point_assist_interrupt): Ditto. | |
1792 | ||
1793 | Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1794 | ||
1795 | * interrupts.c (perform_oea_interrupt): Halt rather than abort on | |
1796 | a double interrupt. | |
1797 | ||
1798 | Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1799 | ||
1800 | * ppc-instructions (Store Multiple Word, Load Multiple Word): | |
1801 | Enable. | |
1802 | ||
1803 | * tree.c (print_properties): For an array consider printing it out | |
1804 | as an integer array. | |
1805 | ||
1806 | * hw_memory.c (hw_memory_init_address): If an "available" property | |
1807 | is present, use that to initialize the available memory instead of | |
1808 | using the reg property. | |
1809 | ||
1810 | * emul_generic.c (emul_add_tree_hardware): Add "available" | |
1811 | property to memory device. | |
1812 | ||
1813 | Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1814 | ||
1815 | * ppc-instructions (Rotate Left Word then AND with Mask): Enable. | |
1816 | ||
1817 | * device.c (device_instance_call_method): Was only looking at the | |
1818 | first method. | |
1819 | ||
1820 | * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method. | |
1821 | (hw_disk_block_size): Implement block-size method. | |
1822 | (hw_disk_max_transfer): Implement max-transfer method. | |
1823 | ||
1824 | * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB. | |
1825 | ||
1826 | * emul_chirp.c (chirp_emul_instance_to_path): Recover from an | |
1827 | invalid ihandle. | |
1828 | (chirp_emul_instance_to_package): Ditto. | |
1829 | (chirp_emul_method): Ditto. | |
1830 | (chirp_emul_read): Ditto. | |
1831 | (chirp_emul_write): Ditto. | |
1832 | (chirp_emul_close): Ditto. | |
1833 | (chirp_emul_seek): Ditto. | |
1834 | (chirp_emul_package_to_path): Ditto (for phandle). | |
1835 | (chirp_emul_package_to_path): Return the length. | |
1836 | ||
1837 | * psim.c (psim_merge_device_file): Allow continuation lines. | |
1838 | ||
1839 | Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1840 | ||
1841 | * emul_chirp.c (chirp_emul_boot): Implement. Well report the new | |
1842 | string and exit. | |
72f4393d | 1843 | |
c906108c SS |
1844 | * emul_chirp.c (chirp_emul_exit): Correct type of args struct |
1845 | members - *_cell not host dependant int. | |
1846 | ||
1847 | Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1848 | ||
1849 | * interrupts.c (perform_oea_interrupt): Print additional | |
1850 | information if a double interrupt is encountered. | |
1851 | ||
1852 | Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
72f4393d | 1853 | |
c906108c SS |
1854 | * psim.c (psim_merge_device_file): Tolerate an incorrect file-name |
1855 | being specified with the -f option. | |
1856 | (psim_merge_device_file): Correct check for end of string. | |
1857 | ||
1858 | Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
72f4393d | 1859 | |
c906108c SS |
1860 | * emul_chirp.c (chirp_emul_peer): Was falling off the end of the |
1861 | list of devices. Return zero to the client instead. | |
1862 | * emul_chirp.c (chirp_emul_child): Ditto | |
1863 | * emul_chirp.c (chirp_emul_parent): Ditto | |
1864 | ||
1865 | * device.c (device_root): Assert assumption about the device being | |
1866 | valid. | |
1867 | ||
1868 | Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1869 | ||
1870 | * emul_chirp.c (emul_chirp_create): Add description property to | |
1871 | each significant node in the device tree. | |
1872 | * emul_bugapi.c (emul_bugapi_create): Ditto. | |
1873 | ||
1874 | Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1875 | ||
1876 | * main.c (sim_io_read_stdin): For a single byte STDIO read, use a | |
1877 | tempoary two byte buffer. Single byte read with fgets will not | |
1878 | work. | |
1879 | * main.c: Include errno.h. | |
1880 | (sim_io_read_stdin): For non-STDIO, make it work. | |
1881 | ||
1882 | * emul_chirp.c (chirp_emul_read): Return the correct error status. | |
1883 | ||
1884 | Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1885 | ||
1886 | * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism. | |
1887 | Instead have each emulation default it to DO_USE_STDIO. | |
1888 | ||
1889 | * emul_generic.c (emul_add_tree_options): Select the STDIO I/O | |
1890 | mechanism as the default if enabled or if nothing selected. | |
1891 | ||
1892 | * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a | |
1893 | return value. | |
1894 | (sim_io_write_stdout): Ditto. | |
1895 | (sim_io_write_stderr): Ditto. | |
1896 | * main.c (sim_io_write_stdout): Ditto. | |
1897 | (sim_io_write_stderr): Ditto. | |
1898 | (sim_io_read_stdin): Ditto. | |
1899 | ||
1900 | Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
1901 | ||
1902 | * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls | |
1903 | type correct. | |
1904 | * vm.c (om_effective_to_virtual): Ditto. | |
1905 | * events.c (event_queue_schedule{,_after_signal}): Ditto. | |
1906 | (event_queue_{deschedule,process}): Ditto. | |
1907 | * hw_htab.c (htab_decode_hash_table): Ditto. | |
1908 | (htab_map_{page,binary}): Ditto. | |
1909 | * hw_opic.c (hw_opic_init_data): Ditto. | |
1910 | (handle_interrupt): Ditto. | |
1911 | (do_processor_init_register_{read,write}): Ditto. | |
1912 | (write_vector_priority_register): Ditto. | |
1913 | ({read,write}_destination_register): Ditto. | |
1914 | (do_suprious_vector_register_{read,write}): Ditto. | |
1915 | (do_current_task_priority_register_N_{read,write}): Ditto. | |
1916 | (do_timer_frequency_reporting_register_{read,write}): Ditto. | |
1917 | (do_timer_N_{current,base}_count_register_{read,write}): Ditto. | |
1918 | (do_ipi_N_dispatch_register_write): Ditto. | |
1919 | (do_vendor_identification_register_read): Ditto. | |
1920 | (do_feature_reporting_register_N_read): Ditto. | |
1921 | (do_global_configuration_register_N_{read,write}): Ditto. | |
1922 | * hw_phb.c (hw_phb_attach_address): Ditto. | |
1923 | (hw_phb_unit_decode): Ditto. | |
1924 | (hw_phb_address_to_attach_address): Ditto. | |
1925 | (hw_phb_io_{read,write}_buffer): Ditto. | |
1926 | * hw_ide.c (setup_fifo): Ditto. | |
1927 | ||
1928 | * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include | |
1929 | files via -I<dir> instead of using "../../gdb/" prefixes. | |
1930 | ||
1931 | Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1932 | ||
1933 | * debug.h: Add tracing for the pal device. | |
1934 | * hw_pal.c: Update. | |
1935 | ||
1936 | * emul_chirp.c (chirp_emul_getprop): More tracing. | |
1937 | ||
1938 | Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1939 | ||
1940 | * device.h, device.c (device_find_ihandle_runtime_property): New | |
1941 | function. Reverse of add_ihandle_runtime property. | |
1942 | (device_init_runtime_properties): Use it. | |
72f4393d | 1943 | |
c906108c SS |
1944 | * device.c (find_property_entry): New function returns the |
1945 | internal property spec. | |
1946 | (device_set_property): Use. | |
1947 | (device_find_property): Use. | |
1948 | ||
1949 | Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1950 | ||
1951 | * psim.c (psim_merge_device_file): Strip newline from device | |
1952 | specs. | |
72f4393d | 1953 | |
c906108c SS |
1954 | Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> |
1955 | ||
1956 | * hw_htab.c (htab_map_binary): For overlapping text / data maps | |
1957 | merge the two. Also check that the merge is safe. | |
1958 | ||
1959 | * emul_chirp.c (emul_chirp_create): Add a description property to | |
1960 | the pte's so that they are easier to identify. | |
72f4393d | 1961 | |
c906108c SS |
1962 | (emul_chirp_create): Don't specify a load address for the CHRP |
1963 | image. Always use the values specified by the executable. | |
1964 | ||
1965 | * hw_htab.c (htab_map_page): Abort if a duplicate map is | |
1966 | encountered. | |
1967 | ||
1968 | Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1969 | ||
1970 | * hw_htab.c (htab_map_page): Formatting. | |
1971 | ||
1972 | * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL | |
1973 | method name when handling the client call. Also check for other | |
1974 | bad call arguments. | |
72f4393d | 1975 | |
c906108c SS |
1976 | * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base, |
1977 | etc to be overriden. | |
1978 | ||
1979 | Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1980 | ||
1981 | * os_emul.c (os_emul_create): Use tree find property instead of | |
1982 | device find property - sigh. | |
1983 | ||
1984 | Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
1985 | ||
1986 | * 961205: Release snapshot 961205. | |
72f4393d | 1987 | |
c906108c SS |
1988 | Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> |
1989 | ||
1990 | * configure.in (hostbitsize, bitsize): Fix typo in error message - | |
1991 | cannot contain a comma. | |
1992 | (sim-warnings): Check for more potential errors. | |
1993 | ||
1994 | * psim.c (psim_usage): Add -f <file> option. Specifies a file | |
1995 | containing device tree specifications that should be merged into | |
1996 | the device tree. | |
1997 | ||
1998 | * configure.in: Sort options. | |
1999 | * configure: Rebuild | |
72f4393d | 2000 | |
c906108c SS |
2001 | Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> |
2002 | ||
2003 | * psim.c (psim_usage): Add -n option - specify number of | |
2004 | processors. | |
2005 | ||
2006 | * emul_chirp.c: Add description. | |
2007 | * emul_bugapi.c: Ditto. | |
2008 | * emul_unix.c: Ditto. | |
2009 | * emul_netbsd.c: Ditto. | |
2010 | ||
2011 | Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
2012 | ||
2013 | * hw_pal.c (hw_pal_attach_address): New function, if an attach is | |
2014 | encountered, assume that it is the single disk. | |
2015 | * hw_pal.c: Add generic device/size decode methods. | |
72f4393d | 2016 | |
c906108c SS |
2017 | * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg |
2018 | property entry when determining the nvram size. | |
2019 | ||
2020 | * hw_core.c: Add generic address/size decode methods. | |
2021 | ||
2022 | * emul_chirp.c (emul_chirp_instruction_call): Return and trace | |
2023 | nonzero status from client functions. | |
2024 | ||
2025 | * main.c (error): Always include a cariage return when writing out | |
2026 | errors. | |
2027 | ||
2028 | Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com> | |
2029 | ||
2030 | * sim_calls.c (sim_resume): Reset sim_should_run if single | |
2031 | stepping. | |
2032 | ||
2033 | Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au> | |
2034 | ||
2035 | * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple | |
2036 | optional disks. | |
2037 | ||
2038 | * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom. | |
2039 | Attach the pal - for I/O - as a pseudo device haning from the | |
2040 | firmware sub tree. | |
2041 | ||
2042 | * emul_bugapi.c (emul_bugapi_create): Add a small memory device to | |
2043 | the device tree at the address of the hi-mem interrupt vector | |
2044 | addreses. Used by bugapi to establish its trap instructions. | |
72f4393d | 2045 | |
c906108c | 2046 | * debug.h: Add a new macro DITRACE for tracing device instances. |
72f4393d | 2047 | |
c906108c SS |
2048 | * debug.h: Extend the DTRACE macro so that it can also tests for |
2049 | device specific tracint. | |
72f4393d | 2050 | |
c906108c SS |
2051 | * device.h, device.c (device_trace): Add method to determine |
2052 | device specific tracing. | |
2053 | (device_init_address): Set the devices tracing level. | |
72f4393d | 2054 | |
c906108c SS |
2055 | Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
2056 | ||
2057 | * tree.h, tree.c (tree_device): New files - separate out the | |
2058 | device parser and other tree operations from the device. | |
72f4393d | 2059 | |
c906108c SS |
2060 | * inline.h, inline.c (INLINE_TREE): Add. |
2061 | * device.h, device.c (device_tree_add_parsed): Delete. | |
2062 | * Makefile.in (tree.c): Add rules for new file. | |
2063 | * Makefile.in: Better order the emul_* files. | |
72f4393d | 2064 | |
c906108c SS |
2065 | * emul_generic.c (emul_add_tree_hardware): Update. |
2066 | * emul_netbsd.c (emul_netbsd_create): Update. | |
2067 | * emul_unix.c (emul_unix_create): Ditto. | |
2068 | * emul_chirp.c (emul_chirp_create): Ditto. | |
2069 | * emul_bugapi.c (emul_bugapi_create): Ditto. | |
2070 | * psim.c (psim_tree): Ditto. | |
2071 | * hw_init.c: Ditto. | |
72f4393d | 2072 | |
c906108c SS |
2073 | * emul_generic.h: Include tree.h |
2074 | * Makefile.in: Add to EMUL_GENERIC_H dependencies. | |
72f4393d | 2075 | |
c906108c SS |
2076 | * device.h, device.c (device_root): New function - returns the |
2077 | root of the tree. | |
2078 | * corefile.c: Use. | |
72f4393d | 2079 | |
c906108c SS |
2080 | * device.h, device.c (device_clean): New function, clean up device |
2081 | ready for next simulation run. This includes things like deleting | |
2082 | interrupt edges and properties created during the simulation and | |
2083 | also scrubbing any pre-defined properties. | |
2084 | * tree.c (tree_init): Use. | |
72f4393d | 2085 | |
c906108c SS |
2086 | * device.h, device.c (device_init_static_properties): New |
2087 | function. Initialize any static predefined properties. By static | |
2088 | we mean those that have values that can be determined before the | |
2089 | device tree initialization has started. | |
2090 | * tree.c (tree_init): Use. | |
2091 | ||
2092 | * device.h, device.c (device_init_address): Add code to | |
2093 | check/verify the devices #address-cells and #size-cells. | |
2094 | (device_add_integer_property): Delete corresponding code. | |
2095 | (device_nr_address_cells, device_nr_data_cells): Check for | |
2096 | property when returning value. | |
72f4393d | 2097 | |
c906108c SS |
2098 | * device.h, device.c (device_init_runtime_properties): New |
2099 | function. Initialize those properties that are not `static'. At | |
2100 | present the only such property is the ihandle. | |
2101 | * tree.c (tree_init): Use. | |
72f4393d | 2102 | |
c906108c SS |
2103 | * device.h, device.c (reg, ranges): Rework these so that they use |
2104 | an array of the fundamental type - single reg or single range | |
2105 | entry. | |
72f4393d | 2106 | |
c906108c SS |
2107 | * device.h, device.c (device_add_ihandle_runtime_property): |
2108 | Re-implement the adding of an ihandle during tree construction so | |
2109 | that it better fits in with device initialization. | |
72f4393d | 2110 | |
c906108c SS |
2111 | Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
2112 | ||
2113 | * device.h, device.c (device_ioctl): Add additional argument - | |
2114 | request - so that the caller must always specify the type of | |
2115 | the ioctl request. | |
2116 | ||
2117 | * device_table.h: Update. | |
2118 | * hw_trace.c (hw_trace_ioctl): Ditto. | |
2119 | * hw_vm.c (hw_vm_ioctl_callback): Ditto. | |
2120 | * hw_init.c (hw_stack_ioctl_callback): Ditto. | |
2121 | * psim.c (psim_options): Ditto. | |
72f4393d | 2122 | |
c906108c | 2123 | Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
72f4393d | 2124 | |
c906108c SS |
2125 | * BUGS: Updated a bit. |
2126 | ||
2127 | Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2128 | ||
2129 | * hw_opic.c: Finish - third round. | |
2130 | ||
2131 | Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2132 | ||
2133 | * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue | |
2134 | reg index. | |
2135 | (hw_glue_io_write_buffer_callback): Ditto. | |
2136 | ||
2137 | Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2138 | ||
2139 | * events.c (event_queue_process): Was incorrectly consuming future | |
2140 | events on the queue when they should be left alone. | |
2141 | ||
2142 | * debug.h, debug.c (events): Add support for event queue tracing. | |
2143 | * events.c: Add event tracing. | |
72f4393d | 2144 | |
c906108c | 2145 | * debug.h, debug.c: Order device trace options. |
72f4393d | 2146 | |
c906108c SS |
2147 | Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
2148 | ||
2149 | * pk_disklabel.c (pk_disklabel_create_instance): Fix up some | |
2150 | warnings generated by GCC. | |
2151 | ||
2152 | Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2153 | ||
2154 | * sim-endian.h: Add LE versions of byte swap macros. Needed for | |
2155 | PCI devices which are little-endian. | |
72f4393d | 2156 | |
c906108c SS |
2157 | * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto |
2158 | ||
2159 | Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2160 | ||
2161 | * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus | |
2162 | so that it is implementing a 1-1 address map. | |
72f4393d | 2163 | |
c906108c SS |
2164 | * emul_generic.c (emul_add_tree_hardware): Adjust. |
2165 | ||
2166 | * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as | |
2167 | a default. | |
2168 | ||
2169 | Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
72f4393d | 2170 | |
c906108c SS |
2171 | * device.c (split_find_device): Be tolerant of missing unit |
2172 | addresses. | |
2173 | ||
2174 | Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2175 | ||
2176 | * basics.h (port_direction): New type, specify the direction of | |
2177 | any `port'. | |
72f4393d | 2178 | |
c906108c SS |
2179 | * device.h, device.c (device_interrupt_decode): Include |
2180 | specification of port direction in operations. | |
2181 | (device_interrupt_encode): Ditto. | |
72f4393d | 2182 | |
c906108c SS |
2183 | * device_table.h: Add a direction field to the interrupt port |
2184 | table. | |
2185 | ||
2186 | * device.c (device_tree_add_parsed): Specify port direction. | |
72f4393d | 2187 | |
c906108c SS |
2188 | Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
2189 | ||
2190 | * hw_opic.c: Finish - second round. | |
2191 | ||
2192 | Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2193 | ||
2194 | * hw_htab.c (htab_init_data_callback): Allow the virtual-address | |
2195 | to be specified as an array which allows 64bit addresses. | |
2196 | ||
2197 | * device.c (device_find_integer_array_property): New function. | |
2198 | Simplify the querying of elements of an integer array. | |
2199 | (device_add_integer_property, device_find_integer_property): | |
2200 | Update to correctly use the cell type. | |
2201 | ||
2202 | * vm.c (om_unpack_sr): Clarify shifting comment. | |
2203 | (om_pte_0_masked_vsid): Ditto. Add 64bit version. | |
2204 | ||
2205 | * emul_chirp.c (emul_chirp_create): Initialize the segment | |
2206 | registers. | |
2207 | ||
2208 | * vm.c (om_effective_to_virtual): Trace segment register use. | |
2209 | ||
2210 | * hw_htab.c (htab_map_page): Print out the pteg base address to | |
2211 | simplify cross checking between vm and the htab. | |
2212 | (htab_decode_hash_table): Use device_error instead of error. | |
2213 | (htab_map_page): Ditto. | |
2214 | (htab_dma_binary): Ditto. | |
2215 | (htab_map_binary): Ditto. | |
2216 | (htab_init_data_callback): Ditto. | |
2217 | ||
2218 | Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2219 | ||
2220 | * interrupts.h: Clarify what the optional instruction program | |
2221 | interrupt is - a subset of illegal instruction program interrupt. | |
2222 | ||
2223 | * interrupts.c (program_interrupt): For UEA mode, clarify what an | |
2224 | optional instruction program interrupt is. | |
2225 | (program_interrupt): For OEA mode, as per spec, generate an | |
2226 | illegal instruction program interrupt when an optional instruction | |
2227 | is encountered. | |
72f4393d | 2228 | |
c906108c SS |
2229 | * gen-semantics.c (print_semantic_body): Delete code |
2230 | differentiating between an unimplemented floating point and normal | |
2231 | instruction. Instead, such a case can be handled explicitly. | |
2232 | ||
2233 | * ppc-instructions (store floating-point as integer word indexed): | |
2234 | Mark as optional. | |
2235 | (Floating Convert to Integer Doubleword): Make the floating point | |
2236 | assist interrupt explicit. | |
2237 | (Floating Convert To Integer Doubleword with round towards Zero): | |
2238 | Ditto. | |
2239 | (Floating Convert To Integer Word): Ditto | |
2240 | (Move From FPSCR): Ditto. | |
2241 | (Move to Condition Register from FPSCR): Ditto. | |
2242 | (Move To FPSCR Fields): Ditto. | |
2243 | (Move To FPSCR Field Immediate): Ditto. | |
2244 | (Move To FPSCR Bit 0): Ditto. | |
2245 | (Move To FPSCR Bit 1): Ditto. | |
72f4393d | 2246 | |
c906108c SS |
2247 | Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
2248 | ||
2249 | * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid | |
2250 | breaking up transfers. | |
2251 | ||
2252 | * corefile.c: Adjust arguments so that the client server | |
2253 | relationship is clarified. | |
72f4393d | 2254 | |
c906108c SS |
2255 | * hw_glue.c (hw_glue_init_address): Update so it can be attached |
2256 | to a PCI bus. | |
2257 | ||
2258 | * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO - | |
2259 | looking for things like overflow/underflow. | |
2260 | ||
2261 | Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2262 | ||
2263 | * emul_generic.c (emul_add_tree_hardware): Hang the disk off the | |
2264 | PAL device instead of the IOBUS. The disk must be attached to a | |
2265 | logical bus. | |
2266 | ||
2267 | * hw_disk.c (hw_disk_init_address): Just use the unit address | |
2268 | directly in the attach - the rest isn't relevant. | |
2269 | ||
2270 | Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2271 | ||
2272 | * configure.in (sim-hardware, sim-packages): Allow additional | |
2273 | hardware and packages to be prefixed as well as appended. | |
2274 | ||
2275 | * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of | |
2276 | packages when building them. Consequently, a user can override a | |
2277 | standard device by prefixing their own version. | |
72f4393d | 2278 | |
c906108c SS |
2279 | * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies. |
2280 | ||
2281 | Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
2282 | ||
2283 | * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte | |
2284 | reads and writes. | |
2285 | (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes. | |
2286 | (mon_print_info): Correct typo regarding # of unaligned reads and | |
2287 | writes. Print out how many 1, 2, 4, and 8 byte reads/writes there | |
2288 | are. | |
2289 | ||
2290 | Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
2291 | ||
2292 | * configure.in (AC_CHECK_FUNCS): Add access. | |
2293 | * config{.in,ure}: Regenerate. | |
2294 | ||
2295 | * emul_unix.c (do_unix_nop): System call that always succeeds. | |
2296 | (do_unix_access): Support access system call. | |
2297 | (solaris_descriptors): Make sigaltstack and sigaction nops. | |
2298 | ({solaris,linux}_descriptors): Add support for access. | |
2299 | ||
2300 | Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp> | |
72f4393d | 2301 | |
c906108c SS |
2302 | * Makefile.in (clean): Move config.log to distclean. |
2303 | ||
2304 | Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2305 | ||
2306 | * corefile-n.h (core_map_write_N): Improve abort messages. | |
2307 | ||
2308 | * device.h, device.c (device_attach_address): Remove unused name | |
2309 | parameter. | |
2310 | (device_detach_address): Ditto. | |
2311 | * device_table.h, device_table.c: Update. | |
2312 | * hw_iobus.c (hw_iobus_attach_address_callback): Ditto. | |
2313 | * hw_nvram.c (hw_nvram_init_address): Ditto. | |
2314 | * hw_memory.c (hw_memory_init_address): Ditto. | |
2315 | * hw_vm.c (hw_vm_init_address_callback): Ditto. | |
2316 | (hw_vm_attach_address): Ditto. | |
2317 | (hw_vm_add_space): Ditto. | |
2318 | * hw_init.c (update_for_binary_section): Ditto. | |
2319 | * hw_core.c (hw_core_attach_address_callback): Ditto. | |
2320 | ||
2321 | * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle | |
2322 | configurable parent busses. | |
2323 | ||
2324 | Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2325 | ||
2326 | * device_table.c (generic_device_size_to_attach_size): Provide | |
2327 | limited support for multi-cell sizes. | |
2328 | (generic_device_address_to_attach_address): Ditto for addresses. | |
2329 | ||
2330 | Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2331 | ||
2332 | * device.c (device_add_integer_property): Check for setting of | |
2333 | #address-cells and #size-cells properties. For these, update the | |
2334 | corresponding device values. | |
2335 | (device_nr_address_cells, device_nr_size_cells): Use the value | |
2336 | from the device instead of the property. | |
2337 | ||
2338 | * hw_core.c: Use generic address and size conversions for the top | |
2339 | bus. | |
2340 | ||
2341 | * hw_memory.c (hw_memory_init_address): Tolerate case where | |
2342 | #address and #size cells is greater than 1. | |
2343 | ||
2344 | * device.c (device_tree_print_device): Clean out printing of | |
2345 | properties. | |
72f4393d | 2346 | |
c906108c SS |
2347 | * device.c (split_device_specifier): Don't detect comments here - |
2348 | "#" can be a valid prefix - eg #size-cells. | |
2349 | ||
2350 | * psim.c (psim_merge_device_file): Suppress comments and blank | |
2351 | lines here. | |
2352 | ||
2353 | * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect | |
2354 | pal unit address. Add the property /#address-cells to the root of | |
2355 | the tree. | |
2356 | ||
2357 | * device.c (device_template_create_device): Check that the unit | |
2358 | address was successfully parsed. | |
2359 | ||
2360 | * device_table.c (generic_device_unit_decode): Rewrite to better | |
2361 | handle multi-cell addresses. | |
2362 | (generic_device_unit_encode): Ditto. | |
2363 | ||
2364 | * emul_generic.c (emul_add_tree_hardware): "reg" properties no | |
2365 | longer need the explicit array type - the parser takes care of it. | |
2366 | ||
2367 | * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return | |
2368 | to keep GCC happy. | |
2369 | ||
2370 | Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2371 | ||
2372 | * hw_ide.c: New file. Model of a basic IDE interface attached to | |
2373 | a PCI bus. | |
72f4393d | 2374 | |
c906108c SS |
2375 | * configure.in (hardware): Add the ide device to the default |
2376 | configuration. | |
2377 | * configure: Regenerate. | |
72f4393d | 2378 | |
c906108c | 2379 | * debug.h, debug.c: Add tracing option for the IDE device. |
72f4393d | 2380 | |
c906108c SS |
2381 | Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
2382 | ||
2383 | * hw_phb.c, hw_phb.h: New files - implement a PHB. | |
2384 | ||
2385 | * configure.in (hardware): Add the phb to the list of devices to | |
2386 | build by default. | |
2387 | ||
2388 | Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2389 | ||
2390 | * hw_com.c: Review description. | |
2391 | * hw_disk.c: Ditto. | |
2392 | * hw_htab.c: Ditto. | |
2393 | * hw_eeprom.c: Ditto. | |
2394 | * hw_init.c: Ditto. | |
2395 | * hw_cpu.c: Ditto. | |
72f4393d | 2396 | |
c906108c SS |
2397 | * hw_com.c: Update event handling. |
2398 | ||
2399 | * hw_disk.c: Implement tracing. | |
72f4393d | 2400 | |
c906108c SS |
2401 | Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
2402 | ||
2403 | * device_table.c (generic_device_init_address): Use | |
2404 | assigned-addresses property in preference to any other reg | |
2405 | property. | |
2406 | ||
2407 | Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2408 | ||
2409 | * device.h, device.c (device_find_ranges_property): New function. | |
2410 | Simplify the manipulation of "ranges" properties. | |
72f4393d | 2411 | |
c906108c SS |
2412 | * device.c (device_add_parsed): Extend to include support for the |
2413 | ranges property. | |
2414 | ||
2415 | * device.c (device_add_parsed): Add assigned-addresses to the list | |
2416 | of reg type properties. | |
72f4393d | 2417 | |
c906108c SS |
2418 | * device.c (device_tree_print_device): Add code to format and |
2419 | print a ranges property. | |
72f4393d | 2420 | |
c906108c SS |
2421 | * device.h, device.c (device_nr_address_cells, |
2422 | device_nr_size_cells): New functions. Determine the values of the | |
2423 | standard properties #address-cells and #size-cells. Both of which | |
2424 | are optional and have default values of two and one respectfuly. | |
2425 | Previously, code that determined #address-cells was incorrectly | |
2426 | using a value of one. | |
2427 | ||
2428 | Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2429 | ||
2430 | * debug.h, debug.c: Sort debug options, Add entries for the | |
2431 | comming PHB device. | |
72f4393d | 2432 | |
c906108c SS |
2433 | Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
2434 | ||
2435 | * ppc-instructions (Floating Select): Add support for fsel unless | |
2436 | model is 601. Allow user to filter out instruction unless -Fs is | |
2437 | passed to igen. | |
2438 | (Store Floating-Point as Integer Word Indexed): Raise optional | |
2439 | instruction program abort. Allow user to filter out instruction | |
2440 | unless -Fs is passed to igen. | |
2441 | (Floating Square Root{, Single}): Ditto. | |
2442 | (Floating Reciprocal Estimate Single): Ditto. | |
2443 | (Floating Reciprocal Square Root Estimate): Ditto. | |
2444 | ||
2445 | * configure.in (--enable-sim-filter): If not passed, pass 32,f,s | |
2446 | to igen. | |
2447 | * configure: Regenerate. | |
2448 | ||
2449 | * interrupts.h (program_interrupt_reasons): Add | |
2450 | optional_instruction_program_interrupt. | |
2451 | ||
2452 | * interrupts.c (program_interrupt): Call error with more detailed | |
2453 | information on program interrupts, particularly in user mode. Add | |
2454 | support for optional_instruction_program_interrupt. | |
2455 | ||
2456 | Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2457 | ||
2458 | * hw_glue.c: New device. Hooks for manipulating interrupt ports. | |
2459 | ||
2460 | * debug.h, debug.c (trace_glue_device): Add tracing support for | |
72f4393d | 2461 | the interrupt glue logic device. |
c906108c SS |
2462 | |
2463 | * configure.in (hardware): Add glue device. | |
2464 | * configure: Regenerate. | |
2465 | ||
2466 | Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2467 | ||
2468 | * device.c (device_tree_parse_integer_property): New function, | |
72f4393d | 2469 | parse a list of integers as an array property. |
c906108c SS |
2470 | (device_tree_add_parsed): Call it. |
2471 | ||
2472 | * device.c (device_tree_parse_string_property): New function, | |
72f4393d L |
2473 | parse a list of strings as a string property (with embeded |
2474 | null's). For moment, don't try to implement a complext string | |
2475 | parser. | |
c906108c SS |
2476 | (device_tree_add_parsed): Call it. |
2477 | ||
2478 | Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2479 | ||
2480 | * hw_opic.c: New file. OpenPIC interrupt controller. | |
2481 | ||
2482 | * configure.in (hardware): Add opic device. | |
2483 | * configure: re-generate. | |
2484 | ||
2485 | * hw_pic.c: Delete, replaced with hw_opic.c. | |
2486 | ||
2487 | * debug.h, debug.c: Add debug option for OpenPIC device. - | |
72f4393d | 2488 | opic-device. |
c906108c SS |
2489 | |
2490 | Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2491 | ||
2492 | * Makefile.in (psim.o, idecode.o): Since idecode and not psim is | |
72f4393d | 2493 | now the file that does all the inlining. |
c906108c SS |
2494 | |
2495 | * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the | |
72f4393d L |
2496 | library source code that could be involved in an inlining. Make |
2497 | idecode.o only dependant on the inlined library source code. | |
c906108c SS |
2498 | |
2499 | * Makefile.in (LIB_OBJ): Put options last on the list so that it | |
72f4393d | 2500 | is compiled last. |
c906108c SS |
2501 | |
2502 | * std-config.h (DEVICE_INLINE): Only inline locals when the | |
72f4393d | 2503 | default is to inline. |
c906108c SS |
2504 | |
2505 | Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2506 | ||
2507 | * hw_htab.c (htab_sum_binary): Determine the real-base for the | |
72f4393d | 2508 | binary. |
c906108c SS |
2509 | |
2510 | * hw_htab.c (htab_map_binary): Depending on the value of the | |
72f4393d L |
2511 | load-base, either map the program in as a contiguous section or as |
2512 | separate sections controled by th binaries lma values. | |
c906108c SS |
2513 | (htab_init_data_callback): Ditto. |
2514 | ||
2515 | Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2516 | ||
2517 | * emul_generic.c (emul_add_tree_options): Remove load-base option. | |
2518 | ||
2519 | * emul_chirp.c (map_over_chirp_note): Add load_base field to note | |
72f4393d L |
2520 | struct. Don't require the load_base field to be present - just |
2521 | issue warning - it is a recent addition. | |
c906108c SS |
2522 | (emul_chirp_create): Support both virtual and physical modes. |
2523 | ||
2524 | * emul_chirp.c (emul_chirp_create): Add a stack initialization | |
72f4393d L |
2525 | property so that any arguments specified on the command line can |
2526 | be passed on to user programs. | |
c906108c SS |
2527 | |
2528 | * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp | |
72f4393d | 2529 | argument passing to the pseudo device stack. |
c906108c SS |
2530 | |
2531 | Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2532 | ||
2533 | * device.c (device_error): Make it more tolerant to incomplete | |
72f4393d | 2534 | devices. |
c906108c SS |
2535 | |
2536 | * hw_init.c (hw_data_init_data_callback): Extend the data device | |
72f4393d L |
2537 | so that it can perform initialization operations either dma or a |
2538 | more complex instance open, seek, write operation. | |
c906108c | 2539 | * hw_init.c: Update the description of the data device to reflect |
72f4393d | 2540 | this. |
c906108c SS |
2541 | |
2542 | Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2543 | ||
2544 | * device.c (device_event_queue_schedule, | |
72f4393d L |
2545 | device_event_queue_deschedule, device_event_queue_time): Have the |
2546 | device object export the event operations. Making these available | |
2547 | from the device object should hopefully simplify writing device | |
2548 | models. | |
c906108c SS |
2549 | |
2550 | Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2551 | ||
2552 | * configure.in (sim-hardware): Add eeprom device to default build. | |
2553 | ||
2554 | * hw_eeprom.c: Rewrite so it works. | |
2555 | ||
2556 | * debug.h, debug.c: Add tracing support for the eeprom and com | |
72f4393d | 2557 | devices. |
c906108c SS |
2558 | |
2559 | Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2560 | ||
2561 | * debug.h: Add disklabel-package and disk-device trace options. | |
2562 | debug.h (PTRACE): Add macro to simplify tracing in packages. | |
2563 | ||
2564 | Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2565 | ||
2566 | * device.c (device_create_instance_from): Tighten up loop | |
72f4393d | 2567 | searching for device instances. |
c906108c SS |
2568 | (device_instance_delete): Ditto. |
2569 | (device_instance_delete): Only leaf instances need to be removed | |
72f4393d | 2570 | from a devices list of active instances. |
c906108c SS |
2571 | |
2572 | Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2573 | ||
2574 | * hw_disk.c: Add the cdrom as an alias. | |
2575 | ||
2576 | * pk_disklabel.c (disklabel_delete): Implement, remembering to | |
72f4393d | 2577 | delete the raw disk instance while we're at it. |
c906108c SS |
2578 | |
2579 | * pk_disklabel.c (pk_disklabel_create_instance): Implement a | |
72f4393d | 2580 | little bit more - still a long way to go. |
c906108c SS |
2581 | |
2582 | * pk_disklabel.c (disklabel_write, disklabel_read): Remember the | |
72f4393d | 2583 | new head position after a read or write. |
c906108c SS |
2584 | |
2585 | Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2586 | ||
2587 | * emul_chirp.c (chirp_emul_read): Allow reads to be longer then | |
72f4393d | 2588 | the internal buffer. |
c906108c SS |
2589 | |
2590 | Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2591 | ||
2592 | * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args | |
72f4393d | 2593 | in the correct order. |
c906108c SS |
2594 | |
2595 | * emul_chirp.c (chirp_emul_call_method): Correct computation for | |
72f4393d L |
2596 | the address of the first stack argument passed in from the client |
2597 | program. | |
c906108c SS |
2598 | |
2599 | Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2600 | ||
2601 | * words.h: Add new types signed_cell and unsigned_cell which | |
72f4393d | 2602 | correspond to the signed and unsigned IEEE 1275 memory locations. |
c906108c | 2603 | * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275 |
72f4393d | 2604 | memory cell, replace uses of unsigned32 with unsigned_cell. |
c906108c SS |
2605 | * device_table.h: Ditto. |
2606 | ||
2607 | * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which | |
72f4393d | 2608 | convert cell sized values to from big endian. |
c906108c | 2609 | * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells |
72f4393d | 2610 | use these new macros. |
c906108c SS |
2611 | |
2612 | Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2613 | ||
2614 | * device.c (device_tree_add_parsed): Detect and report an | |
72f4393d | 2615 | interrupt being attached to an invalid device. Was dumping core. |
c906108c SS |
2616 | |
2617 | Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2618 | ||
2619 | * device.h, device.c (device_address_to_attach_address, | |
72f4393d L |
2620 | device_size_to_attach_size): New functions. Convert a devices |
2621 | unit address or unit size structure into a form suitable for | |
2622 | passing on to the attach and detach functions. | |
c906108c SS |
2623 | * device_table.h: Add extra methods to device table. |
2624 | ||
2625 | * device.h, device.c (device_find_reg_property): New function. | |
72f4393d L |
2626 | For a reg type property, return the selected address + size |
2627 | tupple, along with a positive success status. Add a reg_property | |
2628 | to the list of property types. | |
c906108c | 2629 | * (device_tree_add_parsed): Make array properties with the name |
72f4393d | 2630 | reg or alternate-reg of type reg_property. |
c906108c SS |
2631 | |
2632 | * hw_memory.c (hw_memory_init_address): Rewrite to use new | |
72f4393d | 2633 | find_reg_property method. |
c906108c SS |
2634 | * hw_nvram.c (hw_nvram_init_address): Ditto. |
2635 | ||
2636 | * device.c (device_tree_print_device): Add code to print out a reg | |
72f4393d | 2637 | property. |
c906108c SS |
2638 | |
2639 | * device_table.c (generic_device_address_to_attach_address, | |
72f4393d L |
2640 | generic_device_size_to_attach_size ): New functions. Generic |
2641 | functions for converting between unit and attach address or size. | |
c906108c SS |
2642 | |
2643 | * device_table.c (generic_device_init_address): Rewrite to use the | |
72f4393d L |
2644 | new find_reg and address convert functions. Look for both reg and |
2645 | alternate-reg properties. | |
c906108c SS |
2646 | |
2647 | Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2648 | ||
2649 | * hw_com.c: New file. A '550 serial device that can quickly be | |
72f4393d | 2650 | attached to any bus. |
c906108c SS |
2651 | * configure.in (enable-sim-hardware): Add the com device. |
2652 | * configure: re-generate. | |
2653 | ||
2654 | Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2655 | ||
2656 | * device.c (device_tree_verify_reg_unit_address): New | |
72f4393d L |
2657 | function. Check that the unit address as specified by the reg |
2658 | property correctly corresponds to any unit address previously | |
2659 | specified by the devices name. | |
c906108c SS |
2660 | (device_tree_add_parsed): When adding a reg property, verify |
2661 | that the unit-address - first value of property - correctly | |
2662 | matches any previous value specified when creating the device | |
2663 | node. | |
2664 | ||
2665 | Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2666 | ||
2667 | * mon.c (mon_event): Remove assertion that an unsigned is >= 0. | |
2668 | ||
2669 | Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
2670 | ||
2671 | * device.c (device_full_name): Cast strdup to char *, since AIX | |
2672 | 3.2.5 mistakenly declares the function to be const char *. | |
2673 | (device_create_from): Ditto. | |
2674 | (device_create_instance_from): Ditto. | |
2675 | (device_add_property): Ditto. | |
2676 | ||
2677 | Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
2678 | ||
2679 | * debug.c (trace_option): For -t all, do not set the | |
2680 | trace_dump_device_tree flag, so that the simulator is run. | |
2681 | ||
2682 | Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
2683 | ||
2684 | * Makefile.in (options.o): Depend on defines.h. | |
2685 | (defines.h): New rule, go through config.h and make strings of all | |
2686 | of the #define HAVE_xxx macros. | |
2687 | (distclean): Remove defines.h. | |
2688 | ||
2689 | * options.c (print_options): Print whether many of the | |
2690 | configuration macros are defined. | |
2691 | ||
2692 | * main.c (main): If -t options and no filename, just print the | |
2693 | options, and don't print the usage message. | |
2694 | ||
2695 | Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
2696 | ||
2697 | * configure.in: Test whether /dev/zero works on the system, and if | |
2698 | it does, define HAVE_DEVZERO. | |
2699 | * configure: Regenerate. | |
2700 | ||
2701 | * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk | |
2702 | if we don't have a working /dev/zero on the system. | |
2703 | ||
2704 | * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not | |
2705 | defined, don't add disk support. | |
2706 | (emul_bugapi_do_diskio): Ditto. | |
2707 | (emul_bugapi_instruction_call): Ditto. | |
2708 | ||
2709 | Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
2710 | ||
2711 | * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not | |
2712 | defined, make sure HAVE_TCGETATTR is #undef'ed | |
2713 | ||
2714 | Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
2715 | ||
2716 | * std-config.h (REGPARM): Only define REGPARM attributes if using | |
2717 | GNU C. Test for __i686__ in case GCC ever defines it. If not on | |
2718 | a x86 platform, define REGPARM as nothing. | |
2719 | ||
2720 | * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__ | |
2721 | also. | |
2722 | ||
2723 | Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2724 | ||
2725 | * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct | |
2726 | goto_switch_gen. | |
2727 | * gen-idecode.c: Ditto. | |
2728 | ||
2729 | * gen-idecode.c (print_idecode_table): Comment out check for | |
2730 | switch/table combination until a bug with it is fixed. | |
2731 | ||
2732 | * ppc-opcode-goto: New file. Like complex and flat but uses | |
2733 | goto-switch instead of padded-switch for the tables. | |
2734 | ||
2735 | * gen-idecode.c (print_goto_switch_name): New function. | |
2736 | (print_goto_switch_table_leaf): New function. | |
2737 | (print_goto_switch_break): New function. | |
2738 | (print_goto_switch_table): New function. Prints a jump table | |
2739 | that can be jumped into instead of a switch statement. | |
2740 | ||
2741 | * gen-idecode.c (*switch_*): As an option output a switch that is | |
2742 | implemented using a jump table but only if the switch is not | |
2743 | boolean. | |
72f4393d | 2744 | |
c906108c SS |
2745 | Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
2746 | ||
2747 | * configure.in (--enable-sim-{hardware,packages}): Fix typos. | |
2748 | * configure: Regenerate. | |
2749 | ||
2750 | * device.c (device_instance_call_method): Fixup format message in | |
2751 | error case. Return 0 in case of error to shut up compiler | |
2752 | warnings. | |
2753 | ||
2754 | Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2755 | ||
2756 | * device_table.c (generic_device_unit_decode): Require a comma | |
72f4393d | 2757 | between elements of a unit address. |
c906108c SS |
2758 | |
2759 | * device.c (device_tree_print_device): For reg, alternate-reg and | |
72f4393d | 2760 | ranges properties use special print functions. |
c906108c SS |
2761 | (device_print_ranges_property): Print formatted ranges property. |
2762 | (device_print_reg_property): Print formatted reg property. | |
2763 | ||
2764 | Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2765 | ||
2766 | * device.c (device_tree_add_parsed): For reg, ranges and | |
72f4393d | 2767 | alternate-reg properties use a special parser. |
c906108c SS |
2768 | (device_tree_parse_reg_property): New function to parse a reg |
2769 | property. | |
2770 | (device_tree_parse_ranges_property): New function to parse a | |
2771 | ranges property. | |
2772 | (device_encode_unit): Wrapper for encode_unit callback. | |
2773 | (device_decoce_unit): Wrapper for decode_unit callback. | |
2774 | ||
2775 | Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2776 | ||
2777 | * device_table.h (device_instance_callbacks): Relace the claim and | |
72f4393d L |
2778 | release methods with a more general table mapping from method-name |
2779 | to method-function. | |
c906108c SS |
2780 | |
2781 | * device.c (device_instance_call_method): New function. Implement | |
72f4393d L |
2782 | the OpenBoot call-method client interface. Attempts to locate the |
2783 | instances method in the callback table. | |
c906108c | 2784 | (device_instance_claim, device_instance_release): Delete. |
72f4393d | 2785 | Replaced with call-method and a lookup table. |
c906108c SS |
2786 | |
2787 | * emul_chirp.c (chirp_emul_call_method): Use the new device | |
72f4393d | 2788 | instance call method and let that handle a client claim call. |
c906108c SS |
2789 | |
2790 | * hw_htab.c (claim_memory): Wrapper function to call the memory | |
72f4393d L |
2791 | devices "claim" method using the new device-instance call-method |
2792 | interface. Replaces the previous direct calls to claim. | |
c906108c SS |
2793 | (htab_map_region): Use claim_memory. |
2794 | (htab_init_data_callback): Ditto. | |
2795 | ||
2796 | * hw_memory.c (hw_memory_instance_claim): Update function | |
72f4393d | 2797 | interface so that it is compatible with call-method. |
c906108c SS |
2798 | (hw_memory_instance_release): Ditto. |
2799 | (hw_memory_instance_methods): New table of memory specific | |
72f4393d | 2800 | methods claim and release. Add to the hw_memory_callback |
c906108c SS |
2801 | table. |
2802 | ||
2803 | Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2804 | ||
2805 | * psim.c (psim_init): Back out of change to initial value of | |
72f4393d | 2806 | system->last_cpu. |
c906108c SS |
2807 | |
2808 | Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2809 | ||
2810 | * sim_callbacks.h (sim_io_printf_filtered): Replace | |
2811 | printf_filtered with a local simulator specific version. Add | |
2812 | #define printf_filtered to simplify updating of existing code. | |
2813 | ||
2814 | * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin, | |
72f4393d L |
2815 | sim_io_write_stderr): New functions. Read / write to the |
2816 | simulations stdin and stdout and stderr interfaces. Merge in code | |
2817 | from hw_pal that previously handled async I/O. | |
c906108c SS |
2818 | (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define |
2819 | flush_stdoutput to simplify updating of existing code. | |
2820 | ||
2821 | * hw_pal.c (scan_hw_pal, write_hw_pal, | |
72f4393d | 2822 | hw_pal_instance_write_callback): Use the new sim_io functions. |
c906108c SS |
2823 | |
2824 | * main.c: Implement standalone versions of the new sim_io | |
72f4393d | 2825 | functions. Include support for async I/O. |
c906108c SS |
2826 | * sim_calls.c: Ditto. This time using the gdb callback table. |
2827 | ||
2828 | * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up | |
72f4393d L |
2829 | stdio configuration so that it works in the same way as the rest |
2830 | of the simulation. | |
c906108c | 2831 | * psim.c (psim_create): Initialize current_stdio from the device |
72f4393d | 2832 | tree. |
c906108c | 2833 | * emul_generic.c (emul_add_tree_options): Enter a default value |
72f4393d | 2834 | for use-stdio in the device tree. |
c906108c SS |
2835 | |
2836 | Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2837 | ||
2838 | * gen-idecode.c (print_jump): Was always generating a jump back to | |
2839 | idecode. Only necessary at tail of semantic code. | |
2840 | (print_jump): Was always setting the processor's cia, even during | |
2841 | startup when the processor was still undefined. | |
2842 | (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus, | |
2843 | not just equal. | |
72f4393d | 2844 | |
c906108c SS |
2845 | * options.c (print_options): Add printing of WITH_REGPARM and |
2846 | WITH_STDCALL. | |
2847 | ||
2848 | * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default | |
2849 | (disabled) values if not defined. | |
2850 | ||
2851 | Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2852 | ||
2853 | * ppc-cache-rules (cache): Change RS and RB to cache instead of | |
72f4393d | 2854 | compute. The block move instructions use them. |
c906108c SS |
2855 | |
2856 | * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR | |
72f4393d | 2857 | register. |
c906108c SS |
2858 | (CR_FIELD): New macro, extract specific CR register. |
2859 | (FPSCR_FIELD): New macro, extract specific FPSCR register. | |
2860 | ||
2861 | * registers.h (GPR): New macro, simplify accesses to GPR[i]. | |
2862 | ||
2863 | * bits.c (INSERTED): Covert INSERTED macro into a function. | |
2864 | (EXTRACTED): Conditionally compile on correct bit size macro. | |
2865 | ||
2866 | * bits.h (BIT8): New macro, set a single bit in an 8 bit byte. | |
2867 | ||
2868 | * ppc-instructions: With hints from Paul Martin, type in missing | |
2869 | some instruction semantics. Leave disabled for the moment. | |
2870 | (Load Multiple Word): Ditto. | |
2871 | (Store Multiple Word): Ditto. | |
2872 | (Load String Word Immediate): Ditto. | |
2873 | (Load String Word Indexed): Ditto. | |
2874 | (Store String Word Immedate): Ditto. | |
2875 | (Store String Word Indexed): Ditto. | |
2876 | (Move to Condition Register from XER): Ditto. | |
2877 | (Move From Condition Register): Ditto. | |
2878 | (Move From FPSCR): Ditto. | |
2879 | (Move to Condition Register from FPSCR): Ditto. | |
2880 | (Move To FPSCR Field Immediate): Ditto. | |
2881 | (Move To FPSCR Fields): Ditto. | |
2882 | (Move To FPSCR Bit 0): Ditto. | |
2883 | (Move To FPSCR Bit 1): Ditto. | |
2884 | ||
2885 | Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2886 | ||
2887 | * std-config.h (SEMANTICS_INLINE): By default, mask out the | |
72f4393d L |
2888 | inlining of semantic functions from DEFAULT_INLINE. Almost all |
2889 | configurations call the semantic code via a pointer so there is | |
2890 | little benefit. | |
c906108c SS |
2891 | |
2892 | * std-config.h (ICACHE_INLINE): Ditto. | |
2893 | ||
2894 | Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2895 | ||
2896 | * configure.in (sim_regparm): Add configuration option for | |
72f4393d | 2897 | enabling GCC's regparm attribute. |
c906108c | 2898 | * (sim_stdcall): Add configuration option for enabling GCC's |
72f4393d | 2899 | stdcall attribute. |
c906108c SS |
2900 | |
2901 | * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto | |
72f4393d | 2902 | compilations. |
c906108c SS |
2903 | * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations. |
2904 | ||
2905 | * std-config.h (REGPARM): Extend construction of REGPARM macro so | |
72f4393d | 2906 | that it can include __stdcall__ function attribute. |
c906108c SS |
2907 | |
2908 | Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff> | |
2909 | ||
2910 | * options.c (print_options): Include SUPPORT_INLINE in information | |
2911 | dump. | |
2912 | ||
2913 | * gen-idecode.c (print_run_until_stop_body): Only generate loop | |
2914 | termination test if creating idecode_run_until_stop. Push the | |
2915 | loop termination test back into each alternative branch. | |
2916 | ||
2917 | Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2918 | ||
2919 | * gen-icache.c (print_icache_function): Have the cache function | |
2920 | always update the cache_entries semantic and address fields. | |
2921 | ||
2922 | * gen-idecode.c (print_idecode_switch_illegal): Include a break | |
2923 | when generating illegal instructions. This was commented out | |
2924 | which is a hangover from looking a at switch statements generated | |
2925 | using indirect jumps. | |
2926 | ||
2927 | Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2928 | ||
2929 | * igen.c (print_my_defines): Replaces print_define_my_index. | |
72f4393d | 2930 | Print both a definition for MY_INDEX and MY_PREFIX. |
c906108c SS |
2931 | * gen-icache.c (print_icache_function): Adjust. |
2932 | * gen-idecode.c (print_jump_insn): Adjust. | |
2933 | * gen-semantics.c (print_c_semantic): Adjust. | |
2934 | ||
2935 | * gen-support.c (gen_support_h): Add optional include to created | |
72f4393d L |
2936 | support.h so that, like cpu, it is optionally inlined for all |
2937 | modules that include it. | |
c906108c | 2938 | * inline.h, inline.c: Adjust so that support.[hc] is handled the |
72f4393d | 2939 | same as cpu.[hc]. |
c906108c SS |
2940 | |
2941 | * idecode_fields.h (LABEL, GOTO): Macro's that create a unique | |
72f4393d | 2942 | name for a lable and then branch to it. |
c906108c SS |
2943 | |
2944 | * ppc-instructions (convert_to_integer, Floating Round to | |
72f4393d L |
2945 | Single-Precision, Floating Convert from Integer Doubleword): Use |
2946 | LABEL and GOTO instead of the recently added switch statements. | |
c906108c SS |
2947 | |
2948 | Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au> | |
2949 | ||
2950 | * gen-idecode.c (print_run_until_stop_body): Too many rparen in | |
2951 | generated code. | |
2952 | ||
2953 | Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
2954 | ||
2955 | * configure.in (--enable-sim-line-nr): Typo - sim_line-nr. | |
2956 | * (--enable-sim-inline): Reorder patern matching of arguments so | |
72f4393d | 2957 | that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE. |
c906108c SS |
2958 | |
2959 | * configure: rebuild. | |
2960 | ||
2961 | Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au> | |
2962 | ||
2963 | * configure.in (--enable-sim-hardware, --enable-sim-packages): New | |
72f4393d L |
2964 | configuration options. Let the user specify the packages or |
2965 | hardware devices that are to be included in the build. Makes it | |
2966 | possible for user packages to be specified. | |
c906108c SS |
2967 | |
2968 | * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and | |
2969 | hardware instead of checking it using ls. configure.in should | |
2970 | have taken care of any problems. | |
2971 | (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure. | |
2972 | ||
2973 | Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au> | |
2974 | ||
2975 | * psim.c (psim_options): Enter the argument to the memory size | |
72f4393d L |
2976 | option directly into the device tree. Was using atol() which is |
2977 | dangerously non portable. | |
c906108c SS |
2978 | |
2979 | Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au> | |
2980 | ||
2981 | * configure.in (icache): Extend icache flag to include an insn | |
72f4393d L |
2982 | option. If specifyed the insn - aka instruction - is included in |
2983 | the instruction cache. Make this the default. | |
c906108c SS |
2984 | * configure: re-generate. |
2985 | ||
2986 | * igen.c (main), igen.h: Add option -S - inSn - for specifying | |
72f4393d | 2987 | that the instruction should be included in the icache. |
c906108c SS |
2988 | |
2989 | * gen-icache.c (print_icache_body): If enabled, output code to put | |
72f4393d | 2990 | the instruction into the icache. |
c906108c SS |
2991 | (print_icache_struct): If enabled, add insn to the icache struct. |
2992 | ||
2993 | Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au> | |
2994 | ||
2995 | * Makefile.in (BUILD_CFLAGS): Include -g when building the | |
72f4393d | 2996 | generators. |
c906108c SS |
2997 | |
2998 | Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au> | |
2999 | ||
3000 | * emul_generic.c (emul_add_tree_options): Was incorrectly setting | |
72f4393d L |
3001 | the strict-alignment option when hardwired for non-strict |
3002 | alignment. | |
c906108c SS |
3003 | |
3004 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3005 | ||
3006 | * gen-semantics.c: Make the my_index variable a macro MY_INDEX. | |
3007 | ||
3008 | * ppc-instructions: Adjust so that references are to MY_INDEX and | |
72f4393d | 3009 | not my_index. |
c906108c SS |
3010 | |
3011 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3012 | ||
3013 | * gen-idecode.c: Output the complete run_until_stop function | |
72f4393d | 3014 | instead of just the code to handle a single instruction issue. |
c906108c SS |
3015 | * : Have the generated idecode.c include inline.c (instead of psim.c). |
3016 | ||
3017 | * std-config.h: Change psim.c so that it isn't inlined (as this is | |
72f4393d | 3018 | no longer needed). |
c906108c SS |
3019 | |
3020 | * psim.c (run_until_stop): Delete the old run_until_stop function | |
72f4393d L |
3021 | instead calling the idecode_run and idecode_run_until_stop |
3022 | functions that gen-idecode.c is now creating. | |
c906108c SS |
3023 | |
3024 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3025 | ||
3026 | * dgen.c: Maintenance - update to use new features found in lf.c. | |
3027 | ||
3028 | * filter_filename.c (filter_filename): Maintenance - make the | |
72f4393d | 3029 | string constant. |
c906108c SS |
3030 | |
3031 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3032 | ||
3033 | * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP | |
72f4393d | 3034 | eliminate trace statements. |
c906108c SS |
3035 | |
3036 | * debug.c: Change trace format so that it is consistent | |
72f4393d | 3037 | (file:line-nr) with CC's error output. |
c906108c SS |
3038 | |
3039 | * gen-itable.c (itable_c_insn): Add the source file name and | |
72f4393d | 3040 | source line number to the instruction's informational entry. |
c906108c SS |
3041 | |
3042 | * debug.c (ITRACE): Use the itable (and my_index) to get the | |
72f4393d | 3043 | current instructions name and source line number. |
c906108c SS |
3044 | |
3045 | * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to | |
72f4393d | 3046 | match new interface. |
c906108c SS |
3047 | |
3048 | * emul_bugapi.c (emul_bugapi_instruction_call): Adjust | |
72f4393d | 3049 | corresponding call to ITRACE so that it still matches. |
c906108c SS |
3050 | |
3051 | * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead | |
72f4393d L |
3052 | of ITRACE. The CPP line directives would have previously set the |
3053 | line-nr and file name so ITRACE isn't needed. | |
c906108c SS |
3054 | |
3055 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3056 | ||
3057 | * gen-idecode.c (print_jump_until_stop_body): New function and | |
72f4393d L |
3058 | idecode generation option. Instead of generating and calling |
3059 | separate functions containing the semantic and icache code | |
3060 | generate a single monolythic function and use goto's (and GCC's | |
3061 | indirect jump) to move between code blocks. | |
c906108c SS |
3062 | |
3063 | * Makefile.in: Add sim_jump flag to those passed to igen. | |
3064 | ||
3065 | * configure.in: New option --enable-sim-jump (default disabled) | |
3066 | ||
3067 | * ppc-instructions: Eliminate any uses of labels and goto's. | |
72f4393d L |
3068 | These result in duplicate declarations when a single flat function |
3069 | is being create. | |
c906108c SS |
3070 | |
3071 | * ppc-opcode-jump: New file. Set of opcode rules useful when | |
72f4393d | 3072 | testing jumping idecodes. |
c906108c SS |
3073 | |
3074 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3075 | ||
3076 | * gen-idecode.c: Optionally include the semantic code for an | |
72f4393d | 3077 | instruction in the function that is doing the decoding. |
c906108c SS |
3078 | |
3079 | * igen.c: Add option (-C) to generate semantics in the instruction | |
72f4393d | 3080 | decode functions. |
c906108c SS |
3081 | |
3082 | * configure.in (--enable-sim-icache): Accept an option list such | |
72f4393d L |
3083 | as 1024,define. Add a new choice to the list - semantic - which |
3084 | will cause igen to generate instruction decode functions that | |
3085 | include the corresponding semantic code. | |
c906108c SS |
3086 | |
3087 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3088 | ||
3089 | * configure.in: New option --enable-sim-line-nr (default enabled). | |
72f4393d L |
3090 | Enable/disable the inclusion of CPP line directives in the |
3091 | generated files. Such directives refer back to the source files | |
3092 | used when generating the simulator code. | |
c906108c SS |
3093 | |
3094 | * Makefile.in (sim_line_nr): Pass to igen. | |
3095 | ||
3096 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3097 | ||
3098 | * igen.c (main): Revamp the options so that more letters are | |
72f4393d | 3099 | available. |
c906108c SS |
3100 | |
3101 | * configure.in: Adjust to match igen's revamped options | |
3102 | ||
3103 | Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3104 | ||
3105 | * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so | |
72f4393d L |
3106 | that they use the same technique as igen (ie a dummy targets |
3107 | tmp-pk and tmp-hw are created). | |
c906108c SS |
3108 | |
3109 | Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3110 | ||
3111 | * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS. | |
3112 | ||
3113 | Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3114 | ||
3115 | * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate | |
72f4393d | 3116 | out the loading of each of the tables from the rest of igen. |
c906108c SS |
3117 | * Makefile.in: Adjust. |
3118 | * igen.c: Adjust. | |
3119 | ||
3120 | * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc], | |
72f4393d L |
3121 | gen-model.[hc], gen-semantics.[hc]: New files. Separate out the |
3122 | code creating each separate set of generated files. | |
c906108c SS |
3123 | * Makefile.in: Adjust. |
3124 | * igen.c: Adjust. | |
3125 | ||
3126 | * gen-support.[ch]: New files. Output the support functions (found | |
72f4393d | 3127 | in the ppc-instructions file) into a separate file. |
c906108c SS |
3128 | * Makefile.in: Add. |
3129 | * inline.h, inline.c: Add. | |
3130 | * std-config.h: Add. | |
3131 | ||
3132 | * ld-cache.c: Re-design the cache table format. | |
3133 | * ppc-cache-rules: Update to new format. | |
3134 | ||
3135 | * ld-decode.c: Re-design the decode table format. | |
3136 | * ppc-opcode-simple: Update to new format | |
3137 | * ppc-opcode-complex: Ditto | |
3138 | * ppc-opcode-flat: Ditto | |
3139 | ||
3140 | * filter.h, filter.c: New files. Separate the opcode filter table | |
72f4393d | 3141 | reading code from the rest of igen.c. Re-design the filter so that |
c906108c SS |
3142 | it works inclusivly not exclusivly. |
3143 | * igen.c: Remove the opcode filter table loading code. | |
3144 | * Makefile.in (filter.o): Adjust | |
3145 | * configure.in: Adjust filter flag so that default includes 32bit | |
3146 | and floating point. | |
3147 | * ppc-instructions: Clean up filter fields so that only in use | |
72f4393d | 3148 | entries are specified (ie delete `be'). |
c906108c SS |
3149 | |
3150 | * misc.c (name2i, i2name): New function. Map between a string and | |
72f4393d | 3151 | an integer value. |
c906108c SS |
3152 | |
3153 | Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3154 | ||
3155 | * sim_calls.c (sim_close): If simulator not created, skip printing | |
72f4393d | 3156 | of run information. |
c906108c SS |
3157 | |
3158 | Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3159 | ||
3160 | * registers.c (register_description): Typo, insns not insn. | |
3161 | ||
3162 | * ppc-instructions (model_get_number_of_stalls): New model function, | |
3163 | returns number of stalls for the specified processor. | |
3164 | * psim.c (psim_read_register): Add call to new function | |
3165 | model_get_number_of_stalls(). | |
3166 | ||
3167 | * ppc-instructions (model_get_number_of_cycles): New model function, | |
3168 | returns number of stalls for the specified processor. | |
3169 | * psim.c (psim_read_register): Add call to new function | |
3170 | model_get_number_of_cycles(). | |
3171 | ||
3172 | Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3173 | ||
3174 | * device_table.h: Don't pass the parent device into a devices | |
72f4393d L |
3175 | create function. This makes the create function consistent with |
3176 | the documentation. | |
c906108c SS |
3177 | * device.c (device_template_create_device): Ditto |
3178 | * hw_pal.c (hw_pal_create): Ditto | |
3179 | * hw_core.c (hw_core_create): Ditto | |
3180 | * hw_vm.c (hw_vm_create): Ditto | |
3181 | * hw_disk.c (hw_disk_create): Ditto | |
3182 | * hw_nvram.c (hw_nvram_create): Ditto | |
3183 | * hw_memory.c (hw_memory_create): Ditto | |
3184 | * hw_cpu.c (hw_cpu_create): Ditto. | |
3185 | ||
3186 | * device.c (split_find_device): Allow a null initial parent device. | |
3187 | (device_template_create_device): Ditto. | |
3188 | ||
3189 | * device.c (device_create_from): Make local (static) only used | |
72f4393d | 3190 | within device.c. |
c906108c | 3191 | * device_table.h: typedef device_callbacks moved here (from |
72f4393d | 3192 | device.h) where it belongs. |
c906108c SS |
3193 | |
3194 | * hw_core.c: New file. Implements just the core device using the | |
72f4393d | 3195 | core object. |
c906108c SS |
3196 | |
3197 | * corefile.c: Moved all core device functions into the new | |
72f4393d | 3198 | hw_core.c file. core_device_create() disapears. |
c906108c SS |
3199 | |
3200 | * psim.c (psim_tree): Use device_tree_add_parsed() to create the | |
72f4393d | 3201 | core device. |
c906108c SS |
3202 | |
3203 | Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3204 | ||
3205 | * hw_init.c: Correct typo in comment. | |
3206 | ||
3207 | * corefile.c (core_init): Remove any remaining references to a | |
72f4393d | 3208 | default map. |
c906108c SS |
3209 | (core_map_find_mapping): Ditto. |
3210 | ||
3211 | Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3212 | ||
3213 | * corefile.c (core_init): Make function global so that other | |
72f4393d | 3214 | devices are able to use the full core object. |
c906108c SS |
3215 | |
3216 | * corefile.c (core_create, core_from_device): Break core_create | |
72f4393d L |
3217 | into two functions. The first creates a core object, the second |
3218 | returns the core object associated with a core device. | |
c906108c SS |
3219 | |
3220 | * corefile.c (core_device_create): Use core_create to make the | |
72f4393d | 3221 | core object. |
c906108c SS |
3222 | |
3223 | * psim.c (psim_create): Use core_from_device() instead of | |
72f4393d | 3224 | core_create(). |
c906108c SS |
3225 | |
3226 | * device.c (device_template_create_device): Make static as only | |
72f4393d | 3227 | needed by functions internal to device.c. |
c906108c SS |
3228 | |
3229 | Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3230 | ||
3231 | * ppc-opcode-test-2: Remove description of fields. | |
3232 | * ppc-opcode-complex: Ditto | |
3233 | * ppc-opcode-flat: Ditto | |
3234 | * ppc-opcode-simple: Ditto | |
3235 | * ppc-opcode-stupid: Ditto | |
3236 | * ppc-opcode-test-1: Ditto | |
3237 | * ppc-cache-rules: Ditto | |
3238 | ||
3239 | * igen.c: Add description of files as a comment at the front. | |
3240 | ||
3241 | Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3242 | ||
3243 | * configure.in: Check for whether the termios and termio | |
3244 | structures are really defined, and whether or not, they define the | |
3245 | c_line field. | |
3246 | * configure: Regenerate. | |
3247 | ||
3248 | * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by | |
3249 | configure. | |
3250 | ||
3251 | * emul_unix.c: Various changes to allow for building on systems | |
3252 | with different termio and termios structures. If host has both | |
3253 | termio and termios, just use termios. No longer include | |
3254 | sys/ioctl.h. | |
3255 | ||
3256 | Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) | |
3257 | ||
72f4393d L |
3258 | * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir, |
3259 | INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values. | |
3260 | (docdir): Removed. | |
3261 | * configure.in (AC_PREREQ): autoconf 2.5 or higher. | |
3262 | (AC_PROG_INSTALL): Added. | |
3263 | * configure: Rebuilt. | |
c906108c SS |
3264 | |
3265 | Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3266 | ||
3267 | * corefile.h: Rewrite documentation so that it can be extracted and | |
72f4393d L |
3268 | converted into texinfo (and hence ready for translation into html, |
3269 | tex or nroff). | |
c906108c SS |
3270 | * device.h: Ditto |
3271 | ||
3272 | Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3273 | ||
3274 | * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0. | |
3275 | ||
3276 | Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin> | |
3277 | ||
3278 | * hw_disk.c: Include <unistd.h> if available. Under SunOS, that | |
3279 | is the source of SEEK_SET. | |
3280 | ||
3281 | Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3282 | ||
3283 | * psim.c (psim_options): Correct type of dummy arguments being | |
72f4393d | 3284 | passed to a device_ioctl call. |
c906108c SS |
3285 | |
3286 | * hw_init.c (hw_data_init_data_callback): Adjust printf arguments. | |
3287 | (write_stack_arguments): Ditto. | |
3288 | * hw_trace.c: Instance callback entry no longer a table. | |
3289 | ||
3290 | Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3291 | ||
3292 | * emul_unix.c (do_unix_umask): Cast printf argument. | |
3293 | (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH | |
3294 | ||
3295 | Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3296 | ||
3297 | * hw_init.c (update_for_binary_section): Abort if we find an | |
3298 | .interp section, which indicates the need for shared libraries to | |
3299 | be loaded. | |
3300 | ||
3301 | Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3302 | ||
3303 | * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support | |
3304 | for time, gettimeofday, and getrusage system calls. | |
3305 | ({solaris,linux}_descriptors): Add new system calls. | |
3306 | (do_get{,e}{uid,gid}): Use gid_t/uid_t types. | |
3307 | (do_get{,p}pid): Use pic_t types. | |
3308 | ||
3309 | * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define. | |
3310 | (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define. | |
3311 | * config{.in,ure}: Regenerate. | |
3312 | ||
3313 | Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3314 | ||
3315 | * emul_netbsd.c (emul_netbsd_create): Use the more specific names | |
72f4393d | 3316 | `ppc-elf' and `ppc-xcoff' for the stack-type. |
c906108c SS |
3317 | * emul_unix.c (emul_unix_create): Ditto. |
3318 | * emul_bugapi.c (emul_bugapi_create): Ditto. | |
3319 | * hw_init.c: Reconize the new names. | |
3320 | ||
3321 | * emul_unix.c (do_unix_break): Adjust so that the updated ioctl | |
3322 | call is used (no system parameter). | |
3323 | ||
3324 | Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3325 | ||
3326 | * emul_unix.{h,c}: New files to provide Solaris and Linux system | |
3327 | call emulations. | |
3328 | ||
3329 | * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}. | |
3330 | (os_emul.o): Depend on emul_unix.h. | |
3331 | (emul_unix.o): New dependency. | |
3332 | ||
3333 | * configure.in (--enable-sim-alignment): Add 0|default to mean set | |
3334 | alignment to 0, which means use appropriate alignment for mode. | |
3335 | (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c. | |
3336 | (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c. | |
3337 | * config.in: Regenerate. | |
3338 | * configure: Regenerate. | |
3339 | ||
3340 | * emul_generic.c (emul_write2_status): New function to return | |
3341 | results in r3 and r4 for Solaris system calls. | |
3342 | (emul_do_system_call): If the system call is not support, but | |
3343 | there is a string for the system call name, print out the string | |
3344 | instead of the system call number. | |
3345 | ||
3346 | * emul_generic.h (emul_write2_status): Declare it. | |
3347 | ||
3348 | * emul_netbsd.c: Use /* */ around comment on #endif. | |
3349 | ||
3350 | * os_emul.c: Include emul_unix.h. | |
3351 | (os_emulations): Add emulations for Solaris, and Linux. | |
3352 | ||
3353 | * psim.c (psim_usage): Add message about solaris, linux | |
3354 | emulations. | |
3355 | ||
3356 | Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3357 | ||
3358 | * hw_iobus.c: Tidy up notes so that they can be auto-extracted. | |
3359 | ||
3360 | * README: Correct PSIM's title | |
3361 | ||
3362 | Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3363 | ||
3364 | * basics.h: New global type object_disposition, used to indicate | |
72f4393d | 3365 | the status of objects when things are restarted. |
c906108c SS |
3366 | |
3367 | Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au> | |
3368 | ||
3369 | * device_table.h: Change the interrupt descriptor structure so | |
72f4393d L |
3370 | that it includes an additional member - an upper bound on the |
3371 | interrupts by that name. | |
c906108c SS |
3372 | |
3373 | * device.c (device_interrupt_decode): Allow a range of interrupt | |
72f4393d | 3374 | ports (eg rst0 .. rst6) if the port descriptors bound is non zero. |
c906108c SS |
3375 | |
3376 | * device.c (device_tree_print_device): Include a list of valid | |
72f4393d | 3377 | interrupt ports when listing supported devices. |
c906108c SS |
3378 | |
3379 | * device.h, device.c (device_child_interrupt_*): Delete. Not used. | |
3380 | ||
3381 | * emul_generic.c (emul_add_tree_hardware): Modify the creation of | |
72f4393d | 3382 | the interrupt net so that it uses int0 .. intN. |
c906108c SS |
3383 | |
3384 | Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3385 | ||
3386 | * device.h, device.c (device_ioctl): Drop the system argument. | |
72f4393d | 3387 | Devices can not obtain this using the device_system() call. |
c906108c SS |
3388 | * device_table.h: Adjust accordingly. |
3389 | * hw_*.c: Adjust accordingly. | |
3390 | * emul_netbsd.c (do_break): Adjust call to vm device accordingly. | |
3391 | * psim.c (psim_options): Use a device_ioctl call to force the | |
72f4393d | 3392 | hw_trace device to update the trace options. |
c906108c SS |
3393 | * hw_trace.c: Replace the init function with an ioctl call. Adjust |
3394 | doc accordingly. | |
3395 | ||
3396 | * psim.c (psim_init): Re-order initialization so that the | |
72f4393d L |
3397 | os-emulation is initialized after the device tree. Without this, |
3398 | os-emul's are not able to create instances or access properties | |
3399 | that contain an instance handle. | |
c906108c SS |
3400 | |
3401 | * device.h, device.c (device_add_*_property): Make these functions | |
72f4393d L |
3402 | internal to device.c. The user has access to the more generic |
3403 | device_tree_add_parsed function. Differentiate between the initial | |
c906108c SS |
3404 | and current value for each property. |
3405 | * (clean_device_properties): New function that deletes any | |
3406 | properties created after the start of a simulation and restores | |
3407 | the initial value of any others (ignoring ihandles). | |
3408 | * (init_device_properties): (Re)Initialize any properties that | |
3409 | contain ihandles. create | |
3410 | ||
3411 | * (device_tree_init): Include calls to clean the device tree's | |
72f4393d | 3412 | properties and then initialize them. Document this in the device.h |
c906108c SS |
3413 | file. |
3414 | ||
3415 | Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3416 | ||
3417 | * interrupts.c (decrementer_interrupt): Always pend a decrementer | |
72f4393d | 3418 | interrupt even if it is not yet possible to deliver it. |
c906108c SS |
3419 | |
3420 | Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen> | |
3421 | ||
3422 | * mon.h, mon.c (mon_get_number_of_insns): Make this externally | |
3423 | visable adjusting the arguments so that the interface is correct. | |
3424 | (mon_print_info): Adjust calls. | |
72f4393d | 3425 | |
c906108c SS |
3426 | * registers.h, registers.c (register_description): Add phony |
3427 | cycle, insn and stall registers. | |
3428 | ||
3429 | * psim.c (psim_read_register): Return nr of instructions for given | |
3430 | processor. | |
3431 | ||
3432 | Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3433 | ||
3434 | * hw_htab.c: New file. Extract contents from disk_table.c. | |
72f4393d L |
3435 | Contains a device that, during initialization will create a |
3436 | PowerPC htab in memory. | |
c906108c | 3437 | * hw_register.c: New file. Extract contents from disk_table.c. |
72f4393d L |
3438 | Contains a device that, during initialization, will parse its |
3439 | property list and use that to initialize various processor | |
3440 | registers (not target specific). | |
c906108c | 3441 | * hw_vm.c: New file. Extract contents from disk_table.c. Contains |
72f4393d L |
3442 | a device that handles accesses to invalid virtual memory addresses |
3443 | (in user mode). | |
c906108c | 3444 | * hw_init.c: New file. Extract contents from disk_table.c. Misc |
72f4393d | 3445 | devices that can initialize memory from a file. |
c906108c | 3446 | * hw_trace.c: New file. Extract contents from disk_table.c. |
72f4393d | 3447 | Configure trace options from property values. |
c906108c SS |
3448 | |
3449 | * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o, | |
72f4393d | 3450 | hw_trace.c): Add new device files. |
c906108c SS |
3451 | |
3452 | * device_table.c: Remove above code, now in separate independant | |
72f4393d | 3453 | files. |
c906108c SS |
3454 | |
3455 | Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3456 | ||
3457 | * hw_disk.c: New file. Disk and CDROM device. | |
3458 | ||
3459 | * Makefile.in (hw_disk.o): Add device hw_disk.c. | |
3460 | ||
3461 | * pk_disklabel.c: New file. Implement the miss-named disk-label | |
72f4393d | 3462 | package. |
c906108c SS |
3463 | |
3464 | * Makefile.in (pk.h): Create the file pk.h that contains a list of all | |
3465 | the packages. | |
3466 | ||
3467 | * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that | |
72f4393d | 3468 | they are re-created when the makefile is updated. |
c906108c SS |
3469 | |
3470 | * emul_generic.c (emul_add_tree_hardware): Add a disk device | |
72f4393d | 3471 | (below the iobus) to the device tree. Include an ihandle of |
c906108c SS |
3472 | the disk as /chosen/disk. |
3473 | ||
3474 | * emul_bugapi.c (emul_bugapi_create): Don't initialize the input, | |
72f4393d | 3475 | output and (new) disk handles yet. |
c906108c SS |
3476 | * (emul_bugapi_init): Initialize the input, output (and just added) |
3477 | disk ihandles here. | |
3478 | * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least | |
3479 | what I think the behavour is). | |
3480 | * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk | |
3481 | i/o bug call. For RETURN call, exit using gpr[3]'s status even | |
3482 | though this isn't part of the spec - makes it possible for machine | |
3483 | code to signal the aporting of a simulation run. | |
3484 | ||
3485 | * emul_chirp.c (chirp_emul_call_method): Add support for the | |
3486 | claim/release methods. | |
3487 | * (chirp_emul_exit): Add an optional exit status argument to | |
3488 | the exit method. Makes it possible for chirp emul simulations | |
3489 | to abort upon an error. | |
3490 | * device.h, device.c (device_instance_claim, | |
72f4393d | 3491 | device_instance_release): New methods for claiming and releasing |
c906108c SS |
3492 | memory. |
3493 | * hw_memory.c: add claim and release memory methods. | |
3494 | * hw_*: Use the claim memory method when allocating physical | |
3495 | memory. | |
3496 | ||
3497 | Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3498 | ||
3499 | * hw_nvram.c (hw_nvram_update_clock): Use the current not previous | |
72f4393d | 3500 | time when updating the clock. |
c906108c SS |
3501 | |
3502 | * hw_nvram.c: Tidy up documentation | |
3503 | ||
3504 | Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3505 | ||
3506 | * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these | |
3507 | macros to determine whether or not the appropriate st_<xxx> fields | |
3508 | exist in the stat structure. | |
3509 | (AC_CHECK_FUNCS): Check for all unix system calls used, except for | |
3510 | the real basic ones like open, read, write, etc. | |
3511 | * config{.in,ure}: Regenerate. | |
3512 | ||
3513 | * emul_netbsd.c: Add support for missing system calls, and/or | |
3514 | missing stat fields. | |
3515 | (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h | |
3516 | might define it. | |
3517 | ||
3518 | * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL | |
3519 | are not defined. | |
3520 | (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or | |
3521 | F_SETFL not defined. | |
3522 | ||
3523 | Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3524 | ||
3525 | * emul_netbsd.c (write_stat): Don't convert st_blocks unless the | |
3526 | host is netbsd. | |
3527 | ||
3528 | Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3529 | ||
3530 | * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h. | |
3531 | * config{.in,ure}: Regenerate. | |
3532 | * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include | |
3533 | sys/ioctl.h. | |
3534 | ||
3535 | Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3536 | ||
3537 | * hw_pal.c (hw_pal_instance_read_callback): Remove unused | |
3538 | variable. | |
3539 | ||
3540 | * misc.c ({,target_}a2i): Rewrite to not use strtoul. | |
3541 | ||
3542 | * Makefile.in ({spreg,misc}.o): Add dependency on .c file. | |
3543 | ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of | |
3544 | LIBS. | |
3545 | ||
3546 | Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3547 | ||
3548 | * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use | |
3549 | fgets to read line. If not using stdio, do a simple blocking read | |
3550 | of len bytes. | |
3551 | ||
3552 | Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3553 | ||
3554 | * Makefile.in: Correctly build simulator for build machine != host | |
3555 | machine. | |
3556 | ||
3557 | Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3558 | ||
3559 | * configure.in (--enable-hostendian): Rework so the default uses | |
3560 | the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross | |
3561 | compiling. | |
3562 | * configure: Regenerate. | |
72f4393d | 3563 | |
c906108c SS |
3564 | * sim-endian.h: Add more tests for host endian to support more |
3565 | platforms in a cross compilation environment. | |
3566 | ||
3567 | Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3568 | ||
3569 | * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO, | |
3570 | use stdio, instead of unpended read/printf_filtered. | |
3571 | (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO, | |
3572 | flush stdout after writing the characters. | |
3573 | ||
3574 | * options.c (print_options): Print out WITH_STDIO. | |
3575 | ||
3576 | * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@ | |
3577 | configuration variable. | |
3578 | (CONFIG_CFLAGS): Include STDIO_CFLAGS. | |
3579 | (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC | |
3580 | files to contain directory pieces. | |
3581 | ||
3582 | * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we | |
3583 | should use stdio for console input. | |
3584 | (WITH_STDIO): If not defined, define as DONT_USE_STDIO. | |
3585 | ||
3586 | * configure.in (--enable-sim-stdio): Add new switch to control | |
3587 | whether stdio is used for console I/O. | |
3588 | * configure: Regenerate. | |
3589 | ||
3590 | * interrupts.c (external_interrupt): Declare it to be | |
3591 | INLINE_INTERRUPTS, not INLINE_CPU. | |
3592 | ||
3593 | Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3594 | ||
3595 | * events.c (insert_event_entry): Allow events to be scheduled | |
72f4393d L |
3596 | *NOW* (at delta time 0). Add assertions to clarify behavour of |
3597 | event queue. | |
c906108c SS |
3598 | |
3599 | * events.c (update_time_from_event): New function. Calculates the | |
72f4393d | 3600 | number of ticks from the next event. Use this. |
c906108c SS |
3601 | |
3602 | Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au> | |
3603 | ||
3604 | * emul_netbsd.c (do_break): Return 0 if success (instead of | |
72f4393d | 3605 | adjusted break). |
c906108c SS |
3606 | |
3607 | * device_table.c (vm_ioctl_callback): Don't return adjusted break | |
72f4393d | 3608 | (isn't needed). |
c906108c SS |
3609 | |
3610 | Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au> | |
3611 | ||
3612 | * device_table.h: Change type of the device ioctl so that it | |
3613 | returns an int (status). | |
3614 | * device.h (device_ioctl): Ditto. | |
3615 | * device.c (device_ioctl): Ditto. | |
3616 | ||
3617 | * device_table.c (stack_ioctl_callback): Return 0 status. | |
3618 | (vm_ioctl_callback): Ditto | |
3619 | ||
3620 | Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3621 | ||
3622 | * emul_netbsd.c (do_read): Correctly set the return value. | |
3623 | (do_getpid): Ditto. | |
3624 | (do_getuid): Ditto. | |
3625 | (do_geteuid): Ditto. | |
3626 | (do_dup): Ditto. | |
3627 | (do_getegid): Ditto. | |
3628 | (do_getgid): Ditto. | |
3629 | (do_sigprocmask): Ditto. | |
3630 | (do_umask): Ditto. | |
3631 | (do_dup2): Ditto. | |
3632 | (do_gettimeofday): Ditto. | |
3633 | (do_getrusage): Ditto. | |
3634 | (do_fstat): Ditto. | |
3635 | (do_stat): Ditto. | |
3636 | (do_lseek): Ditto. | |
3637 | (do___sysctl): Ditto. | |
3638 | ||
3639 | Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3640 | ||
3641 | * device_table.c (vm_ioctl_callback): Don't access the processor | |
72f4393d | 3642 | registers directly, instead leave it to the caller to handle this. |
c906108c SS |
3643 | |
3644 | * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to | |
72f4393d L |
3645 | perform a break. Pass in the new break value and set the |
3646 | registers according to the result. | |
c906108c SS |
3647 | |
3648 | * emul_generic.c (emul_write_status): Change so that r3 contains | |
72f4393d | 3649 | either status or errno and failure is indicated by SO. |
c906108c SS |
3650 | |
3651 | Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3652 | ||
3653 | * emul_bugapi.c (emul_bugapi_create): More strict check of OEA | |
72f4393d | 3654 | address. |
c906108c SS |
3655 | |
3656 | Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au> | |
3657 | ||
3658 | * interrupts.h (interrupts): New structure contains state of | |
72f4393d | 3659 | pending interrupts. |
c906108c SS |
3660 | |
3661 | * cpu.c (cpu_interrupts): New function. Pending interrupt status | |
72f4393d L |
3662 | in the cpu and grant access to it. Add interrupts to cpu |
3663 | structure. | |
c906108c SS |
3664 | |
3665 | Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au> | |
3666 | ||
3667 | * device.c (device_tree_add_parsed): Check that the creation of a | |
72f4393d | 3668 | device instance worked before using it. |
c906108c SS |
3669 | |
3670 | * psim.c (psim_halt): Remove cia argument from psim_halt. This | |
72f4393d | 3671 | function does not save the CIA so do not pass it in. |
c906108c SS |
3672 | |
3673 | Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au> | |
3674 | ||
3675 | * hw_pal.c (hw_pal): Merge the halt and icu and console devices | |
72f4393d | 3676 | found in device_table.c into a single hack pal. |
c906108c SS |
3677 | |
3678 | * device_table.c (halt, icu, console): Delete. | |
3679 | ||
3680 | * Makefile.in (hw_pal.o): New dependency. | |
3681 | ||
3682 | * emul_generic.c (emul_add_tree_hardware): Re-arange device tree | |
72f4393d L |
3683 | so that it uses the pal instead of the icu/halt/console devices. |
3684 | Wire the pal's interrupt ports up to the cpu nodes. | |
c906108c SS |
3685 | |
3686 | Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au> | |
3687 | ||
3688 | * hw_iobus.c (hw_iobus_attach_address_callback): Move from | |
72f4393d | 3689 | device_table.c to here. |
c906108c SS |
3690 | |
3691 | * Makefile.in (hw_iobus.o): New dependency. | |
3692 | ||
3693 | Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3694 | ||
3695 | * emul_bugapi.c (_os_emul_data): Add fields for output, input. | |
72f4393d L |
3696 | (emul_bugapi_create): Create input, output from /chosen/stdin and |
3697 | /chosen/stdout. | |
3698 | (emul_bugapi_do_{read,write}): Switch to use device_instance | |
3699 | interface. | |
3700 | (emul_bugapi_instruction_call): Change calls to | |
3701 | emul_bugapi_do_{read,write} to pass device instance argument. | |
c906108c SS |
3702 | |
3703 | Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
3704 | ||
3705 | * igen.c (idecode_switch_end): Fix 2/26 change so that an extra | |
72f4393d | 3706 | default is not written out if a default was already written. |
c906108c SS |
3707 | |
3708 | * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to | |
72f4393d L |
3709 | size cooked_buf, not sizeof natural_word, since floating point |
3710 | registers are 8 bytes. | |
c906108c SS |
3711 | |
3712 | Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3713 | ||
3714 | * configure: Regenerate with autoconf 2.9. | |
3715 | ||
3716 | Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au> | |
3717 | ||
3718 | * device_table.h: Always include string headers. | |
3719 | ||
3720 | Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3721 | ||
3722 | * main.c (error): Be careful to not try to print out statistics | |
72f4393d | 3723 | when the simulation was never created. |
c906108c SS |
3724 | |
3725 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> | |
3726 | ||
3727 | * basics.h: Move the event queue's definition to here so that it | |
72f4393d | 3728 | can be refered to globally with out importing all of events.h. |
c906108c SS |
3729 | |
3730 | * psim.h, psim.c (psim_event_queue): New function. Grant access | |
72f4393d L |
3731 | to the simulation event queue. Will make this the single point of |
3732 | access (there is after all only one event queue in the | |
3733 | simulation). | |
c906108c SS |
3734 | |
3735 | * cpu.c (cpu_create): Use psim_event_queue to obtain the event | |
72f4393d L |
3736 | queue instead of it being passed in. No longer allow access to |
3737 | the cpu's copy of the event queue. | |
c906108c SS |
3738 | |
3739 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> | |
3740 | ||
3741 | * events.h, events.c (event_handler): Remove event_queue from | |
72f4393d L |
3742 | arguments passed to an event handler. That argument is redundant |
3743 | - the `data' should refer to a data structure that contains the | |
3744 | event queue if queing is needed. | |
c906108c SS |
3745 | |
3746 | * cpu.c (cpu_decrement_event): adjust | |
3747 | ||
3748 | * events.c (event_queue_process): adjust | |
3749 | ||
3750 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> | |
3751 | ||
3752 | * device.h, device.c (device_system): New, returns a handle for | |
72f4393d | 3753 | the system given the device. |
c906108c SS |
3754 | |
3755 | * device.c (device_address_init): Store a pointer back to the | |
72f4393d | 3756 | system in each devices node. |
c906108c SS |
3757 | |
3758 | * device_table.h: Don't pass `system' into each device when it is | |
72f4393d | 3759 | being initialized, this is now available using device_system(me). |
c906108c SS |
3760 | |
3761 | * device.c (device_address_init, device_data_init): Adjust. | |
3762 | ||
3763 | * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c: | |
72f4393d | 3764 | Adjust. |
c906108c SS |
3765 | |
3766 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> | |
3767 | ||
3768 | * interrupts.c (decrementer_interrupt, external_interrupt): | |
72f4393d L |
3769 | Remember that an interrupt wasn't delivered so that it can be |
3770 | tried again later. | |
c906108c SS |
3771 | |
3772 | * interrupts.c (check_masked_interrupt): New function. (re) | |
72f4393d L |
3773 | checks for the posibility that a recent change to the MSR may have |
3774 | made it possible to deliver an interrupt that was previously | |
3775 | masked be the EE bit. | |
c906108c SS |
3776 | |
3777 | * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of | |
3778 | a pending interrupt being delivered using check_masked_interrupt(). | |
3779 | ||
3780 | * cpu.c (cpu_decrement_event): Just call decrementer_interrupt() | |
72f4393d L |
3781 | leaving it to that module to handle both interrupt synchronization |
3782 | and masking. | |
c906108c SS |
3783 | |
3784 | * cpu.c (struct _cpu): remove variables that were going to record | |
72f4393d | 3785 | pending decrementer and external interrupts. |
c906108c SS |
3786 | |
3787 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> | |
3788 | ||
3789 | * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits | |
72f4393d L |
3790 | between the interrupt controller and the simulators internal |
3791 | processor model. Maps device interrupts onto the processor | |
c906108c SS |
3792 | interrupt function calls. |
3793 | ||
3794 | Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3795 | ||
3796 | * hw_nvram.c: NVRAM device that includes a real-time clock that is | |
72f4393d | 3797 | updated each second. |
c906108c SS |
3798 | |
3799 | Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3800 | ||
3801 | * device.h (attach_type): Remove attach_default type address | |
72f4393d | 3802 | spaces. Will replace with levels of callback memory. |
c906108c SS |
3803 | |
3804 | * corefile.h, corefile.c (new_core_mapping), corefile.c | |
72f4393d L |
3805 | (core_map_attach): Replace default attach with a layerd callback |
3806 | approach. | |
c906108c SS |
3807 | |
3808 | Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3809 | ||
3810 | * device.c (split_property_specifier): ensure that only a single | |
72f4393d | 3811 | property is found. |
c906108c SS |
3812 | (split_value): New function, parses the value part of a device |
3813 | spec. | |
3814 | ||
3815 | * device.c (device_tree_add_parsed): Use the interrupt conversion | |
72f4393d | 3816 | functions to determine the interrupt port numbers. |
c906108c SS |
3817 | |
3818 | * device_table.h: Add table that maps between an interrupts | |
72f4393d | 3819 | symbolic name and its port number. |
c906108c SS |
3820 | |
3821 | * device.h, device.c (device_interrupt_decode, | |
72f4393d L |
3822 | device_interrupt_encode): new functions use the recently added |
3823 | interrupt port name/number tables to perform conversion. | |
c906108c SS |
3824 | |
3825 | Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3826 | ||
3827 | * device.h, device.c (device_set_array_property, | |
72f4393d L |
3828 | device_set_boolean_property, device_set_ihandle_property, |
3829 | device_set_integer_property, device_set_string_property): New | |
3830 | functions - allow the value of a given property to be changed. | |
c906108c SS |
3831 | |
3832 | * device.h, device.c: Re-order declaration and definition of | |
72f4393d | 3833 | property functions. |
c906108c SS |
3834 | |
3835 | Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
3836 | ||
3837 | * device.c (device_tree_print_device, device_tree_add_parsed): | |
72f4393d | 3838 | Remove references to phandle properties. |
c906108c SS |
3839 | |
3840 | Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
3841 | ||
3842 | * Makefile.in (corefile.o): missing dependency on device_table.h | |
72f4393d | 3843 | etc. |
c906108c SS |
3844 | |
3845 | Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
3846 | ||
3847 | * device_table.h: Revamp device init callbacks so that they are a | |
72f4393d | 3848 | sub structure. |
c906108c | 3849 | * device.c (device_init_data, device_init_address): If an init |
72f4393d | 3850 | callback is NULL assume it should do nothing. |
c906108c | 3851 | * device_table.c (ignore_device_init, unimp_device_init): delete |
72f4393d | 3852 | as redundant. |
c906108c SS |
3853 | * device_table.c, hw_memory.c: adjust. |
3854 | ||
3855 | * (io): ditto. | |
3856 | * (dma): ditto. | |
3857 | * (device_instance): ditto. | |
3858 | * (ioctl): ditto. | |
3859 | * (address nee config_address): ditto. | |
3860 | * (interrupt): ditto. | |
3861 | ||
3862 | Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
3863 | ||
3864 | * igen.c (idecode_switch_end): Output a default entry when the | |
72f4393d L |
3865 | switch statement is perfect. Firstly stops GCC complaining about |
3866 | an incomplete switch and secondly it will be eliminated by a good | |
3867 | compiler any way. | |
c906108c SS |
3868 | |
3869 | Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
3870 | ||
3871 | * Makefile.in (hw.h, hw.c): New targets. Create from the list of | |
72f4393d L |
3872 | hw_*.c files. hw.h declares a device descriptor table for each hw |
3873 | device while hw.c lists those tables in a form suitable for the | |
3874 | construction of a top leveltable in device_table.c. | |
c906108c SS |
3875 | |
3876 | * Makefile.in (device_table.o): now depends on hw.c a generated | |
72f4393d | 3877 | table of hw. |
c906108c SS |
3878 | |
3879 | * device_table.c (device_table): Re-arange the table of devices so | |
72f4393d | 3880 | that two levels are possible. Make use of hw.c. |
c906108c SS |
3881 | * device_table.h: ditto. |
3882 | ||
3883 | * device.c (device_template_create_device): Handle new two level | |
72f4393d | 3884 | device lookup table. |
c906108c SS |
3885 | * device.c (device_usage): ditto. |
3886 | ||
3887 | Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
3888 | ||
3889 | * device_table.c: Delete the memory device (moved to hw_memory.c). | |
3890 | ||
3891 | * hw_memory.c: New file. Just an OpenBoot memory device. | |
3892 | ||
3893 | Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au> | |
3894 | ||
3895 | * device.c (device_init_address): New. Split initialization into | |
72f4393d | 3896 | two stages, address and address spaces |
c906108c | 3897 | * device.c (device_init_data): New. ... and data or other work. |
72f4393d L |
3898 | With out this, devices try to modify memory before it as been |
3899 | attached. | |
c906108c SS |
3900 | |
3901 | * device.c (device_tree_init): Update to perform staged | |
72f4393d | 3902 | initialization. |
c906108c SS |
3903 | |
3904 | * device.c (device_init): Delete. | |
3905 | ||
3906 | Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au> | |
3907 | ||
3908 | * device_table.c (data_*): Rewrite to make heaver use of property | |
72f4393d | 3909 | nodes. Allow initialization by different data types. |
c906108c SS |
3910 | * device_table.c (htab_* pte_*): Rewrite to use properties. |
3911 | ||
3912 | * emul_chirp.c (emul_chirp_create): Use | |
3913 | * emul_bugapi.c (emul_bugapi_create): Ditto | |
3914 | * emul_netbsd.c (emul_netbsd_create): Ditto | |
3915 | ||
3916 | Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au> | |
3917 | ||
3918 | * emul_generic.c (emul_add_tree_options): Annotate existing tree | |
72f4393d | 3919 | with options that haven't yet been specified. |
c906108c | 3920 | * emul_generic.c (emul_add_tree_hardware): Annotate existing tree |
72f4393d | 3921 | with demo devices and properties. |
c906108c SS |
3922 | |
3923 | * emul_chirp.c (emul_chirp_create): Update to use new | |
72f4393d L |
3924 | device_tree_add_parsed call and additional information now |
3925 | included in the device tree. Use emul_add_tree* functions to add | |
3926 | any missing details. | |
c906108c SS |
3927 | * emul_bugapi.c (emul_bugapi_create): Ditto |
3928 | * emul_netbsd.c (emul_netbsd_create): Ditto | |
3929 | ||
3930 | Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au> | |
3931 | ||
3932 | * device.c (device_instance_create): New. Create/delete and | |
72f4393d | 3933 | operate on instances of a device. |
c906108c SS |
3934 | * device.c (device_instance_delete): Ditto |
3935 | * device.c (device_instance_read): Ditto | |
3936 | * device.c (device_instance_write): Ditto | |
3937 | * device.c (device_instance_seek): Ditto | |
3938 | * device.c (device_instance_data): Ditto | |
3939 | * device.c (device_instance_name): Ditto | |
3940 | * device.c (device_instance_path): Ditto | |
3941 | ||
3942 | * emul_chirp.c (chirp_emul_open): Implement using device_instance. | |
3943 | * emul_chirp.c (chirp_emul_close): Ditto | |
3944 | * emul_chirp.c (chirp_emul_read): Ditto | |
3945 | * emul_chirp.c (chirp_emul_write): Ditto | |
3946 | * emul_chirp.c (chirp_emul_seek): Ditto | |
3947 | ||
3948 | * emul_chirp.c (chirp_read_t2h_args): Read arguments from device. | |
72f4393d | 3949 | Being careful to convert all from target to host byte order. |
c906108c SS |
3950 | * emul_chirp.c (chirp_write_h2t_args): Converse. |
3951 | ||
3952 | Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au> | |
3953 | ||
3954 | * device.c (device_tree_add_parsed): New. Rewrite code to add | |
72f4393d L |
3955 | devices to the device tree so that a single printf style function |
3956 | is used. | |
c906108c SS |
3957 | |
3958 | * device.c (device_tree_add_*): Delete. Replaced by above. | |
3959 | ||
3960 | * device.c (split_device_specifier): Functions to manipulate a | |
72f4393d | 3961 | device specifier (path) breaking it into its components |
c906108c SS |
3962 | * device.c (split_property_specifier): Ditto |
3963 | * device.c (split_device_name): Ditto | |
3964 | * device.c (split_find_device): Ditto | |
3965 | ||
3966 | * device.c (scan_*): Delete | |
3967 | ||
3968 | * device.c (device_tree_find_device): Rewrite to use above. | |
3969 | * device.c (device_add_property): Ditto | |
3970 | ||
3971 | Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au> | |
3972 | ||
3973 | * psim.c(psim_options): Parse the psim options, installing their | |
72f4393d L |
3974 | value in the device tree. Options are now first entered into a |
3975 | device tree and then extracted out again when needed. This allows | |
3976 | greater flexability in configuration. | |
c906108c SS |
3977 | |
3978 | * psim.c (psim_tree): Returns a basic device tree ready for | |
72f4393d | 3979 | parsing by psim_options. |
c906108c | 3980 | * psim.c (psim_usage): New. Give usage to varing levels of detail |
72f4393d L |
3981 | according to the verbosity. In turn output device and trace |
3982 | usage. | |
c906108c SS |
3983 | |
3984 | * main.c (main): Update to use new system | |
3985 | * sim_calls.c (sim_open, sim_do_command): Ditto | |
3986 | ||
3987 | * psim.c (psim_options): Add `r' option - ram size. | |
3988 | * psim.c (psim_options): Add `o' option - openboot tree entry. | |
3989 | * psim.c (psim_options): Add `h'/`H' options - more help. | |
3990 | ||
3991 | * debug.c (trace_usage): Add more detailed help. | |
3992 | * device.c (device_usage): New. Output help including a list of | |
72f4393d | 3993 | the devices currently available in the device table. |
c906108c SS |
3994 | * device_table.c: Add usage operator to each device. |
3995 | ||
3996 | * corefile.c (core_create, core_device_create): Adjust so that the | |
72f4393d L |
3997 | core device is created earlier for psim_tree(). Core can later be |
3998 | created from it. | |
c906108c SS |
3999 | |
4000 | * psim.c (psim_create): Update to handle above way of creating | |
72f4393d | 4001 | things. Extract all information from the device tree. |
c906108c SS |
4002 | |
4003 | * device_tree.c (trace_*): New device node, its properties are | |
72f4393d L |
4004 | used to set the value of the trace options. Init this device (in |
4005 | psim_options) when ever the options are updated. | |
c906108c SS |
4006 | |
4007 | Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au> | |
4008 | ||
4009 | * debug.h: Add trace_print_info, trace_print_device_tree and | |
72f4393d L |
4010 | trace_dump_device_tree. The first is a replacement for the |
4011 | variable `print_info' found in main.c and sim_calls.c. The latter | |
4012 | two enable the dumping of the entire device tree. | |
c906108c SS |
4013 | |
4014 | * debug.c: Add to trace_description table. | |
4015 | ||
4016 | * main.c (main): Use above trace instead of local variable | |
4017 | * sim_calls.c (sim_close): Ditto | |
4018 | ||
4019 | * device.c (device_tree_print_device): New. Prints the device | |
72f4393d L |
4020 | tree in a format that is consistent with what can be parsed by the |
4021 | device tree load from file code. | |
c906108c SS |
4022 | |
4023 | * psim.c (psim_create): Dump device tree if enabled. If nump | |
72f4393d | 4024 | selected, exit psim immediately. |
c906108c SS |
4025 | |
4026 | Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au> | |
4027 | ||
4028 | * corefile-n.h (core_map_read_N): When mapping from an address to | |
72f4393d L |
4029 | a device, do not subtract the devices base. The device its self |
4030 | can do this. Brings the behavour into line with OpenBoot. | |
c906108c SS |
4031 | * corefile-n.h (core_map_write_N): Ditto |
4032 | * corefile.c (core_map_read_buffer): Ditto | |
4033 | * corefile.c (core_map_write_buffer): Ditto | |
4034 | ||
4035 | * device_table.c (console_io_read_buffer_callback): Adjust to | |
72f4393d | 4036 | handle biased address. |
c906108c SS |
4037 | * device_table.c (console_io_write_buffer_callback): Ditto |
4038 | ||
4039 | Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au> | |
4040 | ||
4041 | * device.c (attach_device_interrupt_edge): New. Interrupt model | |
72f4393d L |
4042 | did not allow interrupts to be wired up as a general net (edges). |
4043 | Re-implement so that interrupt events can be passed to multiple | |
4044 | controllers and interrupt controllers can further propogate | |
4045 | interrupt events. | |
c906108c SS |
4046 | |
4047 | * device.c (attach_device_interrupt_edge) : New, Ditto | |
4048 | * device.c (detach_device_interrupt_edge) : New, Ditto | |
4049 | * device.c (clean_device_interrupt_edges) : New, Ditto | |
4050 | * device.c (device_interrupt_event) : New, Ditto | |
4051 | * device.c (device_interrupt_attach) : New, Ditto | |
4052 | * device.c (device_interrupt_detach) : New, Ditto | |
4053 | * device.c (device_child_interrupt_attach) : New, Ditto | |
4054 | * device.c (device_child_interrupt_detach) : New, Ditto | |
4055 | ||
4056 | * device.c (device_attach_interrupt) : Delete old | |
4057 | * device.c (device_detach_interrupt) : Delete old | |
4058 | * device.c (device_interrupt) : Delete old | |
4059 | * device.c (device_interrupt_ack) : Delete old | |
4060 | ||
4061 | * device_table.c (unimp_*) : Update to match | |
72f4393d L |
4062 | |
4063 | * device_table.c (icu_io_write_buffer_callback) : Update to use | |
4064 | interface. | |
c906108c SS |
4065 | * device_table.c (icu_interrupt_event_callback) : Ditto |
4066 | ||
4067 | Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au> | |
4068 | ||
4069 | * device.c (external_to_device) : New function that provides a | |
72f4393d L |
4070 | standard mapping between a devices internal representation (a |
4071 | pointer) and its external (or what is passed to a client) | |
4072 | representation (a phandle). Implement using the cap object | |
4073 | attached to the root node. | |
c906108c SS |
4074 | |
4075 | * device.c (device_to_external) : Ditto | |
4076 | * device.c (external_to_device_instance) : Ditto but for ihandle | |
72f4393d | 4077 | and device instance. |
c906108c SS |
4078 | * device.c (device_instance_to_external) : Ditto |
4079 | ||
4080 | * Makefile (device.o): Add dependency on cap. | |
4081 | ||
4082 | * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code | |
72f4393d L |
4083 | needing to translate between internal and external representations |
4084 | changed to use the external_to_device et.al. device operations. | |
c906108c SS |
4085 | * emul_chirp.c (chirp_emul_*) : Ditto |
4086 | ||
4087 | * Makefile (emul_chirp.o): Remove dependency on cap | |
4088 | ||
4089 | Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
4090 | ||
4091 | * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks | |
72f4393d | 4092 | on OpenBoot note section. |
c906108c SS |
4093 | |
4094 | Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au> | |
4095 | ||
4096 | * emul_generic.c (emul_write_buffer): Use vm faulting byte | |
4097 | read/write calls for buffer transfers. This will cause a fault to | |
4098 | occure if the transfer fails. CHRP catches the fault while the | |
4099 | others suffer the consequences. | |
72f4393d L |
4100 | (emul_read_buffer): Ditto. |
4101 | (emul_write_word): Ditto. | |
4102 | (emul_read_word): Ditto. | |
4103 | (emul_read_string): Ditto. | |
c906108c SS |
4104 | |
4105 | Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au> | |
4106 | ||
4107 | * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call), | |
4108 | emul_generic (emul_blr_instruction): Use a real blr instruction to | |
4109 | return from a client service call. | |
4110 | ||
4111 | * emul_chirp.c (services): Add all OpenBoot services to table. | |
4112 | ||
4113 | * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c | |
4114 | (emul_chirp_create) : Use names instead of numbers for | |
4115 | instructions being stored in memory. | |
4116 | ||
4117 | Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au> | |
4118 | ||
4119 | * Makefile.in (maintainer-clean): Remove .log, core and *.core | |
4120 | (From NetBSD) files. | |
4121 | ||
4122 | Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au> | |
4123 | ||
4124 | * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes | |
72f4393d | 4125 | ChangeLog.00 |
c906108c | 4126 |