HomeFreeBSD

powerpc: Sync icache on SIGILL, in case of cache issues

Description

powerpc: Sync icache on SIGILL, in case of cache issues

The update of jemalloc to 5.1.0 exposed a cache syncing issue on a Freescale
e500 base system. There was already code in the FPU emulator to address
this, but it was limited to a single static variable, and did not attempt to
sync the cache. This pulls that out to the higher level program exception
handler, and syncs the cache.

If a SIGILL is hit a second time at the same address, it will be treated as
a real illegal instruction, and handled accordingly.

Details

Provenance
jhibbitsAuthored on Nov 19 2018, 11:54 PM
Parents
rG06cf1308e4eb: rescue: set NO_SHARED in Makefile
Branches
Unknown
Tags
Unknown

Event Timeline