Implement Rust MLCore driver and remove C driver.

This change adds the kata-ml-core crate. vc_top is generated
programatically, with the script going to be reviewed next if the format here
looks good. The library replaces the VectorCoreDriver c-code.

Change-Id: Id3f083e2498ea29481db49af5e87d47fe8414a71
GitOrigin-RevId: 40d43b0288e995d215997fc8973e18a41a4d5844
This commit is contained in:
Adam Jesionowski
2021-12-02 21:41:27 +00:00
committed by Sam Leffler
parent a9bdb64616
commit acdd562e40
14 changed files with 415 additions and 188 deletions

View File

@@ -3,3 +3,16 @@
pub trait MlCoordinatorInterface {
fn execute(&mut self);
}
pub trait MlCoreInterface {
fn enable_interrupts(&mut self, enabled: bool);
fn clear_tcm(&mut self, start: *const u32, len: usize);
fn run(&mut self);
fn load_elf(&mut self, elf_slice: &[u8]) -> Result<(), &'static str>;
fn get_return_code() -> u32;
fn get_fault_register() -> u32;
fn clear_host_req();
fn clear_finish();
fn clear_instruction_fault();
fn clear_data_fault();
}