diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-30 01:58:33 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-30 01:58:33 +0000 |
commit | 540635ba650bd2529ce55c4135cd594a5fa109b5 (patch) | |
tree | e609e602a027047c3151159dc55c02550e80ea5e /target-mips/op_helper.c | |
parent | 868d585aced5457218b3443398d08594d9c3ba6d (diff) |
Code provision for n32/n64 mips userland emulation. Not functional yet.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3284 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op_helper.c')
-rw-r--r-- | target-mips/op_helper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index d23a45c0b0..f4313280e8 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -74,7 +74,7 @@ void do_raise_exception_direct (uint32_t exception) #undef MEMSUFFIX #endif -#ifdef TARGET_MIPS64 +#if defined(TARGET_MIPSN32) || defined(TARGET_MIPS64) #if TARGET_LONG_BITS > HOST_LONG_BITS /* Those might call libgcc functions. */ void do_dsll (void) @@ -154,7 +154,7 @@ void do_drotrv (void) T0 = T1; } #endif /* TARGET_LONG_BITS > HOST_LONG_BITS */ -#endif /* TARGET_MIPS64 */ +#endif /* TARGET_MIPSN32 || TARGET_MIPS64 */ /* 64 bits arithmetic for 32 bits hosts */ #if TARGET_LONG_BITS > HOST_LONG_BITS @@ -223,7 +223,7 @@ void do_div (void) } #endif -#ifdef TARGET_MIPS64 +#if defined(TARGET_MIPSN32) || defined(TARGET_MIPS64) void do_ddiv (void) { if (T1 != 0) { @@ -242,7 +242,7 @@ void do_ddivu (void) } } #endif -#endif /* TARGET_MIPS64 */ +#endif /* TARGET_MIPSN32 || TARGET_MIPS64 */ #if defined(CONFIG_USER_ONLY) void do_mfc0_random (void) @@ -383,7 +383,7 @@ static void r4k_fill_tlb (int idx) /* XXX: detect conflicting TLBs and raise a MCHECK exception when needed */ tlb = &env->tlb->mmu.r4k.tlb[idx]; tlb->VPN = env->CP0_EntryHi & (TARGET_PAGE_MASK << 1); -#ifdef TARGET_MIPS64 +#if defined(TARGET_MIPSN32) || defined(TARGET_MIPS64) tlb->VPN &= env->SEGMask; #endif tlb->ASID = env->CP0_EntryHi & 0xFF; |