diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-03-29 16:52:40 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-03-29 16:52:40 +0100 |
commit | 90bc7dea0e4996f8bfe2952d53943182ee75eef3 (patch) | |
tree | 7915f5ab031ceadb00718878558047136d45581f /xen/include/asm-x86/i387.h | |
parent | 56ada11259ad745d39fdab4ded0403ba13fc0688 (diff) | |
download | xen-90bc7dea0e4996f8bfe2952d53943182ee75eef3.tar.gz xen-90bc7dea0e4996f8bfe2952d53943182ee75eef3.tar.bz2 xen-90bc7dea0e4996f8bfe2952d53943182ee75eef3.zip |
xen: Get rid of some VCPUF_* flags and move into their own byte fields.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/i387.h')
-rw-r--r-- | xen/include/asm-x86/i387.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xen/include/asm-x86/i387.h b/xen/include/asm-x86/i387.h index a324af013f..b0ce77aac3 100644 --- a/xen/include/asm-x86/i387.h +++ b/xen/include/asm-x86/i387.h @@ -18,9 +18,9 @@ extern void init_fpu(void); extern void save_init_fpu(struct vcpu *v); extern void restore_fpu(struct vcpu *v); -#define unlazy_fpu(v) do { \ - if ( test_bit(_VCPUF_fpu_dirtied, &(v)->vcpu_flags) ) \ - save_init_fpu(v); \ +#define unlazy_fpu(v) do { \ + if ( (v)->fpu_dirtied ) \ + save_init_fpu(v); \ } while ( 0 ) #define load_mxcsr(val) do { \ @@ -33,9 +33,10 @@ static inline void setup_fpu(struct vcpu *v) /* Avoid recursion. */ clts(); - if ( !test_and_set_bit(_VCPUF_fpu_dirtied, &v->vcpu_flags) ) + if ( !v->fpu_dirtied ) { - if ( test_bit(_VCPUF_fpu_initialised, &v->vcpu_flags) ) + v->fpu_dirtied = 1; + if ( v->fpu_initialised ) restore_fpu(v); else init_fpu(); |