|
From: | Blue Swirl |
Subject: | Re: [Qemu-devel] fpu problems with qemu-system-sparc |
Date: | Fri, 19 May 2006 21:14:30 +0200 |
I've checked and changed a lot of code inside the kernel and in qemu and addeddebbugging output. The crash is more or less reproducible and the programcrashes after 2-3 FPU disabled traps somewhere inside the libc init routines.The FPU instructions cannot be the problem, because I disabled the trap inqemu and nothing crashed. Bit the trap is implemented like any other trap andall other traps seem to work. Since the crash is only reproducible in, lets say 95% of all tests, it looks like a timing problem. Unfortunately, I have no idea about qemu's timer simulation. What else can I check?
I'd still check the ld/stfsr implementation. The V8 spec says that stfsr _may_ zero the ftt field in fsr and what you describe sounds like the trapping happens too often. Just add env->fsr &= ~FSR_FTT_MASK into op_stfsr.
The timer frequency can be changed by modifying CNT_FREQ in slavio_timer.c if you want to try that.
_________________________________________________________________Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
[Prev in Thread] | Current Thread | [Next in Thread] |