A64: Implement system register CNTPCT_EL0

This commit is contained in:
MerryMage
2018-02-20 16:54:10 +00:00
parent 1e15283d00
commit 9e4e4e9c1d
8 changed files with 29 additions and 2 deletions

View File

@@ -63,6 +63,9 @@ bool TranslatorVisitor::MRS(Imm<1> o0, Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3
case 0b11'011'0000'0000'001: // CTR_EL0
X(32, Rt, ir.GetCTR());
return true;
case 0b11'011'1110'0000'001: // CNTPCT_EL0
X(64, Rt, ir.GetCNTPCT());
return true;
}
return InterpretThisInstruction();
}