Commit 1e6784f96094a931b3aab0f3868d0e4107f65539

Authored by j_mayer
1 parent 56ba31ff

Fix PowerPC TLB miss dump code.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3295 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-ppc/helper.c
@@ -2302,13 +2302,13 @@ static always_inline void powerpc_excp (CPUState *env, @@ -2302,13 +2302,13 @@ static always_inline void powerpc_excp (CPUState *env,
2302 const unsigned char *es; 2302 const unsigned char *es;
2303 target_ulong *miss, *cmp; 2303 target_ulong *miss, *cmp;
2304 int en; 2304 int en;
2305 - if (excp == 0x1000) { 2305 + if (excp == POWERPC_EXCP_IFTLB) {
2306 es = "I"; 2306 es = "I";
2307 en = 'I'; 2307 en = 'I';
2308 miss = &env->spr[SPR_IMISS]; 2308 miss = &env->spr[SPR_IMISS];
2309 cmp = &env->spr[SPR_ICMP]; 2309 cmp = &env->spr[SPR_ICMP];
2310 } else { 2310 } else {
2311 - if (excp == 0x1100) 2311 + if (excp == POWERPC_EXCP_DLTLB)
2312 es = "DL"; 2312 es = "DL";
2313 else 2313 else
2314 es = "DS"; 2314 es = "DS";