@@ -379,7 +379,7 @@ void MacroAssembler::_verify_oop(Register reg, const char* s, const char* file,
379379
380380 mv (c_rarg0, reg); // c_rarg0 : x10
381381 // The length of the instruction sequence emitted should be independent
382- // of the values of the local char buffer address so that the size of mach
382+ // of the value of the local char buffer address so that the size of mach
383383 // nodes for scratch emit and normal emit matches.
384384 mv (t0, (address)b);
385385
@@ -418,7 +418,7 @@ void MacroAssembler::_verify_oop_addr(Address addr, const char* s, const char* f
418418 }
419419
420420 // The length of the instruction sequence emitted should be independent
421- // of the values of the local char buffer address so that the size of mach
421+ // of the value of the local char buffer address so that the size of mach
422422 // nodes for scratch emit and normal emit matches.
423423 mv (t0, (address)b);
424424
@@ -535,17 +535,9 @@ void MacroAssembler::resolve_jobject(Register value, Register thread, Register t
535535}
536536
537537void MacroAssembler::stop (const char * msg) {
538- address ip = pc ();
539- pusha ();
540- // The length of the instruction sequence emitted should be independent
541- // of the values of msg and ip so that the size of mach nodes for scratch
542- // emit and normal emit matches.
543- mv (c_rarg0, (address)msg);
544- mv (c_rarg1, (address)ip);
545- mv (c_rarg2, sp);
546- mv (c_rarg3, CAST_FROM_FN_PTR (address, MacroAssembler::debug64));
547- jalr (c_rarg3);
548- ebreak ();
538+ BLOCK_COMMENT (msg);
539+ illegal_instruction (Assembler::csr::time);
540+ emit_int64 ((uintptr_t )msg);
549541}
550542
551543void MacroAssembler::unimplemented (const char * what) {
@@ -1119,18 +1111,6 @@ void MacroAssembler::pop_call_clobbered_registers_except(RegSet exclude) {
11191111 pop_reg (RegSet::of (x7) + RegSet::range (x10, x17) + RegSet::range (x28, x31) - exclude, sp);
11201112}
11211113
1122- // Push all the integer registers, except zr(x0) & sp(x2) & gp(x3) & tp(x4).
1123- void MacroAssembler::pusha () {
1124- CompressibleRegion cr (this );
1125- push_reg (0xffffffe2 , sp);
1126- }
1127-
1128- // Pop all the integer registers, except zr(x0) & sp(x2) & gp(x3) & tp(x4).
1129- void MacroAssembler::popa () {
1130- CompressibleRegion cr (this );
1131- pop_reg (0xffffffe2 , sp);
1132- }
1133-
11341114void MacroAssembler::push_CPU_state (bool save_vectors, int vector_size_in_bytes) {
11351115 CompressibleRegion cr (this );
11361116 // integer registers, except zr(x0) & ra(x1) & sp(x2) & gp(x3) & tp(x4)
@@ -2936,9 +2916,7 @@ address MacroAssembler::emit_trampoline_stub(int insts_call_instruction_offset,
29362916 // with the call instruction at insts_call_instruction_offset in the
29372917 // instructions code-section.
29382918
2939- // make sure 4 byte aligned here, so that the destination address would be
2940- // 8 byte aligned after 3 instructions
2941- // when we reach here we may get a 2-byte alignment so need to align it
2919+ // Make sure the address of destination 8-byte aligned after 3 instructions.
29422920 align (wordSize, NativeCallTrampolineStub::data_offset);
29432921
29442922 relocate (trampoline_stub_Relocation::spec (code ()->insts ()->start () +
0 commit comments