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
This commit is contained in:
Wesley Peck 2010-11-13 05:48:21 +00:00
parent c47f7d643e
commit 90eff7337d
2 changed files with 1082 additions and 0 deletions

View File

@ -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;

File diff suppressed because it is too large Load Diff