Comments

See ISA, 4.3.2 for details.
Operations that change LEND SR value invalidate TBs at the old and at
the new LEND. LEND value at TB compilation time is considered constant
and loop instruction is generated based on this value.
Invalidation may be avoided for the TB at the old LEND address, since
looping code verifies actual LEND value.
Invalidation may be avoided for the TB at the new LEND address if
there's a way to associate LEND address with TB at compilation time and
later verify that it doesn't change.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
target-xtensa/cpu.h | 3 ++
target-xtensa/helpers.h | 1 +
target-xtensa/op_helper.c | 11 ++++++
target-xtensa/translate.c | 80 +++++++++++++++++++++++++++++++++++++-------
4 files changed, 82 insertions(+), 13 deletions(-)