Skip to content

Commit 909a68b

Browse files
authored
Merge pull request #276 from romancardenas/master
Revert riscv elements and unstable-riscv feature
2 parents b6c183e + f7f47bf commit 909a68b

File tree

21 files changed

+8
-1060
lines changed

21 files changed

+8
-1060
lines changed

svd-encoder/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## Unreleased
99

10+
- Revert the `riscv` element, as well as the `unstable-riscv` feature.
11+
1012
## [v0.14.5] - 2023-08-20
1113

1214
- Adapt the `riscv` element to handle `riscv::Exception`.

svd-encoder/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ rust-version = "1.65.0"
1111
version = "0.14.5"
1212
readme = "README.md"
1313

14-
[features]
15-
unstable-riscv = ["svd-rs/unstable-riscv"]
16-
1714
[dependencies]
1815
convert_case = "0.6.0"
1916
svd-rs = { version = "0.14.9", path = "../svd-rs" }

svd-encoder/src/device.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ impl Encode for Device {
3434
elem.children.push(new_node("licenseText", v.clone()));
3535
}
3636

37-
#[cfg(feature = "unstable-riscv")]
38-
if let Some(v) = &self.riscv {
39-
elem.children
40-
.push(XMLNode::Element(v.encode_with_config(config)?));
41-
}
42-
4337
if let Some(v) = &self.cpu {
4438
elem.children
4539
.push(XMLNode::Element(v.encode_with_config(config)?));

svd-encoder/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,5 @@ mod readaction;
103103
mod register;
104104
mod registercluster;
105105
mod registerproperties;
106-
#[cfg(feature = "unstable-riscv")]
107-
mod riscv;
108106
mod usage;
109107
mod writeconstraint;

svd-encoder/src/riscv.rs

Lines changed: 0 additions & 95 deletions
This file was deleted.

svd-parser/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
- Revert the `riscv` element, as well as the `unstable-riscv` feature.
11+
812
## [v0.14.7] - 2024-10-03
913

1014
- Bump svd-rs to 0.14.9

svd-parser/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ readme = "README.md"
1717
[features]
1818
derive-from = ["svd-rs/derive-from"]
1919
expand = ["derive-from"]
20-
unstable-riscv = ["svd-rs/unstable-riscv"]
2120

2221
[dependencies]
2322
svd-rs = { version = "0.14.9", path = "../svd-rs" }

svd-parser/src/device.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
use super::*;
2-
#[cfg(feature = "unstable-riscv")]
3-
use crate::svd::riscv::Riscv;
42
use crate::svd::{cpu::Cpu, peripheral::Peripheral, registerproperties::RegisterProperties};
53

64
/// Parses a SVD file
@@ -33,10 +31,6 @@ impl Parse for Device {
3331
.collect();
3432
ps?
3533
});
36-
#[cfg(feature = "unstable-riscv")]
37-
if let Some(riscv) = optional::<Riscv>("riscv", tree, config)? {
38-
device = device.riscv(riscv);
39-
}
4034
if let Some(version) = tree.get_child_text_opt("version")? {
4135
device = device.version(version)
4236
}

svd-parser/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ mod readaction;
211211
mod register;
212212
mod registercluster;
213213
mod registerproperties;
214-
#[cfg(feature = "unstable-riscv")]
215-
mod riscv;
216214
mod usage;
217215
mod writeconstraint;
218216

svd-parser/src/riscv.rs

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)