Re: [PATCH v2 3/3] rust: Enable for MIPS

From: Maciej W. Rozycki
Date: Sun Sep 08 2024 - 16:43:25 EST


On Thu, 5 Sep 2024, Jiaxun Yang wrote:

> diff --git a/scripts/generate_rust_target.rs b/scripts/generate_rust_target.rs
> index 863720777313..bbdf8a4dd169 100644
> --- a/scripts/generate_rust_target.rs
> +++ b/scripts/generate_rust_target.rs
[...]
> + } else {
> + ts.push("arch", "mips");
> + cfg.get("TARGET_ISA_REV").map(|isa_rev| {
> + let feature = match isa_rev.as_str() {
> + "1" => ",+mips32",
> + "2" => ",+mips32r2",
> + "5" => ",+mips32r5",
> + "6" => ",+mips32r6",
> + _ => ",+mips2",

What's the consequence of using `mips2' rather than `mips1' here? How
about other ISA revisions, e.g. `mips4' (that also applies to the 64BIT
leg)?

Maciej