From patchwork Tue Jan 5 23:19:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor V. Kovalenko" X-Patchwork-Id: 42235 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5231BB6EE9 for ; Wed, 6 Jan 2010 12:01:10 +1100 (EST) Received: from localhost ([127.0.0.1]:49633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSKGp-00072o-D5 for incoming@patchwork.ozlabs.org; Tue, 05 Jan 2010 20:01:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSIgY-0007OK-Up for qemu-devel@nongnu.org; Tue, 05 Jan 2010 18:19:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSIgW-0007L1-Ry for qemu-devel@nongnu.org; Tue, 05 Jan 2010 18:19:33 -0500 Received: from [199.232.76.173] (port=35311 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSIgW-0007KV-EC for qemu-devel@nongnu.org; Tue, 05 Jan 2010 18:19:32 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:38041) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSIgV-0008Sh-8n for qemu-devel@nongnu.org; Tue, 05 Jan 2010 18:19:31 -0500 Received: by fg-out-1718.google.com with SMTP id e12so505414fga.10 for ; Tue, 05 Jan 2010 15:19:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:subject:to:from:date :message-id:in-reply-to:references:user-agent:mime-version :content-type:content-transfer-encoding; bh=FXXB9p0J9dvv7YGoLIw9wTq2Nre0QIAVYLPd0u6qnfs=; b=EO5XBVu8AqY5hCp4bYOJLy669GUozeI6ndbPcz4uElZLQBeF8qiujnM4+txjZ8+TTA rcjLAYkK0s7d8/ZnDjdK6a0czMVzJACch+RldaplfLyqsYG2qsNKdEMLSf72niJGGRDE cPTwxll9H6Zv19iyjoTSjI/iyo8dpP+JbSEfg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:to:from:date:message-id:in-reply-to:references:user-agent :mime-version:content-type:content-transfer-encoding; b=mMaQSExSpjep/V9Umti2GGXbqZQ9YrrRl36FuGxqbk5BGdcoN9/pjRBVoP6Kbqom0A oqNXT+i1fnTb6D6GVxAMNTBLVug7MtEIplxRvMMXTsBe1ZPigXOroqXdMb8XU0gAk3U+ yZpIX7Xa1yy30pViYY/pTpjKQ6XQkbvtua+hQ= Received: by 10.87.71.15 with SMTP id y15mr24621710fgk.58.1262733569989; Tue, 05 Jan 2010 15:19:29 -0800 (PST) Received: from skyserv (host-87-255-14-75.bigtelecom.ru [87.255.14.75]) by mx.google.com with ESMTPS id 15sm6696356fxm.14.2010.01.05.15.19.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 05 Jan 2010 15:19:29 -0800 (PST) Received: from localhost ([127.0.0.1] helo=[192.168.1.2]) by skyserv with esmtp (Exim 4.71) (envelope-from ) id 1NSIgS-0001lA-As for qemu-devel@nongnu.org; Wed, 06 Jan 2010 02:19:28 +0300 To: qemu-devel@nongnu.org From: "Igor V. Kovalenko" Date: Wed, 06 Jan 2010 02:19:28 +0300 Message-ID: <20100105231928.6526.64342.stgit@skyserv> In-Reply-To: <20100105231558.6526.44483.stgit@skyserv> References: <20100105231558.6526.44483.stgit@skyserv> User-Agent: StGit/0.15 MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 5/9] sparc64: add macros to deal with softint and timer interrupt X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Igor V. Kovalenko Signed-off-by: Igor V. Kovalenko --- target-sparc/cpu.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 1fe4d0f..0dba241 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -394,6 +394,8 @@ typedef struct CPUSPARCState { uint64_t fprs; uint64_t tick_cmpr, stick_cmpr; void *tick, *stick; +#define TICK_NPT_MASK 0x8000000000000000ULL +#define TICK_SOFTINT_DISABLE 0x8000000000000000ULL uint64_t gsr; uint32_t gl; // UA2005 /* UA 2005 hyperprivileged registers */ @@ -402,6 +404,10 @@ typedef struct CPUSPARCState { uint32_t softint; #define SOFTINT_TIMER 1 #define SOFTINT_STIMER (1 << 16) +#define SOFTINT_INTRMASK (0xFFFE) +#define SOFTINT_TM (1 << 0) +#define SOFTINT_SM (1 << 16) +#define SOFTINT_REG_MASK (SOFTINT_SM|SOFTINT_INTRMASK|SOFTINT_TM) #endif sparc_def_t *def; } CPUSPARCState;