* mmap support for common simulators
commit764f1408a3fa9b1991e3e18d17ea857776c1503e
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 20 Mar 2001 17:13:39 +0000 (20 17:13 +0000)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 20 Mar 2001 17:13:39 +0000 (20 17:13 +0000)
treef978f18906457011d87fe189fe741c1dcf1866b7
parenta9cbbe6d3e713210dcb111b1fa2dacda55eab456
* mmap support for common simulators

2001-03-16  Frank Ch. Eigler  <fche@redhat.com>

Add support for mmap-based memory regions.
* sim-memopt.c (mmap_next_fd): New global.
(sim_memory_init): Reinitialize it.
(OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
"--memory-mapfile FILE" option.  Check for some errors.
(do_memopt_add): Conditionally do mmap instead of malloc for
backing store of simulated memory.  Check for more errors.
(do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
* sim-memopt.h (munmap_length): New member of _sim_memopt.
* configure.in: Look for mmap/fstat related functions and headers.
* config.in, configure: Regenerated.
sim/common/ChangeLog
sim/common/config.in
sim/common/configure
sim/common/configure.in
sim/common/sim-memopt.c
sim/common/sim-memopt.h