diff --git a/services/aes/src/lib.rs b/services/aes/src/lib.rs index bf2ff5052..044d2293a 100644 --- a/services/aes/src/lib.rs +++ b/services/aes/src/lib.rs @@ -31,15 +31,9 @@ mod vex; // library is patched into functions that are oblivious to these features. // so this library has to fall back on the legacy method of determining which build target // is being specified. -#[cfg(not(any( - all(target_arch = "riscv32", not(feature = "cramium-soc")), - not(feature = "vexii-test") -)))] +#[cfg(not(any(all(target_arch = "riscv32", not(feature = "cramium-soc")), feature = "vexii-test")))] pub use soft::Aes128Soft as Aes128; -#[cfg(not(any( - all(target_arch = "riscv32", not(feature = "cramium-soc")), - not(feature = "vexii-test") -)))] +#[cfg(not(any(all(target_arch = "riscv32", not(feature = "cramium-soc")), feature = "vexii-test")))] pub use soft::Aes256Soft as Aes256; #[cfg(all( all(target_arch = "riscv32", not(feature = "cramium-soc"), not(feature = "vexii-test")), diff --git a/services/spinor/src/lib.rs b/services/spinor/src/lib.rs index 315555835..9f681cd0c 100644 --- a/services/spinor/src/lib.rs +++ b/services/spinor/src/lib.rs @@ -27,6 +27,7 @@ use xous_ipc::Buffer; // Annotated onto this function; and we canreplace the ugly hex word with "cbo.flush 0({addr})" // while also losing the "mv a0, {addr}" that ensures that the argument ends // up where the .word expects it to be. +#[cfg(feature = "vexii-test")] pub unsafe fn flush_block(addr: usize) { core::arch::asm!( "mv a0, {addr}",