Commit 6913ba56807e5a5275bd839550e8a951d2ef63af

Authored by edgar_igl
1 parent d27b2e50

CRIS: Correct writes to TLB hi.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4807 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-cris/op_helper.c
... ... @@ -121,8 +121,8 @@ void helper_movl_sreg_reg (uint32_t sreg, uint32_t reg)
121 121 if (sreg == 6) {
122 122 /* Writes to tlb-hi write to mm_cause as a side
123 123 effect. */
124   - env->sregs[SFR_RW_MM_TLB_HI] = T0;
125   - env->sregs[SFR_R_MM_CAUSE] = T0;
  124 + env->sregs[SFR_RW_MM_TLB_HI] = env->regs[reg];
  125 + env->sregs[SFR_R_MM_CAUSE] = env->regs[reg];
126 126 }
127 127 else if (sreg == 5) {
128 128 uint32_t set;
... ...