From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sun, 1 May 2016 01:47:16 +0200 From: cinap_lenrek@felloff.net To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] store NaN() to memory traps on 386 (387) Topicbox-Message-UUID: 8e0ee41a-ead9-11e9-9d60-3106f5b1d025 following up, theres another idea: given that what we want is fp-arithmetic on NaN's to trap when FPINVAL is set in the fcr, but not when doing simple assignments, what if we just deal with it in the kernels exception handler for 387? so when the store traps, and source operand is a SNaN, we just emulate the instruction and carry on without delivering the note. -- cinap