WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] Remove unused code

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Remove unused code
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Mar 2007 05:30:11 -0700
Delivery-date: Fri, 23 Mar 2007 05:29:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1172680989 25200
# Node ID ac28d6c41e6f7a1c4ce7ea8b65c87c2008f9ea4f
# Parent  dda691c7f25f1759d4ff6fc63fa787ff51923009
[IA64] Remove unused code

In vcpu_set_psr_l, psr is set but never read.  This dead code is removed.

Signed-off-by: Tristan Gingold <tgingold@xxxxxxx>
---
 xen/arch/ia64/xen/vcpu.c |   30 +++++++-----------------------
 1 files changed, 7 insertions(+), 23 deletions(-)

diff -r dda691c7f25f -r ac28d6c41e6f xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Wed Feb 28 09:40:36 2007 -0700
+++ b/xen/arch/ia64/xen/vcpu.c  Wed Feb 28 09:43:09 2007 -0700
@@ -383,12 +383,10 @@ IA64FAULT vcpu_set_psr_sm(VCPU * vcpu, u
 
 IA64FAULT vcpu_set_psr_l(VCPU * vcpu, u64 val)
 {
-       struct ia64_psr psr, newpsr, *ipsr;
+       struct ia64_psr newpsr, *ipsr;
        REGS *regs = vcpu_regs(vcpu);
        u64 enabling_interrupts = 0;
 
-       // TODO: All of these bits need to be virtualized
-       __asm__ __volatile("mov %0=psr;;":"=r"(psr)::"memory");
        newpsr = *(struct ia64_psr *)&val;
        ipsr = (struct ia64_psr *)&regs->cr_ipsr;
        // just handle psr.up and psr.pp for now
@@ -406,21 +404,15 @@ IA64FAULT vcpu_set_psr_l(VCPU * vcpu, u6
                ipsr->dfl = 1;
        if (newpsr.pp) {
                ipsr->pp = 1;
-               psr.pp = 1;
                PSCB(vcpu, vpsr_pp) = 1;
        } else {
                ipsr->pp = 1;
-               psr.pp = 1;
                PSCB(vcpu, vpsr_pp) = 0;
        }
-       if (newpsr.up) {
+       if (newpsr.up)
                ipsr->up = 1;
-               psr.up = 1;
-       }
-       if (newpsr.sp) {
+       if (newpsr.sp)
                ipsr->sp = 1;
-               psr.sp = 1;
-       }
        if (newpsr.i) {
                if (vcpu->vcpu_info->evtchn_upcall_mask)
                        enabling_interrupts = 1;
@@ -428,22 +420,14 @@ IA64FAULT vcpu_set_psr_l(VCPU * vcpu, u6
        }
        if (newpsr.ic)
                PSCB(vcpu, interrupt_collection_enabled) = 1;
-       if (newpsr.mfl) {
+       if (newpsr.mfl)
                ipsr->mfl = 1;
-               psr.mfl = 1;
-       }
-       if (newpsr.mfh) {
+       if (newpsr.mfh)
                ipsr->mfh = 1;
-               psr.mfh = 1;
-       }
-       if (newpsr.ac) {
+       if (newpsr.ac)
                ipsr->ac = 1;
-               psr.ac = 1;
-       }
-       if (newpsr.up) {
+       if (newpsr.up)
                ipsr->up = 1;
-               psr.up = 1;
-       }
        if (newpsr.dt && newpsr.rt)
                vcpu_set_metaphysical_mode(vcpu, FALSE);
        else

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Remove unused code, Xen patchbot-unstable <=