A couple of minor Linux compile fixes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1599 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
magumagu9 2008-12-20 07:13:38 +00:00
parent 7ad6b0b5bb
commit a2a8be006a
1 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ void sigsegv_handler(int signal, siginfo_t *info, void *raw_context)
#else #else
u8 *fault_instruction_ptr = (u8 *)CREG_EIP(ctx); u8 *fault_instruction_ptr = (u8 *)CREG_EIP(ctx);
#endif #endif
if (!jit.IsInCodeSpace((const u8 *)fault_instruction_ptr)) { if (!jit.IsInCodeSpace(fault_instruction_ptr)) {
// Let's not prevent debugging. // Let's not prevent debugging.
return; return;
} }
@ -225,7 +225,7 @@ void sigsegv_handler(int signal, siginfo_t *info, void *raw_context)
fake_ctx.Eax = CREG_EAX(ctx); fake_ctx.Eax = CREG_EAX(ctx);
fake_ctx.Eip = CREG_EIP(ctx); fake_ctx.Eip = CREG_EIP(ctx);
#endif #endif
u8 *new_rip = jit.BackPatch(fault_instruction_ptr, access_type, em_address, &fake_ctx); const u8 *new_rip = jit.BackPatch(fault_instruction_ptr, access_type, em_address, &fake_ctx);
if (new_rip) { if (new_rip) {
#ifdef _M_X64 #ifdef _M_X64
CREG_RAX(ctx) = fake_ctx.Rax; CREG_RAX(ctx) = fake_ctx.Rax;