Changes to remove hard-coding of MAP_SIZE_POW2 when inline instrumentation is disabled

This commit is contained in:
Your Name 2021-08-12 17:42:11 +01:00
parent cfbff436a5
commit d2d7585db5

View File

@ -116,8 +116,8 @@ __attribute__((hot)) static void on_basic_block(GumCpuContext *context,
}
instrument_previous_pc =
((current_pc & (MAP_SIZE - 1) >> 1)) | ((current_pc & 0x1) << 15);
instrument_previous_pc = ((current_pc & (MAP_SIZE - 1) >> 1)) |
((current_pc & 0x1) << (MAP_SIZE_POW2 - 1));
}