aboutsummaryrefslogtreecommitdiff
path: root/target-mips/helper.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-02-18 00:19:08 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-02-18 00:19:08 +0000
commit925fd0f202e430fc18e1e4986cc066ea44504c9e (patch)
treeb699d9187dc528f44c28bcf92d9ceb5fee4908fc /target-mips/helper.c
parent70705261e1c9762b149a2180e60b974ea9a5c2f0 (diff)
Fix sign-extension of VPN field in TLB, by Herve Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2433 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/helper.c')
-rw-r--r--target-mips/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index d2d7a9f871..51b8ca102c 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -41,12 +41,12 @@ enum {
static int map_address (CPUState *env, target_ulong *physical, int *prot,
target_ulong address, int rw, int access_type)
{
+ uint8_t ASID = env->CP0_EntryHi & 0xFF;
int i;
for (i = 0; i < env->tlb_in_use; i++) {
tlb_t *tlb = &env->tlb[i];
/* 1k pages are not supported. */
- uint8_t ASID = env->CP0_EntryHi & 0xFF;
target_ulong mask = tlb->PageMask | 0x1FFF;
target_ulong tag = address & ~mask;
int n;