Commit | Line | Data |
---|---|---|
d61eb812 MM |
1 | Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
2 | ||
3 | * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h. | |
4 | * config{.in,ure}: Regenerate. | |
5 | * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include | |
6 | sys/ioctl.h. | |
7 | ||
048668d3 MM |
8 | Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
9 | ||
10 | * hw_pal.c (hw_pal_instance_read_callback): Remove unused | |
11 | variable. | |
12 | ||
13 | * misc.c ({,target_}a2i): Rewrite to not use strtoul. | |
14 | ||
15 | * Makefile.in ({spreg,misc}.o): Add dependency on .c file. | |
16 | ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of | |
17 | LIBS. | |
18 | ||
1ed0c0e7 MM |
19 | Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
20 | ||
21 | * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use | |
22 | fgets to read line. If not using stdio, do a simple blocking read | |
23 | of len bytes. | |
24 | ||
08dc78ad MM |
25 | Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
26 | ||
27 | * Makefile.in: Correctly build simulator for build machine != host | |
28 | machine. | |
29 | ||
a72d2509 | 30 | Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
997f0ee9 | 31 | |
a72d2509 MM |
32 | * configure.in (--enable-hostendian): Rework so the default uses |
33 | the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross | |
34 | compiling. | |
35 | * configure: Regenerate. | |
36 | ||
37 | * sim-endian.h: Add more tests for host endian to support more | |
38 | platforms in a cross compilation environment. | |
64646bd3 | 39 | |
a72d2509 | 40 | Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
64646bd3 | 41 | |
a72d2509 MM |
42 | * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO, |
43 | use stdio, instead of unpended read/printf_filtered. | |
44 | (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO, | |
45 | flush stdout after writing the characters. | |
d6103e8e | 46 | |
6740925b MM |
47 | * options.c (print_options): Print out WITH_STDIO. |
48 | ||
d6103e8e MM |
49 | * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@ |
50 | configuration variable. | |
51 | (CONFIG_CFLAGS): Include STDIO_CFLAGS. | |
a72d2509 MM |
52 | (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC |
53 | files to contain directory pieces. | |
d6103e8e MM |
54 | |
55 | * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we | |
56 | should use stdio for console input. | |
57 | (WITH_STDIO): If not defined, define as DONT_USE_STDIO. | |
58 | ||
59 | * configure.in (--enable-sim-stdio): Add new switch to control | |
60 | whether stdio is used for console I/O. | |
61 | * configure: Regenerate. | |
62 | ||
a72d2509 MM |
63 | * interrupts.c (external_interrupt): Declare it to be |
64 | INLINE_INTERRUPTS, not INLINE_CPU. | |
1dc7c0ed | 65 | |
a72d2509 | 66 | Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
1dc7c0ed | 67 | |
a72d2509 MM |
68 | * events.c (insert_event_entry): Allow events to be scheduled |
69 | *NOW* (at delta time 0). Add assertions to clarify behavour of | |
70 | event queue. | |
1dc7c0ed | 71 | |
a72d2509 MM |
72 | * events.c (update_time_from_event): New function. Calculates the |
73 | number of ticks from the next event. Use this. | |
1dc7c0ed | 74 | |
a72d2509 | 75 | Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 76 | |
a72d2509 MM |
77 | * emul_netbsd.c (do_break): Return 0 if success (instead of |
78 | adjusted break). | |
1dc7c0ed | 79 | |
a72d2509 MM |
80 | * device_table.c (vm_ioctl_callback): Don't return adjusted break |
81 | (isn't needed). | |
1dc7c0ed | 82 | |
a72d2509 | 83 | Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 84 | |
a72d2509 MM |
85 | * device_table.h: Change type of the device ioctl so that it |
86 | returns an int (status). | |
87 | * device.h (device_ioctl): Ditto. | |
88 | * device.c (device_ioctl): Ditto. | |
1dc7c0ed | 89 | |
a72d2509 MM |
90 | * device_table.c (stack_ioctl_callback): Return 0 status. |
91 | (vm_ioctl_callback): Ditto | |
1dc7c0ed | 92 | |
a72d2509 | 93 | Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 94 | |
a72d2509 MM |
95 | * interrupts.h (interrupts): New structure contains state of |
96 | pending interrupts. | |
1dc7c0ed | 97 | |
a72d2509 MM |
98 | * cpu.c (cpu_interrupts): New function. Pending interrupt status |
99 | in the cpu and grant access to it. Add interrupts to cpu | |
100 | structure. | |
1dc7c0ed | 101 | |
a72d2509 | 102 | Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 103 | |
a72d2509 MM |
104 | * device.c (device_tree_add_parsed): Check that the creation of a |
105 | device instance worked before using it. | |
1dc7c0ed | 106 | |
a72d2509 MM |
107 | * psim.c (psim_halt): Remove cia argument from psim_halt. This |
108 | function does not save the CIA so do not pass it in. | |
1dc7c0ed | 109 | |
a72d2509 | 110 | Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 111 | |
a72d2509 MM |
112 | * hw_pal.c (hw_pal): Merge the halt and icu and console devices |
113 | found in device_table.c into a single hack pal. | |
1dc7c0ed | 114 | |
a72d2509 | 115 | * device_table.c (halt, icu, console): Delete. |
1dc7c0ed | 116 | |
a72d2509 | 117 | * Makefile.in (hw_pal.o): New dependency. |
1dc7c0ed | 118 | |
a72d2509 MM |
119 | * emul_generic.c (emul_add_tree_hardware): Re-arange device tree |
120 | so that it uses the pal instead of the icu/halt/console devices. | |
121 | Wire the pal's interrupt ports up to the cpu nodes. | |
1dc7c0ed | 122 | |
a72d2509 | 123 | Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 124 | |
a72d2509 MM |
125 | * hw_iobus.c (hw_iobus_attach_address_callback): Move from |
126 | device_table.c to here. | |
1dc7c0ed | 127 | |
a72d2509 | 128 | * Makefile.in (hw_iobus.o): New dependency. |
1dc7c0ed | 129 | |
a72d2509 | 130 | Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
1dc7c0ed | 131 | |
a72d2509 | 132 | * configure: Regenerate with autoconf 2.9. |
1dc7c0ed | 133 | |
a72d2509 | 134 | Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 135 | |
a72d2509 | 136 | * device_table.h: Always include string headers. |
1dc7c0ed | 137 | |
a72d2509 | 138 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 139 | |
a72d2509 MM |
140 | * basics.h: Move the event queue's definition to here so that it |
141 | can be refered to globally with out importing all of events.h. | |
1dc7c0ed | 142 | |
a72d2509 MM |
143 | * psim.h, psim.c (psim_event_queue): New function. Grant access |
144 | to the simulation event queue. Will make this the single point of | |
145 | access (there is after all only one event queue in the | |
146 | simulation). | |
1dc7c0ed | 147 | |
a72d2509 MM |
148 | * cpu.c (cpu_create): Use psim_event_queue to obtain the event |
149 | queue instead of it being passed in. No longer allow access to | |
150 | the cpu's copy of the event queue. | |
1dc7c0ed | 151 | |
a72d2509 | 152 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 153 | |
a72d2509 MM |
154 | * events.h, events.c (event_handler): Remove event_queue from |
155 | arguments passed to an event handler. That argument is redundant | |
156 | - the `data' should refer to a data structure that contains the | |
157 | event queue if queing is needed. | |
1dc7c0ed | 158 | |
a72d2509 | 159 | * cpu.c (cpu_decrement_event): adjust |
1dc7c0ed | 160 | |
a72d2509 | 161 | * events.c (event_queue_process): adjust |
1dc7c0ed | 162 | |
a72d2509 | 163 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> |
1dc7c0ed | 164 | |
a72d2509 MM |
165 | * device.h, device.c (device_system): New, returns a handle for |
166 | the system given the device. | |
1dc7c0ed | 167 | |
a72d2509 MM |
168 | * device.c (device_address_init): Store a pointer back to the |
169 | system in each devices node. | |
1dc7c0ed | 170 | |
a72d2509 MM |
171 | * device_table.h: Don't pass `system' into each device when it is |
172 | being initialized, this is now available using device_system(me). | |
1dc7c0ed | 173 | |
a72d2509 | 174 | * device.c (device_address_init, device_data_init): Adjust. |
4f965b81 | 175 | |
a72d2509 MM |
176 | * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c: |
177 | Adjust. | |
4f965b81 | 178 | |
a72d2509 | 179 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> |
4f965b81 | 180 | |
a72d2509 MM |
181 | * interrupts.c (decrementer_interrupt, external_interrupt): |
182 | Remember that an interrupt wasn't delivered so that it can be | |
183 | tried again later. | |
4f965b81 | 184 | |
a72d2509 MM |
185 | * interrupts.c (check_masked_interrupt): New function. (re) |
186 | checks for the posibility that a recent change to the MSR may have | |
187 | made it possible to deliver an interrupt that was previously | |
188 | masked be the EE bit. | |
4f965b81 | 189 | |
a72d2509 MM |
190 | * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of |
191 | a pending interrupt being delivered using check_masked_interrupt(). | |
4f965b81 | 192 | |
a72d2509 MM |
193 | * cpu.c (cpu_decrement_event): Just call decrementer_interrupt() |
194 | leaving it to that module to handle both interrupt synchronization | |
195 | and masking. | |
4f965b81 | 196 | |
a72d2509 MM |
197 | * cpu.c (struct _cpu): remove variables that were going to record |
198 | pending decrementer and external interrupts. | |
cb7a6892 | 199 | |
a72d2509 | 200 | Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 | 201 | |
a72d2509 MM |
202 | * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits |
203 | between the interrupt controller and the simulators internal | |
204 | processor model. Maps device interrupts onto the processor | |
205 | interrupt function calls. | |
cb7a6892 | 206 | |
a72d2509 | 207 | Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
cb7a6892 | 208 | |
a72d2509 MM |
209 | * hw_nvram.c: NVRAM device that includes a real-time clock that is |
210 | updated each second. | |
cb7a6892 | 211 | |
a72d2509 | 212 | Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
cb7a6892 | 213 | |
a72d2509 MM |
214 | * device.h (attach_type): Remove attach_default type address |
215 | spaces. Will replace with levels of callback memory. | |
cb7a6892 | 216 | |
a72d2509 MM |
217 | * corefile.h, corefile.c (new_core_mapping), corefile.c |
218 | (core_map_attach): Replace default attach with a layerd callback | |
219 | approach. | |
cb7a6892 | 220 | |
a72d2509 | 221 | Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
cb7a6892 | 222 | |
a72d2509 MM |
223 | * device.c (split_property_specifier): ensure that only a single |
224 | property is found. | |
225 | (split_value): New function, parses the value part of a device | |
226 | spec. | |
cb7a6892 | 227 | |
a72d2509 MM |
228 | * device.c (device_tree_add_parsed): Use the interrupt conversion |
229 | functions to determine the interrupt port numbers. | |
cb7a6892 | 230 | |
a72d2509 MM |
231 | * device_table.h: Add table that maps between an interrupts |
232 | symbolic name and its port number. | |
cb7a6892 | 233 | |
a72d2509 MM |
234 | * device.h, device.c (device_interrupt_decode, |
235 | device_interrupt_encode): new functions use the recently added | |
236 | interrupt port name/number tables to perform conversion. | |
cb7a6892 | 237 | |
a72d2509 | 238 | Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
cb7a6892 | 239 | |
a72d2509 MM |
240 | * device.h, device.c (device_set_array_property, |
241 | device_set_boolean_property, device_set_ihandle_property, | |
242 | device_set_integer_property, device_set_string_property): New | |
243 | functions - allow the value of a given property to be changed. | |
cb7a6892 | 244 | |
a72d2509 MM |
245 | * device.h, device.c: Re-order declaration and definition of |
246 | property functions. | |
cb7a6892 | 247 | |
a72d2509 | 248 | Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
cb7a6892 | 249 | |
a72d2509 MM |
250 | * device.c (device_tree_print_device, device_tree_add_parsed): |
251 | Remove references to phandle properties. | |
cb7a6892 | 252 | |
a72d2509 | 253 | Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> |
cb7a6892 | 254 | |
a72d2509 MM |
255 | * device_table.h: Revamp device init callbacks so that they are a |
256 | sub structure. | |
257 | * device.c (device_init_data, device_init_address): If an init | |
258 | callback is NULL assume it should do nothing. | |
259 | * device_table.c (ignore_device_init, unimp_device_init): delete | |
260 | as redundant. | |
261 | * device_table.c, hw_memory.c: adjust. | |
cb7a6892 | 262 | |
a72d2509 MM |
263 | * (io): ditto. |
264 | * (dma): ditto. | |
265 | * (device_instance): ditto. | |
266 | * (ioctl): ditto. | |
267 | * (address nee config_address): ditto. | |
268 | * (interrupt): ditto. | |
cb7a6892 | 269 | |
a72d2509 | 270 | Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> |
cb7a6892 | 271 | |
a72d2509 MM |
272 | * Makefile.in (hw.h, hw.c): New targets. Create from the list of |
273 | hw_*.c files. hw.h declares a device descriptor table for each hw | |
274 | device while hw.c lists those tables in a form suitable for the | |
275 | construction of a top leveltable in device_table.c. | |
cb7a6892 | 276 | |
a72d2509 MM |
277 | * Makefile.in (device_table.o): now depends on hw.c a generated |
278 | table of hw. | |
cb7a6892 | 279 | |
a72d2509 MM |
280 | * device_table.c (device_table): Re-arange the table of devices so |
281 | that two levels are possible. Make use of hw.c. | |
282 | * device_table.h: ditto. | |
cb7a6892 | 283 | |
a72d2509 MM |
284 | * device.c (device_template_create_device): Handle new two level |
285 | device lookup table. | |
286 | * device.c (device_usage): ditto. | |
cb7a6892 | 287 | |
a72d2509 | 288 | Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> |
cb7a6892 | 289 | |
a72d2509 | 290 | * device_table.c: Delete the memory device (moved to hw_memory.c). |
cb7a6892 | 291 | |
a72d2509 | 292 | * hw_memory.c: New file. Just an OpenBoot memory device. |