Moved FPU register stack into cpu_state structure.
Fixed a couple of FPU bugs in x86-64 recompiler that were introduced in rev 543, fixes lightmap issues in Half-Life.
This commit is contained in:
parent
eb126fd822
commit
5a02b518b8
17 changed files with 907 additions and 883 deletions
|
|
@ -356,9 +356,9 @@ void codegen_block_start_recompile(codeblock_t *block)
|
|||
addbyte(0x83);
|
||||
addbyte(0xEC);
|
||||
addbyte(0x28);
|
||||
addbyte(0x48); /*MOVL EBP, &EAX*/
|
||||
addbyte(0x48); /*MOVL RBP, &cpu_state*/
|
||||
addbyte(0xBD);
|
||||
addquad((uint64_t)&EAX);
|
||||
addquad(((uintptr_t)&cpu_state) + 128);
|
||||
|
||||
// pclog("New block %i for %08X %03x\n", block_current, cs+pc, block_num);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue