Skip to content

Commit 33f51f2

Browse files
japaricgnzlbg
authored andcommitted
acle/hints: __dbg requires 'v7'
addresses #557 (comment)
1 parent ff93763 commit 33f51f2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/core_arch/src/acle/hints.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ pub unsafe fn __yield() {
7272
/// for the effect (if any) of this instruction and the meaning of the
7373
/// argument. This is available only when compliling for AArch32.
7474
// Section 10.1 of ACLE says that the supported arches are: 7, 7-M
75-
// LLVM says "instruction requires: thumb2" OR "instruction requires: armv7"
76-
#[cfg(target_feature = "v6t2")]
75+
// "The DBG hint instruction is added in ARMv7. It is UNDEFINED in the ARMv6 base architecture, and
76+
// executes as a NOP instruction in ARMv6K and ARMv6T2." - ARM Architecture Reference Manual ARMv7-A
77+
// and ARMv7-R edition (ARM DDI 0406C.c) sections D12.4.1 "ARM instruction set support" and D12.4.2
78+
// "Thumb instruction set support"
79+
#[cfg(target_feature = "v7")]
7780
#[inline(always)]
7881
#[rustc_args_required_const(0)]
7982
pub unsafe fn __dbg(imm4: u32) {

0 commit comments

Comments
 (0)