mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
un-break hosted mode
This commit is contained in:
parent
5ab0c0b426
commit
906882be71
2 changed files with 6 additions and 2 deletions
|
|
@ -20,8 +20,10 @@ pub(crate) const RF_TOTAL_U8_SIZE: usize = 0x4000;
|
|||
|
||||
pub(crate) const NUM_REGS: usize = 32;
|
||||
pub(crate) const BITWIDTH: usize = 256;
|
||||
#[allow(dead_code)] // not used in hosted
|
||||
pub(crate) const NUM_WINDOWS: usize = 16;
|
||||
pub const RF_SIZE_IN_U32: usize = NUM_REGS*(BITWIDTH/32); // 32 registers, 256 bits/register/32 bits per u32
|
||||
#[allow(dead_code)] // not used in hosted
|
||||
pub const TOTAL_RF_SIZE_IN_U32: usize = NUM_REGS*(BITWIDTH/32)*NUM_WINDOWS; // 32 registers, 256 bits/register/32 bits per u32, times 16 windows
|
||||
|
||||
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize, Clone, Copy)]
|
||||
|
|
|
|||
|
|
@ -350,13 +350,13 @@ mod implementation {
|
|||
// a stub to try to avoid breaking hosted mode for as long as possible.
|
||||
#[cfg(not(target_os = "none"))]
|
||||
mod implementation {
|
||||
use log::info;
|
||||
use crate::api::*;
|
||||
|
||||
pub struct Engine25519Hw {
|
||||
}
|
||||
|
||||
impl Engine25519Hw {
|
||||
pub fn new() -> Engine25519Hw {
|
||||
pub fn new(_handler_conn: xous::CID) -> Engine25519Hw {
|
||||
Engine25519Hw {
|
||||
}
|
||||
}
|
||||
|
|
@ -369,6 +369,8 @@ mod implementation {
|
|||
pub fn get_result(&mut self) -> JobResult {
|
||||
JobResult::IllegalOpcodeException
|
||||
}
|
||||
pub fn power_on(&mut self, _on: bool) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue