diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-28 22:37:42 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-28 22:37:42 +0000 |
commit | 36d239587370c6ccfc53d7f6acc624ce5d61fe84 (patch) | |
tree | 43d11aaf52a198b5544bbb7e878c6cb633dec299 /linux-user | |
parent | 54d43f70e3b003b5f24ef30ea361e034c2813d9f (diff) | |
download | hqemu-36d239587370c6ccfc53d7f6acc624ce5d61fe84.zip hqemu-36d239587370c6ccfc53d7f6acc624ce5d61fe84.tar.gz |
MIPS FPU dynamic activation, part 1, by Herve Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2463 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 7199372..3eb573d 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1838,9 +1838,9 @@ int main(int argc, char **argv) env->gpr[i] = regs->regs[i]; } env->PC = regs->cp0_epc; -#ifdef MIPS_USES_FPU - env->CP0_Status |= (1 << CP0St_CU1); -#endif + if (env->CP0_Config1 & (1 << CP0C1_FP)) { + env->CP0_Status |= (1 << CP0St_CU1); + } } #elif defined(TARGET_SH4) { |