Re: [hatari-devel] memory setup segfault |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] memory setup segfault
- From: Laurent Sallafranque <laurent.sallafranque@xxxxxxx>
- Date: Thu, 9 Nov 2023 23:05:43 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1699567544; bh=tLc1C9trcDofz51lpBa+f+hVilBEN/00wwYOlAbtqtA=; h=Date:Subject:To:References:From:In-Reply-To:From; b=PPlg7glnaox5EhaBtb44UbPUmPNzhlxzvulqMK55WyMkmCepAWJB6OfMLNfKq/91m wgO9l2ihp5in+Um/zPilKpe+ppTzdKsoHcT4iJtPBP4MyIB4KQxKZ4rq6qWp008pgS tJpS0O4cFTb1nI4gksN20sS+bKoTqjR4suYlYPxmnXUO3nCM6CCGS7TFqFgxx2gta+ O20UPPpuUjFYVL5UhnC4l4Lg35RY1RnuFO+7f2vH1y0wfnwXhsO1q72lqjWp3yRhG7 Qv8pCIKjwp3rZMsZlbXgRbBuzMvK9M+4N0Y1W7uWuhyQd5yuKLnx+kOdc+newnCCS0 X0D1iXEiOyCzA==
Hi Nicolas,
That's a great job, my Falcon now reboots into STf mode without core dump.
Thanks a lot, it's really appreciable.
I'll do more tests for TT, STe, ... but I'm confident in your patch ;)
Last remark, but probably not very important, as I mentioned it in a
previous mail, when I boot in falcon mode, I don't have the memory check
of the TOS.
Normally, the TOS displays the amount of memory, and then, it tests the RAM.
I don't have this since hatari v2.0 or close version.
Regards
Laurent
Le 09/11/2023 à 22:36, Nicolas Pomarède a écrit :
Le 07/11/2023 à 23:14, Nicolas Pomarède a écrit :
Le 06/11/2023 à 20:30, Thomas Huth a écrit :
I can reproduce the crash, but only with --enable-debug.
I can also reproduce it by starting without hatari.cfg with:
hatari --machine ste --tos tos206fr.rom --memsize 14
Then go to the GUI, select 1 MB and return from the GUI.
Thanks, I can get the crash too with this scenario.
This is similar to previous crash when going from falcon to st with
>= 4MB , MMU conf at ff8001 will store 0xf (invalid size for both
memory banks) and MMU_Bank0_Size will be set to 0 at start, but will
also keeps its 0 value after reset when calling memory_init with <= 4
MB, which calls memory_map_Standard_RAM and trigger the crash
I will look for a correct place to ensure MMU_Bank0_Size has a
correct value in these cases.
Patch pushed.
STMemory_Reset() will now be called earlier during Reset_ST(), which
ensures the MMU conf used in STF/STE/TT at FF8001 will have a 0 value
at start and MMU_BankX_Size will be != 0 too (banks' size could be 0
when using more than 4MB)
I tried a few combinations between Falcon, ST, 8MB, 1MB and I don't
get a crach anymore.
Nicolas