qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5284] Fix Xcontext fill, by Here Poussineau.
@ 2008-09-21 21:21 Thiemo Seufer
  0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2008-09-21 21:21 UTC (permalink / raw)
  To: qemu-devel

Revision: 5284
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5284
Author:   ths
Date:     2008-09-21 21:21:26 +0000 (Sun, 21 Sep 2008)

Log Message:
-----------
Fix Xcontext fill, by Here Poussineau.

Modified Paths:
--------------
    trunk/target-mips/helper.c

Modified: trunk/target-mips/helper.c
===================================================================
--- trunk/target-mips/helper.c	2008-09-21 18:43:17 UTC (rev 5283)
+++ trunk/target-mips/helper.c	2008-09-21 21:21:26 UTC (rev 5284)
@@ -304,7 +304,7 @@
 #if defined(TARGET_MIPS64)
         env->CP0_EntryHi &= env->SEGMask;
         env->CP0_XContext = (env->CP0_XContext & ((~0ULL) << (env->SEGBITS - 7))) |
-                            ((address & 0xC00000000000ULL) >> (env->SEGBITS - 9)) |
+                            ((address & 0xC00000000000ULL) >> (55 - env->SEGBITS)) |
                             ((address & ((1ULL << env->SEGBITS) - 1) & 0xFFFFFFFFFFFFE000ULL) >> 9);
 #endif
         env->exception_index = exception;

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

only message in thread, other threads:[~2008-09-21 21:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-21 21:21 [Qemu-devel] [5284] Fix Xcontext fill, by Here Poussineau Thiemo Seufer

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).