Skip to content

Commit

Permalink
backend/hypervisor: Update SimpleMemorySizeDetector.java
Browse files Browse the repository at this point in the history
  • Loading branch information
zhkl0228 committed May 13, 2024
1 parent e216722 commit c757c47
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ public int detectReadSize(Disassembler disassembler, byte[] code, long pc) {
size = 8;
break;
}
case "ldp":
if (insn.getOpStr().startsWith("w")) {
size = 8;
break;
}
if (insn.getOpStr().startsWith("x")) {
size = 16;
break;
}
break;
default:
log.info("onHit: insn=" + insn);
break;
Expand Down

0 comments on commit c757c47

Please sign in to comment.