We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3030230 commit 929d4a5Copy full SHA for 929d4a5
src/hotspot/cpu/riscv/sharedRuntime_riscv.cpp
@@ -2553,17 +2553,18 @@ SafepointBlob* SharedRuntime::generate_handler_blob(SharedStubId id, address cal
2553
// Verify the correct encoding of the poll we're about to skip.
2554
// See NativeInstruction::is_lwu_to_zr()
2555
__ lwu(t0, Address(x18));
2556
- __ andi(t1, t0, 0b0000011);
+ __ andi(t1, t0, 0b1111111);
2557
__ mv(t2, 0b0000011);
2558
__ bne(t1, t2, bail); // 0-6:0b0000011
2559
__ srli(t1, t0, 7);
2560
- __ andi(t1, t1, 0b00000);
+ __ andi(t1, t1, 0b11111);
2561
__ bnez(t1, bail); // 7-11:0b00000
2562
__ srli(t1, t0, 12);
2563
- __ andi(t1, t1, 0b110);
+ __ andi(t1, t1, 0b111);
2564
__ mv(t2, 0b110);
2565
__ bne(t1, t2, bail); // 12-14:0b110
2566
#endif
2567
+
2568
// Adjust return pc forward to step over the safepoint poll instruction
2569
__ add(x18, x18, NativeInstruction::instruction_size);
2570
__ sd(x18, Address(fp, frame::return_addr_offset * wordSize));
0 commit comments