X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fdrc%2Femit_arm.c;h=46b45d4c5e2a235b9466b7ddc17080a6f24ab6e0;hb=c18edb34e6708b399c6bfee8dac7b21a62988643;hp=3296d48faa0cdf2fae0e48eeaaf5ff1686cb8f98;hpb=553c3eaa3a4bda6ba99d925ecab518fe82530cd6;p=picodrive.git diff --git a/cpu/drc/emit_arm.c b/cpu/drc/emit_arm.c index 3296d48..46b45d4 100644 --- a/cpu/drc/emit_arm.c +++ b/cpu/drc/emit_arm.c @@ -254,12 +254,6 @@ static int emith_xbranch(int cond, void *target, int is_call) #define emith_ctx_write(r, offs) \ EOP_STR_IMM(r, CONTEXT_REG, offs) -#define emith_ctx_sub(val, offs) { \ - emith_ctx_read(0, offs); \ - emith_sub_r_imm(0, val); \ - emith_ctx_write(0, offs); \ -} - // upto 4 args #define emith_pass_arg_r(arg, reg) \ EOP_MOV_REG_SIMPLE(arg, reg) @@ -281,11 +275,7 @@ static int emith_xbranch(int cond, void *target, int is_call) /* SH2 drc specific */ #define emith_test_t() { \ - int r = reg_map_g2h[SHR_SR]; \ - if (r == -1) { \ - emith_ctx_read(0, SHR_SR * 4); \ - r = 0; \ - } \ + int r = rcache_get_reg(SHR_SR, RC_GR_READ); \ EOP_TST_IMM(r, 0, 1); \ }