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:
Mahyar Samani
2024-02-05 12:17:05 -08:00
committed by GitHub
parent 05f93175a7
commit 8efe6dc1bc
2 changed files with 2 additions and 2 deletions

View File

@@ -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) :

View File

@@ -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);