Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a comment about Qualcomm in load stores.
  • Loading branch information
Sonicadvance1 committed Mar 8, 2013
1 parent 279e3c7 commit be217bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/Common/Src/ArmEmitter.cpp
Expand Up @@ -535,7 +535,9 @@ void ARMXEmitter::MRS (ARMReg dest)

void ARMXEmitter::WriteStoreOp(u32 op, ARMReg dest, ARMReg src, s16 op2)
{
bool Index = op2 != 0 ? true : false;
// Qualcomm chipsets get /really/ angry if you don't use index, even if the offset is zero.
// bool Index = op2 != 0 ? true : false;
bool Index = true;
bool Add = op2 >= 0 ? true : false;
u32 imm = abs(op2);
Write32(condition | (op << 20) | (Index << 24) | (Add << 23) | (dest << 16) | (src << 12) | imm);
Expand Down

0 comments on commit be217bf

Please sign in to comment.