Re: [kvm-unit-tests PATCH] x86: emulator: Fix h_mem usage in tests_smsw

2014-12-03 Thread Paolo Bonzini
On 02/12/2014 23:22, Chris J Arges wrote: > In emulator.c/tests_smsw, smsw (3) fails because h_mem isn't being set > correctly > before smsw is called. By declaring the h_mem function parameter as volatile, > the compiler no longer optimizes out the assignment before smsw. > > Signed-off-by: Ch

[kvm-unit-tests PATCH] x86: emulator: Fix h_mem usage in tests_smsw

2014-12-02 Thread Chris J Arges
In emulator.c/tests_smsw, smsw (3) fails because h_mem isn't being set correctly before smsw is called. By declaring the h_mem function parameter as volatile, the compiler no longer optimizes out the assignment before smsw. Signed-off-by: Chris J Arges --- x86/emulator.c | 2 +- 1 file changed,