This is a change in semantics. g_ascii_strcasecmp() doesn't honour locale but strcasecmp() does. But this is OK for at least one reason: (1) QEMU always runs with the C locale so there's not an actual behaviour change here Signed-off-by: Kostiantyn Kostiuk --- target/riscv/monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/riscv/monitor.c b/target/riscv/monitor.c index a9d3111444..bca04a7580 100644 --- a/target/riscv/monitor.c +++ b/target/riscv/monitor.c @@ -303,7 +303,7 @@ static bool reg_is_vreg(const char *name) } for (int i = 0; i < 32; i++) { - if (strcasecmp(name, riscv_rvv_regnames[i]) == 0) { + if (g_ascii_strcasecmp(name, riscv_rvv_regnames[i]) == 0) { return true; } } @@ -358,7 +358,7 @@ int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval) continue; } - if (strcasecmp(csr_ops[csrno].name, name) != 0) { + if (g_ascii_strcasecmp(csr_ops[csrno].name, name) != 0) { continue; } -- 2.52.0