[PATCH 0/4] Fix tb flags use

LIU Zhiwei posted 4 patches 1 year, 1 month ago
Failed in applying to current master (apply log)
Maintainers: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Bin Meng <bin.meng@windriver.com>, Weiwei Li <liweiwei@iscas.ac.cn>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>
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(-)
[PATCH 0/4] Fix tb flags use
Posted by LIU Zhiwei 1 year, 1 month ago
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