vc4: Add a sentinel after simulator buffers for buffer overflow detection.
authorEric Anholt <eric@anholt.net>
Thu, 22 Oct 2015 10:31:56 +0000 (11:31 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 23 Oct 2015 13:29:07 +0000 (14:29 +0100)
commitb0963ce75871e2b34856b8e24c8ad427f64be62a
tree9dfc9b97005e24c910baf691d38b25cca0e6568c
parentf408a13dd3089483c78803e961ba8a4df8b4cbba
vc4: Add a sentinel after simulator buffers for buffer overflow detection.

This is a little bit like the mprotect-based fencing I've experimented
with, but it's simple and low overhead.  The downside is that only catches
writes, not reads.

It didn't catch any bad writes on a current piglit run, but may be useful
in the future.
src/gallium/drivers/vc4/vc4_simulator.c