Patch by Magliocchetti Riccardo:
remove old code that has been replaced and thus commentend more that one year ago.
This commit is contained in:
parent
a508ac1264
commit
2b7ce86880
|
@ -520,7 +520,6 @@ u32 armcpu_exec()
|
|||
|
||||
if(ARMPROC.CPSR.bits.T == 0)
|
||||
{
|
||||
/* if((TEST_COND(CONDITION(armcpu->instruction), armcpu->CPSR)) || ((CONDITION(armcpu->instruction)==0xF)&&(CODE(armcpu->instruction)==0x5)))*/
|
||||
if((TEST_COND(CONDITION(ARMPROC.instruction), CODE(ARMPROC.instruction), ARMPROC.CPSR)))
|
||||
{
|
||||
if(PROCNUM==0)
|
||||
|
|
|
@ -66,24 +66,6 @@
|
|||
#define LE 0xD
|
||||
#define AL 0xE
|
||||
|
||||
/*
|
||||
#define TEST_COND(cond, CPSR) (((cond)==AL) ||\
|
||||
(((cond)==EQ) && ( CPSR.bits.Z))||\
|
||||
(((cond)==NE) && (!CPSR.bits.Z))||\
|
||||
(((cond)==CS) && ( CPSR.bits.C))||\
|
||||
(((cond)==CC) && (!CPSR.bits.C))||\
|
||||
(((cond)==MI) && ( CPSR.bits.N))||\
|
||||
(((cond)==PL) && (!CPSR.bits.N))||\
|
||||
(((cond)==VS) && ( CPSR.bits.V))||\
|
||||
(((cond)==VC) && (!CPSR.bits.V))||\
|
||||
(((cond)==HI) && (CPSR.bits.C) && (!CPSR.bits.Z))||\
|
||||
(((cond)==LS) && ((CPSR.bits.Z) || (!CPSR.bits.C)))||\
|
||||
(((cond)==GE) && (CPSR.bits.N==CPSR.bits.V))||\
|
||||
(((cond)==LT) && (CPSR.bits.N!=CPSR.bits.V))||\
|
||||
(((cond)==GT) && (CPSR.bits.Z==0) && (CPSR.bits.N==CPSR.bits.V))||\
|
||||
(((cond)==LE) && ((CPSR.bits.Z) || (CPSR.bits.N!=CPSR.bits.V))))
|
||||
*/
|
||||
|
||||
extern const unsigned char arm_cond_table[16*16];
|
||||
|
||||
#define TEST_COND(cond, inst, CPSR) ((arm_cond_table[((CPSR.val >> 24) & 0xf0)+(cond)] >> (inst)) & 1)
|
||||
|
|
Loading…
Reference in New Issue