@stephen_usher, it could, maybe it should?stephen_usher wrote: 13 Apr 2022 10:08 @agranlund I was wondering if MAPROM.PRG could check the OS version and use that to autoconfigure how to set the caching. TOS 2.06 would have the brain-dead setting, EmuTOS etc. could have the full-fat caching enabled.
It's already looking at the Tos version to make a less risky decision on what and how much of low ram it should remap to altram so I don't think it would be too much work to do what you suggest.
I like it.
Not 100% sure it how it should actually treat Tos206 though.
If it was a product then I think catering for the lowest common denominator would be the sensible way to go, even if it means crippling the higher ones.
I'm thinking about the cases where you actually can run Tos206 somewhat successfully even with caches enabled?
If it always sets up the MMU to inhibit caching of st-ram on Tos206 then it can't be enabled (easily, by a user anyway)
I always try to make a point of disabling caches for Tos206 - it's the safe thing to do and it reduces the risk of me becoming a tech support.
My own machine is able to run most things in Tos206 with caches enabled because I don't really use DMA devices..
Settings are probably the way to go? But in lieu of that, I'm not sure what's the best:
1) cache inhibit ST-Ram always on Tos206, safest for most, but then no-one can toggle it on.
(the upshot being that since the cache option wouldn't effect st-ram, then tt-ram can be cached)
2) not cache inhibited by maprom, requires users of floppy (maybe other DMA devices) to remember to have cache disabled in Tos206.
(but then they'd disable tt-ram cache too, which might not be strictly necessary)
But then again, maybe it's best if the Github version is by default configured as the safest but slowest option.
I could note in the readme that you can always recompile it with x or y enabled for better performance if you're adventurous :)

