fix hosted mode

This commit is contained in:
bunnie 2025-07-22 01:43:58 +08:00
parent ee5bf1fccf
commit c0735374f0
2 changed files with 3 additions and 8 deletions

View file

@ -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")),

View file

@ -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}",