Re: [hatari-devel] Possible bug in 060 exception stack frames

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Freitag, 22. Januar 2021 07:32:26 CET Thorsten Otto wrote:

 

I've completed also the FPSP040. Since there are no separate test cases for it, i've used the ones for the 060 (with a few fixes, since the 060 masks the FPCR when read with $FFF0, but the 040 doesn't).

 

The remaining failures seem all to be related to the FPIAR. See attached file. Could there be a problem in Hatari with that?

 

 

Testing 68060 ISP started:
	64-bit multiply...3 failed
	64-bit divide...passed
	cmp2,chk2...passed
	movep...passed
	Effective addresses...passed
	cas...passed
	cas2...passed
Testing 68060 FPSP started:
	Unimplemented <ea>...passed
	Unimplemented data type/format...failed: 00000001
expected:
    FPCR=00000000 FPSR=08000000 FPIAR=0102c106
    FP0= c0010000 80000000 00000000
    FP1= 7fff0000 ffffffff ffffffff
    FP2= 7fff0000 ffffffff ffffffff
    FP3= 7fff0000 ffffffff ffffffff
    FP4= 7fff0000 ffffffff ffffffff
    FP5= 7fff0000 ffffffff ffffffff
    FP6= 7fff0000 ffffffff ffffffff
    FP7= 7fff0000 ffffffff ffffffff
got:
    FPCR=00000000 FPSR=08000000 FPIAR=0102c0fc
    FP0= c0010000 80000000 00000000
    FP1= 7fff0000 ffffffff ffffffff
    FP2= 7fff0000 ffffffff ffffffff
    FP3= 7fff0000 ffffffff ffffffff
    FP4= 7fff0000 ffffffff ffffffff
    FP5= 7fff0000 ffffffff ffffffff
    FP6= 7fff0000 ffffffff ffffffff
    FP7= 7fff0000 ffffffff ffffffff

failed: 00000002
expected:
    FPCR=00000000 FPSR=08000000 FPIAR=0102c1b4
    FP0= 80170000 fffffffe 00000000
    FP1= 7fff0000 ffffffff ffffffff
    FP2= 7fff0000 ffffffff ffffffff
    FP3= 7fff0000 ffffffff ffffffff
    FP4= 7fff0000 ffffffff ffffffff
    FP5= 7fff0000 ffffffff ffffffff
    FP6= 7fff0000 ffffffff ffffffff
    FP7= 7fff0000 ffffffff ffffffff
got:
    FPCR=00000000 FPSR=08000000 FPIAR=0102c1a8
    FP0= 80170000 fffffffe 00000000
    FP1= 7fff0000 ffffffff ffffffff
    FP2= 7fff0000 ffffffff ffffffff
    FP3= 7fff0000 ffffffff ffffffff
    FP4= 7fff0000 ffffffff ffffffff
    FP5= 7fff0000 ffffffff ffffffff
    FP6= 7fff0000 ffffffff ffffffff
    FP7= 7fff0000 ffffffff ffffffff

3 failed
	Non-maskable overflow...passed
	Non-maskable underflow...passed
Testing 68060 FPSP unimplemented instruction started:
	Unimplemented FP instructions...failed: 00000003
expected:
    FPCR=00000000 FPSR=00000208 FPIAR=0102b2b4
    FP0= 40000000 935d8ddd aaa8ac17
    FP1= 7fff0000 ffffffff ffffffff
    FP2= 7fff0000 ffffffff ffffffff
    FP3= 7fff0000 ffffffff ffffffff
    FP4= 7fff0000 ffffffff ffffffff
    FP5= 7fff0000 ffffffff ffffffff
    FP6= 7fff0000 ffffffff ffffffff
    FP7= 7fff0000 ffffffff ffffffff
got:
    FPCR=00000000 FPSR=00000208 FPIAR=00000000
    FP0= 40000000 935d8ddd aaa8ac17
    FP1= 7fff0000 ffffffff ffffffff
    FP2= 7fff0000 ffffffff ffffffff
    FP3= 7fff0000 ffffffff ffffffff
    FP4= 7fff0000 ffffffff ffffffff
    FP5= 7fff0000 ffffffff ffffffff
    FP6= 7fff0000 ffffffff ffffffff
    FP7= 7fff0000 ffffffff ffffffff

6 failed
Testing 68060 FPSP exception enabled started:
	Enabled SNAN...failed: 00000001
expected:
    FPCR=00004000 FPSR=09004080 FPIAR=0102be9a
    FP0= ffff0000 00000000 00000001
    FP1= 7fff0000 ffffffff ffffffff
    FP2= 7fff0000 ffffffff ffffffff
    FP3= 7fff0000 ffffffff ffffffff
    FP4= 7fff0000 ffffffff ffffffff
    FP5= 7fff0000 ffffffff ffffffff
    FP6= 7fff0000 ffffffff ffffffff
    FP7= 7fff0000 ffffffff ffffffff
got:
    FPCR=00004000 FPSR=09004080 FPIAR=00000000
    FP0= ffff0000 00000000 00000001
    FP1= 7fff0000 ffffffff ffffffff
    FP2= 7fff0000 ffffffff ffffffff
    FP3= 7fff0000 ffffffff ffffffff
    FP4= 7fff0000 ffffffff ffffffff
    FP5= 7fff0000 ffffffff ffffffff
    FP6= 7fff0000 ffffffff ffffffff
    FP7= 7fff0000 ffffffff ffffffff

1 failed
	Enabled OPERR...passed
	Enabled overflow...passed
	Enabled underflow...passed
	Enabled DZ...passed
	Enabled inexact...passed


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/