We have found two places that misuse the fields from env. The patch set fixes two of them. The first is virt_enabled. And another is vstart.
And for easy moving the tb flag fields, I also make the FS and VS in tb flags positions changable. LIU Zhiwei (4): target/riscv: Extract virt enabled state from tb flags target/riscv: Add a general status enum for extensions target/riscv: Encode the FS and VS on a normal way for tb flags target/riscv: Add a tb flags field for vstart target/riscv/cpu.c | 2 +- target/riscv/cpu.h | 45 +++++++++++++++---------- target/riscv/cpu_bits.h | 6 ---- target/riscv/cpu_helper.c | 14 +++++--- target/riscv/csr.c | 14 ++++---- target/riscv/insn_trans/trans_rvv.c.inc | 22 ++++++------ target/riscv/translate.c | 34 +++++++------------ 7 files changed, 69 insertions(+), 68 deletions(-) -- 2.17.1