OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab50801
)
Fix Xcontext fill, by Here Poussineau.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 21 Sep 2008 21:21:26 +0000
(21:21 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 21 Sep 2008 21:21:26 +0000
(21:21 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5284
c046a42c
-6fe2-441c-8c8c-
71466251a162
target-mips/helper.c
patch
|
blob
|
history
diff --git
a/target-mips/helper.c
b/target-mips/helper.c
index
b379021
..
9340ad0
100644
(file)
--- a/
target-mips/helper.c
+++ b/
target-mips/helper.c
@@
-304,7
+304,7
@@
int cpu_mips_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
#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;