aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/new_dynarec
diff options
context:
space:
mode:
authornotaz2011-10-19 01:58:04 +0300
committernotaz2011-10-30 23:48:07 +0200
commit82ed88ebe25a0312aab83623b5a983bd96f3d830 (patch)
tree80a19f77d63f4683345464f2df8bd3f8ecbe17ec /libpcsxcore/new_dynarec
parent054175e91a93116649ea1802790cb842516a85dc (diff)
downloadpcsx_rearmed-82ed88ebe25a0312aab83623b5a983bd96f3d830.tar.gz
pcsx_rearmed-82ed88ebe25a0312aab83623b5a983bd96f3d830.tar.bz2
pcsx_rearmed-82ed88ebe25a0312aab83623b5a983bd96f3d830.zip
pcnt: measure gte too
Diffstat (limited to 'libpcsxcore/new_dynarec')
-rw-r--r--libpcsxcore/new_dynarec/assem_arm.c8
-rw-r--r--libpcsxcore/new_dynarec/emu_if.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/libpcsxcore/new_dynarec/assem_arm.c b/libpcsxcore/new_dynarec/assem_arm.c
index d0d43f4..ddbfafa 100644
--- a/libpcsxcore/new_dynarec/assem_arm.c
+++ b/libpcsxcore/new_dynarec/assem_arm.c
@@ -4410,11 +4410,19 @@ void cop2_assemble(int i,struct regstat *i_regs)
static void c2op_prologue(u_int op,u_int reglist)
{
save_regs_all(reglist);
+#ifdef PCNT
+ emit_movimm(op,0);
+ emit_call((int)pcnt_gte_start);
+#endif
emit_addimm(FP,(int)&psxRegs.CP2D.r[0]-(int)&dynarec_local,0); // cop2 regs
}
static void c2op_epilogue(u_int op,u_int reglist)
{
+#ifdef PCNT
+ emit_movimm(op,0);
+ emit_call((int)pcnt_gte_end);
+#endif
restore_regs_all(reglist);
}
diff --git a/libpcsxcore/new_dynarec/emu_if.c b/libpcsxcore/new_dynarec/emu_if.c
index 485a7c8..b3bcc29 100644
--- a/libpcsxcore/new_dynarec/emu_if.c
+++ b/libpcsxcore/new_dynarec/emu_if.c
@@ -266,7 +266,7 @@ static int ari64_init()
if (psxCP2[i] != psxNULL)
gte_handlers[i] = psxCP2[i];
-#if !defined(DRC_DBG) && !defined(PCNT)
+#if !defined(DRC_DBG)
#ifdef __arm__
gte_handlers[0x06] = gteNCLIP_arm;
gte_handlers_nf[0x01] = gteRTPS_nf_arm;