target-cris: Build fix for debug output
authorAndreas Färber <afaerber@suse.de>
Sun, 27 Jan 2013 06:26:05 +0000 (07:26 +0100)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Mon, 4 Feb 2013 15:12:57 +0000 (16:12 +0100)
Around r3361 (81fdc5f8d2d681da8d255baf0713144f8656bac9) env->debug1 used
to contain the address of an MMU fault. This is now written into
env->pregs[PR_EDA] instead.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-cris/op_helper.c

index 0f6a1eeb0acb31583ad40ab0636bf04910bbc031..b580513848bb873910dfa3a72e174bdaabdd9bf0 100644 (file)
@@ -60,7 +60,7 @@ void tlb_fill(CPUCRISState *env, target_ulong addr, int is_write, int mmu_idx,
     int ret;
 
     D_LOG("%s pc=%x tpc=%x ra=%p\n", __func__,
-          env->pc, env->debug1, (void *)retaddr);
+          env->pc, env->pregs[PR_EDA], (void *)retaddr);
     ret = cpu_cris_handle_mmu_fault(env, addr, is_write, mmu_idx);
     if (unlikely(ret)) {
         if (retaddr) {