Dynarec: Move CR0 into cpu_state
Some dynarec backends (x86-64, arm64) expect the offset between cpu_state and CR0 to within a certain limit, otherwise they crashes (e.g: "host_x86_MOV64_REG_ABS - out of range"). Move CR0 to the end of cpu_state, make sure the offset is within limit. Helps NT4 and Win95 with dynarec on.
This commit is contained in:
@@ -173,7 +173,7 @@ int hasfpu;
|
||||
|
||||
uint64_t tsc = 0;
|
||||
msr_t msr;
|
||||
cr0_t CR0;
|
||||
cpu_state_t cpu_state;
|
||||
uint64_t pmc[2] = {0, 0};
|
||||
|
||||
uint16_t temp_seg_data[4] = {0, 0, 0, 0};
|
||||
|
||||
Reference in New Issue
Block a user