[hatari-devel] New WinUAE CPU core and NatFeats |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Hi,
Nicolas, I debugged the NatFeats problem a bit.
With the new WinUAE CPU core, Hatari NatFeats test code gets stuck on the NatFeats detection opcode: -------------------------------- > d $12970 $00012970 : clr.l d0 $00012972 : movea.l sp,a1 $00012974 : movea.l $0010.w,a0 $00012978 : move.l #$12990,$0010.w $00012980 : pea $13212 $00012986 : subq.l #4,sp $00012988 : DC.W $7300 98.70% (27863836, 223006312, 0) $0001298a : tst.l d0 $0001298c : beq.s $12990 $0001298e : moveq #1,d0 $00012990 : movea.l a1,sp $00012992 : move.l a0,$0010.w $00012996 : rts $00012998 : DC.W $7300 $0001299a : rts $0001299c : DC.W $7301 -------------------------------- (This is code from tests/natfeats/*.s.)
Then there are instructions executed in the ROM (I guess those are related to TOS interrupt handling, mouse etc), and some code in lower addresses.
If I enable "m68k_incpc(2)" line you commented out from OpCode_NatFeat_ID(), things proceed over the NatFeats detection opcode, but breaks a bit later: -------------------------------- GEMDOS 0x20 Super(0x0) at PC 0xFA002A NF ID(0x132ae "NF_VERSION") GEMDOS 0x20 Super(0x378A) at PC 0xFA002A NF ID(0x13178 "NF_STDERR") NF ID(0x13182 "NF_DEBUGGER") ERROR: invalid NF ID -1 requested NF ID(0x1318e "NF_FASTFORWARD") ERROR: invalid NF ID -1 requested Address error exception at 0x12a0e! --------------------------------
With old UAE CPU core I get: -------------------------------- GEMDOS 0x20 Super(0x0) at PC 0xFA002A NF ID(0x132ae "NF_VERSION") GEMDOS 0x20 Super(0x378A) at PC 0xFA002A NF ID(0x13178 "NF_STDERR") NF ID(0x13182 "NF_DEBUGGER") NF ID(0x1318e "NF_FASTFORWARD") NF_FASTFORWARD(1 -> 1) ... --------------------------------
Besides not advancing over the opcode, is there a problem in illegal opcode exception stack? ("invalid NF ID -1 requested" error comes from doing NF_CALL with invalid ID, not by requesting ID with NF_ID.)
I'm running Hatari like this: $ hatari --natfeats yes --conout 2 --debug-except all,autostart --trace gemdos,natfeats nf_ahcc.tos
nf_ahcc.tos is attached, it's built from Hatari sources.
- Eero
|
Attachment:
nf_ahcc.tos
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |