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

[Xen-changelog] Add emulation to rsm.be, which is first encounted in guest fast syscall



# HG changeset patch
# User fred@xxxxxxxxxxxxxxxxxxxxx
# Node ID a64dae7a0344db63f33c9403fa7f2fd59dde32cd
# Parent  40bddfe9e3903a09b9b5751b68c59c8686bd04d4
Add emulation to rsm.be, which is first encounted in guest fast syscall
path, where little endian is forced just after epc.

Signed-off-by Kevin Tian <kevin.tian@xxxxxxxxx>

diff -r 40bddfe9e390 -r a64dae7a0344 xen/arch/ia64/vcpu.c
--- a/xen/arch/ia64/vcpu.c      Thu Jul 28 08:57:06 2005
+++ b/xen/arch/ia64/vcpu.c      Thu Jul 28 09:26:30 2005
@@ -155,7 +155,7 @@
        // interrupt collection flag
        //if (imm.ic) PSCB(vcpu,interrupt_delivery_enabled) = 0;
        // just handle psr.up and psr.pp for now
-       if (imm24 & ~(IA64_PSR_PP | IA64_PSR_UP | IA64_PSR_SP
+       if (imm24 & ~(IA64_PSR_BE | IA64_PSR_PP | IA64_PSR_UP | IA64_PSR_SP
                | IA64_PSR_I | IA64_PSR_IC | IA64_PSR_DT
                | IA64_PSR_DFL | IA64_PSR_DFH))
                        return (IA64_ILLOP_FAULT);
@@ -164,6 +164,7 @@
        if (imm.pp) { ipsr->pp = 0; psr.pp = 0; }
        if (imm.up) { ipsr->up = 0; psr.up = 0; }
        if (imm.sp) { ipsr->sp = 0; psr.sp = 0; }
+       if (imm.be) ipsr->be = 0;
        if (imm.dt) vcpu_set_metaphysical_mode(vcpu,TRUE);
        __asm__ __volatile (";; mov psr.l=%0;; srlz.d"::"r"(psr):"memory");
        return IA64_NO_FAULT;

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


 


Rackspace

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