feat: add v5te arm and thumb namespaces

also, drop the comptime parameter from arm and thumb namespaces
This commit is contained in:
2023-07-17 23:16:31 -05:00
parent 2af9c351bc
commit 96a3a45d9b
3 changed files with 441 additions and 210 deletions

View File

@@ -40,8 +40,15 @@ pub fn Arm32(comptime arch: Architecture) type {
bank: Bank = Bank.create(),
const arm = @import("arm/v4t.zig").arm(Self);
const thumb = @import("arm/v4t.zig").thumb(Self);
const arm = switch (arch) {
.v4t => @import("arm/v4t.zig").arm,
.v5te => @import("arm/v5te.zig").arm,
};
const thumb = switch (arch) {
.v4t => @import("arm/v4t.zig").thumb,
.v5te => @import("arm/v5te.zig").thumb,
};
const Pipeline = struct {
stage: [2]?u32,