Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Mar 14, 2024
1 parent 136a5e0 commit a226f38
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/hotspot/cpu/riscv/nativeInst_riscv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,6 @@ class NativeInstruction {
static bool is_load_pc_relative_at(address branch);

static bool is_call_at(address instr) {
const int instr_size = NativeInstruction::instruction_size;
uint32_t top = Assembler::ld_instr(instr);
uint32_t low = Assembler::ld_instr(instr + instr_size);
uint32_t magic = Assembler::ld_instr(instr + (2 * instr_size));

printf("===>> %x %x %x <<==\n", top, low, magic);
if (magic == 0xababababu) {
return true;
}
if (is_jal_at(instr) || is_jalr_at(instr)) {
return true;
}
Expand Down Expand Up @@ -280,10 +271,10 @@ inline NativeCall* nativeCall_at(address addr);
class NativeCall: public NativeInstruction {
public:
enum RISCV_specific_constants {
instruction_size = 4,
instruction_size = NativeInstruction::instruction_size,
instruction_offset = 0,
displacement_offset = 0,
return_address_offset = 4
return_address_offset = NativeInstruction::instruction_size
};

address instruction_address() const { return addr_at(instruction_offset); }
Expand Down

0 comments on commit a226f38

Please sign in to comment.