aboutsummaryrefslogtreecommitdiff
path: root/target-cris/op_helper.c
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-06 08:04:40 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-06 08:04:40 +0000
commitef29a70d18c2d551cf4bb74b8aa9638caac3391b (patch)
tree5f96cc802caeeb4c3c62d107b4b3e55b4af3d9e0 /target-cris/op_helper.c
parent4586f9e9a1c2b4d7856b640f7f327589dbfe2423 (diff)
downloadqemu-ef29a70d18c2d551cf4bb74b8aa9638caac3391b.zip
qemu-ef29a70d18c2d551cf4bb74b8aa9638caac3391b.tar.gz
qemu-ef29a70d18c2d551cf4bb74b8aa9638caac3391b.tar.bz2
CRIS MMU Updates
* Add support for exec faults and for the k protection bit. * Abort if search_pc causes recursive mmu faults. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4349 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/op_helper.c')
-rw-r--r--target-cris/op_helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-cris/op_helper.c b/target-cris/op_helper.c
index 7c629c7..dfc213c 100644
--- a/target-cris/op_helper.c
+++ b/target-cris/op_helper.c
@@ -60,8 +60,8 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr)
saved_env = env;
env = cpu_single_env;
- D(fprintf(logfile, "%s ra=%x acr=%x %x\n", __func__, retaddr,
- env->regs[R_ACR], saved_env->regs[R_ACR]));
+ D(fprintf(logfile, "%s pc=%x tpc=%x ra=%x\n", __func__,
+ env->pc, env->debug1, retaddr));
ret = cpu_cris_handle_mmu_fault(env, addr, is_write, mmu_idx, 1);
if (__builtin_expect(ret, 0)) {
if (retaddr) {
@@ -89,7 +89,7 @@ void helper_tlb_update(uint32_t T0)
return;
vaddr = cris_mmu_tlb_latest_update(env, T0);
- D(printf("flush old_vaddr=%x vaddr=%x T0=%x\n", vaddr,
+ D(fprintf(logfile, "flush old_vaddr=%x vaddr=%x T0=%x\n", vaddr,
env->sregs[SFR_R_MM_CAUSE] & TARGET_PAGE_MASK, T0));
tlb_flush_page(env, vaddr);
#endif