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 <kkostiuk@redhat.com>
Reviewed-by: Chao Liu <chao.liu.zevorn@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Link: https://lore.kernel.org/r/20260327134401.270186-8-kkostiuk@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
}
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;
}
}
continue;
}
- if (strcasecmp(csr_ops[csrno].name, name) != 0) {
+ if (g_ascii_strcasecmp(csr_ops[csrno].name, name) != 0) {
continue;
}