BZ #84: reorder cache flushes in patcher functions

Status fields:

creation_ts:2008-07-02 13:40
version:default branch
To avoid a nasty race condition we have to flush the data relevant to a specific patcher
_before_ we patch the traping instruction.  Otherwise the patched instruction could read
wrong data, e.g. a function pointer from the data segment.

This applies to all architectures and all patcher functions need a review.

Comment #1 by on 2008-08-13 17:57:58

Fixed for powerpc64:

Comment #2 by on 2008-08-14 16:12:12

Fix for ARM:

Comment #3 by on 2008-08-18 17:16:33

Fix for MIPS:

Comment #4 by on 2008-09-12 14:29:00

Fixed for x86_64:

Comment #5 by on 2008-09-12 14:29:39

Fixed for powerpc:

Comment #6 by on 2008-12-29 19:52:41

Fixed for i386:

Comment #7 by on 2011-01-20 22:20:18

The remaining architectures will not receive any attention going forward, so there's no
point in keeping this open.