Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sh2: fix recompiler regressions (#1760)
This change corrects two regressions introduced by my last change. 1. The purge() call in SH2::Cache::power() was, through a call to Recompiler::invalidate(), accessing the pool array before it was allocated. This purge call was erronous for two reasons: - It was purging a single line, though it *appears* the intent was to purge the entire cache. - According to the SH7604 manual, the cache is not initialized on reset. Therefore, I simply removed the call. 2. The size of the recompiler code cache for both of the two SH2s is now halved to fit within the recently halved fixed code cache buffer. The SH2 recompiler is good at reusing previously compiled blocks, so flushes should not be especially common even with this reduced capacity.
- Loading branch information