Re: [hatari-devel] Hatari hangs with NVDI when MMU is enabled |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Hatari hangs with NVDI when MMU is enabled
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 5 Oct 2018 19:47:43 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1538761663; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=pGWm+E7HNJuhGsmoyJ/J+ytHh29xkAGOIjZERWkON8A=; b=h2v/tMZUk7aR5hxj3ZkvpYPRa3lmKMC8SfSpSj3UPh1B6IQiGco0NsECiQjG0u98Sr OuwYWq4e3lMerGuSav1isuaO+rhq2/T8tByXPjBMzNHeXrPh5PaH4T/MuENJpNi1YTqo ot2UrhLit7NetN+gm2qdSuXzUd3k/aHzi3mMXDOUc7c1pWdeH+9lsCkQHutVPte8g+9C zIJZzpH0Dm0O48Bxwa/8EVH/ly38Vz8NCnodWf3jRcK/esYWKfWdUUgTFOcOauBLOAUQ NkpHt+lhMVPBFnQ6Y4hzc2UQbrvOUJIdBqn0DQDDQprYUg1g3ynm9vSOtZJV7xFnLVK6 6EYg==
Hi,
I'm sorry, I missed something. NVDI works now with only the PMMU option
enabled, but ROMSPEED does not, it crashes with a bus error.
Best regards
Uwe
> Hi,
>
> > I reproduced the issue seen by christian, after some debugging /
> > tracing, the problem is that cache state was not consistent in the case
> > of 68030 + mmu with more_compatible=off and cycle_exact=off.
> > Some functions were accessing memory through the data cache, other were
> > not, so in the end the value written to change trap's vector was not
> > seen by the exception handler :(
> >
> > After discussing with Toni, this options' combination is in fact not
> > valid : data cache emulation requires either more_compatible or
> > cycle_exact, so if none are set, data cache emulation should be disabled
> >
> > The problem would the same with 68030 and no mmu, but in that case the
> > code path is different and data cache is not used by cpu emulation even
> > if it was enabled, which explain why there was no crash.
> >
> > Change was committed to disable cache when necesary, with or without MMU.
> >
> > Please, test if NVDI works better now.
>
> I'm afraid there is no change. When I switch on PMMU support only (no
> prefetch, no cycyle exact) NVDI still hangs. Maybe I misunderstand what
> you wrote above, but just PMMU only should work now, shouldn't it?
>
> I have to admit, I do not understand why these options are not
> independent, and why enabling the PMMU and *either* cycle exact *or*
> prefetch changes the behavior. This sounds like an intransparent
> side-effect to me
>
> Best regards
>
> Uwe
>
>