[Bug] Windows XP Setup segmentation faults the emulator...
[Bug] Windows XP Setup segmentation faults the emulator...
Basically, it boots fine from the CD, loads all the drivers, then goes to black screen + blinking cursor to load the next stage, and then segmentation fault. I tried to gdb it, and it segmentation faults at address 0x00000000, and I couldn't even backtrace - gdb said the stack was corrupted. This happens only on the recompiler, if I disable the recompiler by manually editing the configuration file, the problem goes away. It also only happens starting with the commit that reorganized REP.
Re: [Bug] Windows XP Setup segmentation faults the emulator...
unfortunately same problem here, many crashes.
Re: [Bug] Windows XP Setup segmentation faults the emulator...
It turns out this is caused by a mistake of Sarah's. In both codegen_x86.c and codegen_x86-64.c, this:
Should be changed to this:
Then the code will behave correctly, and XP will no longer segmentation fault the emulator.
Code: Select all
if ((op_table == x86_opcodes_REPNE || op_table == x86_opcodes_REPE) && !op_table[opcode | op_32])
Code: Select all
if ((op_table == x86_dynarec_opcodes_REPNE || op_table == x86_dynarec_opcodes_REPE) && !op_table[opcode | op_32])
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: [Bug] Windows XP Setup segmentation faults the emulator...
Fixed in rev 819.