thumb32: Implement WFE

This commit is contained in:
Lioncash 2021-02-22 07:29:14 -05:00
parent 48fe7afe72
commit 3dc33c1257
3 changed files with 6 additions and 1 deletions

View file

@ -97,7 +97,7 @@ INST(thumb32_MOVT, "MOVT", "11110i101100iiii0iiidd
INST(thumb32_NOP, "NOP", "11110011101011111000000000000000") INST(thumb32_NOP, "NOP", "11110011101011111000000000000000")
INST(thumb32_YIELD, "YIELD", "11110011101011111000000000000001") INST(thumb32_YIELD, "YIELD", "11110011101011111000000000000001")
//INST(thumb32_WFE, "WFE", "111100111010----10-0-00000000010") INST(thumb32_WFE, "WFE", "11110011101011111000000000000010")
//INST(thumb32_WFI, "WFI", "111100111010----10-0-00000000011") //INST(thumb32_WFI, "WFI", "111100111010----10-0-00000000011")
//INST(thumb32_SEV, "SEV", "111100111010----10-0-00000000100") //INST(thumb32_SEV, "SEV", "111100111010----10-0-00000000100")
//INST(thumb32_SEVL, "SEVL", "111100111010----10-0-00000000101") //INST(thumb32_SEVL, "SEVL", "111100111010----10-0-00000000101")

View file

@ -38,6 +38,10 @@ bool ThumbTranslatorVisitor::thumb32_UDF() {
return thumb16_UDF(); return thumb16_UDF();
} }
bool ThumbTranslatorVisitor::thumb32_WFE() {
return thumb16_WFE();
}
bool ThumbTranslatorVisitor::thumb32_YIELD() { bool ThumbTranslatorVisitor::thumb32_YIELD() {
return thumb16_YIELD(); return thumb16_YIELD();
} }

View file

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