diff options
| author | dok.slade <dok.slade@gmail.com> | 2026-11-09 22:05:59 +0000 |
|---|---|---|
| committer | dok.slade <dok.slade@gmail.com> | 2026-11-13 00:17:30 +0100 |
| commit | 1f7ead58bcd00228b906118be0b3988b1972c43e (patch) | |
| tree | df7140f327c4d1579a286df40c9832a56700482e /Source/Core/DolphinQt/Debugger/CodeWidget.cpp | |
| parent | db2afcbdf8f5175a6b8414d9f5e21c978775f651 (diff) | |
Interpreter: Fix carry of addme/subfme when CA is set
When XER[CA] was set, addme and subfme always cleared it.
Both instructions add 0xFFFFFFFF and CA to their operand (rA for addme,
~rA for subfme). With CA=1, this adds 2^32, so there is always a carry
out. With CA=0, there is a carry out unless the operand is 0.
This affected the interpreter, the cached interpreter and the JitArm64
fallbacks (addmeo/subfmeo). Jit64 already computes the right value.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
0 files changed, 0 insertions, 0 deletions
