softjit: Make it an error to unlock a temp.

Also fix some register usage in logic ops.
This commit is contained in:
Unknown W. Brackets committed 2021-12-01 21:50:02 -08:00
1 parent 75a918f96f
commit 4aa5bee14c
2 files changed
+6 -5

No files matched your search

+1
View File
@@ -205,6 +205,7 @@ void RegCache::Release(Reg &r, Purpose p) {
}
void RegCache::Unlock(Reg &r, Purpose p) {
_assert_msg_((p & FLAG_TEMP) == 0, "softjit Unlock() temp reg (%04X)", p);
RegStatus *status = FindReg(r, p);
if (status) {
_assert_msg_(status->locked > 0, "softjit Unlock() reg that isn't locked (%04X)", p);