aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt
diff options
context:
space:
mode:
authorGravatar Aurabindo Jayamohanan <mail@aurabindo.in> 2019-08-19 12:30:04 +0530
committerGravatar Aurabindo Jayamohanan <mail@aurabindo.in> 2019-08-19 14:07:29 +0530
commit0aa5b90ed378fb881de1b3333c5a252ff97d8f4d (patch)
tree6b0d5908b1a1109248d3cab8d1b7814b73b73dcc /cortex-m-rt
parentb27d17f0e120ea3e59e0c98c4a636a0205be001a (diff)
downloadcortex-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')
-rw-r--r--cortex-m-rt/Cargo.toml13
-rw-r--r--cortex-m-rt/examples/qemu.rs12
2 files changed, 1 insertions, 24 deletions
diff --git a/cortex-m-rt/Cargo.toml b/cortex-m-rt/Cargo.toml
index 9b44a15..4b5faee 100644
--- a/cortex-m-rt/Cargo.toml
+++ b/cortex-m-rt/Cargo.toml
@@ -19,21 +19,10 @@ autoexamples = true
r0 = "0.2.2"
cortex-m-rt-macros = { path = "macros", version = "0.1.5" }
-[target.thumbv7em-none-eabihf.dev-dependencies]
-cortex-m-semihosting = "0.3.1"
-
-[target.thumbv7em-none-eabi.dev-dependencies]
-cortex-m-semihosting = "0.3.1"
-
-[target.thumbv7m-none-eabi.dev-dependencies]
-cortex-m-semihosting = "0.3.1"
-
-[target.thumbv6m-none-eabi.dev-dependencies]
-cortex-m-semihosting = "0.3.1"
-
[dev-dependencies]
cortex-m = "0.6"
panic-halt = "0.2.0"
+cortex-m-semihosting = "0.3"
[dev-dependencies.rand]
default-features = false
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();
- }
-}