Compile fix for #ifdef OPROFILE_REPORT code; I think I'm the only person

using this at the moment, but it's nice to have it working in case someone 
else wants to try it.



git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1655 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
magumagu9 2008-12-25 10:54:03 +00:00
parent 76108a98d5
commit 61c45b78ef
1 changed files with 3 additions and 3 deletions

View File

@ -186,10 +186,10 @@ bool JitBlock::ContainsAddress(u32 em_address)
#ifdef OPROFILE_REPORT
char buf[100];
sprintf(buf, "EmuCode%x", emAddress);
u8* blockStart = blockCodePointers[block_num], *blockEnd = GetWritableCodePtr();
sprintf(buf, "EmuCode%x", b.originalAddress);
const u8* blockStart = blockCodePointers[block_num];
op_write_native_code(agent, buf, (uint64_t)blockStart,
blockStart, blockEnd - blockStart);
blockStart, b.codeSize);
#endif
}