[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-ia64-devel]Question about priv_ptc_e


  • To: "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>
  • From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
  • Date: Fri, 10 Mar 2006 14:06:07 +0800
  • Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 10 Mar 2006 06:06:53 +0000
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • Thread-index: AcZECLinIDR/U9ssTQmQ7Q3GMs7Jvw==
  • Thread-topic: [Xen-ia64-devel]Question about priv_ptc_e

Dan,
Why is ptc_e emulated as fc when gr is larger than 63?

IA64FAULT priv_ptc_e(VCPU *vcpu, INST64 inst)
{
        UINT src = inst.M28.r3;

        // NOTE: ptc_e with source gr > 63 is emulated as a fc r(y-64)
        if (src > 63) return(vcpu_fc(vcpu,vcpu_get_gr(vcpu,src - 64)));
        return vcpu_ptc_e(vcpu,vcpu_get_gr(vcpu,src));
}
Thanks,
-Anthony 


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.