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