[PATCH v3 01/17] riscv: Introduce instruction table generation

Nam Cao namcao at linutronix.de
Wed Aug 5 04:32:35 PDT 2026


Charlie Jenkins <thecharlesjenkins at gmail.com> writes:
> +        # Replace all . with _
> +        formatted_inst_name=$name
> +        while [ ! ${formatted_inst_name##*.*} ]; do
> +            prefix=${formatted_inst_name%.*}
> +            suffix=${formatted_inst_name##*.}
> +            contains_dot=${formatted_inst_name##*.*}

Isn't contains_dot always empty, because we only get here if
formatted_inst_name has a dot?

> +        # Instruction only appears in one base
> +        only_base=
> +        if [ "${base}" != "${base%32}" ]; then

Does
           if [ "${base}" = "32" ]; then

work?

Nam



More information about the kvm-riscv mailing list