OpcodeDispatcher: Implement SaveNZCV

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig committed 2023-11-09 09:40:51 -04:00
1 parent 8f7e393ffb
commit c1dbc28aa2
1 file changed
+8
@@ -917,6 +917,14 @@ public:
protected:
void SaveNZCV() override {
// Invariant: When executing instructions that clobber NZCV, the flags must
// be resident in a GPR, which is equivalent to CachedNZCV != nullptr. Get
// the NZCV which fills the cache if necessary.
if (CachedNZCV == nullptr)
GetNZCV();
// Assume we'll need a reload.
NZCVDirty = true;
}
private: