diff options
author | Nathan Binkert <nate@binkert.org> | 2009-11-04 16:57:01 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-11-04 16:57:01 -0800 |
commit | 2c5fe6f95e64a5a97d56cccc6b8b5417cdd981ae (patch) | |
tree | 71a062791437d79c1063688b09d45d2cd754a9f9 /src/sim | |
parent | fbfe92b5b8f4bfe229632d6d34e8ecb4dc7c1b29 (diff) | |
download | gem5-2c5fe6f95e64a5a97d56cccc6b8b5417cdd981ae.tar.xz |
build: fix compile problems pointed out by gcc 4.4
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/eventq.hh | 2 | ||||
-rw-r--r-- | src/sim/process.cc | 2 | ||||
-rw-r--r-- | src/sim/syscall_emul.cc | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index 29efdeb6f..92c38142c 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -471,7 +471,7 @@ class EventWrapper : public Event inline void EventQueue::schedule(Event *event, Tick when) { - assert(when >= curTick); + assert((UTick)when >= (UTick)curTick); assert(!event->scheduled()); #ifdef EVENTQ_DEBUG assert((event->flags & Event::Initialized) == Event::Initialized); diff --git a/src/sim/process.cc b/src/sim/process.cc index e71d6441f..343d2ad5a 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -32,6 +32,8 @@ #include <unistd.h> #include <fcntl.h> + +#include <cstdio> #include <string> #include "arch/remote_gdb.hh" diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc index cc8d99bcd..7cffffcf1 100644 --- a/src/sim/syscall_emul.cc +++ b/src/sim/syscall_emul.cc @@ -32,8 +32,9 @@ #include <fcntl.h> #include <unistd.h> -#include <string> +#include <cstdio> #include <iostream> +#include <string> #include "sim/syscall_emul.hh" #include "base/chunk_generator.hh" |