Skip to contentSkip to conversation

linux-user/riscv: change default cpu to 'max'

PATCH Applied Daniel Henrique Barboza 5 participants 7 messages Oct 20, 2023 – Nov 6, 2023 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user/riscv: change default cpu to 'max'

Commit f57d5f8004 deprecated the 'any' CPU type but failed to change the default CPU for linux-user. The result is that all linux-users invocations that doesn't specify a different CPU started to show a deprecation warning:

$ ./build/qemu-riscv64  ./foo-novect.out
qemu-riscv64: warning: The 'any' CPU is deprecated and will be removed in the future.

Change the default CPU for RISC-V linux-user from 'any' to 'max'.

Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")
---
 linux-user/riscv/target_elf.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
linux-user/riscv/target_elf.h +1 -2
index 9dd65652ee..dedd5956f3 100644
@@ -9,7 +9,6 @@
 #define RISCV_TARGET_ELF_H
 static inline const char *cpu_get_model(uint32_t eflags)
 {
-    /* TYPE_RISCV_CPU_ANY */
-    return "any";
+    return "max";
 }
 #endif
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Daniel Henrique Barboza

Commit f57d5f8004 deprecated the 'any' CPU type but failed to change the default CPU for linux-user. The result is that all linux-users invocations that doesn't specify a different CPU started to show a deprecation warning:

$ ./build/qemu-riscv64  ./foo-novect.out
qemu-riscv64: warning: The 'any' CPU is deprecated and will be removed in the future.
Quoted 8 lines

Change the default CPU for RISC-V linux-user from 'any' to 'max'.

Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")
---
  linux-user/riscv/target_elf.h | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by on v1 1/1
#2 lore raw
In reply to Daniel Henrique Barboza
Quoted 5 lines · Daniel Henrique Barboza

Commit f57d5f8004 deprecated the 'any' CPU type but failed to change the default CPU for linux-user. The result is that all linux-users invocations that doesn't specify a different CPU started to show a deprecation warning:

Quoted 8 lines
$ ./build/qemu-riscv64  ./foo-novect.out
qemu-riscv64: warning: The 'any' CPU is deprecated and will be removed in the future.

Change the default CPU for RISC-V linux-user from 'any' to 'max'.

Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")

r~

Reviewed-by on v1 1/1
#3 lore raw
In reply to Daniel Henrique Barboza
Quoted 6 lines · Daniel Henrique Barboza

Commit f57d5f8004 deprecated the 'any' CPU type but failed to change the default CPU for linux-user. The result is that all linux-users invocations that doesn't specify a different CPU started to show a deprecation warning:

Quoted 8 lines
$ ./build/qemu-riscv64  ./foo-novect.out
qemu-riscv64: warning: The 'any' CPU is deprecated and will be removed in the future.

Change the default CPU for RISC-V linux-user from 'any' to 'max'.

Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")

Alistair

Quoted 21 lines
---
 linux-user/riscv/target_elf.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
linux-user/riscv/target_elf.h +1 -3
index 9dd65652ee..dedd5956f3 100644
@@ -9,7 +9,6 @@
 #define RISCV_TARGET_ELF_H
 static inline const char *cpu_get_model(uint32_t eflags)
 {
-    /* TYPE_RISCV_CPU_ANY */
-    return "any";
+    return "max";
 }
 #endif
--

2.41.0

#4 lore raw
In reply to Daniel Henrique Barboza
Quoted 6 lines · Daniel Henrique Barboza

Commit f57d5f8004 deprecated the 'any' CPU type but failed to change the default CPU for linux-user. The result is that all linux-users invocations that doesn't specify a different CPU started to show a deprecation warning:

Quoted 8 lines
$ ./build/qemu-riscv64  ./foo-novect.out
qemu-riscv64: warning: The 'any' CPU is deprecated and will be removed in the future.

Change the default CPU for RISC-V linux-user from 'any' to 'max'.

Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")

Thanks!

Applied to riscv-to-apply.next

Alistair

Quoted 21 lines
---
 linux-user/riscv/target_elf.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
linux-user/riscv/target_elf.h +1 -3
index 9dd65652ee..dedd5956f3 100644
@@ -9,7 +9,6 @@
 #define RISCV_TARGET_ELF_H
 static inline const char *cpu_get_model(uint32_t eflags)
 {
-    /* TYPE_RISCV_CPU_ANY */
-    return "any";
+    return "max";
 }
 #endif
--

2.41.0

#5 lore raw
Quoted 14 lines · Alistair Francis
Quoted 11 lines · Daniel Henrique Barboza

Commit f57d5f8004 deprecated the 'any' CPU type but failed to change the default CPU for linux-user. The result is that all linux-users invocations that doesn't specify a different CPU started to show a deprecation warning:

$ ./build/qemu-riscv64  ./foo-novect.out
qemu-riscv64: warning: The 'any' CPU is deprecated and will be removed in the future.

Change the default CPU for RISC-V linux-user from 'any' to 'max'.

Quoted 7 lines
Quoted 3 lines
Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")

Thanks!

Applied to riscv-to-apply.next

Hi -- did this patch get lost along the way? It doesn't seem to be upstream yet.

thanks
-- PMM

#6 lore raw
Quoted 20 lines · Peter Maydell
Quoted 18 lines · Alistair Francis
Quoted 14 lines · Daniel Henrique Barboza

Commit f57d5f8004 deprecated the 'any' CPU type but failed to change the default CPU for linux-user. The result is that all linux-users invocations that doesn't specify a different CPU started to show a deprecation warning:

$ ./build/qemu-riscv64  ./foo-novect.out
qemu-riscv64: warning: The 'any' CPU is deprecated and will be removed in the future.

Change the default CPU for RISC-V linux-user from 'any' to 'max'.

Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")
Quoted 6 lines
Quoted 3 lines

Thanks!

Applied to riscv-to-apply.next

Hi -- did this patch get lost along the way? It doesn't seem to be upstream yet.

It's in my tree. I expect to send a PR any day now

Alistair

Quoted 3 lines

thanks
-- PMM