From 6913ba56807e5a5275bd839550e8a951d2ef63af 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 0e7d3c37ff..148c1e08ff 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; -- GitLab