From f2796239baf1b5883e007729e6064e144c443b56 Mon Sep 17 00:00:00 2001 From: Noam Preil Date: Fri, 21 Aug 2020 07:20:25 -0400 Subject: [PATCH] SPU-II: Fix logging in interp, remove JIT-compat code --- lib/std/spu/interpreter.zig | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/std/spu/interpreter.zig b/lib/std/spu/interpreter.zig index ed22b13099..66d75a5676 100644 --- a/lib/std/spu/interpreter.zig +++ b/lib/std/spu/interpreter.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const log = std.log.scoped(.SPU_2_Interpreter); usingnamespace @import("defines.zig"); pub fn Interpreter(comptime Bus: type) type { @@ -18,7 +19,7 @@ pub fn Interpreter(comptime Bus: type) type { count += 1; var instruction = @bitCast(Instruction, self.bus.read16(self.ip)); - std.log.debug(.SPU_2_Interpreter, "Executing {}\n", .{instruction}); + log.debug("Executing {}\n", .{instruction}); self.ip +%= 2; @@ -137,10 +138,6 @@ pub fn Interpreter(comptime Bus: type) type { }, .jump => { self.ip = output; - if (!(instruction.command == .copy and instruction.input0 == .immediate)) { - // Not absolute. Break, for compatibility with JIT. - break; - } }, else => return error.unimplemented, }