Index: src/arm/disasm-arm.cc |
diff --git a/src/arm/disasm-arm.cc b/src/arm/disasm-arm.cc |
index f9b0496714b216e6015a71287ea9017168486e95..9258703fbcae0a1fc3bc73010f19b3510aca354c 100644 |
--- a/src/arm/disasm-arm.cc |
+++ b/src/arm/disasm-arm.cc |
@@ -1695,6 +1695,12 @@ void Decoder::DecodeType6CoprocessorIns(Instruction* instr) { |
} |
+static const char* const barrier_option_names[] = { |
+ "invalid", "oshld", "oshst", "osh", "invalid", "nshld", "nshst", "nsh", |
+ "invalid", "ishld", "ishst", "ish", "invalid", "ld", "st", "sy", |
+}; |
+ |
+ |
void Decoder::DecodeSpecialCondition(Instruction* instr) { |
switch (instr->SpecialValue()) { |
case 5: |
@@ -1771,6 +1777,24 @@ void Decoder::DecodeSpecialCondition(Instruction* instr) { |
out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, |
"pld [r%d, #+%d]", Rn, offset); |
} |
+ } else if (instr->SpecialValue() == 0xA && instr->Bits(22, 20) == 7) { |
+ int option = instr->Bits(3, 0); |
+ switch (instr->Bits(7, 4)) { |
+ case 4: |
+ out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, |
+ "dsb %s", barrier_option_names[option]); |
+ break; |
+ case 5: |
+ out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, |
+ "dmb %s", barrier_option_names[option]); |
+ break; |
+ case 6: |
+ out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, |
+ "isb %s", barrier_option_names[option]); |
+ break; |
+ default: |
+ Unknown(instr); |
+ } |
} else { |
Unknown(instr); |
} |