From: Jacob Lifshay Date: Fri, 4 Sep 2020 03:28:56 +0000 (-0700) Subject: fix addex again X-Git-Tag: v0.2.0~16 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bce7c6473ae6c133b0dd8db17bbeb229cb193439;p=power-instruction-analyzer.git fix addex again --- diff --git a/src/instr_models.rs b/src/instr_models.rs index 4de58fe..2fee3db 100644 --- a/src/instr_models.rs +++ b/src/instr_models.rs @@ -263,7 +263,7 @@ pub fn subfzeo(inputs: InstructionInput) -> InstructionResult { pub fn addex(inputs: InstructionInput) -> InstructionResult { let ra: u64 = inputs.try_get_ra()?; - let rb: u64 = inputs.try_get_ra()?; + let rb: u64 = inputs.try_get_rb()?; let OverflowFlags { ov: carry_in, so, .. } = inputs.try_get_overflow()?;