emit_movimm(value,HOST_TEMPREG);
}
emit_storereg(i_regmap[hr],HOST_TEMPREG);
+#ifndef FORCE32
if((i_is32>>i_regmap[hr])&1) {
if(value!=-1&&value!=0) emit_sarimm(HOST_TEMPREG,31,HOST_TEMPREG);
emit_storereg(i_regmap[hr]|64,HOST_TEMPREG);
}
+#endif
}
}
}
assert((ptr[3]&0x0e)==0xa);
emit_loadlp(target,0);
emit_loadlp(addr,1);
- assert(addr>=0x7000000&&addr<0x7FFFFFF);
+ assert(addr>=BASE_ADDR&&addr<(BASE_ADDR+(1<<TARGET_SIZE_2)));
//assert((target>=0x80000000&&target<0x80800000)||(target>0xA4000000&&target<0xA4001000));
//DEBUG >
#ifdef DEBUG_CYCLE_COUNT
ftable=(int)readmemh;
if(type==LOADW_STUB)
ftable=(int)readmem;
+#ifndef FORCE32
if(type==LOADD_STUB)
ftable=(int)readmemd;
+#endif
+ assert(ftable!=0);
emit_writeword(rs,(int)&address);
//emit_pusha();
save_regs(reglist);
ftable=(int)readmemh;
if(type==LOADW_STUB)
ftable=(int)readmem;
+#ifndef FORCE32
if(type==LOADD_STUB)
ftable=(int)readmemd;
+#endif
+ assert(ftable!=0);
emit_writeword(rs,(int)&address);
//emit_pusha();
save_regs(reglist);
ftable=(int)writememh;
if(type==STOREW_STUB)
ftable=(int)writemem;
+#ifndef FORCE32
if(type==STORED_STUB)
ftable=(int)writememd;
+#endif
+ assert(ftable!=0);
emit_writeword(rs,(int)&address);
//emit_shrimm(rs,16,rs);
//emit_movmem_indexedx4(ftable,rs,rs);
ftable=(int)writememh;
if(type==STOREW_STUB)
ftable=(int)writemem;
+#ifndef FORCE32
if(type==STORED_STUB)
ftable=(int)writememd;
+#endif
+ assert(ftable!=0);
emit_writeword(rs,(int)&address);
//emit_shrimm(rs,16,rs);
//emit_movmem_indexedx4(ftable,rs,rs);
// as a 64-bit value later.
void wb_sx(signed char pre[],signed char entry[],uint64_t dirty,uint64_t is32_pre,uint64_t is32,uint64_t u,uint64_t uu)
{
+#ifndef FORCE32
if(is32_pre==is32) return;
int hr,reg;
for(hr=0;hr<HOST_REGS;hr++) {
//}
}
}
+#endif
}
void wb_valid(signed char pre[],signed char entry[],u_int dirty_pre,u_int dirty,uint64_t is32_pre,uint64_t u,uint64_t uu)