Fix QDB bug where prophecy target could be None

This commit is contained in:
elicn
2025-02-20 13:17:25 +02:00
parent 857addc267
commit b25c910f92
@@ -244,8 +244,8 @@ class BranchPredictorARM(BranchPredictor, ArchARM):
_, r = line.op_str.split(", ")
prophecy.where = self.read_reg(r)
if prophecy.where & 1:
prophecy.where -= 1
if prophecy.where is not None:
prophecy.where &= ~0b1
return prophecy