Search
lxdream.org :: lxdream :: r824:016cda9d0518
lxdream 0.9.1
released Jun 29
Download Now
changeset824:016cda9d0518
parent823:8a592668322f
child825:2ac7ceccd775
authornkeynes
dateSun Aug 24 01:43:17 2008 +0000 (11 years ago)
Correct generated UNDEF() => UNDEF(ir) for consistency with UNIMP(ir)
src/sh4/sh4stat.in
src/sh4/sh4x86.in
src/tools/gendec.c
1.1 --- a/src/sh4/sh4stat.in Sun Aug 24 01:40:58 2008 +0000
1.2 +++ b/src/sh4/sh4stat.in Sun Aug 24 01:43:17 2008 +0000
1.3 @@ -195,7 +195,7 @@
1.4 void sh4_stats_add_by_pc( uint32_t pc )
1.5 {
1.6 uint16_t ir = sh4_read_word(pc);
1.7 -#define UNDEF() sh4_stats[0]++
1.8 +#define UNDEF(ir) sh4_stats[0]++
1.9 %%
1.10 ADD Rm, Rn {: sh4_stats[I_ADD]++; :}
1.11 ADD #imm, Rn {: sh4_stats[I_ADDI]++; :}
2.1 --- a/src/sh4/sh4x86.in Sun Aug 24 01:40:58 2008 +0000
2.2 +++ b/src/sh4/sh4x86.in Sun Aug 24 01:43:17 2008 +0000
2.3 @@ -270,7 +270,7 @@
2.4 TEST_imm32_r32( 0x00000007, x86reg ); \
2.5 JNE_exc(EXC_DATA_ADDR_WRITE);
2.6
2.7 -#define UNDEF()
2.8 +#define UNDEF(ir)
2.9 #define MEM_RESULT(value_reg) if(value_reg != R_EAX) { MOV_r32_r32(R_EAX,value_reg); }
2.10 #define MEM_READ_BYTE( addr_reg, value_reg ) call_func1(sh4_read_byte, addr_reg ); MEM_RESULT(value_reg)
2.11 #define MEM_READ_WORD( addr_reg, value_reg ) call_func1(sh4_read_word, addr_reg ); MEM_RESULT(value_reg)
3.1 --- a/src/tools/gendec.c Sun Aug 24 01:40:58 2008 +0000
3.2 +++ b/src/tools/gendec.c Sun Aug 24 01:43:17 2008 +0000
3.3 @@ -216,7 +216,7 @@
3.4 }
3.5 }
3.6 if( has_empty_options ) {
3.7 - fprintf( f, "%*cdefault:\n%*cUNDEF();\n%*cbreak;\n",
3.8 + fprintf( f, "%*cdefault:\n%*cUNDEF(ir);\n%*cbreak;\n",
3.9 depth*8+4, ' ', depth*8+8, ' ', depth*8 + 8, ' ' );
3.10 }
3.11 fprintf( f, "%*c}\n", depth*8, ' ' );
.