fix stats reports

This commit is contained in:
gbeauche 2003-12-03 10:59:43 +00:00
parent 7ebe0347bf
commit 0c2735dbcc

View File

@ -315,7 +315,8 @@ powerpc_cpu::~powerpc_cpu()
type = "compile"; type = "compile";
#endif #endif
#if PPC_DECODE_CACHE #if PPC_DECODE_CACHE
type = "predecode"; if (!type)
type = "predecode";
#endif #endif
if (type) { if (type) {
printf("### Statistics for block %s\n", type); printf("### Statistics for block %s\n", type);
@ -331,7 +332,7 @@ powerpc_cpu::~powerpc_cpu()
#endif #endif
#if PPC_PROFILE_GENERIC_CALLS #if PPC_PROFILE_GENERIC_CALLS
if (ppc_refcount == 0) { if (use_jit && ppc_refcount == 0) {
uint64 total_generic_calls_count = 0; uint64 total_generic_calls_count = 0;
for (int i = 0; i < PPC_I(MAX); i++) { for (int i = 0; i < PPC_I(MAX); i++) {
generic_calls_ids[i] = i; generic_calls_ids[i] = i;