sim: allow memory maps to default to mapped files
authorMike Frysinger <vapier@gentoo.org>
Tue, 11 Jan 2011 17:58:56 +0000 (17:58 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 11 Jan 2011 17:58:56 +0000 (17:58 +0000)
commit3143e5a930bd71ff2ddd889f906f9df3631a1ae7
tree2038581e42a00498fb1ca109384f60b7393b00bc
parent9b20d036b6804e167f6b3a843661022ed46399bb
sim: allow memory maps to default to mapped files

I find it annoying when using --memory-mapfile that I also need to look
up and manually specify the file size to the following --memory-region
option.  So make a length of 0 in the following --memory-region trigger
an auto-sizing of the map to the length of the file being mapped.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/common/ChangeLog
sim/common/sim-memopt.c