Skip to content

Commit

Permalink
Merge pull request #8984 from cocoa-xu/cx-arm64-windows-jit
Browse files Browse the repository at this point in the history
win32(arm64): call the function pointer used by erts_sys_perf_counter
  • Loading branch information
garazdawi authored Oct 24, 2024
2 parents 2f8b8a2 + bdd5c26 commit 0b6fe48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions erts/emulator/beam/jit/arm/instr_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3109,7 +3109,14 @@ void BeamModuleAssembler::emit_i_perf_counter() {
Label next = a.newLabel(), small = a.newLabel();

emit_enter_runtime_frame();

#ifdef WIN32
/* Call the function pointer used by erts_sys_perf_counter */
runtime_call<0>(erts_sys_time_data__.r.o.sys_hrtime);
#else
runtime_call<0>(erts_sys_time_data__.r.o.perf_counter);
#endif

emit_leave_runtime_frame();

a.asr(TMP1, ARG1, imm(SMALL_BITS - 1));
Expand Down

0 comments on commit 0b6fe48

Please sign in to comment.