feat: integrate cp15 and TCM code

This commit is contained in:
2023-09-15 14:18:40 -05:00
parent 71541c312c
commit 30cf951d2a
3 changed files with 125 additions and 29 deletions

View File

@@ -38,6 +38,8 @@ pub const arm = struct {
return comptime comptime_blk: {
@setEvalBranchQuota(0xE000);
var table = [_]InstrFn{und} ** 0x1000;
// op : 27 26 25 24 23 22 21 20 07 06 05 04
// idx: 11 10 09 08 07 06 05 04 03 02 01 00
for (&table, 0..) |*handler, i| {
handler.* = switch (@as(u2, i >> 10)) {