Commit 1e6784f96094a931b3aab0f3868d0e4107f65539
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 | 2302 | const unsigned char *es; |
2303 | 2303 | target_ulong *miss, *cmp; |
2304 | 2304 | int en; |
2305 | - if (excp == 0x1000) { | |
2305 | + if (excp == POWERPC_EXCP_IFTLB) { | |
2306 | 2306 | es = "I"; |
2307 | 2307 | en = 'I'; |
2308 | 2308 | miss = &env->spr[SPR_IMISS]; |
2309 | 2309 | cmp = &env->spr[SPR_ICMP]; |
2310 | 2310 | } else { |
2311 | - if (excp == 0x1100) | |
2311 | + if (excp == POWERPC_EXCP_DLTLB) | |
2312 | 2312 | es = "DL"; |
2313 | 2313 | else |
2314 | 2314 | es = "DS"; | ... | ... |