From patchwork Fri Dec 14 02:12:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Wood X-Patchwork-Id: 206271 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8708B2C00A5 for ; Fri, 14 Dec 2012 13:12:48 +1100 (EST) Received: from localhost ([::1]:53282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjKla-0004mP-Hp for incoming@patchwork.ozlabs.org; Thu, 13 Dec 2012 21:12:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjKlF-0004cj-I9 for qemu-devel@nongnu.org; Thu, 13 Dec 2012 21:12:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjKlC-0005bw-Av for qemu-devel@nongnu.org; Thu, 13 Dec 2012 21:12:25 -0500 Received: from ch1ehsobe006.messaging.microsoft.com ([216.32.181.186]:24293 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjKl4-0005U0-L6; Thu, 13 Dec 2012 21:12:14 -0500 Received: from mail139-ch1-R.bigfish.com (10.43.68.229) by CH1EHSOBE014.bigfish.com (10.43.70.64) with Microsoft SMTP Server id 14.1.225.23; Fri, 14 Dec 2012 02:12:13 +0000 Received: from mail139-ch1 (localhost [127.0.0.1]) by mail139-ch1-R.bigfish.com (Postfix) with ESMTP id AFE291801D8; Fri, 14 Dec 2012 02:12:13 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1de0h1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1155h) Received: from mail139-ch1 (localhost.localdomain [127.0.0.1]) by mail139-ch1 (MessageSwitch) id 1355451131310934_17390; Fri, 14 Dec 2012 02:12:11 +0000 (UTC) Received: from CH1EHSMHS021.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.230]) by mail139-ch1.bigfish.com (Postfix) with ESMTP id 43AB240005A; Fri, 14 Dec 2012 02:12:11 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS021.bigfish.com (10.43.70.21) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 14 Dec 2012 02:12:09 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-005.039d.mgd.msft.net (10.84.1.17) with Microsoft SMTP Server (TLS) id 14.2.318.3; Fri, 14 Dec 2012 02:12:08 +0000 Received: from snotra.am.freescale.net ([10.214.86.99]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id qBE2C4t0019223; Thu, 13 Dec 2012 19:12:06 -0700 From: Scott Wood To: Alexander Graf Date: Thu, 13 Dec 2012 20:12:00 -0600 Message-ID: <1355451124-2559-3-git-send-email-scottwood@freescale.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1355451124-2559-1-git-send-email-scottwood@freescale.com> References: <1355451124-2559-1-git-send-email-scottwood@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 216.32.181.186 Cc: Scott Wood , qemu-ppc@nongnu.org, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 2/6] openpic: remove pcsr (CPU sensitivity register) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org I could not find this register in any spec (FSL, IBM, or OpenPIC) and the code doesn't do anything with it but initialize, save, or restore it. Signed-off-by: Scott Wood --- hw/openpic.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index 7e72c29..57218f3 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -205,7 +205,6 @@ typedef struct IRQ_src_t { typedef struct IRQ_dst_t { uint32_t pctp; /* CPU current task priority */ - uint32_t pcsr; /* CPU sensitivity register */ IRQ_queue_t raised; IRQ_queue_t servicing; qemu_irq *irqs; @@ -447,7 +446,6 @@ static void openpic_reset(DeviceState *d) /* Initialise IRQ destinations */ for (i = 0; i < MAX_CPU; i++) { opp->dst[i].pctp = 15; - opp->dst[i].pcsr = 0x00000000; memset(&opp->dst[i].raised, 0, sizeof(IRQ_queue_t)); opp->dst[i].raised.next = -1; memset(&opp->dst[i].servicing, 0, sizeof(IRQ_queue_t)); @@ -1072,7 +1070,6 @@ static void openpic_save(QEMUFile* f, void *opaque) for (i = 0; i < opp->nb_cpus; i++) { qemu_put_be32s(f, &opp->dst[i].pctp); - qemu_put_be32s(f, &opp->dst[i].pcsr); openpic_save_IRQ_queue(f, &opp->dst[i].raised); openpic_save_IRQ_queue(f, &opp->dst[i].servicing); } @@ -1119,7 +1116,6 @@ static int openpic_load(QEMUFile* f, void *opaque, int version_id) for (i = 0; i < opp->nb_cpus; i++) { qemu_get_be32s(f, &opp->dst[i].pctp); - qemu_get_be32s(f, &opp->dst[i].pcsr); openpic_load_IRQ_queue(f, &opp->dst[i].raised); openpic_load_IRQ_queue(f, &opp->dst[i].servicing); }