Skip to content

Commit e849c04

Browse files
committed
[cpu] Remove spurious calls to Address::from().
1 parent a6b4c6f commit e849c04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpu/src/control.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,13 +1053,13 @@ impl ControlUnit {
10531053
fn estimate_execute_time_ns(&self, orig_inst: &Instruction) -> u64 {
10541054
let inst_from: Address = self.regs.p; // this is now P+1 but likely in the same memory type.
10551055
let defer_from = match orig_inst.operand_address().split() {
1056-
(true, physical) => Some(Address::from(physical)),
1056+
(true, physical) => Some(physical),
10571057
(false, _) => None,
10581058
};
10591059

10601060
// TODO: handle chains of deferred loads
10611061
let operand_from: Option<Address> = match self.regs.n.operand_address().split() {
1062-
(true, physical) => Some(Address::from(physical)),
1062+
(true, physical) => Some(physical),
10631063
(false, _) => None,
10641064
};
10651065

0 commit comments

Comments
 (0)