debuggers.hg
changeset 22670:26e7e6c6ff7f
x86 xsave: Enable xsave_feature[62] (AMD Lightweight Profiling)
The spec of LWP is available at
http://developer.amd.com/cpu/lwp/Pages/default.aspx.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
The spec of LWP is available at
http://developer.amd.com/cpu/lwp/Pages/default.aspx.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
author | Keir Fraser <keir@xen.org> |
---|---|
date | Fri Dec 24 08:38:22 2010 +0000 (2010-12-24) |
parents | a71729704d4b |
children | 920826e80bee |
files | xen/include/asm-x86/i387.h |
line diff
1.1 --- a/xen/include/asm-x86/i387.h Fri Dec 24 08:37:34 2010 +0000 1.2 +++ b/xen/include/asm-x86/i387.h Fri Dec 24 08:38:22 2010 +0000 1.3 @@ -22,11 +22,12 @@ void xsave_init(void); 1.4 int xsave_alloc_save_area(struct vcpu *v); 1.5 void xsave_free_save_area(struct vcpu *v); 1.6 1.7 -#define XSTATE_FP (1 << 0) 1.8 -#define XSTATE_SSE (1 << 1) 1.9 -#define XSTATE_YMM (1 << 2) 1.10 +#define XSTATE_FP (1ULL << 0) 1.11 +#define XSTATE_SSE (1ULL << 1) 1.12 +#define XSTATE_YMM (1ULL << 2) 1.13 +#define XSTATE_LWP (1ULL << 62) /* AMD lightweight profiling */ 1.14 #define XSTATE_FP_SSE (XSTATE_FP | XSTATE_SSE) 1.15 -#define XCNTXT_MASK (XSTATE_FP | XSTATE_SSE | XSTATE_YMM) 1.16 +#define XCNTXT_MASK (XSTATE_FP | XSTATE_SSE | XSTATE_YMM | XSTATE_LWP) 1.17 #define XSTATE_YMM_OFFSET (512 + 64) 1.18 #define XSTATE_YMM_SIZE 256 1.19 #define XSAVEOPT (1 << 0)