From 6e559db753eeb3263c4da70c2891de5f52c81c1b Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Mon, 30 Jun 2008 15:27:47 +0000 Subject: [PATCH] CRIS: Correct writes to TLB hi. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4807 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-cris/op_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-cris/op_helper.c b/target-cris/op_helper.c index 0e7d3c3..148c1e0 100644 --- a/target-cris/op_helper.c +++ b/target-cris/op_helper.c @@ -121,8 +121,8 @@ void helper_movl_sreg_reg (uint32_t sreg, uint32_t reg) if (sreg == 6) { /* Writes to tlb-hi write to mm_cause as a side effect. */ - env->sregs[SFR_RW_MM_TLB_HI] = T0; - env->sregs[SFR_R_MM_CAUSE] = T0; + env->sregs[SFR_RW_MM_TLB_HI] = env->regs[reg]; + env->sregs[SFR_R_MM_CAUSE] = env->regs[reg]; } else if (sreg == 5) { uint32_t set; -- 2.7.4