diff options
author | Wesley Peck <peckw@wesleypeck.com> | 2010-11-13 05:48:21 +0000 |
---|---|---|
committer | Wesley Peck <peckw@wesleypeck.com> | 2010-11-13 05:48:21 +0000 |
commit | 90eff7337d36b0398a22eac29da87c9c07b03b78 (patch) | |
tree | fe06a027eb0384b2db9b0f6694b3b95b54bf6740 /lib | |
parent | c47f7d643eee54c087bbe4c9964aa4d5afb7f6fe (diff) | |
download | external_llvm-90eff7337d36b0398a22eac29da87c9c07b03b78.zip external_llvm-90eff7337d36b0398a22eac29da87c9c07b03b78.tar.gz external_llvm-90eff7337d36b0398a22eac29da87c9c07b03b78.tar.bz2 |
Fixed error and re-enabled MBlaze MC disassembler tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp b/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp index c2b5a9f..b2a2474 100644 --- a/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp +++ b/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp @@ -492,6 +492,9 @@ bool MBlazeDisassembler::getInstruction(MCInst &instr, uint32_t insn; uint8_t bytes[4]; + // We always consume 4 bytes of data + size = 4; + // We want to read exactly 4 bytes of data. if (region.readBytes(address, 4, (uint8_t*)bytes, NULL) == -1) return false; |