tcg/tci: Move stack bounds check to compile-time
commit53f405569cf84eb08756a53ad722d4dbe07023ec
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Jan 2021 06:04:43 +0000 (27 20:04 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Feb 2021 20:24:14 +0000 (5 10:24 -1000)
treec8054c07fb0ca96503a9d85c637afbdfc07101ea
parent90be4dde247064082ab96c51a44b7bba30afb262
tcg/tci: Move stack bounds check to compile-time

The existing check was incomplete:
(1) Only applied to two of the 7 stores, and not to the loads at all.
(2) Only checked the upper, but not the lower bound of the stack.

Doing this at compile time means that we don't need to do it
at runtime as well.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tci.c
tcg/tci/tcg-target.c.inc