MCPcopy Index your code
hub / github.com/encounter/objdiff / parse_ins_ref

Method parse_ins_ref

objdiff-core/src/arch/ppc/mod.rs:80–87  ·  view source on GitHub ↗
(&self, resolved: ResolvedInstructionRef)

Source from the content-addressed store, hash-verified

78 }
79
80 fn parse_ins_ref(&self, resolved: ResolvedInstructionRef) -> Result<powerpc::Ins> {
81 let mut code = u32::from_be_bytes(resolved.code.try_into()?);
82 if let Some(reloc) = resolved.relocation {
83 code = zero_reloc(code, reloc.relocation);
84 }
85 let op = powerpc::Opcode::from(resolved.ins_ref.opcode);
86 Ok(powerpc::Ins { code, op })
87 }
88
89 fn find_reloc_arg(
90 &self,

Callers 3

display_instructionMethod · 0.45
instruction_hoverMethod · 0.45
instruction_contextMethod · 0.45

Calls 1

zero_relocFunction · 0.85

Tested by

no test coverage detected