Marc Nieper-Wißkirchen wrote on 2023-11-06:
> Emulators aren't of much help because they usually do not implement
> the need for cache invalidation faithfully.
Indeed, you were right. In my testing on various platforms:
* I haven't seen the assertion
ASSERT (f () == 2);
fail on any QEM
Hello Bruno,
Am Mo., 6. Nov. 2023 um 19:33 Uhr schrieb Bruno Haible :
[...]
I can provide such a thing easily. In fact, I have it already sitting
> around on my disk since 2021 :-)
>
This is great!
> > GNU
> > lightning currently calls libgcc's `__clear_cache' directly ([1]), but
> this
> > w
Hello Marc,
> The idea is to offer the builtin procedure
>
> __builtin__clear_cache (void *begin, void *end),
>
> which is provided at least by gcc and clang, in a portable manner. From
> the documentation of gcc's version:
>
> "This function is used to flush the processor’s instruction cache
The idea is to offer the builtin procedure
__builtin__clear_cache (void *begin, void *end),
which is provided at least by gcc and clang, in a portable manner. From
the documentation of gcc's version:
"This function is used to flush the processor’s instruction cache for the
region of memory betw