diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-03 17:51:24 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-03 17:51:24 +0000 |
commit | e0b8d65a972ee9af623635b00f9a2f9e470a890b (patch) | |
tree | 1d58cd08e067e9bf717b072aa3a5547be6389eeb | |
parent | d059c17270bdfa1b4054a98e1c65360af81ece9c (diff) | |
download | qemu-e0b8d65a972ee9af623635b00f9a2f9e470a890b.zip qemu-e0b8d65a972ee9af623635b00f9a2f9e470a890b.tar.gz qemu-e0b8d65a972ee9af623635b00f9a2f9e470a890b.tar.bz2 |
Do not attempt to set page flags for pages outside target address space
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4310 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | exec.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -227,6 +227,10 @@ static void page_init(void) do { n = fscanf (f, "%llx-%llx %*[^\n]\n", &startaddr, &endaddr); if (n == 2) { + startaddr = MIN(startaddr, + (1ULL << TARGET_PHYS_ADDR_SPACE_BITS) - 1); + endaddr = MIN(endaddr, + (1ULL << TARGET_PHYS_ADDR_SPACE_BITS) - 1); page_set_flags(TARGET_PAGE_ALIGN(startaddr), TARGET_PAGE_ALIGN(endaddr), PAGE_RESERVED); |