Fixed JIT 1.2 not compiling code for the SYSREQ.C opcode (bug 2764). This caused LDuke's TF2Nades to crash because spcomp doesn't seem to peephole optimize some sysreq.c's away for float operators (oddity discovered by sawce).
This commit is contained in:
parent
fb44b51d26
commit
fb2f0795c5
@ -2647,6 +2647,10 @@ jit_rewind:
|
||||
/* Write these last because error jumps should be predicted forwardly (not taken) */
|
||||
WriteErrorRoutines(data, jit);
|
||||
|
||||
AlignMe(jit);
|
||||
data->jit_sysreq_c = jit->get_outputpos();
|
||||
WriteOp_Sysreq_C_Function(jit);
|
||||
|
||||
/* Build thunk tables */
|
||||
if (data->num_thunks > data->max_thunks)
|
||||
{
|
||||
@ -2709,6 +2713,10 @@ jit_rewind:
|
||||
/* Write these last because error jumps should be predicted as not taken (forward) */
|
||||
WriteErrorRoutines(data, jit);
|
||||
|
||||
AlignMe(jit);
|
||||
data->jit_sysreq_c = jit->get_outputpos();
|
||||
WriteOp_Sysreq_C_Function(jit);
|
||||
|
||||
/* Write the thunk offsets. */
|
||||
for (unsigned int i = 0; i < data->num_thunks; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user