public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: freezes when not emulating CPU (was: MIDI input patch)
@ 2009-09-11 10:57 Stas Sergeev
  2009-09-14 13:05 ` Bart Oldeman
  0 siblings, 1 reply; 10+ messages in thread
From: Stas Sergeev @ 2009-09-11 10:57 UTC (permalink / raw)
  To: dosemu

Hello.

Bart Oldeman wrote:
 > exception happens -- I guess that was just meant for debugging).
 > Thanks (to Stas also),
The "SB16 fixes from Stas Sergeev via x.zupftom@web.de on linux-msdos."
is actually also the related FPU fix.
There was a division by zero there in
pcm_samp_period() (when called without
the necessary checks), which I became
aware of, because it started to produce
SIGFPE when I played with vm86_fpu_state
struct. Which means that the comment in
do_vm86.c about fnsave is wrong, and the
code that restores the dosemu FPU state
should likely to be returned. You can,
for example, memset the vm86_fpu_state
to 0 in fpu_reset() and see the SIGFPE
coming from all around the sound code
(no other code use FPU in dosemu).
Also, I found no docs about this FPU
init/reset stuff, so everything in this
patch is just a wild guesses based on
a look into a bochs code.
Also, there is a need to add the handling
for exception 0x13 (SIMD FPE), which is
what the SIGFPE is about today. I mean,
at least print_exception_info() should
write something meaningfull about SIGFPE
instead of "Unknown exception".
So I guess this patch needs more work,
but it should be harmless in its current
form too.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-09-18 17:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11 10:57 freezes when not emulating CPU (was: MIDI input patch) Stas Sergeev
2009-09-14 13:05 ` Bart Oldeman
2009-09-14 15:26   ` freezes when not emulating CPU Stas Sergeev
2009-09-17 20:37     ` Samuel Bronson
2009-09-17 21:05       ` Stas Sergeev
2009-09-18 12:49     ` Bart Oldeman
     [not found]       ` <AE6CA625AD924972A78210F20D55D7BC@kofowork>
2009-09-18 15:25         ` Bart Oldeman
2009-09-18 15:47           ` Gert Koefoed Andersen
2009-09-18 17:27           ` Gert Koefoed Andersen
2009-09-14 17:02   ` freezes when not emulating CPU (was: MIDI input patch) Frank Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox