work around gcc 4.5 warning

This commit is contained in:
Nathan Binkert 2011-05-09 16:34:11 -04:00
parent 1267ff5949
commit 9c4c1419a7

View file

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