aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/Disassembler
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2013-02-14 03:05:25 +0000
committerReed Kotler <rkotler@mips.com>2013-02-14 03:05:25 +0000
commit38f85c5b9f2e2a7e1364ce44b6b8cd1ec0ffb0b3 (patch)
tree9425a7f94b07c4175b04e1600e2e5f974bd0983a /lib/Target/Mips/Disassembler
parentfd1335e982bbf93c5f450ed4fd29f9f787435c85 (diff)
downloadexternal_llvm-38f85c5b9f2e2a7e1364ce44b6b8cd1ec0ffb0b3.zip
external_llvm-38f85c5b9f2e2a7e1364ce44b6b8cd1ec0ffb0b3.tar.gz
external_llvm-38f85c5b9f2e2a7e1364ce44b6b8cd1ec0ffb0b3.tar.bz2
Remove the form field from Mips16 instruction formats and set things
up so that we can apply the direct object emitter patch. This patch should be a nop right now and it's test is to not break what is already there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/Disassembler')
-rw-r--r--lib/Target/Mips/Disassembler/MipsDisassembler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/Mips/Disassembler/MipsDisassembler.cpp b/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
index 9560f3f..025a783 100644
--- a/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
+++ b/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
@@ -93,6 +93,11 @@ static DecodeStatus DecodeCPU64RegsRegisterClass(MCInst &Inst,
uint64_t Address,
const void *Decoder);
+static DecodeStatus DecodeCPU16RegsRegisterClass(MCInst &Inst,
+ unsigned RegNo,
+ uint64_t Address,
+ const void *Decoder);
+
static DecodeStatus DecodeCPURegsRegisterClass(MCInst &Inst,
unsigned RegNo,
uint64_t Address,
@@ -322,6 +327,15 @@ static unsigned getReg(const void *D, unsigned RC, unsigned RegNo) {
return *(Dis->getRegInfo()->getRegClass(RC).begin() + RegNo);
}
+static DecodeStatus DecodeCPU16RegsRegisterClass(MCInst &Inst,
+ unsigned RegNo,
+ uint64_t Address,
+ const void *Decoder) {
+
+ return MCDisassembler::Fail;
+
+}
+
static DecodeStatus DecodeCPU64RegsRegisterClass(MCInst &Inst,
unsigned RegNo,
uint64_t Address,