mirror of https://github.com/xemu-project/xemu.git
Upgrade Sparc FPU version (based on patch by Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2532 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e32f879d1b
commit
3e736bf4b4
|
@ -238,8 +238,8 @@ typedef struct CPUSPARCState {
|
||||||
(0 << 24) | (MAXTL << 8) | (NWINDOWS - 1))
|
(0 << 24) | (MAXTL << 8) | (NWINDOWS - 1))
|
||||||
#else
|
#else
|
||||||
#define GET_FSR32(env) (env->fsr)
|
#define GET_FSR32(env) (env->fsr)
|
||||||
#define PUT_FSR32(env, val) do { uint32_t _tmp = val; \
|
#define PUT_FSR32(env, val) do { uint32_t _tmp = val; \
|
||||||
env->fsr = _tmp & 0xcfc1ffff; \
|
env->fsr = (_tmp & 0xcfc1ffff) | (env->fsr & 0x000e0000); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -2754,6 +2754,7 @@ void cpu_reset(CPUSPARCState *env)
|
||||||
env->version = GET_VER(env);
|
env->version = GET_VER(env);
|
||||||
env->pc = 0x1fff0000000ULL;
|
env->pc = 0x1fff0000000ULL;
|
||||||
#else
|
#else
|
||||||
|
env->fsr = 4 << 17; /* FPU version 4 (Meiko) */
|
||||||
env->mmuregs[0] = (0x04 << 24); /* Impl 0, ver 4, MMU disabled */
|
env->mmuregs[0] = (0x04 << 24); /* Impl 0, ver 4, MMU disabled */
|
||||||
env->pc = 0xffd00000;
|
env->pc = 0xffd00000;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue