Interpreter: Remove an unnecessary UReg_MSR& cast from SingleStepInner

This is technically undefined behavior, but regardless of that, it's not
even necessary since we can just make a temporary around the MSR value
and just discard it when done with it, since all we do is query the FP
bit value with it.
This commit is contained in:
Lioncash 2018-03-25 21:36:37 -04:00
parent b0efcdc8ef
commit 8b29997ed1
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ int Interpreter::SingleStepInner()
if (m_prev_inst.hex != 0)
{
UReg_MSR& msr = (UReg_MSR&)MSR;
const UReg_MSR msr{MSR};
if (msr.FP) // If FPU is enabled, just execute
{
m_op_table[m_prev_inst.OPCD](m_prev_inst);