diff options
| author | 2015-01-05 10:40:58 -0500 | |
|---|---|---|
| committer | 2015-01-05 10:41:02 -0500 | |
| commit | e08a39a2f44baca69a23b923c25e043773b2d241 (patch) | |
| tree | 74862843978e0d0a9c1aa7f2cc8f2122125a2f99 /src/core | |
| parent | Merge pull request #418 from lioncash/qd (diff) | |
| download | yuzu-e08a39a2f44baca69a23b923c25e043773b2d241.tar.gz yuzu-e08a39a2f44baca69a23b923c25e043773b2d241.tar.xz yuzu-e08a39a2f44baca69a23b923c25e043773b2d241.zip | |
dyncom: Actually set the Q flag for SMLABB/SMLABT/SMLATB/SMLATT
Easy skyeye todo fix.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp index ffe05cdbc..ed2de115a 100644 --- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp +++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp | |||
| @@ -5571,7 +5571,8 @@ unsigned InterpreterMainLoop(ARMul_State* state) { | |||
| 5571 | operand2 = (BIT(RS, 31)) ? (BITS(RS, 16, 31) | 0xffff0000) : BITS(RS, 16, 31); | 5571 | operand2 = (BIT(RS, 31)) ? (BITS(RS, 16, 31) | 0xffff0000) : BITS(RS, 16, 31); |
| 5572 | RD = operand1 * operand2 + RN; | 5572 | RD = operand1 * operand2 + RN; |
| 5573 | 5573 | ||
| 5574 | // TODO: FIXME: UPDATE Q FLAGS | 5574 | if (AddOverflow(operand1 * operand2, RN, RD)) |
| 5575 | cpu->Cpsr |= (1 << 27); | ||
| 5575 | } | 5576 | } |
| 5576 | cpu->Reg[15] += GET_INST_SIZE(cpu); | 5577 | cpu->Reg[15] += GET_INST_SIZE(cpu); |
| 5577 | INC_PC(sizeof(smla_inst)); | 5578 | INC_PC(sizeof(smla_inst)); |