qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4807] CRIS: Correct writes to TLB hi.
@ 2008-06-30 15:27 Edgar E. Iglesias
  0 siblings, 0 replies; only message in thread
From: Edgar E. Iglesias @ 2008-06-30 15:27 UTC (permalink / raw)
  To: qemu-devel

Revision: 4807
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4807
Author:   edgar_igl
Date:     2008-06-30 15:27:47 +0000 (Mon, 30 Jun 2008)

Log Message:
-----------
CRIS: Correct writes to TLB hi.

Modified Paths:
--------------
    trunk/target-cris/op_helper.c

Modified: trunk/target-cris/op_helper.c
===================================================================
--- trunk/target-cris/op_helper.c	2008-06-30 11:51:12 UTC (rev 4806)
+++ trunk/target-cris/op_helper.c	2008-06-30 15:27:47 UTC (rev 4807)
@@ -121,8 +121,8 @@
 		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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-30 15:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30 15:27 [Qemu-devel] [4807] CRIS: Correct writes to TLB hi Edgar E. Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).