OSDN Git Service

* cris/traps.c (abort): Define to call sim_io_error.
authorHans-Peter Nilsson <hp@axis.com>
Tue, 6 Jan 2009 20:48:58 +0000 (20:48 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 6 Jan 2009 20:48:58 +0000 (20:48 +0000)
commitf3c58c5f3e59ede0c7dcc1a0e6679357a3ffee3f
treefb18d943a6ec514a7e6fe867a6d224728ad976f5
parent26af839fdd5cd7143867acff0012473537ecc667
* cris/traps.c (abort): Define to call sim_io_error.
(create_map): Make -1 imply a non-fixed address, not 0.  All
callers changed.  Only prefer the next higher unmapped address if
the last mapped address is no less than 0x40000000.  Check that
the address to be mapped is not already mapped.  Update head
comment.
(unmap_pages): Don't call abort when recursive call fails, just
note and return an error if a page in the range couldn't be unmapped.
(cris_bmod_handler, h_supr_set_handler, h_supr_get_handler)
(schedule, make_first_thread, cris_pipe_empty): New local variable sd.
(cris_break_13_handler) <case TARGET_SYS_mmap2>: Handle
non-MAP_FIXED argument overlapping existing map.  For MAP_FIXED,
don't abort on page not being mapped.  Handle non-anon filemap
with length padded to pagesize.
sim/ChangeLog
sim/cris/traps.c