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:
Jake.Stine 2010-09-02 12:33:45 +00:00
parent df7708a37b
commit 12dbebcfd9
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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;