bsnes/nall
Tim Allen 1929ad47d2 Update to v098r03 release.
byuu says:

It took several hours, but I've rebuilt much of the SNES' bus memory
mapping architecture.

The new design unifies the cartridge string-based mapping
("00-3f,80-bf:8000-ffff") and internal bus.map calls. The map() function
now has an accompanying unmap() function, and instead of a fixed 256
callbacks, it'll scan to find the first available slot. unmap() will
free slots up when zero addresses reference a given slot.

The controllers and expansion port are now both entirely dynamic.
Instead of load/unload/power/reset, they only have the constructor
(power/reset/load) and destructor (unload). What this means is you can
now dynamically change even expansion port devices after the system is
loaded.

Note that this is incredibly dangerous and stupid, but ... oh well. The
whole point of this was for 21fx. There's no way to change the expansion
port device prior to loading a game, but if the 21fx isn't active, then
the reset vector hijack won't work. Now you can load a 21fx game, change
the expansion port device, and simply reset the system to active the
device.

The unification of design between controller port devices and expansion
port devices is nice, and overall this results in a reduction of code
(all of the Mapping stuff in Cartridge is gone, replaced with direct bus
mapping.) And there's always the potential to expand this system more in
the future now.

The big missing feature right now is the ability to push/pop mappings.
So if you look at how the 21fx does the reset vector, you might vomit
a little bit. But ... it works.

Also changed exit(0) to _exit(0) in the POSIX version of nall::execute.

[The _exit(0) thing is an attempt to make higan not crash when it tries
to launch icarus and it's not on $PATH. The theory is that higan forks,
then the child tries to exec icarus and fails, so it exits, all the
unique_ptrs clean up their resources and tell the X server to free
things the parent process is still using. Calling _exit() prevents
destructors from running, and seems to prevent the problem. -Ed.]
2016-04-09 20:21:18 +10:00
..
beat Update to v097r17 release. 2016-03-13 11:22:14 +11:00
database Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
decode Update to v097r14 release. 2016-02-16 20:11:58 +11:00
emulation Update to v097r12 release. 2016-02-08 14:17:59 +11:00
encode Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
hash Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
http Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
image Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
memory Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
mosaic Update to v097r14 release. 2016-02-16 20:11:58 +11:00
posix Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
stream Update to v097r14 release. 2016-02-16 20:11:58 +11:00
string Update to v097r18 release. 2016-03-13 11:22:14 +11:00
windows Update to v097r19 release. 2016-03-13 11:22:14 +11:00
xorg Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
GNUmakefile Update to v097r02 release. 2016-01-25 22:27:18 +11:00
algorithm.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
any.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
atoi.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
bit.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
bitvector.hpp Update to v097r14 release. 2016-02-16 20:11:58 +11:00
config.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
directory.hpp Update to v097r17 release. 2016-03-13 11:22:14 +11:00
dl.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
endian.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
file.hpp Update to v097r17 release. 2016-03-13 11:22:14 +11:00
filemap.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
function.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
hashset.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
hid.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
image.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
inode.hpp Update to v097r17 release. 2016-03-13 11:22:14 +11:00
interpolation.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
intrinsics.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
main.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
map.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
matrix.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
maybe.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
memory.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
mosaic.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
nall.hpp Update to v097r17 release. 2016-03-13 11:22:14 +11:00
platform.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
primitives.hpp Update to v097r17 release. 2016-03-13 11:22:14 +11:00
priority-queue.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
property.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
random.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
range.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
run.hpp Update to v098r03 release. 2016-04-09 20:21:18 +10:00
serial.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
serializer.hpp Update to v097r14 release. 2016-02-16 20:11:58 +11:00
service.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
set.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
shared-memory.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
shared-pointer.hpp Update to v097r02 release. 2016-01-25 22:27:18 +11:00
smtp.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
sort.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
stdint.hpp Update to 20160215 release. 2016-02-16 20:27:55 +11:00
stream.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
string.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
thread.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
traits.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
unique-pointer.hpp Update to v097r02 release. 2016-01-25 22:27:18 +11:00
utility.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
varint.hpp Update to v097r17 release. 2016-03-13 11:22:14 +11:00
vector.hpp Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00