From: kub Date: Thu, 15 Apr 2021 22:27:50 +0000 (+0200) Subject: sh2 drc, debugging fixes X-Git-Tag: v2.00~550 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9a715c7777d61b0493a761fb36b6248e0da72fa;p=picodrive.git sh2 drc, debugging fixes --- diff --git a/cpu/sh2/compiler.c b/cpu/sh2/compiler.c index 1adfe838..6b8f83d5 100644 --- a/cpu/sh2/compiler.c +++ b/cpu/sh2/compiler.c @@ -1339,6 +1339,7 @@ static void rcache_add_vreg_alias(int x, sh2_reg_e r); static void rcache_remove_vreg_alias(int x, sh2_reg_e r); static void rcache_evict_vreg(int x); static void rcache_remap_vreg(int x); +static int rcache_get_reg(sh2_reg_e r, rc_gr_mode mode, int *hr); static void rcache_set_x16(int hr, int s16_, int u16_) { @@ -1444,7 +1445,6 @@ static int rcache_is_u16(int hr) } */ \ } -#if PROPAGATE_CONSTANTS static inline int gconst_alloc(sh2_reg_e r) { int i, n = -1; @@ -1481,7 +1481,6 @@ static void gconst_new(sh2_reg_e r, u32 val) if (guest_regs[r].vreg >= 0) rcache_remove_vreg_alias(guest_regs[r].vreg, r); } -#endif static int gconst_get(sh2_reg_e r, u32 *val) {