target/riscv: Enable bitmanip Zicbo[m,z,p] instructions
PATCH v2 1/1 target/riscv: Enable bitmanip Zicbo[m,z,p] instructions
The RISC-V base cache management operation ISA extension has been ratified [1]. This patch adds support for the defined instructions. Overlap groups are used to resolve the overlapping patterns of the prefetch*/ori and cbo_*/lq instructions.
This patch depends on a patchset that introduces the Priv 1.12 CSRs:
https://lists.nongnu.org/archive/html/qemu-devel/2022-01/msg04478.html
[1] https://wiki.riscv.org/display/TECH/Recently+Ratified+Extensions
v2:
- Fix overlapping instruction encoding with LQ instructions
- Drop CSR related changes and rebase on Priv 1.12 patchset
https://lists.gnu.org/archive/html/qemu-devel/2022-01/msg04213.html
--- target/riscv/cpu.c | 4 + target/riscv/cpu.h | 4 + target/riscv/cpu_bits.h | 5 ++ target/riscv/helper.h | 5 ++ target/riscv/insn32.decode | 29 +++++++- target/riscv/insn_trans/trans_zicbo.c.inc | 72 ++++++++++++++++++ target/riscv/op_helper.c | 89 +++++++++++++++++++++++ target/riscv/translate.c | 1 + 8 files changed, 207 insertions(+), 2 deletions(-) create mode 100644 target/riscv/insn_trans/trans_zicbo.c.inc
target/riscv/cpu.c +4 -0
@@ -721,6 +721,10 @@ static Property riscv_cpu_properties[] = {DEFINE_PROP_BOOL ("Zicsr" ,RISCVCPU , cfg.ext_icsr, true),DEFINE_PROP_BOOL ("Zfh" ,RISCVCPU , cfg.ext_zfh, false),DEFINE_PROP_BOOL ("Zfhmin" ,RISCVCPU , cfg.ext_zfhmin, false), +DEFINE_PROP_BOOL ("Zicbom" ,RISCVCPU , cfg.ext_zicbom, false), +DEFINE_PROP_BOOL ("Zicbop" ,RISCVCPU , cfg.ext_zicbop, false), +DEFINE_PROP_BOOL ("Zicboz" ,RISCVCPU , cfg.ext_zicboz, false), +DEFINE_PROP_UINT16 ("cbolen" ,RISCVCPU , cfg.cbolen,64 ),DEFINE_PROP_BOOL ("Zve32f" ,RISCVCPU , cfg.ext_zve32f, false),DEFINE_PROP_BOOL ("Zve64f" ,RISCVCPU , cfg.ext_zve64f, false), DEFINE_PROP_BOOL("mmu", RISCVCPU, cfg.mmu, true),
target/riscv/cpu.h +4 -0
@@ -354,6 +354,9 @@ struct RISCVCPU {bool ext_zfhmin;bool ext_zve32f;bool ext_zve64f; +bool ext_zicbom; +bool ext_zicbop; +bool ext_zicboz;char *priv_spec;char *user_spec;
@@ -361,6 +364,7 @@ struct RISCVCPU {char *vext_spec;uint16_t vlen;uint16_t elen; +uint16_t cbolen;bool mmu;bool pmp;bool epmp;
target/riscv/cpu_bits.h +5 -0
@@ -464,6 +464,11 @@ typedef enum {/* vsstatus CSR bits */ #define VSSTATUS64_UXL 0x0000000300000000ULL +/* [msh]envcfg CSR bits */ +#define ENVCFG_CBIE (0b11 << 4) +#define ENVCFG_CBCFE (1 << 6) +#define ENVCFG_CBZE (1 << 7) +/* Privilege modes */ #define PRV_U 0#define PRV_S 1
target/riscv/helper.h +5 -0
@@ -92,6 +92,11 @@ DEF_HELPER_FLAGS_2(fcvt_h_l, TCG_CALL_NO_RWG, i64, env, tl) DEF_HELPER_FLAGS_2(fcvt_h_lu, TCG_CALL_NO_RWG, i64, env, tl)DEF_HELPER_FLAGS_1 (fclass_h,TCG_CALL_NO_RWG_SE , tl, i64) +/* Cache-block operations */ +DEF_HELPER_2(cbo_inval, void, env, tl) +DEF_HELPER_2(cbo_clean, void, env, tl) +DEF_HELPER_2 (cbo_zero, void, env, tl) + /* Special functions */ DEF_HELPER_2(csrr, tl, env, int)DEF_HELPER_3 (csrw, void, env, int, tl)
target/riscv/insn32.decode +27 -2
@@ -89,6 +89,8 @@ @sfence_vma ....... ..... ..... ... ..... ....... %rs2 %rs1 @sfence_vm ....... ..... ..... ... ..... ....... %rs1 +@cbo_pref simm:7 ..... ..... ... ..... ....... %rs1 + # Formats 64: @sh5 ....... ..... ..... ... ..... ....... &shift shamt=%sh5 %rs1 %rd
@@ -128,7 +130,17 @@ addi ............ ..... 000 ..... 0010011 @i slti ............ ..... 010 ..... 0010011 @i sltiu ............ ..... 011 ..... 0010011 @i xori ............ ..... 100 ..... 0010011 @i -ori ............ ..... 110 ..... 0010011 @i +{ + [ + # *** RV32 Zicbop Sandard Extension (hints in the ori-space) *** + prefetch_i ....... 00000 ..... 110 00000 0010011 @cbo_pref + prefetch_r ....... 00001 ..... 110 00000 0010011 @cbo_pref + prefetch_w ....... 00011 ..... 110 00000 0010011 @cbo_pref + ] + + # *** RV32I ori *** + ori ............ ..... 110 ..... 0010011 @i +} andi ............ ..... 111 ..... 0010011 @i slli 00000. ...... ..... 001 ..... 0010011 @sh srli 00000. ...... ..... 101 ..... 0010011 @sh
@@ -168,7 +180,20 @@ sraw 0100000 ..... ..... 101 ..... 0111011 @r # *** RV128I Base Instruction Set (in addition to RV64I) *** ldu ............ ..... 111 ..... 0000011 @i -lq ............ ..... 010 ..... 0001111 @i +{ + [ + # *** RV32 Zicbom Standard Extension *** + cbo_clean 0000000 00001 ..... 010 00000 0001111 @sfence_vm + cbo_flush 0000000 00010 ..... 010 00000 0001111 @sfence_vm + cbo_inval 0000000 00000 ..... 010 00000 0001111 @sfence_vm + + # *** RV32 Zicboz Standard Extension *** + cbo_zero 0000000 00100 ..... 010 00000 0001111 @sfence_vm + ] + + # *** RVI128 lq *** + lq ............ ..... 010 ..... 0001111 @i +} sq ............ ..... 100 ..... 0100011 @s addid ............ ..... 000 ..... 1011011 @i sllid 000000 ...... ..... 001 ..... 1011011 @sh6
target/riscv/insn_trans/trans_zicbo.c.inc new file +72 -0
72 lines not on this page · raw message
target/riscv/op_helper.c +89 -0
107 lines not on this page · raw message
target/riscv/translate.c +1 -0
@@ -854,6 +854,7 @@ static uint32_t opcode_at(DisasContextBase *dcbase, target_ulong pc)#include "insn_trans/trans_rvv.c.inc" #include "insn_trans/trans_rvb.c.inc" #include "insn_trans/trans_rvzfh.c.inc" +#include "insn_trans/trans_zicbo.c.inc" #include "insn_trans/trans_privileged.c.inc" /* Include the auto-generated decoder for 16 bit insn */
Signature · 1 line
2.34.1
target/riscv/insn32.decode addi ............ ..... 000 ..... 0010011 @i · line 143
Quoted 12 lines · Christoph Muellner
target/riscv/insn32.decode +11
-1-ori ............ ..... 110 ..... 0010011 @i +{ + [ + # *** RV32 Zicbop Sandard Extension (hints in the ori-space) *** + prefetch_i ....... 00000 ..... 110 00000 0010011 @cbo_pref + prefetch_r ....... 00001 ..... 110 00000 0010011 @cbo_pref + prefetch_w ....... 00011 ..... 110 00000 0010011 @cbo_pref + ] + + # *** RV32I ori *** + ori ............ ..... 110 ..... 0010011 @i +}
Hmm. I would simply add a comment about these, without changing any code. They are implemented as nops, so there's no point in the decode distinguishing these from the "normal" nop that ori r0, rx, y will (not) generate.
target/riscv/insn_trans/trans_zicbo.c.inc line 43
Quoted 13 lines
target/riscv/insn_trans/trans_zicbo.c.inc new file +13
-0+static bool trans_cbo_clean(DisasContext *ctx, arg_cbo_clean *a) +{ + REQUIRE_ZICBOM(ctx); + gen_helper_cbo_clean(cpu_env, cpu_gpr[a->rs1]); + return true; +} + +static bool trans_cbo_flush(DisasContext *ctx, arg_cbo_flush *a) +{ + REQUIRE_ZICBOM(ctx); + gen_helper_cbo_clean(cpu_env, cpu_gpr[a->rs1]); + return true; +}
Clean and flush are the same thing?
target/riscv/op_helper.c target_ulong helper_csrrw(CPURISCVState *env, int csr, · line 82
Quoted 9 lines
target/riscv/op_helper.c +9
-0+/* helper_zicbo_envcfg +* +* Raise virtual exceptions and illegal instruction exceptions for +* Zicbo[mz] instructions based on the settings of [mhs]envcfg. +*/ +static void helper_zicbo_envcfg (CPURISCVState *env,target_ulong envbits) +{ +#ifndef CONFIG_USER_ONLY +target_ulong ra =GETPC ();
GETPC may only be called from the outermost helper function (the one directly invoked from tcg generated code). This will not unwind the cpu state correctly.
target/riscv/op_helper.c target_ulong helper_csrrw_i128(CPURISCVState *env, int csr, · line 156
Quoted 6 lines
target/riscv/op_helper.c +6
-0+static void helper_zicbom_access (CPURISCVState *env,target_ulong address) +{ +void * phost; +int ret =TLB_INVALID_MASK ; +MMUAccessType access_type =MMU_DATA_LOAD ; +target_ulong ra =GETPC ();
Likewise.
Quoted 1 line
+ address &= ~(RISCV_CPU(env)->cfg.cbolen - 1);
RISCV_CPU is to be applied to CPUState, not CPUArchState. You've dereferenced the wrong pointer. You want env_archcpu() instead. Pull that out to a local variable for clarity and do not...
target/riscv/op_helper.c target_ulong helper_csrrw_i128(CPURISCVState *env, int csr, · line 203
Quoted 2 lines
target/riscv/op_helper.c +2
-0+/* Zeroize the block */ +memset (mem,0 ,RISCV_CPU (env)->cfg.cbolen);
... call it twice. Also, s/zeroize/zero/.
r~
Quoted 213 lines · Christoph Muellner
The RISC-V base cache management operation ISA extension has been ratified [1]. This patch adds support for the defined instructions. Overlap groups are used to resolve the overlapping patterns of the prefetch*/ori and cbo_*/lq instructions.
This patch depends on a patchset that introduces the Priv 1.12 CSRs:
https://lists.nongnu.org/archive/html/qemu-devel/2022-01/msg04478.html[1] https://wiki.riscv.org/display/TECH/Recently+Ratified+Extensions
v2:
- Fix overlapping instruction encoding with LQ instructions
- Drop CSR related changes and rebase on Priv 1.12 patchsethttps://lists.gnu.org/archive/html/qemu-devel/2022-01/msg04213.html
Co-developed-by Philipp Tomsich <[email protected]>Signed-off-by Philipp Tomsich <[email protected]>Signed-off-by Christoph Muellner <[email protected]>--- target/riscv/cpu.c | 4 + target/riscv/cpu.h | 4 + target/riscv/cpu_bits.h | 5 ++ target/riscv/helper.h | 5 ++ target/riscv/insn32.decode | 29 +++++++- target/riscv/insn_trans/trans_zicbo.c.inc | 72 ++++++++++++++++++ target/riscv/op_helper.c | 89 +++++++++++++++++++++++ target/riscv/translate.c | 1 + 8 files changed, 207 insertions(+), 2 deletions(-)create mode 100644 target/riscv/insn_trans/trans_zicbo.c.inc
target/riscv/cpu.c +4
-0@@ -721,6 +721,10 @@ static Property riscv_cpu_properties[] = {DEFINE_PROP_BOOL ("Zicsr" ,RISCVCPU , cfg.ext_icsr, true),DEFINE_PROP_BOOL ("Zfh" ,RISCVCPU , cfg.ext_zfh, false),DEFINE_PROP_BOOL ("Zfhmin" ,RISCVCPU , cfg.ext_zfhmin, false), +DEFINE_PROP_BOOL ("Zicbom" ,RISCVCPU , cfg.ext_zicbom, false), +DEFINE_PROP_BOOL ("Zicbop" ,RISCVCPU , cfg.ext_zicbop, false), +DEFINE_PROP_BOOL ("Zicboz" ,RISCVCPU , cfg.ext_zicboz, false), +DEFINE_PROP_UINT16 ("cbolen" ,RISCVCPU , cfg.cbolen,64 ),DEFINE_PROP_BOOL ("Zve32f" ,RISCVCPU , cfg.ext_zve32f, false),DEFINE_PROP_BOOL ("Zve64f" ,RISCVCPU , cfg.ext_zve64f, false), DEFINE_PROP_BOOL("mmu", RISCVCPU, cfg.mmu, true),target/riscv/cpu.h +4
-0@@ -354,6 +354,9 @@ struct RISCVCPU {bool ext_zfhmin;bool ext_zve32f;bool ext_zve64f; +bool ext_zicbom; +bool ext_zicbop; +bool ext_zicboz;char *priv_spec;char *user_spec;@@ -361,6 +364,7 @@ struct RISCVCPU {char *vext_spec;uint16_t vlen;uint16_t elen; +uint16_t cbolen;bool mmu;bool pmp;bool epmp;target/riscv/cpu_bits.h +5
-0@@ -464,6 +464,11 @@ typedef enum {/* vsstatus CSR bits */ #define VSSTATUS64_UXL 0x0000000300000000ULL +/* [msh]envcfg CSR bits */ +#define ENVCFG_CBIE (0b11 << 4) +#define ENVCFG_CBCFE (1 << 6) +#define ENVCFG_CBZE (1 << 7) +/* Privilege modes */ #define PRV_U 0#define PRV_S 1target/riscv/helper.h +5
-0@@ -92,6 +92,11 @@ DEF_HELPER_FLAGS_2(fcvt_h_l, TCG_CALL_NO_RWG, i64, env, tl) DEF_HELPER_FLAGS_2(fcvt_h_lu, TCG_CALL_NO_RWG, i64, env, tl)DEF_HELPER_FLAGS_1 (fclass_h,TCG_CALL_NO_RWG_SE , tl, i64) +/* Cache-block operations */ +DEF_HELPER_2(cbo_inval, void, env, tl) +DEF_HELPER_2(cbo_clean, void, env, tl) +DEF_HELPER_2 (cbo_zero, void, env, tl) + /* Special functions */ DEF_HELPER_2(csrr, tl, env, int)DEF_HELPER_3 (csrw, void, env, int, tl)target/riscv/insn32.decode +27
-2@@ -89,6 +89,8 @@ @sfence_vma ....... ..... ..... ... ..... ....... %rs2 %rs1 @sfence_vm ....... ..... ..... ... ..... ....... %rs1 +@cbo_pref simm:7 ..... ..... ... ..... ....... %rs1 + # Formats 64: @sh5 ....... ..... ..... ... ..... ....... &shift shamt=%sh5 %rs1 %rd@@ -128,7 +130,17 @@ addi ............ ..... 000 ..... 0010011 @i slti ............ ..... 010 ..... 0010011 @i sltiu ............ ..... 011 ..... 0010011 @i xori ............ ..... 100 ..... 0010011 @i -ori ............ ..... 110 ..... 0010011 @i +{ + [ + # *** RV32 Zicbop Sandard Extension (hints in the ori-space) *** + prefetch_i ....... 00000 ..... 110 00000 0010011 @cbo_pref + prefetch_r ....... 00001 ..... 110 00000 0010011 @cbo_pref + prefetch_w ....... 00011 ..... 110 00000 0010011 @cbo_pref + ] + + # *** RV32I ori *** + ori ............ ..... 110 ..... 0010011 @i +} andi ............ ..... 111 ..... 0010011 @i slli 00000. ...... ..... 001 ..... 0010011 @sh srli 00000. ...... ..... 101 ..... 0010011 @sh@@ -168,7 +180,20 @@ sraw 0100000 ..... ..... 101 ..... 0111011 @r # *** RV128I Base Instruction Set (in addition to RV64I) *** ldu ............ ..... 111 ..... 0000011 @i -lq ............ ..... 010 ..... 0001111 @i +{ + [ + # *** RV32 Zicbom Standard Extension *** + cbo_clean 0000000 00001 ..... 010 00000 0001111 @sfence_vm + cbo_flush 0000000 00010 ..... 010 00000 0001111 @sfence_vm + cbo_inval 0000000 00000 ..... 010 00000 0001111 @sfence_vm + + # *** RV32 Zicboz Standard Extension *** + cbo_zero 0000000 00100 ..... 010 00000 0001111 @sfence_vm + ] + + # *** RVI128 lq *** + lq ............ ..... 010 ..... 0001111 @i +} sq ............ ..... 100 ..... 0100011 @s addid ............ ..... 000 ..... 1011011 @i sllid 000000 ...... ..... 001 ..... 1011011 @sh6target/riscv/insn_trans/trans_zicbo.c.inc new file +53
-0@@ -0,0 +1,72 @@ +/* + * RISC-V translation routines for the RISC-V CBO Extension. + * + * Copyright (c) 2021 Philipp Tomsich, [email protected] + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2 or later, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#define REQUIRE_ZICBOM(ctx) do { \ + if (!RISCV_CPU(ctx->cs)->cfg.ext_zicbom) { \ + return false; \ + } \ +} while (0) + +#define REQUIRE_ZICBOZ(ctx) do { \ + if (!RISCV_CPU(ctx->cs)->cfg.ext_zicboz) { \ + return false; \ + } \ +} while (0) + +static bool trans_cbo_clean(DisasContext *ctx, arg_cbo_clean *a) +{ + REQUIRE_ZICBOM(ctx); + gen_helper_cbo_clean(cpu_env, cpu_gpr[a->rs1]); + return true; +} + +static bool trans_cbo_flush(DisasContext *ctx, arg_cbo_flush *a) +{ + REQUIRE_ZICBOM(ctx); + gen_helper_cbo_clean(cpu_env, cpu_gpr[a->rs1]); + return true; +} + +static bool trans_cbo_inval(DisasContext *ctx, arg_cbo_inval *a) +{ + REQUIRE_ZICBOM(ctx); + gen_helper_cbo_inval(cpu_env, cpu_gpr[a->rs1]); + return true; +} + +static bool trans_cbo_zero(DisasContext *ctx, arg_cbo_zero *a) +{
target/riscv/insn_trans/trans_zicbo.c.inc line 63
Quoted 10 lines
target/riscv/insn_trans/trans_zicbo.c.inc new file +10
-0+ REQUIRE_ZICBOZ(ctx); + gen_helper_cbo_zero(cpu_env, cpu_gpr[a->rs1]); + return true; +} + +static bool trans_prefetch_i(DisasContext *ctx, arg_prefetch_i *a) +{ + return true; +} +
If we add these instructions, maybe we need add REQUIRE_ZICBOP(ctx) here.
Quoted 68 lines
target/riscv/insn_trans/trans_zicbo.c.inc new file +9
-0+static bool trans_prefetch_r(DisasContext *ctx, arg_prefetch_i *a) +{ + return true; +} + +static bool trans_prefetch_w(DisasContext *ctx, arg_prefetch_i *a) +{ + return true; +}target/riscv/op_helper.c +37
-0@@ -3,6 +3,7 @@* * Copyright (c) 2016-2017 Sagar Karandikar, [email protected] * Copyright (c) 2017-2018 SiFive, Inc. +* Copyright (c) 2021 VRULL GmbH * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -70,6 +71,33 @@ target_ulong helper_csrrw(CPURISCVState *env, int csr,return val; } +/* helper_zicbo_envcfg +* +* Raise virtual exceptions and illegal instruction exceptions for +* Zicbo[mz] instructions based on the settings of [mhs]envcfg. +*/ +static void helper_zicbo_envcfg (CPURISCVState *env,target_ulong envbits) +{ +#ifndef CONFIG_USER_ONLY +target_ulong ra =GETPC (); + +/* Check for virtual instruction exceptions first, as we don't see +* VU and VS reflected in env->priv (these are just the translated +* U and S stated with virtualisation enabled. +*/ +if (riscv_cpu_virt_enabled (env) && + (((env->priv <PRV_H ) && !get_field (env->henvcfg, envbits)) || + ((env->priv <PRV_S ) && !get_field (env->senvcfg, envbits)))) { +riscv_raise_exception (env,RISCV_EXCP_VIRT_INSTRUCTION_FAULT , ra); + } + +if (((env->priv <PRV_M ) && !get_field (env->menvcfg, envbits)) || + ((env->priv <PRV_S ) && !get_field (env->senvcfg, envbits))) { +riscv_raise_exception (env,RISCV_EXCP_ILLEGAL_INST , ra); + } +#endif +} +target_ulong helper_csrr_i128 (CPURISCVState *env,int csr) {Int128 rv =int128_zero ();@@ -114,6 +142,67 @@ target_ulong helper_csrrw_i128(CPURISCVState *env, int csr,return int128_getlo (rv); } +/* helper_zicbom_access +* +* Check access permissions (LOAD or STORE or FETCH) for Zicbom, +* raising either store page-fault (non-virtualised) or store +* guest-page fault (virtualised). +*/ +static void helper_zicbom_access (CPURISCVState *env,target_ulong address) +{ +void * phost;
target/riscv/op_helper.c target_ulong helper_csrrw_i128(CPURISCVState *env, int csr, · line 163
Quoted 10 lines
target/riscv/op_helper.c +10
-0+int ret =TLB_INVALID_MASK ; +MMUAccessType access_type =MMU_DATA_LOAD ; +target_ulong ra =GETPC (); + +while (ret ==TLB_INVALID_MASK && access_type <=MMU_INST_FETCH ) { + ret =probe_access_flags (env, address, access_type++, +cpu_mmu_index (env, false), + true, &phost, ra); + } +
The permission check have been relaxed in the v1.0 spec . So I think only do LOAD check is OK here.
target/riscv/op_helper.c target_ulong helper_csrrw_i128(CPURISCVState *env, int csr, · line 176
Quoted 13 lines
target/riscv/op_helper.c +13
-0+if (ret ==TLB_INVALID_MASK ) { +uint32_t exc =RISCV_EXCP_STORE_PAGE_FAULT ; + +#ifndef CONFIG_USER_ONLY +/* User-mode emulation does not have virtualisation... */ +if (riscv_cpu_virt_enabled (env)) { + exc =RISCV_EXCP_STORE_GUEST_AMO_ACCESS_FAULT ; + } +#endif +riscv_raise_exception (env, exc, ra); + } +} +
It seems that current implementation doesn't take PMP check(access fault) into consideration.
Regards,
Weiwei Li
Quoted 44 lines
target/riscv/op_helper.c +29
-0+void helper_cbo_inval (CPURISCVState *env,target_ulong address) +{ +helper_zicbo_envcfg (env,ENVCFG_CBIE ); +helper_zicbom_access (env, address); + +/* We don't emulate the cache-hierarchy, so we're done. */ +} + +void helper_cbo_clean (CPURISCVState *env,target_ulong address) +{ +helper_zicbo_envcfg (env,ENVCFG_CBCFE ); +helper_zicbom_access (env, address); + +/* We don't emulate the cache-hierarchy, so we're done. */ +} + +void helper_cbo_zero (CPURISCVState *env,target_ulong address) +{ +helper_zicbo_envcfg (env,ENVCFG_CBZE ); + +/* mask off low-bits to align-down to the cache-block */ + address &= ~(RISCV_CPU (env)->cfg.cbolen -1 ); +void * mem =probe_access (env, address,4 ,MMU_DATA_STORE , +cpu_mmu_index (env, false),GETPC ()); + +/* Zeroize the block */ +memset (mem,0 ,RISCV_CPU (env)->cfg.cbolen); +} +#ifndef CONFIG_USER_ONLY target_ulong helper_sret (CPURISCVState *env)target/riscv/translate.c +1
-0@@ -854,6 +854,7 @@ static uint32_t opcode_at(DisasContextBase *dcbase, target_ulong pc)#include "insn_trans/trans_rvv.c.inc" #include "insn_trans/trans_rvb.c.inc" #include "insn_trans/trans_rvzfh.c.inc" +#include "insn_trans/trans_zicbo.c.inc" #include "insn_trans/trans_privileged.c.inc" /* Include the auto-generated decoder for 16 bit insn */