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

Method instruction_flags

objdiff-core/src/arch/mips.rs:160–182  ·  view source on GitHub ↗
(&self, diff_config: &DiffObjConfig)

Source from the content-addressed store, hash-verified

158 }
159
160 fn instruction_flags(&self, diff_config: &DiffObjConfig) -> rabbitizer::InstructionFlags {
161 let isa_extension = match diff_config.mips_instr_category {
162 MipsInstrCategory::Auto => self.isa_extension,
163 MipsInstrCategory::Cpu => None,
164 MipsInstrCategory::Rsp => Some(IsaExtension::RSP),
165 MipsInstrCategory::R3000gte => Some(IsaExtension::R3000GTE),
166 MipsInstrCategory::R4000allegrex => Some(IsaExtension::R4000ALLEGREX),
167 MipsInstrCategory::R5900 => Some(IsaExtension::R5900EE),
168 };
169 match isa_extension {
170 Some(extension) => rabbitizer::InstructionFlags::new_extension(extension),
171 None => rabbitizer::InstructionFlags::new(IsaVersion::MIPS_III),
172 }
173 .with_abi(match diff_config.mips_abi {
174 MipsAbi::Auto => self.abi,
175 MipsAbi::O32 => Abi::O32,
176 MipsAbi::O64 => Abi::O64,
177 MipsAbi::N32 => Abi::N32,
178 MipsAbi::N64 => Abi::N64,
179 MipsAbi::Eabi32 => Abi::EABI32,
180 MipsAbi::Eabi64 => Abi::EABI64,
181 })
182 }
183
184 fn instruction_display_flags(
185 &self,

Callers 2

parse_ins_refMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected