aboutsummaryrefslogtreecommitdiff
path: root/target-cris/op_helper.c
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-30 15:27:47 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-30 15:27:47 +0000
commit6913ba56807e5a5275bd839550e8a951d2ef63af (patch)
tree3ad97e599330178ea31a785d27160ed633fcc4fb /target-cris/op_helper.c
parentd27b2e5044b143f9e522d6c3e80f498eb083a618 (diff)
CRIS: Correct writes to TLB hi.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4807 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/op_helper.c')
-rw-r--r--target-cris/op_helper.c4
1 files 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;