summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/sh2
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-12-19 08:50:34 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-12-19 08:50:34 +0000
commitc3fb0472047a307859ee34089007770aa96989fd (patch)
treed55783e48b999578c40c7219583879c020a55106 /src/emu/cpu/sh2
parent0995630b65879ab867370452a8a7ea4832ed2488 (diff)
Added new profiler bucket for DRC recompilation.
Removed a number of extraneous sign extensions from the RSP DRC.
Diffstat (limited to 'src/emu/cpu/sh2')
-rw-r--r--src/emu/cpu/sh2/sh2drc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/cpu/sh2/sh2drc.c b/src/emu/cpu/sh2/sh2drc.c
index e92b1cdac9f..7ca7e3574a1 100644
--- a/src/emu/cpu/sh2/sh2drc.c
+++ b/src/emu/cpu/sh2/sh2drc.c
@@ -19,6 +19,7 @@
#include "sh2.h"
#include "sh2comn.h"
#include "eminline.h"
+#include "profiler.h"
CPU_DISASSEMBLE( sh2 );
@@ -930,6 +931,8 @@ static void code_compile_block(SH2 *sh2, UINT8 mode, offs_t pc)
drcuml_block *block;
jmp_buf errorbuf;
+ profiler_mark_start(PROFILER_DRC_COMPILE);
+
/* get a description of this sequence */
desclist = drcfe_describe_code(sh2->drcfe, pc);
if (LOG_UML || LOG_NATIVE)
@@ -1019,6 +1022,7 @@ static void code_compile_block(SH2 *sh2, UINT8 mode, offs_t pc)
/* end the sequence */
drcuml_block_end(block);
+ profiler_mark_end();
}
/*-------------------------------------------------