CID 8122, 2210 (pointing at the same), 8121 and 2209 (pointing at the same):

Taking the size of a pointer instead of the actual extended registers struct.
Not sure this is used, but if it is it made the whole fpu/sse state in the
debugger useless.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39960 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2010-12-27 01:44:43 +00:00
parent 6c38786311
commit b2acbcbfb3

View File

@ -595,7 +595,7 @@ arch_set_debug_cpu_state(const debug_cpu_state *cpuState)
struct thread* thread = thread_get_current_thread();
InterruptsLocker locker;
memcpy(thread->arch_info.fpu_state, &cpuState->extended_registers,
sizeof(&cpuState->extended_registers));
sizeof(cpuState->extended_registers));
i386_fxrstor(thread->arch_info.fpu_state);
} else {
// TODO: Implement! We need to convert the format first.
@ -641,7 +641,7 @@ arch_get_debug_cpu_state(debug_cpu_state *cpuState)
i386_fxsave(thread->arch_info.fpu_state);
// unlike fnsave, fxsave doesn't reinit the FPU state
memcpy(&cpuState->extended_registers, thread->arch_info.fpu_state,
sizeof(&cpuState->extended_registers));
sizeof(cpuState->extended_registers));
} else {
i386_fnsave(&cpuState->extended_registers);
i386_frstor(&cpuState->extended_registers);