thumb32: Implement DSB

This commit is contained in:
Lioncash 2021-02-18 23:58:12 -05:00
parent f568687bd9
commit 368a8630e0
3 changed files with 7 additions and 1 deletions

View file

@ -107,7 +107,7 @@ INST(thumb32_EOR_imm, "EOR (imm)", "11110v00100Snnnn0vvvdd
//INST(thumb32_ENTERX, "ENTERX", "111100111011----10-0----0001----") //INST(thumb32_ENTERX, "ENTERX", "111100111011----10-0----0001----")
//INST(thumb32_LEAVEX, "LEAVEX", "111100111011----10-0----0000----") //INST(thumb32_LEAVEX, "LEAVEX", "111100111011----10-0----0000----")
//INST(thumb32_CLREX, "CLREX", "111100111011----10-0----0010----") //INST(thumb32_CLREX, "CLREX", "111100111011----10-0----0010----")
//INST(thumb32_DSB, "DSB", "111100111011----10-0----0100----") INST(thumb32_DSB, "DSB", "1111001110111111100011110100oooo")
//INST(thumb32_DMB, "DMB", "111100111011----10-0----0101----") //INST(thumb32_DMB, "DMB", "111100111011----10-0----0101----")
//INST(thumb32_ISB, "ISB", "111100111011----10-0----0110----") //INST(thumb32_ISB, "ISB", "111100111011----10-0----0110----")

View file

@ -7,6 +7,11 @@
namespace Dynarmic::A32 { namespace Dynarmic::A32 {
bool ThumbTranslatorVisitor::thumb32_DSB([[maybe_unused]] Imm<4> option) {
ir.DataSynchronizationBarrier();
return true;
}
bool ThumbTranslatorVisitor::thumb32_UDF() { bool ThumbTranslatorVisitor::thumb32_UDF() {
return thumb16_UDF(); return thumb16_UDF();
} }

View file

@ -160,6 +160,7 @@ struct ThumbTranslatorVisitor final {
bool thumb32_EOR_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8); bool thumb32_EOR_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
// thumb32 miscellaneous control instructions // thumb32 miscellaneous control instructions
bool thumb32_DSB(Imm<4> option);
bool thumb32_UDF(); bool thumb32_UDF();
// thumb32 branch instructions // thumb32 branch instructions