[hatari-devel] SIGSEGV error with MMU
Thomas Huth
huth at users.berlios.de
Wed Feb 23 22:45:41 CET 2011
Am Wed, 23 Feb 2011 11:56:31 +0100
schrieb Laurent Sallafranque <laurent.sallafranque at free.fr>:
> Hi,
>
> I've tested quickly the mmu code.
>
> I start with my usual 68030 CPU, no MMU.
>
> Then, I press "F12" and change the following parameters :
> CPU = 68040, activate MMU
>
> Then I reset Hatari.
>
>
> I get a SIGSEGV error when hatari reset (look at the gdb trace) :
>
> Exception 2 (0) at e02ce2 -> e02ce6!
> Building CPU, 46224 opcodes (4 1 1)
> CPU=68040, FPU=68040, MMU=1, JIT=0.
> MMU: enabled=0 page8k=0
> MMU: enabled=0 page8k=0
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000004f4e40 in get_iword () at
I wonder why you got a segfault in get_iword ... shouldn't that be
uae_mmu_get_iword() instead?
Please check the following:
1) Is your code really running from m68k_run_mmu040() instead of some
of the other m68k_run_xxx() functions?
2) m68k_run_mmu040() needs the M68000_AddCycles() stuff instead of the
do_cycles() call.
3) You might need to disable the "NoPmmu" TOS patch in tos.c for
running with MMU...
Thomas
More information about the hatari-devel
mailing list