i386: correct cpu_x86_cpuid(0xd)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 15 lines · Eduardo Habkost
Quoted 14 lines · Sebastian Andrzej Siewior
Intel SDM says for CPUID function 0DH, sub-function 0:
| • ECX enumerates the size (in bytes) required by the XSAVE instruction for an | XSAVE area containing all the user state components supported by this | processor. | • EBX enumerates the size (in bytes) required by the XSAVE instruction for an | XSAVE area containing all the user state components corresponding to bits | currently set in XCR0.Signed-off-by Sebastian Andrzej Siewior <[email protected]>--- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines
target/i386/cpu.c void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, · line 4181
Quoted 10 lines
target/i386/cpu.c +1
-1@@ -4178,7 +4178,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, *ecx =xsave_area_size (x86_cpu_xsave_components (cpu)); *eax = env->features[FEAT_XSAVE_COMP_LO ]; *edx = env->features[FEAT_XSAVE_COMP_HI ]; - *ebx = *ecx; + *ebx =xsave_area_size (env->xcr0);Reviewed-by Eduardo Habkost <[email protected]>
ping
Sebastian
Quoted 29 lines · Sebastian Andrzej Siewior
Quoted 15 lines · Eduardo Habkost
Quoted 14 lines · Sebastian Andrzej Siewior
Intel SDM says for CPUID function 0DH, sub-function 0:
| • ECX enumerates the size (in bytes) required by the XSAVE instruction for an | XSAVE area containing all the user state components supported by this | processor. | • EBX enumerates the size (in bytes) required by the XSAVE instruction for an | XSAVE area containing all the user state components corresponding to bits | currently set in XCR0.Signed-off-by Sebastian Andrzej Siewior <[email protected]>--- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 12 lines
target/i386/cpu.c void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, · line 4181
Quoted 10 lines
target/i386/cpu.c +1
-1@@ -4178,7 +4178,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, *ecx =xsave_area_size (x86_cpu_xsave_components (cpu)); *eax = env->features[FEAT_XSAVE_COMP_LO ]; *edx = env->features[FEAT_XSAVE_COMP_HI ]; - *ebx = *ecx; + *ebx =xsave_area_size (env->xcr0);Reviewed-by Eduardo Habkost <[email protected]>
Quoted 1 line
ping
It's queued for my next pull request.
Paolo
Quoted 1 line · Paolo Bonzini
It's queued for my next pull request.
thanks.
Quoted 1 line
Paolo
Sebastian