thumb32: Implement WFI

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

View file

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

View file

@ -42,6 +42,10 @@ bool ThumbTranslatorVisitor::thumb32_WFE() {
return thumb16_WFE();
}
bool ThumbTranslatorVisitor::thumb32_WFI() {
return thumb16_WFI();
}
bool ThumbTranslatorVisitor::thumb32_YIELD() {
return thumb16_YIELD();
}

View file

@ -171,6 +171,7 @@ struct ThumbTranslatorVisitor final {
bool thumb32_NOP();
bool thumb32_UDF();
bool thumb32_WFE();
bool thumb32_WFI();
bool thumb32_YIELD();
// thumb32 branch instructions