From 0c2735dbcc8b2a9f2604b5bba8b9d6791bb9ee42 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 3 Dec 2003 10:59:43 +0000 Subject: [PATCH] fix stats reports --- SheepShaver/src/kpx_cpu/src/cpu/ppc/ppc-cpu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SheepShaver/src/kpx_cpu/src/cpu/ppc/ppc-cpu.cpp b/SheepShaver/src/kpx_cpu/src/cpu/ppc/ppc-cpu.cpp index 5fe84337..a9da5352 100644 --- a/SheepShaver/src/kpx_cpu/src/cpu/ppc/ppc-cpu.cpp +++ b/SheepShaver/src/kpx_cpu/src/cpu/ppc/ppc-cpu.cpp @@ -315,7 +315,8 @@ powerpc_cpu::~powerpc_cpu() type = "compile"; #endif #if PPC_DECODE_CACHE - type = "predecode"; + if (!type) + type = "predecode"; #endif if (type) { printf("### Statistics for block %s\n", type); @@ -331,7 +332,7 @@ powerpc_cpu::~powerpc_cpu() #endif #if PPC_PROFILE_GENERIC_CALLS - if (ppc_refcount == 0) { + if (use_jit && ppc_refcount == 0) { uint64 total_generic_calls_count = 0; for (int i = 0; i < PPC_I(MAX); i++) { generic_calls_ids[i] = i;