Skip to content

Commit f1abb70

Browse files
committed
Pick up changes from robamu that I missed.
From thejpster#1.
1 parent faf0e14 commit f1abb70

File tree

3 files changed

+28
-18
lines changed

3 files changed

+28
-18
lines changed

src/doc/rustc/src/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
- [\*-apple-visionos](platform-support/apple-visionos.md)
4949
- [aarch64-nintendo-switch-freestanding](platform-support/aarch64-nintendo-switch-freestanding.md)
5050
- [aarch64-unknown-linux-musl](platform-support/aarch64-unknown-linux-musl.md)
51-
- [aarch64-unknown-none{,-softfloat}](aarch64-unknown-none.md)
5251
- [aarch64_be-unknown-none-softfloat](platform-support/aarch64_be-unknown-none-softfloat.md)
5352
- [aarch64_be-unknown-linux-musl](platform-support/aarch64_be-unknown-linux-musl.md)
5453
- [amdgcn-amd-amdhsa](platform-support/amdgcn-amd-amdhsa.md)

src/doc/rustc/src/platform-support/armv7a-none-eabi.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,46 @@ See [`arm-none-eabi`](arm-none-eabi.md) for information applicable to all
2424

2525
## Requirements
2626

27-
All Armv7-A processors include an FPU (a VFPv3 or a VFPv4). The difference
28-
between the `-eabi` and `-eabihf` targets is whether the FPU is used for
29-
passing function arguments. You may prefer the `-eabi` soft-float target when
27+
Almost all Armv7-A processors include an FPU (a VFPv3 or a VFPv4). The
28+
difference between the `-eabi` and `-eabihf` targets is whether the FPU is
29+
used for passing function arguments. You may prefer the `-eabi` soft-float
30+
target when the processor does not have a floating point unit or the compiled
31+
code should not use the floating point unit.
3032

3133
When using the hardfloat targets, the minimum floating-point features assumed
32-
are those of the `vfpv3-d16`, which includes single- and double-precision,
33-
with 16 double-precision registers. This floating-point unit appears in
34-
Cortex-A8 and Cortex-A8 processors. See [VFP in the Cortex-A processors][vfp]
35-
for more details on the possible FPU variants.
34+
are those of the VFPv3-D16, which includes single- and double-precision, with
35+
16 double-precision registers. This floating-point unit appears in Cortex-A8
36+
and Cortex-A9 processors. See [VFP in the Cortex-A processors][vfp] for more
37+
details on the possible FPU variants.
3638

3739
If your processor supports a different set of floating-point features than the
38-
default expectations of `vfpv3-d16`, then these should also be enabled or
40+
default expectations of VFPv3-D16, then these should also be enabled or
3941
disabled as needed with `-C target-feature=(+/-)`.
4042

43+
In general, the following four combinations are possible:
44+
45+
- VFPv3-D16, target feature `+vfp3` and `-d32`
46+
- VFPv3-D32, target feature `+vfp3` and `+d32`
47+
- VFPv4-D16, target feature `+vfp4` and `-d32`
48+
- VFPv4-D32, target feature `+vfp4` and `+d32`
49+
50+
An Armv7-A processor may optionally include a NEON hardware unit which
51+
provides Single Instruction Multiple Data (SIMD) operations. The
52+
implementation of this unit implies VFPv3-D32. The target feature `+neon` may
53+
be added to inform the compiler about the availability of NEON.
54+
55+
You can refer to the [arm-none-eabi](arm-none-eabi.md) documentation for a
56+
generic guide on target feature and target CPU specification and how to enable
57+
and disable them via `.cargo/config.toml` file.
58+
4159
[vfp]: https://developer.arm.com/documentation/den0013/0400/Floating-Point/Floating-point-basics-and-the-IEEE-754-standard/ARM-VFP
4260

4361
## Start-up and Low-Level Code
4462

4563
The [Rust Embedded Devices Working Group Arm Team] maintain the [`cortex-ar`]
4664
and [`cortex-a-rt`] crates, which may be useful for writing bare-metal code
47-
using this target. Those crates include several examples which run in QEMU and
48-
build using these targets.
65+
using this target. The [`cortex-ar` repository](https://github.com/rust-embedded/cortex-ar)
66+
includes several examples which run in QEMU and build using these targets.
4967

5068
[`cortex-ar`]: https://docs.rs/cortex-ar
5169
[`cortex-a-rt`]: https://docs.rs/cortex-a-rt

src/doc/rustc/src/platform-support/armv7r-none-eabi.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ See [`arm-none-eabi`](arm-none-eabi.md) for information applicable to all
2121

2222
## Requirements
2323

24-
When using the big-endian version of this target, note that some variants of
25-
the Cortex-R have both big-endian instructions and data. This configuration is
26-
known as BE-32, while data-only big-endianness is known as BE-8. To build
27-
programs for BE-32 processors, the GNU linker must be used with the `-mbe32`
28-
option. See [ARM Cortex-R Series Programmer's Guide: Endianness][endianness]
29-
for more details about different endian modes.
30-
3124
When using the hardfloat targets, the minimum floating-point features assumed
3225
are those of the `vfpv3-d16`, which includes single- and double-precision, with
3326
16 double-precision registers. This floating-point unit appears in Cortex-R4F

0 commit comments

Comments
 (0)