diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2016-02-19 23:57:17 +0000 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2016-02-20 01:03:37 +0000 |
| commit | af5ff9941a2e3670720dcfa0075eb98e4791580d (patch) | |
| tree | 8eac3d0edbad6cb0e3c758a284029d587d6b5591 /Source/Core | |
| parent | 1f2b1caf422474d02d465ee4c8fa16f066aeb011 (diff) | |
Interpreter: deduplicate CR0 helper
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp index f8e1d44520..d5e5730c4e 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp @@ -11,11 +11,7 @@ void Interpreter::Helper_UpdateCR0(u32 value) { - s64 sign_extended = (s64)(s32)value; - u64 cr_val = (u64)sign_extended; - cr_val = (cr_val & ~(1ull << 61)) | ((u64)GetXER_SO() << 61); - - PowerPC::ppcState.cr_val[0] = cr_val; + Helper_UpdateCRx(0, value); } void Interpreter::Helper_UpdateCRx(int idx, u32 value) |
