Once we mistook the vstart directly from the env->vstart. As env->vstart is not
a constant, we should record it in the tb flags if we want to use
it in translation.
Reported-by: Richard Henderson<richard.henderson@linaro.org>
Signed-off-by: LIU Zhiwei<zhiwei_liu@linux.alibaba.com>
Reviewed-by: Weiwei Li<liweiwei@iscas.ac.cn>
---
target/riscv/cpu.h | 21 +++++++++++----------
target/riscv/cpu_helper.c | 1 +
target/riscv/insn_trans/trans_rvv.c.inc | 14 +++++++-------
target/riscv/translate.c | 4 ++--
4 files changed, 21 insertions(+), 19 deletions(-)