Correction in PowerPC JIT code. Fixes crash in server browser, etc, on Mac OS X
and probably PowerPC Linux, too...fixes Bugzilla #2519.
This commit is contained in:
parent
856a397e8c
commit
997dffc649
2 changed files with 5 additions and 5 deletions
|
@ -1106,7 +1106,7 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
|
|||
#endif
|
||||
assertInteger(opStackDepth-1);
|
||||
assertInteger(opStackDepth-2);
|
||||
Inst( "cmp", PPC_CMP, 0, opStackIntRegisters[opStackDepth-2], opStackIntRegisters[opStackDepth-1] );
|
||||
Inst( "cmpl", PPC_CMPL, 0, opStackIntRegisters[opStackDepth-2], opStackIntRegisters[opStackDepth-1] );
|
||||
opStackRegType[opStackDepth-1] = 0;
|
||||
opStackRegType[opStackDepth-2] = 0;
|
||||
opStackLoadInstructionAddr[opStackDepth-1] = 0;
|
||||
|
@ -1130,7 +1130,7 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
|
|||
#endif
|
||||
assertInteger(opStackDepth-1);
|
||||
assertInteger(opStackDepth-2);
|
||||
Inst( "cmp", PPC_CMP, 0, opStackIntRegisters[opStackDepth-2], opStackIntRegisters[opStackDepth-1] );
|
||||
Inst( "cmpl", PPC_CMPL, 0, opStackIntRegisters[opStackDepth-2], opStackIntRegisters[opStackDepth-1] );
|
||||
opStackRegType[opStackDepth-1] = 0;
|
||||
opStackRegType[opStackDepth-2] = 0;
|
||||
opStackLoadInstructionAddr[opStackDepth-1] = 0;
|
||||
|
@ -1154,7 +1154,7 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
|
|||
#endif
|
||||
assertInteger(opStackDepth-1);
|
||||
assertInteger(opStackDepth-2);
|
||||
Inst( "cmp", PPC_CMP, 0, opStackIntRegisters[opStackDepth-2], opStackIntRegisters[opStackDepth-1] );
|
||||
Inst( "cmpl", PPC_CMPL, 0, opStackIntRegisters[opStackDepth-2], opStackIntRegisters[opStackDepth-1] );
|
||||
opStackRegType[opStackDepth-1] = 0;
|
||||
opStackRegType[opStackDepth-2] = 0;
|
||||
opStackLoadInstructionAddr[opStackDepth-1] = 0;
|
||||
|
@ -1178,7 +1178,7 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
|
|||
#endif
|
||||
assertInteger(opStackDepth-1);
|
||||
assertInteger(opStackDepth-2);
|
||||
Inst( "cmp", PPC_CMP, 0, opStackIntRegisters[opStackDepth-2], opStackIntRegisters[opStackDepth-1] );
|
||||
Inst( "cmpl", PPC_CMPL, 0, opStackIntRegisters[opStackDepth-2], opStackIntRegisters[opStackDepth-1] );
|
||||
opStackRegType[opStackDepth-1] = 0;
|
||||
opStackRegType[opStackDepth-2] = 0;
|
||||
opStackLoadInstructionAddr[opStackDepth-1] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue