summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-01 20:32:08 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-01 20:32:08 +0000
commit7495fd0f4a7b0b017f56d8f0a4fc4c3c5c3aa085 (patch)
tree2b177bc356bc789128e3d4ff417cde7f264dab1e /target-mips
parentf8c6ff6c3cede2414da9be3e270218cdf3f8fc2c (diff)
downloadqemu-7495fd0f4a7b0b017f56d8f0a4fc4c3c5c3aa085.tar.gz
Simplify code and fix formatting.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2282 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/op_helper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index a518e5ca42..b7defc9e5e 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -162,12 +162,12 @@ void do_drotrv (void)
#if TARGET_LONG_BITS > HOST_LONG_BITS
static inline uint64_t get_HILO (void)
{
- return ((uint64_t)env->HI << 32) | (uint64_t)env->LO;
+ return (env->HI << 32) | (uint32_t)env->LO;
}
static inline void set_HILO (uint64_t HILO)
{
- env->LO = (int32_t)(HILO & 0xFFFFFFFF);
+ env->LO = (int32_t)HILO;
env->HI = (int32_t)(HILO >> 32);
}
@@ -523,10 +523,10 @@ void do_tlbr (void)
env->CP0_EntryHi = tlb->VPN | tlb->ASID;
size = (tlb->end - tlb->VPN) >> 12;
env->CP0_PageMask = (size - 1) << 13;
- env->CP0_EntryLo0 = tlb->G | (tlb->V0 << 1) | (tlb->D0 << 2)
- | (tlb->C0 << 3) | (tlb->PFN[0] >> 6);
- env->CP0_EntryLo1 = tlb->G | (tlb->V1 << 1) | (tlb->D1 << 2)
- | (tlb->C1 << 3) | (tlb->PFN[1] >> 6);
+ env->CP0_EntryLo0 = tlb->G | (tlb->V0 << 1) | (tlb->D0 << 2) |
+ (tlb->C0 << 3) | (tlb->PFN[0] >> 6);
+ env->CP0_EntryLo1 = tlb->G | (tlb->V1 << 1) | (tlb->D1 << 2) |
+ (tlb->C1 << 3) | (tlb->PFN[1] >> 6);
}
#endif