mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
remove AES bodges due to broken AES unit in MPW
This commit is contained in:
parent
ee3cae2a8b
commit
e3664738bc
2 changed files with 6 additions and 6 deletions
|
|
@ -21,4 +21,4 @@ vexii-test = []
|
|||
# Note: this default line should always be empty. If it has the 'cramium-soc' feature
|
||||
# checkd in, then AES acceleration gets disabled for all targets. This hack only exists
|
||||
# because in the MPW version of the silicon, HW AES in broken on the RV32.
|
||||
default = []
|
||||
default = ["cramium-soc"]
|
||||
|
|
|
|||
|
|
@ -31,9 +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")), feature = "vexii-test")))]
|
||||
#[cfg(not(any(all(target_arch = "riscv32", feature = "cramium-soc"), feature = "vexii-test")))]
|
||||
pub use soft::Aes128Soft as Aes128;
|
||||
#[cfg(not(any(all(target_arch = "riscv32", not(feature = "cramium-soc")), feature = "vexii-test")))]
|
||||
#[cfg(not(any(all(target_arch = "riscv32", 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")),
|
||||
|
|
@ -41,12 +41,12 @@ pub use soft::Aes256Soft as Aes256;
|
|||
))]
|
||||
pub use vex::{Aes128, Aes256};
|
||||
|
||||
#[cfg(feature = "vexii-test")]
|
||||
#[cfg(any(feature = "vexii-test", feature = "cramium-soc"))]
|
||||
mod zkn;
|
||||
#[cfg(feature = "vexii-test")]
|
||||
#[cfg(any(feature = "vexii-test", feature = "cramium-soc"))]
|
||||
// pub use soft::Aes128Soft as Aes128;
|
||||
pub use zkn::Aes128;
|
||||
#[cfg(feature = "vexii-test")]
|
||||
#[cfg(any(feature = "vexii-test", feature = "cramium-soc"))]
|
||||
pub use zkn::Aes256;
|
||||
|
||||
/// Size of an AES block (128-bits; 16-bytes)
|
||||
|
|
|
|||
Loading…
Reference in a new issue