feat: add v5te arm and thumb namespaces
also, drop the comptime parameter from arm and thumb namespaces
This commit is contained in:
11
src/arm.zig
11
src/arm.zig
@@ -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,
|
||||
|
Reference in New Issue
Block a user