1.1 --- a/src/sh4/ia32mac.h Wed Jan 16 09:39:16 2008 +0000
1.2 +++ b/src/sh4/ia32mac.h Tue Jan 22 09:45:21 2008 +0000
1.4 for( i=0; i< sh4_x86.backpatch_posn; i++ ) {
1.5 *sh4_x86.backpatch_list[i].fixup_addr =
1.6 xlat_output - ((uint8_t *)sh4_x86.backpatch_list[i].fixup_addr) - 4;
1.7 - if( sh4_x86.backpatch_list[i].exc_code == -1 ) {
1.8 + if( sh4_x86.backpatch_list[i].exc_code < 0 ) {
1.9 load_imm32( R_EDX, sh4_x86.backpatch_list[i].fixup_icount );
1.10 + int stack_adj = -1 - sh4_x86.backpatch_list[i].exc_code;
1.11 + if( stack_adj > 0 ) {
1.12 + ADD_imm8s_r32( stack_adj, R_ESP );
1.14 int rel = preexc_ptr - xlat_output;