linux-user/riscv: change default cpu to 'max'
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'.
--- linux-user/riscv/target_elf.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
linux-user/riscv/target_elf.h +1 -2
@@ -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
Quoted 8 lines · Daniel Henrique Barboza
Commit
f57d5f8004deprecated 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'.
Reported-by Richard Henderson <[email protected]>Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")Signed-off-by Daniel Henrique Barboza <[email protected]>--- linux-user/riscv/target_elf.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Quoted 5 lines · Daniel Henrique Barboza
Commit
f57d5f8004deprecated 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'.
Reported-by Richard Henderson <[email protected]>Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")Signed-off-by Daniel Henrique Barboza <[email protected]>
r~
Quoted 6 lines · Daniel Henrique Barboza
Commit
f57d5f8004deprecated 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'.
Reported-by Richard Henderson <[email protected]>Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")Signed-off-by Daniel Henrique Barboza <[email protected]>
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@@ -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
Alistair Francis
AppliedQuoted 6 lines · Daniel Henrique Barboza
Commit
f57d5f8004deprecated 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'.
Reported-by Richard Henderson <[email protected]>Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")Signed-off-by Daniel Henrique Barboza <[email protected]>
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@@ -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
Quoted 14 lines · Alistair Francis
Quoted 11 lines · Daniel Henrique Barboza
Commit
f57d5f8004deprecated 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
Reported-by Richard Henderson <[email protected]>Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")Signed-off-by Daniel Henrique Barboza <[email protected]>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
Quoted 20 lines · Peter Maydell
Quoted 18 lines · Alistair Francis
Quoted 14 lines · Daniel Henrique Barboza
Commit
f57d5f8004deprecated 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'.
Reported-by Richard Henderson <[email protected]>Fixes f57d5f8004 ("target/riscv: deprecate the 'any' CPU type")Signed-off-by Daniel Henrique Barboza <[email protected]>
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