physical.cc (8077:7544ad480a38) physical.cc (8105:906864dd0937)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 534 unchanged lines hidden (view full) ---

543 fatal("Can't open physical memory checkpoint file '%s'", filename);
544 }
545
546 compressedMem = gzdopen(fd, "rb");
547 if (compressedMem == NULL)
548 fatal("Insufficient memory to allocate compression state for %s\n",
549 filename);
550
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 534 unchanged lines hidden (view full) ---

543 fatal("Can't open physical memory checkpoint file '%s'", filename);
544 }
545
546 compressedMem = gzdopen(fd, "rb");
547 if (compressedMem == NULL)
548 fatal("Insufficient memory to allocate compression state for %s\n",
549 filename);
550
551 // unmap file that was mmaped in the constructor
551 // unmap file that was mmapped in the constructor
552 // This is done here to make sure that gzip and open don't muck with our
553 // nice large space of memory before we reallocate it
554 munmap((char*)pmemAddr, size());
555
556 UNSERIALIZE_SCALAR(_size);
557 if (size() > params()->range.size())
558 fatal("Memory size has changed!\n");
559

--- 50 unchanged lines hidden ---
552 // This is done here to make sure that gzip and open don't muck with our
553 // nice large space of memory before we reallocate it
554 munmap((char*)pmemAddr, size());
555
556 UNSERIALIZE_SCALAR(_size);
557 if (size() > params()->range.size())
558 fatal("Memory size has changed!\n");
559

--- 50 unchanged lines hidden ---