[hatari-devel] Problems with some FPU tests

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


while trying to write some FPU related tests, i git some strange problems.

 

When running the test from cmake (via a script similar to the one of tests/xbios/run_test.sh, that sets up a temporary test directory, set HOME to that directory etc.) i get following output (when setting --trace debug):

 

HOME=/tmp/tmp.kfs1Fr1RDQ /home/sebilla/atari/hatari/src/hatari --log-level fatal --sound off --cpuclock 32 --tos none -d /tmp/tmp.kfs1Fr1RDQ --run-vbls 500 --bios-intercept on --cpulevel 3 /home/sebilla/atari/hatari/tests/cpu/test-inf.ttp

Sound OFF, frequency = 44100.

Exit after 500 VBLs.

XBIOS 11/20/255 Hatari versions enabled: Dbmsg(), Scrdmp(), HatariControl().

Hatari v2.1.0, compiled on: Apr 20 2018, 16:24:00

Video_SetSystemTimings 0 3 -> 2 (WS3) 503 503 64

Configured max Hatari resolution = 832x588, optimal for ST = 832x588

STMemory_RAM_SetBankSize total=1024 KB bank0=512 KB bank1=512 KB MMU=5

update cyc speed 0 throttle 0.000000 clock_mult 512

CPU cycleunit: 256 (0.500)

CPU cycleunit: 256 (0.500)

1870 CPU functions

Building CPU, 45926 opcodes (3 -2 1)

CPU=68030, FPU=0, MMU=0, JIT=0. ~cycle-exact 24-bit

Sound: Disabled

Checking GEMDOS C: HDD: /home/sebilla/atari/hatari/tests/cpu

GEMDOS HDD emulation, C: <-> /home/sebilla/atari/hatari/tests/cpu.

memory_map_Standard_RAM total=1048576 ram0=524288 ram1=524288 mmu0=131072 mmu1=131072

Loaded TOS version 0.00, starting at $e00000, country code = 0, PAL

Skipped TOS patches.

Loading '/home/sebilla/atari/hatari/tests/cpu/test-inf.ttp' to 0x1100.

Video_SetSystemTimings 0 3 -> 2 (WS3) 503 503 64

Video_SetSystemTimings 0 3 -> 2 (WS3) 503 503 64

NVRAM not found at '/tmp/tmp.kfs1Fr1RDQ/.config/hatari/hatari.nvram'

Host system has accurate delays. (1)

update cyc speed 0 throttle 0.000000 clock_mult 512

CPU cycleunit: 256 (0.500)

CPU cycleunit: 256 (0.500)

m68k_run_2ce

CPU reset PC=e00034 (ROM memory)..

memory_map_Standard_RAM total=1048576 ram0=524288 ram1=524288 mmu0=524288 mmu1=524288

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Illegal instruction: 19f3 at 00000422 -> 00000000

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$426.

Exception 2 (426) at 426 -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$3c2.

Exception 2 (3c2) at 3c2 -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$35e.

Exception 2 (35e) at 35e -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$2fa.

Exception 2 (2fa) at 2fa -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$296.

Exception 2 (296) at 296 -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$232.

Exception 2 (232) at 232 -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$1ce.

Exception 2 (1ce) at 1ce -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$16a.

Exception 2 (16a) at 16a -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$106.

Exception 2 (106) at 106 -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$a2.

Exception 2 (a2) at a2 -> 0!

Bus error bget at 7ffe0000

M68000 Bus Error reading at address $7ffe0000 PC=$3e.

M68000 Bus Error writing at address $6 PC=$3e.

Detected double bus/address error => CPU halted!

exit m68k_run

 

At this point hatari (and the script) exits with status 0. Not what i expected. Note that the arguments incidently included --cpulevel 0, so no FPU support.

 

When i try the same from the commandline (without setting HOME, so the default configuration is loaded first. which in my case is set to 030+fpu), i get:

 

SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy /home/sebilla/atari/hatari/src/hatari --log-level debug --sound off --cpuclock 32 --tos none --natfeats on --bios-intercept on --vdi off -
-run-vbls 500 --cpulevel 0 ./test-inf.ttp  
Sound OFF, frequency = 44100.
Native Features enabled.
XBIOS 11/20/255 Hatari versions enabled: Dbmsg(), Scrdmp(), HatariControl().
Exit after 500 VBLs.
FPU is not supported in 68000/010 configurations, disabling FPU
Hatari v2.1.0, compiled on:  Apr 20 2018, 16:24:00
Video_SetSystemTimings 4 3 -> 5 (TT) 500 500 68
Configured max Hatari resolution = 1280x960, optimal for ST = 832x588
Inserted disk '/home/sebilla/.stonx/new_disk.st' to drive A:.
update cyc speed 0 throttle 0.000000 clock_mult 512
CPU cycleunit: 256 (0.500)
1870 CPU functions
Building CPU, 44274 opcodes (0 0 1)
CPU=68000, FPU=0, MMU=0, JIT=0. 24-bit
Sound: Disabled
Checking GEMDOS C: HDD: /home/sebilla/atari/hatari/tests/cpu
GEMDOS HDD emulation, C: <-> /home/sebilla/atari/hatari/tests/cpu.
memory_map_Standard_RAM total=14680064 ram0=0 ram1=0 mmu0=2097152 mmu1=0
Loaded TOS version 0.00, starting at $e00000, country code = 0, PAL
Skipped TOS patches.
Loading './test-inf.ttp' to 0x1100.
Video_SetSystemTimings 4 3 -> 5 (TT) 500 500 68
Video_SetSystemTimings 4 3 -> 5 (TT) 500 500 68
Host system has accurate delays. (1)
update cyc speed 0 throttle 0.000000 clock_mult 512
CPU cycleunit: 256 (0.500)
m68k_run_2
CPU reset PC=e00034 (ROM memory)..
memory_map_Standard_RAM total=14680064 ram0=0 ram1=0 mmu0=2097152 mmu1=0
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Illegal instruction: 00fa at 00000084 -> 00000000
Segmentation fault

At this point hatari gets a segmentation fault. Any ideas? Note that apparently machine type was still set to TT when running from command line.

 



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