Fix some warnings

This commit is contained in:
Tillmann Karras
2018-04-17 14:10:05 +01:00
parent 41f07a8773
commit 4cfd900c67
7 changed files with 8 additions and 35 deletions

View File

@ -103,7 +103,7 @@ void CachedInterpreter::ExecuteOneBlock()
break;
default:
ERROR_LOG(POWERPC, "Unknown CachedInterpreter Instruction: %d", code->type);
ERROR_LOG(POWERPC, "Unknown CachedInterpreter Instruction: %d", static_cast<int>(code->type));
break;
}
}

View File

@ -644,28 +644,11 @@ void PPCAnalyzer::SetInstructionStats(CodeBlock* block, CodeOp* code, const Gekk
if (opinfo->flags & FL_IN_FLOAT_S)
code->fregsIn[code->inst.FS] = true;
switch (opinfo->type)
// For analysis purposes, we can assume that blr eats opinfo->flags.
if (opinfo->type == OpType::Branch && code->inst.hex == 0x4e800020)
{
case OpType::Integer:
case OpType::Load:
case OpType::Store:
case OpType::LoadFP:
case OpType::StoreFP:
break;
case OpType::SingleFP:
case OpType::DoubleFP:
break;
case OpType::Branch:
if (code->inst.hex == 0x4e800020)
{
// For analysis purposes, we can assume that blr eats opinfo->flags.
code->outputCR0 = true;
code->outputCR1 = true;
}
break;
case OpType::System:
case OpType::SystemFP:
break;
code->outputCR0 = true;
code->outputCR1 = true;
}
}