Skip to content

Commit

Permalink
Fix Windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Senryoku committed Nov 15, 2024
1 parent a7ba027 commit 5b205e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jit/sh4_virtual_address_space_windows.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const std = @import("std");
const windows = std.os.windows;
const windows = @import("../windows.zig");
const termcolor = @import("termcolor");
const Dreamcast = @import("../dreamcast.zig");
const Dreamcast = @import("../dreamcast.zig").Dreamcast;
const Architecture = @import("x86_64.zig");
const VAS = @import("sh4_virtual_address_space.zig");

Expand Down Expand Up @@ -117,7 +117,7 @@ fn handle_segfault_windows(info: *std.os.windows.EXCEPTION_POINTERS) callconv(st

VAS.patch_access(fault_address, @intFromPtr(GLOBAL_VIRTUAL_ADDRESS_SPACE_BASE), 0x1_0000_0000, &info.ContextRecord.Rip) catch |err| {
std.log.scoped(.sh4_jit).err("Failed to patch FastMem access: {s}", .{@errorName(err)});
return windows.EXCEPTION_CONTINUE_SEARCH;
return std.os.windows.EXCEPTION_CONTINUE_SEARCH;
};

return windows.EXCEPTION_CONTINUE_EXECUTION;
Expand Down

0 comments on commit 5b205e1

Please sign in to comment.