SPU-II: Fix logging in interp, remove JIT-compat code

This commit is contained in:
Noam Preil
2020-08-21 07:20:25 -04:00
committed by Andrew Kelley
parent 3a9af0c88b
commit f2796239ba

View File

@@ -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,
}