diff options
author | 2019-08-19 12:30:04 +0530 | |
---|---|---|
committer | 2019-08-19 14:07:29 +0530 | |
commit | 0aa5b90ed378fb881de1b3333c5a252ff97d8f4d (patch) | |
tree | 6b0d5908b1a1109248d3cab8d1b7814b73b73dcc /cortex-m-rt/examples/qemu.rs | |
parent | b27d17f0e120ea3e59e0c98c4a636a0205be001a (diff) | |
download | cortex-m-0aa5b90ed378fb881de1b3333c5a252ff97d8f4d.tar.gz cortex-m-0aa5b90ed378fb881de1b3333c5a252ff97d8f4d.tar.zst cortex-m-0aa5b90ed378fb881de1b3333c5a252ff97d8f4d.zip |
Enable building semihosting for Armv8m
Semihosting protocol has not changed for Arvmv8m and hence it
need not be disabled for this architecture.
Signed-off-by: Aurabindo Jayamohanan <mail@aurabindo.in>
Diffstat (limited to 'cortex-m-rt/examples/qemu.rs')
-rw-r--r-- | cortex-m-rt/examples/qemu.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cortex-m-rt/examples/qemu.rs b/cortex-m-rt/examples/qemu.rs index 7553e70..e903404 100644 --- a/cortex-m-rt/examples/qemu.rs +++ b/cortex-m-rt/examples/qemu.rs @@ -2,11 +2,8 @@ #![no_main] #![no_std] - extern crate cortex_m; extern crate cortex_m_rt as rt; - -#[cfg(not(armv8m))] extern crate cortex_m_semihosting as semihosting; extern crate panic_halt; @@ -14,7 +11,6 @@ extern crate panic_halt; use cortex_m::asm; use rt::entry; -#[cfg(not(armv8m))] #[entry] fn main() -> ! { use core::fmt::Write; @@ -30,11 +26,3 @@ fn main() -> ! { semihosting::debug::exit(semihosting::debug::EXIT_SUCCESS); } } - -#[cfg(armv8m)] -#[entry] -fn main() -> ! { - loop { - asm::nop(); - } -} |