void-ppc / void-packages

The Void source packages collection (all ppc platforms, staging + main)
https://repo.voidlinux-ppc.org
Other
27 stars 12 forks source link

pcre and pcre2: fix instruction cache flush bug on ppc/ppc64/ppc64le. #60

Closed jhamby closed 2 years ago

jhamby commented 2 years ago

GCC's version of __builtin___clear_cache() is a no-op on PowerPC, which causes the unit tests to fail on at least PowerPC 970 and 7447A, and is technically incorrect. Change the code to use an improved version of the existing ppc_cache_flush() function that wasn't being called.

Testing the changes

Local build testing

q66 commented 2 years ago

i will take a look at this later, thanks