Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Handle BP mask register better to avoid useless BP writes (ca…
…using flushes)"

This reverts commit 954be9e.

Fixes issue 6826.
  • Loading branch information
neobrain committed Nov 20, 2013
1 parent bcefa88 commit 286b611
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Source/Core/VideoCommon/Src/BPMemory.cpp
Expand Up @@ -19,18 +19,15 @@ void LoadBPReg(u32 value0)
int opcode = value0 >> 24;
int oldval = ((u32*)&bpmem)[opcode];
int newval = (oldval & ~bpmem.bpMask) | (value0 & bpmem.bpMask);
int changes = (oldval ^ newval) & 0xFFFFFF;

BPCmd bp = {opcode, changes, newval};

//reset the mask register
if (opcode != 0xFE)
{
//reset the mask register
bpmem.bpMask = 0xFFFFFF;

int changes = (oldval ^ newval) & 0xFFFFFF;
BPCmd bp = {opcode, changes, newval};
BPWritten(bp);
}
else
bpmem.bpMask = newval;
BPWritten(bp);
}

void GetBPRegInfo(const u8* data, char* name, size_t name_size, char* desc, size_t desc_size)
Expand Down

0 comments on commit 286b611

Please sign in to comment.