From e093c21ed880ac3eb72119be15093ee04f8ce299 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 5 Mar 2024 19:50:13 -0500 Subject: Move architecture modules into the API repo --- arch/mips/il.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 arch/mips/il.h (limited to 'arch/mips/il.h') diff --git a/arch/mips/il.h b/arch/mips/il.h new file mode 100644 index 00000000..5c03f82b --- /dev/null +++ b/arch/mips/il.h @@ -0,0 +1,28 @@ +#pragma once + +#include "binaryninjaapi.h" +#include "lowlevelilinstruction.h" +#include "mips.h" + +enum MipsIntrinsic : uint32_t +{ + MIPS_INTRIN_WSBH, + MIPS_INTRIN_MFC0, + MIPS_INTRIN_MFC_UNIMPLEMENTED, + MIPS_INTRIN_MTC0, + MIPS_INTRIN_MTC_UNIMPLEMENTED, + MIPS_INTRIN_DMFC0, + MIPS_INTRIN_DMFC_UNIMPLEMENTED, + MIPS_INTRIN_DMTC0, + MIPS_INTRIN_DMTC_UNIMPLEMENTED, + MIPS_INTRIN_INVALID=0xFFFFFFFF, +}; + +bool GetLowLevelILForInstruction( + BinaryNinja::Architecture* arch, + uint64_t addr, + BinaryNinja::LowLevelILFunction& il, + mips::Instruction& instr, + size_t addrSize); + +BinaryNinja::ExprId GetConditionForInstruction(BinaryNinja::LowLevelILFunction& il, mips::Instruction& instr, size_t registerSize); -- cgit v1.3.1