work around gcc 4.5 warning
authorNathan Binkert <nate@binkert.org>
Mon, 9 May 2011 20:34:11 +0000 (16:34 -0400)
committerNathan Binkert <nate@binkert.org>
Mon, 9 May 2011 20:34:11 +0000 (16:34 -0400)
src/cpu/inorder/resource_pool.cc

index 263512611c4dd6e6f840cf310db0f3b66b256ce2..1800aac37adf03d7b7ee9532edc382d9e38791f4 100644 (file)
@@ -260,7 +260,7 @@ ResourcePool::scheduleEvent(InOrderCPU::CPUEventType e_type, DynInstPtr inst,
 
     Tick when = cpu->nextCycle(curTick() + cpu->ticks(delay));
 
-    switch (e_type)
+    switch ((int)e_type)
     {
       case InOrderCPU::ActivateThread:
         {
@@ -505,7 +505,7 @@ ResourcePool::ResPoolEvent::ResPoolEvent(ResourcePool *_resPool,
 void
 ResourcePool::ResPoolEvent::process()
 {
-    switch (eventType)
+    switch ((int)eventType)
     {
       case InOrderCPU::ActivateThread:
         resPool->activateAll(tid);