diff options
author | Will Deacon <[email protected]> | 2012-04-23 15:42:16 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2012-04-23 15:44:42 +0100 |
commit | ff9a184cfb6542bef98aff1789481284e122a4b3 (patch) | |
tree | b531cd04c0bf9cc27806b4447260fa19360ec468 /tools/perf/util/trace-event-scripting.c | |
parent | 2498814fcb3068f19b82b1519b4038721f61af43 (diff) |
ARM: 7400/1: vfp: clear fpscr length and stride bits on entry to sig handler
The ARM PCS mandates that the length and stride bits of the fpscr are
cleared on entry to and return from a public interface. Although signal
handlers run asynchronously with respect to the interrupted function,
the handler itself expects to run as though it has been called like a
normal function.
This patch updates the state mirroring the VFP hardware before entry to
a signal handler so that it adheres to the PCS. Furthermore, we disable
VFP to ensure that we trap on any floating point operation performed by
the signal handler and synchronise the hardware appropriately. A check
is inserted after the signal handler to avoid redundant flushing if VFP
was not used.
Reported-by: Peter Maydell <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions