From 53fb1d163b3a39d4a2c78973be62df063ca234a3 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 13 Apr 2023 22:14:47 -0500 Subject: [PATCH] fix(cpu): respond to latest changes to comptime semantics --- src/core/cpu.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/cpu.zig b/src/core/cpu.zig index e005c9e..de13e08 100644 --- a/src/core/cpu.zig +++ b/src/core/cpu.zig @@ -39,7 +39,7 @@ pub const arm = struct { } fn populate() [0x1000]InstrFn { - comptime { + return comptime comptime_blk: { @setEvalBranchQuota(0xE000); var table = [_]InstrFn{und} ** 0x1000; @@ -106,8 +106,8 @@ pub const arm = struct { }; } - return table; - } + break :comptime_blk table; + }; } }; @@ -135,7 +135,7 @@ pub const thumb = struct { } fn populate() [0x400]InstrFn { - comptime { + return comptime comptime_blk: { @setEvalBranchQuota(5025); // This is exact var table = [_]InstrFn{und} ** 0x400; @@ -228,8 +228,8 @@ pub const thumb = struct { }; } - return table; - } + break :comptime_blk table; + }; } };