diff --git a/gef.py b/gef.py index b6c774f69..bd5eb8796 100644 --- a/gef.py +++ b/gef.py @@ -2607,7 +2607,7 @@ def long_to_twos_complement(v: int) -> int: if rs1 <= rs2: taken, reason = True, f"{rs1}<={rs2}" else: taken, reason = False, f"{rs1}>{rs2}" elif condition == "ge": - if rs1 < rs2: taken, reason = True, f"{rs1}>={rs2}" + if rs1 >= rs2: taken, reason = True, f"{rs1}>={rs2}" else: taken, reason = False, f"{rs1}<{rs2}" else: raise OSError(f"RISC-V: Conditional instruction `{insn}` not supported yet")