From 5f7d940fde2d4d03c6e6752b29d18e057478a364 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Thu, 18 Aug 2016 18:21:16 +0100 Subject: [PATCH] disassemble_arm: Partially implement coprocessor and hint instructions --- .../disassembler/disassembler_arm.cpp | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/frontend/disassembler/disassembler_arm.cpp b/src/frontend/disassembler/disassembler_arm.cpp index 7ee9b042..20bc4a64 100644 --- a/src/frontend/disassembler/disassembler_arm.cpp +++ b/src/frontend/disassembler/disassembler_arm.cpp @@ -126,13 +126,13 @@ public: } // Coprocessor instructions - std::string arm_CDP() { return ""; } - std::string arm_LDC() { return ""; } - std::string arm_MCR() { return ""; } - std::string arm_MCRR() { return ""; } - std::string arm_MRC() { return ""; } - std::string arm_MRRC() { return ""; } - std::string arm_STC() { return ""; } + std::string arm_CDP() { return "cdp "; } + std::string arm_LDC() { return "ldc "; } + std::string arm_MCR() { return "mcr "; } + std::string arm_MCRR() { return "mcrr "; } + std::string arm_MRC() { return "mrc "; } + std::string arm_MRRC() { return "mrrc "; } + std::string arm_STC() { return "stc "; } // Data processing instructions std::string arm_ADC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm8 imm8) { @@ -330,11 +330,11 @@ public: } // Hint instructions - std::string arm_PLD() { return ""; } - std::string arm_SEV() { return ""; } - std::string arm_WFE() { return ""; } - std::string arm_WFI() { return ""; } - std::string arm_YIELD() { return ""; } + std::string arm_PLD() { return "pld "; } + std::string arm_SEV() { return "sev "; } + std::string arm_WFE() { return "wfe "; } + std::string arm_WFI() { return "wfi "; } + std::string arm_YIELD() { return "yield "; } // Load/Store instructions std::string arm_LDR_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm12 imm12) {