diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-10-10 09:53:16 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-10-10 09:53:16 -0400 |
commit | f4e2b3fa77e3bd24f3e5921e5c9616c8a82ce36c (patch) | |
tree | 8f23b36f444e730b0d3f5891a872a11000aa462b /sim/prog.cc | |
parent | a2b619df6d4ce403077639e4329ec6ad6cd53735 (diff) | |
download | gem5-f4e2b3fa77e3bd24f3e5921e5c9616c8a82ce36c.tar.xz |
Stop using omisc.h and move relevant functions to better places
while converting them to C++
base/intmath.hh:
Add some functions that were previously defined elsewhere in C
base/misc.cc:
Use the C++ version of memUsage, and sort #includes
sim/prog.cc:
Stop using the old macro versions of various functions and use
the new ones defined in intmath.hh
sim/sim_events.cc:
Stop using the old C versions of various functions and use
the new ones defined in hostinfo.hh
--HG--
extra : convert_revision : 15d1f24d2aff4254c745eea6070cb230dd37b8d2
Diffstat (limited to 'sim/prog.cc')
-rw-r--r-- | sim/prog.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/prog.cc b/sim/prog.cc index 355e8d0a1..0c9191d5d 100644 --- a/sim/prog.cc +++ b/sim/prog.cc @@ -36,6 +36,7 @@ #include "prog.hh" #include "eio.hh" +#include "intmath.hh" #include "thread.hh" #include "fake_syscall.hh" #include "object_file.hh" @@ -251,7 +252,7 @@ LiveProcess::LiveProcess(const string &name, text_size = objFile->textSize(); data_base = objFile->dataBase(); data_size = objFile->dataSize() + objFile->bssSize(); - brk_point = ROUND_UP(data_base + data_size, VMPageSize); + brk_point = RoundUp<uint64_t>(data_base + data_size, VMPageSize); // load object file into target memory objFile->loadSections(memory); |