Search
lxdream.org :: lxdream/src/sh4/sh4x86.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4x86.in
changeset 1298:d0eb2307b847
prev1292:799fdd4f704a
next1301:b76840ccf94b
author nkeynes
date Wed Feb 04 08:38:23 2015 +1000 (5 years ago)
permissions -rw-r--r--
last change Fix assorted compile warnings reported by Clang
file annotate diff log raw
1.1 --- a/src/sh4/sh4x86.in Fri Aug 24 08:53:50 2012 +1000
1.2 +++ b/src/sh4/sh4x86.in Wed Feb 04 08:38:23 2015 +1000
1.3 @@ -116,7 +116,8 @@
1.4 static struct sh4_x86_state sh4_x86;
1.5
1.6 static uint8_t sh4_entry_stub[128];
1.7 -void FASTCALL (*sh4_translate_enter)(void *code);
1.8 +typedef FASTCALL void (*entry_point_t)(void *);
1.9 +entry_point_t sh4_translate_enter;
1.10
1.11 static uint32_t max_int = 0x7FFFFFFF;
1.12 static uint32_t min_int = 0x80000000;
1.13 @@ -171,7 +172,7 @@
1.14 POP_r32(REG_EBX);
1.15 POP_r32(REG_EBP);
1.16 RET();
1.17 - sh4_translate_enter = sh4_entry_stub;
1.18 + sh4_translate_enter = (entry_point_t)sh4_entry_stub;
1.19 }
1.20
1.21 void sh4_translate_init(void)
1.22 @@ -3204,13 +3205,11 @@
1.23
1.24 void *xlat_get_native_pc( void *code, uint32_t code_size )
1.25 {
1.26 - struct _Unwind_Exception exc;
1.27 struct UnwindInfo info;
1.28
1.29 info.pc = NULL;
1.30 info.block_start = (uintptr_t)code;
1.31 info.block_end = info.block_start + code_size;
1.32 - void *result = NULL;
1.33 _Unwind_Backtrace( xlat_check_frame, &info );
1.34 return info.pc;
1.35 }
.