Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Mar 8, 2024
1 parent 51a5ac9 commit d6e69c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/hotspot/cpu/riscv/macroAssembler_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3148,7 +3148,6 @@ void MacroAssembler::atomic_cas(
}

void MacroAssembler::far_jump(const Address &entry, Register tmp) {
assert(ReservedCodeCacheSize < 4*G, "branch out of range");
assert(CodeCache::find_blob(entry.target()) != nullptr,
"destination of far call not found in code cache");
assert(entry.rspec().type() == relocInfo::external_word_type
Expand All @@ -3163,7 +3162,6 @@ void MacroAssembler::far_jump(const Address &entry, Register tmp) {
}

void MacroAssembler::far_call(const Address &entry, Register tmp) {
assert(ReservedCodeCacheSize < 4*G, "branch out of range");
assert(CodeCache::find_blob(entry.target()) != nullptr,
"destination of far call not found in code cache");
assert(entry.rspec().type() == relocInfo::external_word_type
Expand Down
4 changes: 3 additions & 1 deletion src/hotspot/cpu/riscv/macroAssembler_riscv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,9 @@ class MacroAssembler: public Assembler {
assert_cond(dest != nullptr);
assert(temp != noreg, "expecting a register");
int32_t offset = 0;
la(temp, dest, offset);
// la(temp, dest, offset);
bool mustbe = la_relative(temp, dest, offset);
assert(mustbe, "Must be");
jalr(x1, temp, offset);
}

Expand Down

0 comments on commit d6e69c2

Please sign in to comment.