about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/tests/cpu-detection.rs
diff options
context:
space:
mode:
authorTsukasa OI <floss_rust@irq.a4lg.com>2025-04-11 01:13:44 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2025-04-16 00:56:48 +0000
commit53e89494b333e5c84101f84c54d48f480e24b09b (patch)
treefa7a2ec5d2c80b6022688b7de3475ca92b92ca91 /library/stdarch/crates/std_detect/tests/cpu-detection.rs
parent2759545fda234ead5598ea280fac8be91caa370b (diff)
downloadrust-53e89494b333e5c84101f84c54d48f480e24b09b.tar.gz
rust-53e89494b333e5c84101f84c54d48f480e24b09b.zip
RISC-V: Use `target_arch` for RV(32|64) detection
As Taiki Endo pointed out, there's a problem if we continue using
`target_pointer_width` values to detect an architecture because:

*   There are separate `target_arch`s already and
*   There is an experimental ABI (not ratified though): RV64ILP32.
    cf. <https://lpc.events/event/17/contributions/1475/attachments/1186/2442/rv64ilp32_%20Run%20ILP32%20on%20RV64%20ISA.pdf>

Co-Authored-By: Taiki Endo <te316e89@gmail.com>
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/cpu-detection.rs')
0 files changed, 0 insertions, 0 deletions