Skip to contentSkip to conversation

configure: detect --cpu=mipsisa64r6

PATCH In review Paolo Bonzini 3 participants 5 messages Jun 19, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: detect --cpu=mipsisa64r6

Treat it as a MIPS64 machine.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index d0703ea279d..3669eec86e5 100755
@@ -452,7 +452,7 @@ case "$cpu" in
     linux_arch=loongarch
     ;;
 
-  mips64*)
+  mips64*|mipsisa64*)
     cpu=mips64
     host_arch=mips
     linux_arch=mips
Signature · 1 line
2.45.2
#1 lore raw
Quoted 1 line · Paolo Bonzini

Treat it as a MIPS64 machine.

Where did you encounter it?

Quoted 10 lines
---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index d0703ea279d..3669eec86e5 100755

configure case "$cpu" in · line 455

Quoted 5 lines
configure +1 -1
@@ -452,7 +452,7 @@ case "$cpu" in
      linux_arch=loongarch
      ;;
 
-  mips64*)
+  mips64*|mipsisa64*)

Maybe simply switch to mips*64*) ?

configure case "$cpu" in · line 458

Quoted 3 lines
configure +0 -0
      cpu=mips64
      host_arch=mips
      linux_arch=mips

Thomas

#2 lore raw
Quoted 5 lines · Thomas Huth
Quoted 1 line · Paolo Bonzini

Treat it as a MIPS64 machine.

Where did you encounter it?

It is handled by "config.sub" (the GNU script to canonicalize target triples). and is also in the list produced by "rustc --print target-list" on Fedora 40. So it seems like something that could be passed to --cpu.

The argument to --cpu, plus an autodetected OS, is also as close as we can get to building the tuple for "cargo --target CPU-MACHINE-OS-VARIANT".

Quoted 13 lines
Quoted 13 lines
---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index d0703ea279d..3669eec86e5 100755
@@ -452,7 +452,7 @@ case "$cpu" in
      linux_arch=loongarch
      ;;
 
Quoted 4 lines

configure case "$cpu" in · line 455

Quoted 2 lines
configure +1 -1
-  mips64*)
+  mips64*|mipsisa64*)

Maybe simply switch to mips*64*) ?

Not sure if it's a good idea, since we know the exact prefixes.

Paolo

Reviewed-by
#3 lore raw
Quoted 4 lines · Paolo Bonzini
Quoted 3 lines · Thomas Huth
Quoted 1 line · Paolo Bonzini

Treat it as a MIPS64 machine.

...

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
configure +0 -0
index d0703ea279d..3669eec86e5 100755
@@ -452,7 +452,7 @@ case "$cpu" in
       linux_arch=loongarch
       ;;
 
Quoted 6 lines
Quoted 4 lines

configure case "$cpu" in · line 455

Quoted 2 lines
configure +1 -1
-  mips64*)
+  mips64*|mipsisa64*)

Maybe simply switch to mips*64*) ?

Not sure if it's a good idea, since we know the exact prefixes.

Fair point.