On Thu, Mar 30, 2023 at 6:09 AM Daniel Henrique Barboza <dbarb...@ventanamicro.com> wrote: > > This setter is doing nothing else but setting env->vext_ver. Assign the > value directly. > > Signed-off-by: Daniel Henrique Barboza <dbarb...@ventanamicro.com> > Reviewed-by: LIU Zhiwei <zhiwei_...@linux.alibaba.com> > Reviewed-by: Weiwei Li <liwei...@iscas.ac.cn>
Reviewed-by: Alistair Francis <alistair.fran...@wdc.com> Alistair > --- > target/riscv/cpu.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c > index 610e55cb04..19e0a6a902 100644 > --- a/target/riscv/cpu.c > +++ b/target/riscv/cpu.c > @@ -245,11 +245,6 @@ static void set_priv_version(CPURISCVState *env, int > priv_ver) > env->priv_ver = priv_ver; > } > > -static void set_vext_version(CPURISCVState *env, int vext_ver) > -{ > - env->vext_ver = vext_ver; > -} > - > #ifndef CONFIG_USER_ONLY > static uint8_t satp_mode_from_str(const char *satp_mode_str) > { > @@ -827,7 +822,7 @@ static void riscv_cpu_validate_v(CPURISCVState *env, > RISCVCPUConfig *cfg, > qemu_log("vector version is not specified, " > "use the default value v1.0\n"); > } > - set_vext_version(env, vext_version); > + env->vext_ver = vext_version; > } > > /* > -- > 2.39.2 > >