From: Kevin Lim Date: Wed, 19 Jul 2006 19:26:48 +0000 (-0400) Subject: Some minor compiling fixes. X-Git-Tag: m5_2.0_beta1~64^2~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0cedb23d3c9122c061c5c1837dfaf01f570e0733;p=gem5.git Some minor compiling fixes. src/cpu/o3/iew.hh: Non-debug compile fixes. src/cpu/simple/atomic.cc: src/cpu/simple/atomic.hh: Merge fix. --HG-- extra : convert_revision : 38081925d2b74d8f64acdb65dba94b2bf465b16a --- diff --git a/src/cpu/o3/iew.hh b/src/cpu/o3/iew.hh index fb9afde54..6c6be4787 100644 --- a/src/cpu/o3/iew.hh +++ b/src/cpu/o3/iew.hh @@ -31,11 +31,12 @@ #ifndef __CPU_O3_IEW_HH__ #define __CPU_O3_IEW_HH__ +#include "config/full_system.hh" + #include #include "base/statistics.hh" #include "base/timebuf.hh" -#include "config/full_system.hh" #include "cpu/o3/comm.hh" #include "cpu/o3/scoreboard.hh" #include "cpu/o3/lsq.hh" @@ -215,7 +216,7 @@ class DefaultIEW if (++wbOutstanding == wbMax) ableToIssue = false; DPRINTF(IEW, "wbOutstanding: %i\n", wbOutstanding); -#if DEBUG +#ifdef DEBUG wbList.insert(sn); #endif } @@ -225,13 +226,13 @@ class DefaultIEW if (wbOutstanding-- == wbMax) ableToIssue = true; DPRINTF(IEW, "wbOutstanding: %i\n", wbOutstanding); -#if DEBUG +#ifdef DEBUG assert(wbList.find(sn) != wbList.end()); wbList.erase(sn); #endif } -#if DEBUG +#ifdef DEBUG std::set wbList; void dumpWb() diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc index 6be188a96..c396f5033 100644 --- a/src/cpu/simple/atomic.cc +++ b/src/cpu/simple/atomic.cc @@ -178,19 +178,14 @@ AtomicSimpleCPU::unserialize(Checkpoint *cp, const string §ion) void AtomicSimpleCPU::resume() { + assert(system->getMemoryMode() == System::Atomic); + changeState(SimObject::Running); if (thread->status() == ThreadContext::Active) { if (!tickEvent.scheduled()) tickEvent.schedule(curTick); } } -void -AtomicSimpleCPU::resume() -{ - assert(system->getMemoryMode() == System::Atomic); - changeState(SimObject::Running); -} - void AtomicSimpleCPU::switchOut() { diff --git a/src/cpu/simple/atomic.hh b/src/cpu/simple/atomic.hh index 895eb5bde..b602af558 100644 --- a/src/cpu/simple/atomic.hh +++ b/src/cpu/simple/atomic.hh @@ -128,7 +128,6 @@ class AtomicSimpleCPU : public BaseSimpleCPU virtual void unserialize(Checkpoint *cp, const std::string §ion); virtual void resume(); - virtual void resume(); void switchOut(); void takeOverFrom(BaseCPU *oldCPU);