mirror of https://github.com/PCSX2/pcsx2.git
microVU: clear contents of microBlock on creation to avoid false cache misses.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3720 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
df7708a37b
commit
12dbebcfd9
|
@ -37,7 +37,7 @@ void* __fastcall pcsx2_aligned_malloc(size_t size, size_t align)
|
|||
uptr aligned = (pasthead + align-1) & ~(align-1);
|
||||
|
||||
AlignedMallocHeader* header = (AlignedMallocHeader*)(aligned-headsize);
|
||||
jASSUME( (uptr)header >= (uptr)p );
|
||||
pxAssume( (uptr)header >= (uptr)p );
|
||||
|
||||
header->baseptr = p;
|
||||
header->size = size;
|
||||
|
|
|
@ -47,7 +47,7 @@ template< uint page > extern void __fastcall hwRead128(u32 mem, mem128_t* out
|
|||
// Internal hwRead32 which does not log reads, used by hwWrite8/16 to perform
|
||||
// read-modify-write operations.
|
||||
template< uint page, bool intcstathack >
|
||||
mem32_t __fastcall _hwRead32(u32 mem);
|
||||
extern mem32_t __fastcall _hwRead32(u32 mem);
|
||||
|
||||
extern mem16_t __fastcall hwRead16_page_0F_INTC_HACK(u32 mem);
|
||||
extern mem32_t __fastcall hwRead32_page_0F_INTC_HACK(u32 mem);
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
if (!thisBlock) {
|
||||
listI++;
|
||||
microBlockLink* newBlock = (microBlockLink*)_aligned_malloc(sizeof(microBlockLink), 16);
|
||||
newBlock->next = NULL;
|
||||
memzero(*newBlock);
|
||||
|
||||
if (blockEnd) {
|
||||
blockEnd->next = newBlock;
|
||||
|
|
Loading…
Reference in New Issue