Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Feb 13, 2024
1 parent 3af1c6d commit 9906d3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hotspot/os_cpu/linux_riscv/os_linux_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,9 @@ extern "C" {
int SpinPause() {
if (UseZihintpause) {
// PAUSE is encoded as a FENCE instruction with pred=W, succ=0, fm=0, rd=x0, and rs1=x0.
// fence w, 0
// To do: __asm__ volatile("pause " : : : );
// We need to compile against march with zihintpause.
// Currently we do not.
// Since we're currently not passing '-march=..._zihintpause' to the compiler,
// it will not recognize the "pause" instruction, hence the hard-coded instruction.
__asm__ volatile(".word 0x0100000f " : : : );
return 1;
}
Expand Down

0 comments on commit 9906d3f

Please sign in to comment.