Nightly opts

soft-float
Erin 2023-07-26 20:54:24 +02:00
parent 37a1923f1e
commit 582c716445
4 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ lto = true
[features]
default = ["alloc"]
alloc = []
nightly = []
[dependencies]
delegate = "0.9"

View File

@ -12,6 +12,8 @@
#![no_std]
#![cfg_attr(feature = "nightly", feature(fn_align))]
#[cfg(feature = "alloc")]
extern crate alloc;
@ -90,6 +92,7 @@ impl<'a, PfHandler: HandlePageFault, const TIMER_QUOTIENT: usize>
/// Execute program
///
/// Program can return [`VmRunError`] if a trap handling failed
#[cfg_attr(feature = "nightly", repr(align(4096)))]
pub fn run(&mut self) -> Result<VmRunOk, VmRunError> {
use hbbytecode::opcode::*;
loop {

View File

@ -26,6 +26,7 @@ pub struct BlockCopier {
}
impl BlockCopier {
#[inline]
pub fn new(src: u64, dst: u64, count: usize) -> Self {
Self {
src,

View File

@ -310,6 +310,7 @@ struct AddrPageLookuper {
impl AddrPageLookuper {
/// Create a new page lookuper
#[inline]
pub const fn new(addr: u64, size: usize, pagetable: *const PageTable) -> Self {
Self {
addr,