progress, still some TODO's before we can start running instructions. need to finish up the initial IO/mem then port the old assembler to DSAv2

This commit is contained in:
2026-03-06 03:52:37 +00:00
parent 29077adb38
commit fc972b9b7b
21 changed files with 768 additions and 226 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ use criterion::{
};
use std::time::Duration;
use dsa::RandomAccessMemory;
use dsa::{Page, RandomAccessMemory};
type PhysAddr = u32;
@@ -139,7 +139,7 @@ fn run_write_page(
addrs: &[PhysAddr],
implementations: &mut [(&str, Box<dyn RandomAccessMemory>)],
) {
let page_data = [0xABu8; 4096];
let page_data = Page::from([0xABu8; 4096]);
group.throughput(Throughput::Bytes(addrs.len() as u64 * 4096));
for (name, mem) in implementations.iter_mut() {
group.bench_with_input(BenchmarkId::new(*name, ""), addrs, |b, addrs| {