sim: Updating Process::Map (#835)
Changing size from int to int64_t to allow for mapping regions bigger than 2GB.
This commit is contained in:
@@ -401,7 +401,7 @@ Process::unserialize(CheckpointIn &cp)
|
||||
}
|
||||
|
||||
bool
|
||||
Process::map(Addr vaddr, Addr paddr, int size, bool cacheable)
|
||||
Process::map(Addr vaddr, Addr paddr, int64_t size, bool cacheable)
|
||||
{
|
||||
pTable->map(vaddr, paddr, size,
|
||||
cacheable ? EmulationPageTable::MappingFlags(0) :
|
||||
|
||||
@@ -158,7 +158,7 @@ class Process : public SimObject
|
||||
* @return True if the map operation was successful. (At this
|
||||
* point in time, the map operation always succeeds.)
|
||||
*/
|
||||
bool map(Addr vaddr, Addr paddr, int size, bool cacheable = true);
|
||||
bool map(Addr vaddr, Addr paddr, int64_t size, bool cacheable = true);
|
||||
|
||||
void replicatePage(Addr vaddr, Addr new_paddr, ThreadContext *old_tc,
|
||||
ThreadContext *new_tc, bool alloc_page);
|
||||
|
||||
Reference in New Issue
Block a user