Re: [PATCH 1/4] target/riscv: Extract virt enabled state from tb flags

2023-03-24 Thread Richard Henderson
On 3/23/23 22:59, LIU Zhiwei wrote: Virt enabled state is not a constant. So we should put it into tb flags. Thus we can use it like a constant condition at translation phase. Reported-by: Richard Henderson Signed-off-by: LIU Zhiwei --- target/riscv/cpu.h| 2 ++ target/riscv/cpu_help

Re: [PATCH 1/4] target/riscv: Extract virt enabled state from tb flags

2023-03-24 Thread liweiwei
On 2023/3/24 13:59, LIU Zhiwei wrote: Virt enabled state is not a constant. So we should put it into tb flags. Thus we can use it like a constant condition at translation phase. Reported-by: Richard Henderson Signed-off-by: LIU Zhiwei --- Reviewed-by: Weiwei Li Weiwei L target/riscv/c

[PATCH 1/4] target/riscv: Extract virt enabled state from tb flags

2023-03-24 Thread LIU Zhiwei
Virt enabled state is not a constant. So we should put it into tb flags. Thus we can use it like a constant condition at translation phase. Reported-by: Richard Henderson Signed-off-by: LIU Zhiwei --- target/riscv/cpu.h| 2 ++ target/riscv/cpu_helper.c | 2 ++ target/riscv/translate.c