OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / memory / ChangeLog
1 2000-11-21  Frank Ch. Eigler  <fche@redhat.com>
2
3         * Makefile.in: Regenerated.
4
5 2000-07-19  Frank Ch. Eigler  <fche@redhat.com>
6
7         * Makefile.in: Regenerated.
8
9 2000-05-26  Frank Ch. Eigler  <fche@redhat.com>
10
11         * generic.h: Import more std:: identifiers.
12         * generic.cxx: Ditto.
13         (imageload_handler, imagestore_handler): Simplify, standardize.
14         (stream_state, destream_state): Cast between host_int_1 and char.
15
16 2000-02-16  Ben Elliston  <bje@redhat.com>
17
18         * hw-memory-flash-am29.txt: Remove some irrelevant text.
19
20 2000-02-07  Ben Elliston  <bje@redhat.com>
21
22         * generic.h (generic_memory::save_state): Make non-pure.
23         (generic_memory::restore_state): Likewise.
24         (generic_memory::stream_generic_state): Rename from this ..
25         (generic_memory::stream_state): .. to this.
26         (generic_memory::destream_generic_state): Rename from this ..
27         (generic_memory::destream_state): .. to this.
28         (generic_memory): Make operator <<, >> friends.
29         * generic.cxx (operator <<): Define.
30         (operator >>): Likewise.
31         * ramrom.h (ramrom_memory dtor): Remove.
32         (save_state): Remove.
33         (restore_state): Likewise.
34         * ramrom.cxx (ramrom_memory dtor): Remove.
35         (operator <<): Likewise.
36         (operator >>): Likewise.
37         * flash.h (flash_memory::stream_state): New method.
38         (flash_memory::destream_state): Likewise
39         * flash.cxx (flash_memory::stream_state): Define.
40         (flash_memory::destream_state): Likewise.
41         * am29.h (am29_flash_memory::stream_state): New method.
42         (am29_flash_memory::destream_state): Likewise.
43         (am29_flash_memory::save_state): Remove.
44         (am29_flash_memory::restore_state): Likewise.
45         * am29.cxx (am29_flash_memory::stream_state): Define.
46         (am29_flash_memory::destream_state): Likewise.
47         (operator <<): Remove.
48         (operator >>): Likewise.
49         * at29.h (at29_flash_memory::stream_state): New method.
50         (at29_flash_memory::destream_state): Likewise.
51         (at29_flash_memory::save_state): Remove.
52         (at29_flash_memory::restore_state): Likewise.
53         * at29.cxx (at29_flash_memory::stream_state): Define.
54         (at29_flash_memory::destream_state): Likewise.
55         (operator <<): Remove.
56         (operator >>): Likewise.
57
58 2000-01-25  Frank Ch. Eigler  <fche@redhat.com>
59
60         * Makefile.in: Regenerated.
61
62 2000-01-12  Frank Ch. Eigler  <fche@cygnus.com>
63
64         * Makefile.in: Regenerated.
65
66 2000-01-05  Frank Ch. Eigler  <fche@cygnus.com>
67
68         * generic.cxx (stream_generic_state): Save pin values and forgotten
69         attribute.
70         (destream_generic_state): Ditto for restoring.
71
72 1999-12-14  Frank Ch. Eigler  <fche@cygnus.com>
73
74         * hw-memory-ram_rom-basic.txt: Corrected, reworked to fit template.
75         * hw-memory-flash-am29.txt: Reworked to fit template.
76         * hw-memory-flash-at29.txt: Ditto.
77
78 1999-12-09  Faisal Khoja  <fkhoja@cygnus.com>
79
80         * Makefile.in: Regenerated.
81         
82 1999-12-08  Faisal Khoja  <fkhoja@cygnus.com>
83
84         * Makefile.in: Regenerated.
85
86 1999-12-07  Frank Ch. Eigler  <fche@cygnus.com>
87
88         * hw-memory-ram_rom-basic.txt: New file.  Content from old README.
89         * hw-memory-flash-am29.txt: Ditto.
90         * hw-memory-flash-at29.txt: Ditto.
91         * README: Removed.
92         * Makefile.am: Install new files.
93         * Makefile.in: Regenerated.
94
95 1999-11-26  Ben Elliston  <bje@cygnus.com>
96
97         * Makefile.am (DEJAGNUTESTS): Add memdocs.exp.
98         * Makefile.in: Regenerate.
99
100         * README (hw-memory-ram/rom-basic): Document.
101
102 1999-11-23  Frank Ch. Eigler  <fche@cygnus.com>
103
104         * components.cxx (compMemoryDelete): Use dynamic_cast<>.
105         * generic.cxx (imageload_handler): Take unused arg.  Update callers.
106         (imagestore_handler): Ditto.
107         * generic.h: Matching changes.
108
109 1999-11-12  Frank Ch. Eigler  <fche@cygnus.com>
110
111         * generic.cxx (imageload_handler): Don't complain, just fill memory
112         with zeroes, if input file is too short.
113
114 1999-11-12 Mary Lynn Kostash <mkostash@cygnus.com>
115
116         * README: Fixed typos, added missing Environment heading.
117
118 1999-11-08  Ben Elliston  <bje@cygnus.com>
119
120         * at29.cxx (at29_flash_memory ctor): manufacturer-code and
121         device-code attributes are settings.
122
123         * am29.cxx (am29_flash_memory ctor): mode is a read-only
124         attribute.
125
126 1999-11-01  Permaine Cheung <pcheung@cygnus.com>
127
128         * README: Fix component name in configuration in Environment
129         section.
130
131 1999-10-26  Frank Ch. Eigler  <fche@cygnus.com>
132
133         * generic.cxx (attempt_resize): Standardize error messages. 
134         (imagestore_handler, imageload_handler): Ditto.
135
136 1999-10-20  Permaine Cheung  <pcheung@cygnus.com>
137
138         * Makefile.am: Added new test files.
139         * Makefile.in: Regenerated.
140
141 1999-10-19  Frank Ch. Eigler  <fche@cygnus.com>
142
143         * Makefile.in: Regenerated.
144
145 1999-10-18  Ben Elliston  <bje@cygnus.com>
146
147         * flash.h
148         (flash_uniform_sector_memory::get_sector_size_attr): New method.
149         (flash_uniform_sector_memory::set_sector_size_attr): Likewise.
150         * flash.cxx
151         (flash_uniform_sector_memory::get_sector_size_attr): Implement.
152         (flash_uniform_sector_memory::set_sector_size_attr): Likewise.
153         (flash_uniform_sector_memory ctor): Virtualise "sector-size"
154         attribute; use get/set methods mentioned above.
155
156 1999-10-14  Mary Lynn Kostash  <mkostash@cygnus.com>
157
158         * README: Doc fixes based on review comments.
159
160 1999-10-13  Frank Ch. Eigler  <fche@cygnus.com>
161
162         * generic.cxx (imageload_handler): Handle short reads more
163         informatively.
164         (imagestore_handler): Ditto for writes.
165
166 1999-10-12  Ben Elliston  <bje@cygnus.com>
167
168         * am29.cxx (am29_flash_memory::am29_bus::write): Bug fix for an
169         out-by-one error--test bits 0 to 7, not 0 to 6. Also fix a case
170         fall-through by returning.
171
172         * README: Document the hw-memory-flash-am29 component.
173
174 1999-10-08  Frank Ch. Eigler  <fche@cygnus.com>
175
176         * am29.cxx (write_ok, read, write): Take value, not const-ref.
177         * am29.h (NOPERM_READ, NOPERM_WRITE): Same.
178         (*): Corresponding changes.
179         * at29.cxx (write_ok, read, write): Take value, not const-ref.
180         * at29.h (NOPERM_READ, NOPERM_WRITE): Same.
181         (*): Corresponding changes.
182         * flash.h (write_ok): Take value, not const-ref.
183         * generic.h (SID_GB_READ, SID_GB_WRITE): Take value, not const-ref.
184         (read_any, write_any): Same.
185
186 1999-10-07  Faisal Khoja  <fkhoja@cygnus.com>
187
188         * at29.h (write): Removed try & catch
189         (read): Likewise
190         * at29.cxx: Likewise
191         * generic.h (write): Removed try & catch
192         (read): Likewise
193         * generic.cxx: Likewise
194
195 1999-10-08  Ben Elliston  <bje@cygnus.com>
196
197         * am29.cxx (am29_flash_memory ctor): manufacturer-code and
198         device-code attributes are settings.
199
200         * components.cxx (compMemoryListTypes): Add hw-memory-flash-am29
201         and family members. Remove surplus debug output.
202         (compMemoryCreate): Recognise hw-memory-flash-am29 family.
203         * am29.h: New file.
204         * am29.cxx: Likewise.
205         * Makefile.am (libmemory_la_SOURCES): Add am29.cxx.
206         (DEJAGNUTESTS): Add am29.exp, memmonkey.exp.
207         (checkme): Depend on all.
208         * Makefile.in: Regenerate.
209
210 1999-09-27  Frank Ch. Eigler  <fche@cygnus.com>
211
212         * components.cxx: New file.  Collect component_library functions.
213         * ramrom.cxx: New file: implement hw-memory-ram/rom-basic.
214         * ramrom.h: New file.
215         * at29.cxx (write_ok): Use new "noSectorNum" constant instead of -1.
216         (at29_flash_memory ctor): Initialize more robustly.
217         (at29_bus): Renamed class from at29_flash_memory::at29_bus.
218         (operator <<,>>): Add partial state save/restore code.
219         (*): Remove unnecessary try/catch blocks.
220         * at29.h (at29_flash_memory_type): Adopt sidtypes throughout.
221         (at29_bus): Move out of at29_flash_memory type.
222         * flash.h (flash_memory): Inherit from generic_memory.  Simplified.
223         * flash.cxx: Removed code that duplicates generic_memory.
224         * generic.h: New file.  Collect common code here.
225         (read_any, write_any): Simplify.  Restore memory bound checking.
226         * generic.cxx (attempt_resize): New function.  Replace (resize).
227         Limit allocation to "size-max", a new attribute.
228         (imageload_handler, imagesave_handler): New functions.
229         (stream_generic_state, destream_generic_state): New functions.
230         Replace old (operator<<,>>).  Tolerate malloc errors.
231         (get_size_attr, set_size_attr): Tolerate malloc errors. 
232         
233         * README: Mention new pins/attributes.
234         * Makefile.am: Mention new files.
235         * Makefile.in: Regenerated.
236
237 1999-09-23  Frank Ch. Eigler  <fche@cygnus.com>
238
239         * README: Update for bool/number notation changes.
240
241 1999-09-13  Frank Ch. Eigler  <fche@cygnus.com>
242
243         * flash.cxx  (*): Use host_int_X, not compiler_int_X.
244         * flash.h, generic.cxx: Same here.
245
246 1999-09-09  Frank Ch. Eigler  <fche@cygnus.com>
247
248         * generic.cxx (operator <<): Fix buffer overrun in RLE-encoding.
249         (*): Reformat slightly.
250
251 1999-08-31  Mary Lynn Kostash  <mkostash@cygnus.com>
252
253         * README: Doc fixes.
254
255 1999-08-24  Frank Ch. Eigler  <fche@cygnus.com>
256
257         * flash.h: Import sidutil::std_error_string.
258         * generic.cxx (load_image): Use it.
259         * Makefile.in: Regenerated.
260
261 1999-08-20  Frank Ch. Eigler  <fche@cygnus.com>
262
263         * generic.cxx (operator >>): Use ANSI setstate() instead of setf().
264
265 1999-08-16  Ian Carmichael  <iancarm@cygnus.com>
266
267         * generic.cxx: readByte and writeByte members renamed.
268
269 1999-08-11  Ian Carmichael  <iancarm@cygnus.com>
270
271         * at29.cxx, generic.cxx: (*) Change big_int_N and 
272         little_int_N so that the default operations all use 
273         their integer values.
274
275 1999-08-09  Frank Ch. Eigler  <fche@cygnus.com>
276
277         * generic.xx (operator >>): Correct RLE-mode snapshot key.
278
279 1999-08-03  Faisal Khoja  <fkhoja@cygnus.com>
280
281         * at29.h: Introduced proper namespace usage.
282         * flash.h: Likewise.
283         * flash.cxx: Likewise.
284         * generic.cxx: Likewise.
285
286 1999-07-27  Ben Elliston  <bje@cygnus.com>
287
288         * generic.cxx (generic_memory ctor): Make `size' a setting
289         attribute.
290         * flash.cxx (flash_memory ctor): Likewise.
291         (flash_uniform_sector_memory ctor): Make `sector-size' a setting
292         attribute.
293
294 1999-07-26  Faisal Khoja  <fkhoja@cygnus.com>
295
296         * generic.cxx: Add exception handling.
297
298 1999-07-25  Faisal Khoja  <fkhoja@cygnus.com>
299         
300         * flash.h: Add exception handlers.
301         * at29.h: Likewise.
302         * at29.cxx: Likewise.
303
304 1999-07-24  Ben Elliston  <bje@cygnus.com>
305
306         * flash.h (flash_uniform_sector_memory dtor): Remove declaration.
307
308 1999-07-23  Faisal Khoja  <fkhoja@cygnus.com>
309
310         * flash.h (~flash_uniform_sector_memory): Added { } to compile on NT.
311
312 1999-07-22  Ben Elliston  <bje@cygnus.com>
313
314         * flash.cxx (flash_memory ctor): Remove `sector-size' attribute.
315         (flash_uniform_sector_memory ctor): Add it here, instead.
316         * flash.h (NOPERM_WRITE): Move here from at29.h.
317         (NOPERM_READ): Likewise.
318         (class flash_uniform_sector_memory): New class.
319         (flash_memory::sector_size): Move to flash_uniform_sector_memory.
320         * at29.h (at29_flash_memory): Inherit flash_uniform_sector_memory.
321         (NOPERM_WRITE): Move to flash.h.
322         (NOPERM_READ): Likewise.
323
324 1999-07-07  Frank Ch. Eigler  <fche@cygnus.com>
325
326         * at29.cxx (at29_flash_memory ctor): Call resize() after setting
327         memory size.  Accept ctor arguments to customize model.
328         (at29_flash_memory::types): New static const table.
329         * at29.h (at29_flash_memory): Corresponding declaration changes.
330         (at29_flash_memory_type): New struct.
331         * flash.h (resize): Make protected instead of private.
332         * generic.cxx (compMemoryListTypes): Add at29_flash_memory::types.
333         (compMemoryCreate): Use at29_flash_memory::types.
334         
335         * README: Updated to list AT29 family members, add attribute
336         defaults, etc.
337
338 1999-07-05  Frank Ch. Eigler  <fche@cygnus.com>
339
340         * Makefile.am (DEJAGNUTESTS): New macro.
341         (checkme): New target to run dejagnu on $DEJAGNUTESTS only.
342         * Makefile.in: Regenerated.
343
344 1999-07-05  Frank Ch. Eigler  <fche@cygnus.com>
345         
346         * generic.cxx (operator >>): Don't new[] buffer redundantly.
347
348 1999-07-05  Frank Ch. Eigler  <fche@cygnus.com>
349
350         * testsuite: Removed directory.
351         * Makefile.am (SUBDIRS): Don't recurse into it.
352         * Makefile.in: Regenerated.
353         * aclocal.m4: Ditto.
354         * configure: Ditto.
355         * configure.in: Ditto.
356
357 1999-06-29  Ben Elliston  <bje@cygnus.com>
358
359         * README: Rewrite using standard documentation template.
360
361 1999-06-23  Ben Elliston  <bje@cygnus.com>
362
363         * at29.cxx (at29_flash_memory::at29_bus::read): Re-work and
364         simplify method body.
365         (at29_flash_memory::at29_bus::read): Use the little endian version
366         of this method to do the real work.
367         (at29_flash_memory::at29_bus::write): Likewise.
368         * at29.h (NOPERM_READ): New macro.
369         (NOPERM_WRITE): Likewise.
370         Use these macros to declare unpermitted bus read/write methods.
371         
372 1999-06-22  Frank Ch. Eigler  <fche@cygnus.com>
373
374         * at29.cxx (at29_flash_memory): Use add_attribute_ro_value for
375         manufacturer-code attribute.
376
377 1999-06-22  Ben Elliston  <bje@cygnus.com>
378
379         * Makefile.am (libmemory_la_SOURCES): Add flash.cxx, at29.cxx.
380         * Makefile.in: Regenerate.
381         * generic.cxx (compMemoryListTypes): Add hw-memory-flash-at29.
382         (compMemoryCreate): Handle this new component type.
383         * at29.h: New file.
384         * at29.cxx: Likewise.
385         * flash.h: Likewise.
386         * flash.cxx: Likewise.
387
388 1999-06-15  Frank Ch. Eigler  <fche@cygnus.com>
389
390         * generic.cxx (generic_read_write_bus): Update bus API calls
391         throughout.
392         (generic_read_only_bus): Ditto.
393         (generic_memory dtor): Simplify.
394         (write_any): Assert that access address is in range.
395         (read_any): Ditto.
396         
397 1999-06-15  Ben Elliston  <bje@cygnus.com>
398
399         * generic.cxx (generic_read_only_bus): Put public members first.
400         (generic_read_write_bus): Likewise.
401         (generic_memory): Do not inline constructor/destructor. Put public
402         members first.
403         (generic_memory::image_file): Rename from this ..
404         (generic_memory::image_filename): .. to this. Update all callers.
405         (generic_memory::generic_memory): Move method body to here.
406         (generic_memory::~generic_memory): Likewise.
407
408         * compMemory.cxx: Rename from this ..
409         * generic.cxx: .. to this.
410         * Makefile.am (libmemory_la_SOURCES): Update.
411         * Makefile.in: Regenerate.
412
413 1999-06-09  Frank Ch. Eigler  <fche@cygnus.com>
414
415         * compMemory.cxx (compMemoryDelete): New function.
416         (mem_component_library): Register it.
417
418 1999-06-08  Frank Ch. Eigler  <fche@cygnus.com>
419         
420         * compMemory.cxx (compMemoryListTypes, compMemoryCreate):
421         Renamed type "memory" -> "hw-memory-ram/rom-basic".
422         * README: Update with new component type names.
423         
424 1999-06-01  Frank Ch. Eigler  <fche@cygnus.com>
425
426         * compMemory.cxx (operator>>,<<): Implement simple-minded RLE
427         encoding for memory state-snapshot.
428
429 1999-05-26  Frank Ch. Eigler  <fche@cygnus.com>
430
431         * compMemory.cxx (load_image): New function.
432         (ctor): Add "load-image!" attribute, which calls above function.
433         * README (load-image!): Document new attribute.
434         (wait-states): Forget about this amputated function.
435         * configure.in: Look for strerror().
436         * configure: Regenerated.
437
438 1999-05-18  Frank Ch. Eigler  <fche@cygnus.com>
439
440         * compMemory.cxx (restore_state): Return sid::component::status.
441
442 1999-05-13  Frank Ch. Eigler  <fche@cygnus.com>
443
444         * aclocal.m4: Regenerated.
445
446 1999-05-04  Frank Ch. Eigler  <fche@cygnus.com>
447
448         * compMemory.cxx (mem_component_library): DLLEXPORT it.
449         * configure.in: Be win32-dll-capable.
450         * configure: Regenerated.
451         * config.in: Ditto.
452         * aclocal.m4: Regenerated for new libtool.
453         * Makefile.in: Ditto.
454
455 1999-05-01  Ron Unrau  <runrau@cygnus.com>
456
457         * compMemory.cxx: streamline for speed
458
459 1999-04-21  Frank Ch. Eigler  <fche@cygnus.com>
460
461         * Makefile.am (LDFLAGS): Add -no-undefined
462         * Makefile.in: Regenerated.
463
464 1999-04-14  Frank Ch. Eigler  <fche@cygnus.com>
465
466         * README: New file.
467         * compMemory.cxx (operator <<, >>): Use unencoded binary string 
468         for state snapshot.
469
470 1999-04-12  Frank Ch. Eigler  <fche@cygnus.com>
471
472         * compMemory.cxx (generic_memory_bus): Use compiler_int_X
473         for more members.  Add "state-snapshot" virtual attribute.
474         (save_state, restore_state): New functions. Call:
475         (operator <<, operator >>): New functions. Very rudimentary state 
476         streaming.
477         (memory_tester): Removed class and its traces.
478         * memtest.conf.in: Removed.
479         
480         * configure.in (AC_CONFIG_SUBDIRS): Configure testsuite/.
481         * Makefile.am (SUBDIRS): Descend there.
482         * configure: Regenerated.
483         * Makefile.in: Regenerated.
484
485 1999-04-06  Frank Ch. Eigler  <fche@cygnus.com>
486
487         * compMemory.cxx (*): Adapt to renamed fixed_attribute_map functions.
488
489 1999-04-03  Ron Unrau  <runrau@cygnus.com>
490
491         * compMemory.cxx: swap addr<->data in bus::read and bus::write
492
493 1999-03-24  Frank Ch. Eigler  <fche@cygnus.com>
494
495         * configure.in: Use new AC_CONFIG_AUX_DIR.
496         * configure: Regenerated.
497         * Makefile.am: Build libtool -modules.
498         * Makefile.in: Regenerated.
499
500 1999-03-17  Frank Ch. Eigler  <fche@cygnus.com>
501
502         * compMemory.cxx (write_any,read_any): Revert changes.
503
504 1999-03-15  Ron Unrau  <runrau@cygnus.com>
505
506         * compMemory.cxx(write_any,read_any): make host-endian independent
507
508 1999-03-10  Ron Unrau  <runrau@cygnus.com>
509
510         * compMemory.cxx: incorporate revised pin API
511
512 1999-03-05  Frank Ch. Eigler  <fche@cygnus.com>
513
514         * compMemory.cxx (class generic_memory): Remove unneeded virtual
515         inheritance.  Add relationship API stub.
516         (class memory_tester): Ditto.
517
518 1999-02-26  Frank Ch. Eigler  <fche@cygnus.com>
519
520         * compMemory.cxx: Clean up some warnings.
521
522 1999-02-12  Frank Ch. Eigler  <fche@cygnus.com>
523
524         * compMemory.cxx (generic_memory): Add "wait-states" attribute for
525         returning "sid::bus::notready" indication on every N-1 out of N
526         accesses.  Use attribute-change callback for memory resizing.
527         (generic_memory_bus): Use it.
528         
529         * Makefile.am: Switch to foreign mode.  Adjust for automake 1.4.
530         * configure.in: Adjust for autoconf 2.13.
531         * Makefile.in: Rebuilt.
532         * aclocal.m4: Rebuilt.
533         * configure: Rebuilt.
534
535 1999-01-08  Frank Ch. Eigler  <fche@cygnus.com>
536
537         * compMemory.cxx (generic_memory): Use fixed_bus_map_component
538         mixin.
539         (memory_tester): Use fixed_accessor_map_component mixin.
540
541 1998-12-23  Frank Ch. Eigler  <fche@cygnus.com>
542
543         * Makefile.am (INCLUDES): Added . and ../include.
544         * configure.in: Removed compulsory checks.
545         * Makefile.in: Rebuilt.
546         * configure: Rebuilt.
547
548 1998-12-18  Frank Ch. Eigler  <fche@cygnus.com>
549
550         * configure.in: Look for strstream.h.
551         * configure: Rebuilt.
552         * compMemory.cxx: Added tracing calls (commented out).
553
554 1998-12-17  Frank Ch. Eigler  <fche@cygnus.com>
555
556         * compMemory.cxx (compMemory): Use new stub functions from
557         sidcomputil.h to mix in unused sub-APIs.
558         (memory_tester): New component that performs basic memory
559         component testing that was previously done in compDummy.
560         (compMemoryListTypes): Register new component type.
561         (compMemoryCreate): Register new component type.
562         * memtest.conf.in: New sid config file to drive memory tests.
563
564         * aclocal.m4: New file to enable local configuration.
565         * configure.in: Make script self-contained.
566         * Makefile.in: Rebuilt.
567         * configure: Rebuilt.
568