diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-08-14 03:18:38 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-08-14 03:18:38 -0400 |
commit | 741bc40cc336be6afdff73a230eaec980812b7d5 (patch) | |
tree | 99cfd53218bcc1dd84b6d89c28540ab7a22b75b7 /src/mem | |
parent | fc8b4f52537dafdfe10a9be912fe3f069d8a570d (diff) | |
download | gem5-741bc40cc336be6afdff73a230eaec980812b7d5.tar.xz |
Changed the size parameter from int to int64_t
--HG--
extra : convert_revision : a19404bdc3a6434fe28f8aa278dc6addf764be22
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/page_table.cc | 4 | ||||
-rw-r--r-- | src/mem/page_table.hh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/page_table.cc b/src/mem/page_table.cc index a34a0393a..2b460306f 100644 --- a/src/mem/page_table.cc +++ b/src/mem/page_table.cc @@ -64,7 +64,7 @@ PageTable::~PageTable() } Fault -PageTable::page_check(Addr addr, int size) const +PageTable::page_check(Addr addr, int64_t size) const { if (size < sizeof(uint64_t)) { if (!isPowerOf2(size)) { @@ -92,7 +92,7 @@ PageTable::page_check(Addr addr, int size) const void -PageTable::allocate(Addr vaddr, int size) +PageTable::allocate(Addr vaddr, int64_t size) { // starting address must be page aligned assert(pageOffset(vaddr) == 0); diff --git a/src/mem/page_table.hh b/src/mem/page_table.hh index eac824ddf..86247f276 100644 --- a/src/mem/page_table.hh +++ b/src/mem/page_table.hh @@ -77,9 +77,9 @@ class PageTable Addr pageAlign(Addr a) { return (a & ~offsetMask); } Addr pageOffset(Addr a) { return (a & offsetMask); } - Fault page_check(Addr addr, int size) const; + Fault page_check(Addr addr, int64_t size) const; - void allocate(Addr vaddr, int size); + void allocate(Addr vaddr, int64_t size); /** * Translate function |