diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2005-12-23 13:50:35 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2005-12-23 13:50:35 -0500 |
commit | 16bda9c03eb79e223f3cbc03ef80e75b7e27f266 (patch) | |
tree | 98945ca6abb9bac48dd19e8406bf0a90c7e13631 /sim/syscall_emul.hh | |
parent | 0cdcb08d908bc20f614dd164f8e43287406e81a3 (diff) | |
download | gem5-16bda9c03eb79e223f3cbc03ef80e75b7e27f266.tar.xz |
Fix roundUp function template so explicit arg is not
needed in a few more cases.
base/intmath.hh:
align arg to roundUp should be int, not template class
sim/process.cc:
sim/syscall_emul.hh:
No need for explicit template arg now that roundUp is fixed.
--HG--
extra : convert_revision : f9f4639e022acb9f427e8d30d81c782504437c53
Diffstat (limited to 'sim/syscall_emul.hh')
-rw-r--r-- | sim/syscall_emul.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/syscall_emul.hh b/sim/syscall_emul.hh index c535b5ad6..185ada2c5 100644 --- a/sim/syscall_emul.hh +++ b/sim/syscall_emul.hh @@ -634,7 +634,7 @@ mmapFunc(SyscallDesc *desc, int num, Process *p, ExecContext *xc) if (start == 0) { // user didn't give an address... pick one from our "mmap region" start = p->mmap_end; - p->mmap_end += roundUp<Addr>(length, VMPageSize); + p->mmap_end += roundUp(length, VMPageSize); if (p->nxm_start != 0) { //If we have an nxm space, make sure we haven't colided assert(p->mmap_end < p->nxm_start); |