DSPJit: fix bug in DSPJitRegCache::getXReg

This commit is contained in:
Pierre 2012-08-27 22:16:08 +02:00
parent 6b5b8ab5be
commit d3de29c673
1 changed files with 1 additions and 1 deletions

View File

@ -982,7 +982,7 @@ void DSPJitRegCache::getXReg(X64Reg reg)
}
if (xregs[reg].guest_reg != DSP_REG_NONE)
spillXReg(reg);
_assert_msg_(DSPLLE, xregs[reg].guest_reg != DSP_REG_NONE, "register already in use");
_assert_msg_(DSPLLE, xregs[reg].guest_reg == DSP_REG_NONE, "register already in use");
xregs[reg].guest_reg = DSP_REG_USED;
}