arm64jit: Track writable and non-writable pointers.

Switch uses different memory regions.  We can handle this, might as well
cleanup some const abuse.
This commit is contained in:
Unknown W. Brackets 2020-05-16 22:12:35 -07:00
parent bab907f792
commit 7910b4029a
17 changed files with 81 additions and 47 deletions

View file

@ -251,7 +251,7 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec, int
if (!CompileStep(dec, i)) {
EndWrite();
// Reset the code ptr and return zero to indicate that we failed.
SetCodePtr(const_cast<u8 *>(start));
ResetCodePtr(GetOffset(start));
return 0;
}
}