mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix hosted mode
This commit is contained in:
parent
ee5bf1fccf
commit
c0735374f0
2 changed files with 3 additions and 8 deletions
|
|
@ -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")),
|
||||
|
|
|
|||
|
|
@ -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}",
|
||||
|
|
|
|||
Loading…
Reference in a new issue