thumb32: Implement NOP

This commit is contained in:
Lioncash 2021-02-22 07:21:51 -05:00
parent 29d7cbd899
commit a73ea9e111
3 changed files with 6 additions and 1 deletions

View file

@ -95,7 +95,7 @@ INST(thumb32_MOVT, "MOVT", "11110i101100iiii0iiidd
//INST(thumb32_MSR_reg_3, "MSR (reg)", "111100111000----10-0--1---0-----") //INST(thumb32_MSR_reg_3, "MSR (reg)", "111100111000----10-0--1---0-----")
//INST(thumb32_MSR_reg_4, "MSR (reg)", "111100111000----10-0--00--0-----") //INST(thumb32_MSR_reg_4, "MSR (reg)", "111100111000----10-0--00--0-----")
//INST(thumb32_NOP, "NOP", "111100111010----10-0-00000000000") INST(thumb32_NOP, "NOP", "11110011101011111000000000000000")
//INST(thumb32_YIELD, "YIELD", "111100111010----10-0-00000000001") //INST(thumb32_YIELD, "YIELD", "111100111010----10-0-00000000001")
//INST(thumb32_WFE, "WFE", "111100111010----10-0-00000000010") //INST(thumb32_WFE, "WFE", "111100111010----10-0-00000000010")
//INST(thumb32_WFI, "WFI", "111100111010----10-0-00000000011") //INST(thumb32_WFI, "WFI", "111100111010----10-0-00000000011")

View file

@ -30,6 +30,10 @@ bool ThumbTranslatorVisitor::thumb32_ISB([[maybe_unused]] Imm<4> option) {
return false; return false;
} }
bool ThumbTranslatorVisitor::thumb32_NOP() {
return thumb16_NOP();
}
bool ThumbTranslatorVisitor::thumb32_UDF() { bool ThumbTranslatorVisitor::thumb32_UDF() {
return thumb16_UDF(); return thumb16_UDF();
} }

View file

@ -168,6 +168,7 @@ struct ThumbTranslatorVisitor final {
bool thumb32_DMB(Imm<4> option); bool thumb32_DMB(Imm<4> option);
bool thumb32_DSB(Imm<4> option); bool thumb32_DSB(Imm<4> option);
bool thumb32_ISB(Imm<4> option); bool thumb32_ISB(Imm<4> option);
bool thumb32_NOP();
bool thumb32_UDF(); bool thumb32_UDF();
// thumb32 branch instructions // thumb32 branch instructions