Search
lxdream.org :: lxdream :: r381:aade6c9aca4d
lxdream 0.9.1
released Jun 29
Download Now
changeset381:aade6c9aca4d
parent380:2e8166bf6832
child382:fce3f4da92ab
authornkeynes
dateWed Sep 12 11:41:43 2007 +0000 (13 years ago)
Fix default block return value
src/sh4/sh4x86.c
src/sh4/sh4x86.in
1.1 --- a/src/sh4/sh4x86.c Wed Sep 12 11:31:16 2007 +0000
1.2 +++ b/src/sh4/sh4x86.c Wed Sep 12 11:41:43 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4x86.c,v 1.7 2007-09-12 11:31:16 nkeynes Exp $
1.6 + * $Id: sh4x86.c,v 1.8 2007-09-12 11:41:43 nkeynes Exp $
1.7 *
1.8 * SH4 => x86 translation. This version does no real optimization, it just
1.9 * outputs straight-line x86 code - it mainly exists to provide a baseline
1.10 @@ -369,7 +369,7 @@
1.11 MUL_r32( R_ESI );
1.12 ADD_r32_r32( R_EAX, R_ECX );
1.13 store_spreg( R_ECX, REG_OFFSET(slice_cycle) );
1.14 - XOR_r32_r32( R_EAX, R_EAX );
1.15 + load_imm32( R_EAX, 1 );
1.16 POP_r32(R_ESI);
1.17 POP_r32(R_EDI);
1.18 POP_r32(R_EBP);
2.1 --- a/src/sh4/sh4x86.in Wed Sep 12 11:31:16 2007 +0000
2.2 +++ b/src/sh4/sh4x86.in Wed Sep 12 11:41:43 2007 +0000
2.3 @@ -1,5 +1,5 @@
2.4 /**
2.5 - * $Id: sh4x86.in,v 1.7 2007-09-12 11:31:16 nkeynes Exp $
2.6 + * $Id: sh4x86.in,v 1.8 2007-09-12 11:41:43 nkeynes Exp $
2.7 *
2.8 * SH4 => x86 translation. This version does no real optimization, it just
2.9 * outputs straight-line x86 code - it mainly exists to provide a baseline
2.10 @@ -369,7 +369,7 @@
2.11 MUL_r32( R_ESI );
2.12 ADD_r32_r32( R_EAX, R_ECX );
2.13 store_spreg( R_ECX, REG_OFFSET(slice_cycle) );
2.14 - XOR_r32_r32( R_EAX, R_EAX );
2.15 + load_imm32( R_EAX, 1 );
2.16 POP_r32(R_ESI);
2.17 POP_r32(R_EDI);
2.18 POP_r32(R_EBP);
.