mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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.
|
// 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
|
// so this library has to fall back on the legacy method of determining which build target
|
||||||
// is being specified.
|
// is being specified.
|
||||||
#[cfg(not(any(
|
#[cfg(not(any(all(target_arch = "riscv32", not(feature = "cramium-soc")), feature = "vexii-test")))]
|
||||||
all(target_arch = "riscv32", not(feature = "cramium-soc")),
|
|
||||||
not(feature = "vexii-test")
|
|
||||||
)))]
|
|
||||||
pub use soft::Aes128Soft as Aes128;
|
pub use soft::Aes128Soft as Aes128;
|
||||||
#[cfg(not(any(
|
#[cfg(not(any(all(target_arch = "riscv32", not(feature = "cramium-soc")), feature = "vexii-test")))]
|
||||||
all(target_arch = "riscv32", not(feature = "cramium-soc")),
|
|
||||||
not(feature = "vexii-test")
|
|
||||||
)))]
|
|
||||||
pub use soft::Aes256Soft as Aes256;
|
pub use soft::Aes256Soft as Aes256;
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
all(target_arch = "riscv32", not(feature = "cramium-soc"), not(feature = "vexii-test")),
|
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})"
|
// 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
|
// while also losing the "mv a0, {addr}" that ensures that the argument ends
|
||||||
// up where the .word expects it to be.
|
// up where the .word expects it to be.
|
||||||
|
#[cfg(feature = "vexii-test")]
|
||||||
pub unsafe fn flush_block(addr: usize) {
|
pub unsafe fn flush_block(addr: usize) {
|
||||||
core::arch::asm!(
|
core::arch::asm!(
|
||||||
"mv a0, {addr}",
|
"mv a0, {addr}",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue