Re: [PATCH 1/2] target/arm: Handle IC IVAU to improve compatibility with JITs

2023-06-11 Thread John Högberg
devel@nongnu.org Cc: peter.mayd...@linaro.org Subject: Re: [PATCH 1/2] target/arm: Handle IC IVAU to improve compatibility with JITs Date: Sun, 11 Jun 2023 19:47:58 +0300 11.06.2023 14:53, John Högberg wrote: ... >   > +#ifdef CONFIG_USER_ONLY > +/* > + * `IC IVAU` is handled to improve c

Re: [PATCH 1/2] target/arm: Handle IC IVAU to improve compatibility with JITs

2023-06-11 Thread Michael Tokarev
11.06.2023 14:53, John Högberg wrote: ... +#ifdef CONFIG_USER_ONLY +/* + * `IC IVAU` is handled to improve compatibility with JITs that dual- map their + * code to get around W^X restrictions, where one region is writable and the + * other is executable. The patches seems to be line-wrap-dam

[PATCH 1/2] target/arm: Handle IC IVAU to improve compatibility with JITs

2023-06-11 Thread John Högberg
Unlike architectures with precise self-modifying code semantics (e.g. x86) ARM processors do not maintain coherency for instruction execution and memory, and require the explicit use of cache management instructions as well as an instruction barrier to make code updates visible (the latter on every