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:
parent
bab907f792
commit
7910b4029a
17 changed files with 81 additions and 47 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue