ia64/xen-unstable

changeset 14798:605d534f9635

[IA64] Fix hyper_get_psr

It didn't return correct psr.i value.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu Apr 12 10:26:42 2007 -0600 (2007-04-12)
parents acf561f90822
children 41471cc650a2
files xen/arch/ia64/xen/hyperprivop.S
line diff
     1.1 --- a/xen/arch/ia64/xen/hyperprivop.S	Thu Apr 12 10:24:53 2007 -0600
     1.2 +++ b/xen/arch/ia64/xen/hyperprivop.S	Thu Apr 12 10:26:42 2007 -0600
     1.3 @@ -1526,8 +1526,10 @@ ENTRY(hyper_get_psr)
     1.4  	adds r20=XSI_PSR_I_ADDR_OFS-XSI_PSR_IC_OFS,r18 ;;
     1.5  	ld8 r20=[r20];;
     1.6  	ld1 r21=[r20];;
     1.7 -	dep r8=r21,r8,IA64_PSR_I_BIT,1
     1.8 +	cmp.eq p8,p9=r0,r21
     1.9  	;;
    1.10 +(p8)	dep r8=-1,r8,IA64_PSR_I_BIT,1
    1.11 +(p9)	dep r8=0,r8,IA64_PSR_I_BIT,1
    1.12  	// set vpsr.dfh
    1.13  	adds r20=XSI_VPSR_DFH_OFS-XSI_PSR_IC_OFS,r18;;
    1.14  	ld1 r21=[r20];;