Re: [hatari-devel] Tracing constraints |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Tracing constraints
- From: Andreas Grabher <andreas_g86@xxxxxxxxxx>
- Date: Tue, 21 Nov 2023 18:34:55 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1700588109; bh=ocgQy+QFzaUw7UBc8/WCipyF8MNdrloXR8bFRydvJDI=; h=Content-Type:From:Mime-Version:Date:Message-Id:Subject:To; b=TLUIgDE24VIGsMOFNC+RbIq3Ax4IvoRAKCTTwlfYsuR8JZ4xYcBRYVVnYxmLCs3eT B1o87KmClU3e8xYWxgCfaZdeKRgA+kQnLjb3eBo5Jc66br5nH97bl2Lpwdfreoe+u8 g6ymszLaXW2iGJVgxNx7Ml1lmAbY6sbdrf/ekBcANtu5xB8M6ntdccR8OI0r/Pir22 6AdnezHtKFhkr/5EI2oqnnTl5IAMuvPHcccoVPBf8shk36F2YyqwRinUE/0czMRIxl 3/JheKiGupGXrcxS9LuIzjc6Ywq+eBcPATclZRBCiQTrXwkCqRlon9z8ZUEgOqYvpI X+bdM9vGgr50g==
> Am 21.11.2023 um 18:00 schrieb Thorsten Otto <admin@xxxxxxxxxxx>:
>
> On Dienstag, 21. November 2023 16:56:44 CET Nicolas Pomarède wrote:
>> detect changes in PC value and to ignore
>> (or not) all traces until the PC is back to just after what it was
>> before being changed.
>
> Thats hardly possible. A bus-error for example is normally handled by TOS,
> terminates the program and will never return. However if you have for example
> some virtual memory manager installed, that eventually *will* return.
>
> Similar for priviledge violation: normally that terminates the program.
> However TOS handles a few cases for move from SR (which is only priviledged
> for 68010+), which are emulated and then return to the program.
>
> There might be other cases, were expections either terminate the program, or
> do some emulation stuff and return, like FPU emulators.
Not sure how these things are handled on Atari. But probably it would be a solution to limit tracing to either instructions executed in supervisor mode or instructions executed in user mode. At least on NeXT this would lead to the desired result.