From: Gabe Black Date: Mon, 14 Aug 2006 07:18:38 +0000 (-0400) Subject: Changed the size parameter from int to int64_t X-Git-Tag: m5_2.0_beta1~41 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=741bc40cc336be6afdff73a230eaec980812b7d5;p=gem5.git Changed the size parameter from int to int64_t --HG-- extra : convert_revision : a19404bdc3a6434fe28f8aa278dc6addf764be22 --- 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