direct-io.hg

changeset 9382:d5b1bc047540

[IA64] correct mistake from previous patch

Oops, mis-corrected the previous patch, Kan was correct.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild.aw
date Mon Mar 20 09:33:38 2006 -0700 (2006-03-20)
parents 58a3ed82eee4
children ccb437f2ed4e
files xen/arch/ia64/xen/vcpu.c
line diff
     1.1 --- a/xen/arch/ia64/xen/vcpu.c	Mon Mar 20 09:19:36 2006 -0700
     1.2 +++ b/xen/arch/ia64/xen/vcpu.c	Mon Mar 20 09:33:38 2006 -0700
     1.3 @@ -98,10 +98,9 @@ IA64FAULT
     1.4  vcpu_set_gr(VCPU *vcpu, unsigned long reg, UINT64 value, int nat)
     1.5  {
     1.6  	REGS *regs = vcpu_regs(vcpu);
     1.7 -	long sof;
     1.8 +	long sof = (regs->cr_ifs) & 0x7f;
     1.9  
    1.10  	if (!reg) return IA64_ILLOP_FAULT;
    1.11 -	sof = (regs->cr_ifs) & 0x7f;
    1.12  	if (reg >= sof + 32) return IA64_ILLOP_FAULT;
    1.13  	setreg(reg,value,nat,regs);	// FIXME: handle NATs later
    1.14  	return IA64_NO_FAULT;