Add support for address-aligned-mode

This commit is contained in:
2023-12-11 18:52:16 +01:00
parent beaa224252
commit d519d9a37b
4 changed files with 139 additions and 40 deletions

8
pim-os/src/boot.rs Normal file
View File

@@ -0,0 +1,8 @@
use core::arch::global_asm;
global_asm!(include_str!("start.s"));
extern "C" {
pub fn set_page_table_cache();
pub fn set_page_table_non_cache();
}

View File

@@ -3,20 +3,21 @@ use pim_isa::{File, Instruction, Kernel};
pub const TEST_KERNEL: Kernel = Kernel([
Instruction::MOV {
src: File::Bank,
dst: File::Grf { index: 0 },
dst: File::GrfA { index: 0 },
},
Instruction::MOV {
src: File::Bank,
dst: File::Grf { index: 1 },
dst: File::GrfA { index: 1 },
},
Instruction::MAC {
src0: File::Grf { index: 0 },
src1: File::Bank,
src2: File::Grf { index: 1 },
dst: File::Grf { index: 1 },
src0: File::Bank,
src1: File::GrfA { index: 0 },
src2: File::GrfA { index: 1 },
dst: File::GrfA { index: 1 },
aam: false
},
Instruction::FILL {
src: File::Grf { index: 1 },
src: File::GrfA { index: 1 },
dst: File::Bank,
},
Instruction::EXIT,