mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
sv2utra: fix no_std attribute generation
We only need `no_std` when building for embedded platforms, and it no longer goes inside the library file. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
422789eda7
commit
da50dffa94
1 changed files with 5 additions and 6 deletions
|
|
@ -37,15 +37,15 @@ pub struct Peripheral {
|
||||||
|
|
||||||
#[derive(Default, Debug)]
|
#[derive(Default, Debug)]
|
||||||
pub struct MemoryRegion {
|
pub struct MemoryRegion {
|
||||||
name: String,
|
pub name: String,
|
||||||
base: usize,
|
pub base: usize,
|
||||||
size: usize,
|
pub size: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug)]
|
#[derive(Default, Debug)]
|
||||||
pub struct Description {
|
pub struct Description {
|
||||||
peripherals: Vec<Peripheral>,
|
pub peripherals: Vec<Peripheral>,
|
||||||
memory_regions: Vec<MemoryRegion>,
|
pub memory_regions: Vec<MemoryRegion>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_base(value: &str) -> (&str, u32) {
|
pub fn get_base(value: &str) -> (&str, u32) {
|
||||||
|
|
@ -359,7 +359,6 @@ fn parse_vendor_extensions<T: BufRead>(
|
||||||
|
|
||||||
fn print_header<U: Write>(out: &mut U) -> std::io::Result<()> {
|
fn print_header<U: Write>(out: &mut U) -> std::io::Result<()> {
|
||||||
let s = r####"
|
let s = r####"
|
||||||
#![cfg_attr(target_os = "none", no_std)]
|
|
||||||
use core::convert::TryInto;
|
use core::convert::TryInto;
|
||||||
pub struct Register {
|
pub struct Register {
|
||||||
/// Offset of this register within this CSR
|
/// Offset of this register within this CSR
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue