From 1e6784f96094a931b3aab0f3868d0e4107f65539 Mon Sep 17 00:00:00 2001 From: j_mayer Date: Sun, 30 Sep 2007 15:19:48 +0000 Subject: [PATCH] Fix PowerPC TLB miss dump code. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3295 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-ppc/helper.c b/target-ppc/helper.c index 4d629d41ff..3e6fb48cd6 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -2302,13 +2302,13 @@ static always_inline void powerpc_excp (CPUState *env, const unsigned char *es; target_ulong *miss, *cmp; int en; - if (excp == 0x1000) { + if (excp == POWERPC_EXCP_IFTLB) { es = "I"; en = 'I'; miss = &env->spr[SPR_IMISS]; cmp = &env->spr[SPR_ICMP]; } else { - if (excp == 0x1100) + if (excp == POWERPC_EXCP_DLTLB) es = "DL"; else es = "DS";