summaryrefslogtreecommitdiff
path: root/target-ppc/helper.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-30 15:19:48 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-30 15:19:48 +0000
commit1e6784f96094a931b3aab0f3868d0e4107f65539 (patch)
tree6d6bdd2af4a165bb036934558db59388d11d6261 /target-ppc/helper.c
parent56ba31ff0bde6ccfe37f19e823381ec142bf0f80 (diff)
downloadqemu-1e6784f96094a931b3aab0f3868d0e4107f65539.tar.gz
Fix PowerPC TLB miss dump code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3295 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r--target-ppc/helper.c4
1 files 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";