Greetings!

Raymond Toy <[email protected]> writes:

> On 9/7/12 11:45 AM, Camm Maguire wrote:
>> Greetings!
>
> Sorry for the delay!  I missed the message earlier.
>>
>> You mention that some implementations disassemble the faulting
>> instruction to get at the operands.  I'm wondering if I could do this
>> with Linux's ucontext_t structure, containing fpregs and __fpregs_mem.
> Yes, this is what cmucl does, more or less.  You could look there for an
> idea of how to do this.  Look at src/code/x86-vm.lisp

One other question, in the local fun

(fop (x)
           ;; Look at the byte and see what kind of operation is
           ;; encoded.
           (cdr (assoc x '((#x58 . +) (#x59 . *) (#x5c . -) (#x5e . /)))))

you associate #x5e with /, but I get

   0x08806681:  dc 75 e8        fdivl  -0x18(%ebp)
=> 0x08806684:  dd 1c 24        fstpl  (%esp)

which shows as #475 in the $fop register.  This value appeared to make
sense from the intel docs last I looked.  

Take care,
-- 
Camm Maguire                                        [email protected]
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

_______________________________________________
Gcl-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gcl-devel

Reply via email to