aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/qemu.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2019-08-20 19:03:57 +0000
committerGravatar GitHub <noreply@github.com> 2019-08-20 19:03:57 +0000
commit1ff0a250f140ad7b36d1973338330629d7390c97 (patch)
tree6b0d5908b1a1109248d3cab8d1b7814b73b73dcc /cortex-m-rt/examples/qemu.rs
parentb27d17f0e120ea3e59e0c98c4a636a0205be001a (diff)
parent0aa5b90ed378fb881de1b3333c5a252ff97d8f4d (diff)
downloadcortex-m-1ff0a250f140ad7b36d1973338330629d7390c97.tar.gz
cortex-m-1ff0a250f140ad7b36d1973338330629d7390c97.tar.zst
cortex-m-1ff0a250f140ad7b36d1973338330629d7390c97.zip
Merge #202
202: Enable building semihosting for Armv8m r=korken89 a=aurabindo Semihosting protocol has not changed for Arvmv8m and hence it need not be disabled for this architecture. Co-authored-by: Aurabindo Jayamohanan <mail@aurabindo.in>
Diffstat (limited to 'cortex-m-rt/examples/qemu.rs')
-rw-r--r--cortex-m-rt/examples/qemu.rs12
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();
- }
-}