Interpreter: deduplicate CR0 helper

This commit is contained in:
Tillmann Karras 2016-02-19 23:57:17 +00:00
parent 1f2b1caf42
commit af5ff9941a
1 changed files with 1 additions and 5 deletions

View File

@ -11,11 +11,7 @@
void Interpreter::Helper_UpdateCR0(u32 value) void Interpreter::Helper_UpdateCR0(u32 value)
{ {
s64 sign_extended = (s64)(s32)value; Helper_UpdateCRx(0, value);
u64 cr_val = (u64)sign_extended;
cr_val = (cr_val & ~(1ull << 61)) | ((u64)GetXER_SO() << 61);
PowerPC::ppcState.cr_val[0] = cr_val;
} }
void Interpreter::Helper_UpdateCRx(int idx, u32 value) void Interpreter::Helper_UpdateCRx(int idx, u32 value)