Update Zig bindings to Zig 0.12.0 (#1951)
* update zig bindings to Zig 0.12.0 * support zig package manager * Fix zig macos ci build * Make the macos build use 1 process instead of hitting the macos process limit immediately, utilize the build.zig `-Dparallel false` option for macos ci * Split the macos ci into a new build stage (out of the ubuntu, macos build maxtrix), to allow for multiple architecture builds in the future after the zig bindings improve
This commit is contained in:
@@ -38,8 +38,8 @@ fn hook_code3(uc: ?*unicornC.uc_engine, address: u64, size: u32, user_data: ?*an
|
||||
fn hook_memalloc(uc: ?*unicornC.uc_engine, @"type": unicornC.uc_mem_type, address: u64, size: u32, user_data: ?*anyopaque) callconv(.C) bool {
|
||||
_ = user_data;
|
||||
_ = @"type";
|
||||
var algined_address = address & 0xFFFFFFFFFFFFF000;
|
||||
var aligned_size = (@as(u32, @intCast(size / 0x1000)) + 1) * 0x1000;
|
||||
const algined_address = address & 0xFFFFFFFFFFFFF000;
|
||||
const aligned_size = (@as(u32, @intCast(size / 0x1000)) + 1) * 0x1000;
|
||||
|
||||
log.info(">>> Allocating block at 0x{} (0x{}), block size = 0x{} (0x{})", .{ address, algined_address, size, aligned_size });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user