target/riscv: rename ext_icboz to ext_zicboz
Add a leading 'z' to improve grepping. When one wants to search for uses of zicboz they're more likely to do 'grep -i zicboz' than 'grep -i icboz'. Suggested-by: Andrew Jones <ajones@ventanamicro.com> Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Message-ID: <20231012164604.398496-5-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
a326a2b0b2
commit
e57039ddab
@ -268,7 +268,7 @@ static void create_fdt_socket_cpus(RISCVVirtState *s, int socket,
|
||||
cpu_ptr->cfg.cbom_blocksize);
|
||||
}
|
||||
|
||||
if (cpu_ptr->cfg.ext_icboz) {
|
||||
if (cpu_ptr->cfg.ext_zicboz) {
|
||||
qemu_fdt_setprop_cell(ms->fdt, cpu_name, "riscv,cboz-block-size",
|
||||
cpu_ptr->cfg.cboz_blocksize);
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ const uint32_t misa_bits[] = {RVI, RVE, RVM, RVA, RVF, RVD, RVV,
|
||||
*/
|
||||
const RISCVIsaExtData isa_edata_arr[] = {
|
||||
ISA_EXT_DATA_ENTRY(zicbom, PRIV_VERSION_1_12_0, ext_zicbom),
|
||||
ISA_EXT_DATA_ENTRY(zicboz, PRIV_VERSION_1_12_0, ext_icboz),
|
||||
ISA_EXT_DATA_ENTRY(zicboz, PRIV_VERSION_1_12_0, ext_zicboz),
|
||||
ISA_EXT_DATA_ENTRY(zicond, PRIV_VERSION_1_12_0, ext_zicond),
|
||||
ISA_EXT_DATA_ENTRY(zicsr, PRIV_VERSION_1_10_0, ext_zicsr),
|
||||
ISA_EXT_DATA_ENTRY(zifencei, PRIV_VERSION_1_10_0, ext_zifencei),
|
||||
@ -500,7 +500,7 @@ static void rv64_veyron_v1_cpu_init(Object *obj)
|
||||
cpu->cfg.ext_zicbom = true;
|
||||
cpu->cfg.cbom_blocksize = 64;
|
||||
cpu->cfg.cboz_blocksize = 64;
|
||||
cpu->cfg.ext_icboz = true;
|
||||
cpu->cfg.ext_zicboz = true;
|
||||
cpu->cfg.ext_smaia = true;
|
||||
cpu->cfg.ext_ssaia = true;
|
||||
cpu->cfg.ext_sscofpmf = true;
|
||||
@ -1285,7 +1285,7 @@ const RISCVCPUMultiExtConfig riscv_cpu_extensions[] = {
|
||||
MULTI_EXT_CFG_BOOL("zhinxmin", ext_zhinxmin, false),
|
||||
|
||||
MULTI_EXT_CFG_BOOL("zicbom", ext_zicbom, true),
|
||||
MULTI_EXT_CFG_BOOL("zicboz", ext_icboz, true),
|
||||
MULTI_EXT_CFG_BOOL("zicboz", ext_zicboz, true),
|
||||
|
||||
MULTI_EXT_CFG_BOOL("zmmul", ext_zmmul, false),
|
||||
|
||||
|
@ -64,7 +64,7 @@ struct RISCVCPUConfig {
|
||||
bool ext_zifencei;
|
||||
bool ext_zicsr;
|
||||
bool ext_zicbom;
|
||||
bool ext_icboz;
|
||||
bool ext_zicboz;
|
||||
bool ext_zicond;
|
||||
bool ext_zihintntl;
|
||||
bool ext_zihintpause;
|
||||
|
@ -23,7 +23,7 @@
|
||||
} while (0)
|
||||
|
||||
#define REQUIRE_ZICBOZ(ctx) do { \
|
||||
if (!ctx->cfg_ptr->ext_icboz) { \
|
||||
if (!ctx->cfg_ptr->ext_zicboz) { \
|
||||
return false; \
|
||||
} \
|
||||
} while (0)
|
||||
|
@ -214,7 +214,7 @@ static void kvm_riscv_update_cpu_misa_ext(RISCVCPU *cpu, CPUState *cs)
|
||||
|
||||
static KVMCPUConfig kvm_multi_ext_cfgs[] = {
|
||||
KVM_EXT_CFG("zicbom", ext_zicbom, KVM_RISCV_ISA_EXT_ZICBOM),
|
||||
KVM_EXT_CFG("zicboz", ext_icboz, KVM_RISCV_ISA_EXT_ZICBOZ),
|
||||
KVM_EXT_CFG("zicboz", ext_zicboz, KVM_RISCV_ISA_EXT_ZICBOZ),
|
||||
KVM_EXT_CFG("zihintpause", ext_zihintpause, KVM_RISCV_ISA_EXT_ZIHINTPAUSE),
|
||||
KVM_EXT_CFG("zbb", ext_zbb, KVM_RISCV_ISA_EXT_ZBB),
|
||||
KVM_EXT_CFG("ssaia", ext_ssaia, KVM_RISCV_ISA_EXT_SSAIA),
|
||||
@ -808,7 +808,7 @@ static void kvm_riscv_read_multiext_legacy(RISCVCPU *cpu,
|
||||
kvm_riscv_read_cbomz_blksize(cpu, kvmcpu, &kvm_cbom_blocksize);
|
||||
}
|
||||
|
||||
if (cpu->cfg.ext_icboz) {
|
||||
if (cpu->cfg.ext_zicboz) {
|
||||
kvm_riscv_read_cbomz_blksize(cpu, kvmcpu, &kvm_cboz_blocksize);
|
||||
}
|
||||
}
|
||||
@ -901,7 +901,7 @@ static void kvm_riscv_init_multiext_cfg(RISCVCPU *cpu, KVMScratchCPU *kvmcpu)
|
||||
kvm_riscv_read_cbomz_blksize(cpu, kvmcpu, &kvm_cbom_blocksize);
|
||||
}
|
||||
|
||||
if (cpu->cfg.ext_icboz) {
|
||||
if (cpu->cfg.ext_zicboz) {
|
||||
kvm_riscv_read_cbomz_blksize(cpu, kvmcpu, &kvm_cboz_blocksize);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user