From patchwork Wed Nov 6 11:33:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 178672 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp482682ilf; Wed, 6 Nov 2019 03:39:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxocd0yKhDFsvJSCfT+7hvTUOrqvtU+/AylESZduyePhTBYR9X17yjpjohXQoXaRhwftvFu X-Received: by 2002:a05:6402:1156:: with SMTP id g22mr2090830edw.233.1573040386558; Wed, 06 Nov 2019 03:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573040386; cv=none; d=google.com; s=arc-20160816; b=C5bQQlNNXTiA/ziIMMM/tc3z3HBgtUtBC4YXxY+8Qz1WL2JpmKjO43i9JdKTsBQ372 cM8XwE+p54KpdxPh/sbMWdgJyZ9TatwekwYgR8FnyOeJFNY2MnjJQGy/1/P1kRwGm9+Y 2LJKV8rW+R0h0pyS9OafEIUS4PukAYxpsLBejWEFVmEGyYicDE9/bExxR4Sj8rwtQdlo anxpUtfyWmxxl/mJ9H5gYTXGBTF/LO31ZwvvH7UNjjuo888nT/Vgr5IUddOtn98+3UlS EjaSBuvehwr8qQztyKPKPGvw/7DG/antRcCfuXwh20tassK9+jpQ72qQw9IQwQffpv7S qRUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=/0sggaw1v8ZuIdMOPOdNQg2kpFmBqjitREJdcWvNbpc=; b=EylomrrU4K4kvlrRnCe37Fjz+3VC9ggw6fU87qbeQ3KkzI23rR6lGAt1cESCPijNir U60LYGQMBkTUNprAUd6lk+l53wssfLeIsv/HRLtk/jbIdgM78oTWUs4Futro3456d5x7 IAO2i59t4VX3ij5H0pMdOlIb/48U/jGUMS2bsE79HkP9ukZej2KES7FWHBXx7xfef1g2 XikT9B1Te8CO28Gstx61zG7pG+rGpq7roRkGT0Jj1RoHoFNRPobC7YGegmMtfCSoNK8N b2cuD88isanGS7RAf1oy2I+123tw5QXCoVCVK4n5oj5ebfQsY9q+hGW/S5KXylE70CAM ZSZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qU0On76W; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f36si12069630ede.159.2019.11.06.03.39.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Nov 2019 03:39:46 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qU0On76W; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSJf7-0002sf-0c for patch@linaro.org; Wed, 06 Nov 2019 06:39:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37828) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSJZC-0003mP-5E for qemu-devel@nongnu.org; Wed, 06 Nov 2019 06:33:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSJZA-0007H0-4u for qemu-devel@nongnu.org; Wed, 06 Nov 2019 06:33:38 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:44428) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSJZ9-0007F9-Vn for qemu-devel@nongnu.org; Wed, 06 Nov 2019 06:33:36 -0500 Received: by mail-wr1-x42e.google.com with SMTP id f2so16415741wrs.11 for ; Wed, 06 Nov 2019 03:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/0sggaw1v8ZuIdMOPOdNQg2kpFmBqjitREJdcWvNbpc=; b=qU0On76WqJf4dxsXSFTpvmiacgEnXGgWszbuqTr5AucrI/LhAv+aUt5rH5cd+yQhPD LSLYfxnpSIFvS4axbpepqe27inlzdm73fop24eDnlYKjP+nkpaKkpnl5G5ilhtGzee0e Xtdnf3oTtKuyAtbPUM4EsBceaWyCmEtbKipKL5BA/bkzcpaqHpbxdquhYJSjoQa04SrW AqeN39KLXxs9fthIcWNXzORt9R6RlQnp6Kq4CXyhymdHE6fTMSw0GhkS/L1rVsizChuF tB0/kZTIZcypiGKeJXVVt02Fp6rL9JEVBHlC+K94GZDWytusK7M6PveTv9hUDHLb7inV jG/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/0sggaw1v8ZuIdMOPOdNQg2kpFmBqjitREJdcWvNbpc=; b=sid/GP6gMh0wrCumO94PMhGr8+YjHS6EsDacSHOIpdhamdfj/HdYIeoWx5BG3hWSQ+ xrbIQvk+dUOGyp4ENvWCYAmETE/Bco7zbBRNfj04DJVfWD0htIhaIjxh28q/C7vL8jJm M7Z4JYliqsKmXqaSdZyTjnVeiW90JFNaS3Dm3y9mpBCGs6SILABauAOxW0ABnsinfY/0 RjWe9uBH2ke216UhNAUrszxFOlP07GGZDylOYXnNVOqUMQ8y0MCQfLxIYnHOxKRbARTp IzswP1POeOC6TOobkF99iPsYK3I1yx31th2TOvs+oluV7syDT85hnb9IarqggxxdNQoe WVdw== X-Gm-Message-State: APjAAAUM3Ax6r/6euLmBHySIflS+ZdJhonr1MhZhPccAWrtlWvmXauyy IVqfer4/KEwdI66V2VI3PgFsLxY+TZbGjg== X-Received: by 2002:a5d:674d:: with SMTP id l13mr2286784wrw.170.1573040014245; Wed, 06 Nov 2019 03:33:34 -0800 (PST) Received: from localhost.localdomain (31.red-176-87-122.dynamicip.rima-tde.net. [176.87.122.31]) by smtp.gmail.com with ESMTPSA id q124sm1776907wme.13.2019.11.06.03.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 03:33:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 03/12] target/sparc: Define an enumeration for accessing env->regwptr Date: Wed, 6 Nov 2019 12:33:09 +0100 Message-Id: <20191106113318.10226-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191106113318.10226-1-richard.henderson@linaro.org> References: <20191106113318.10226-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42e X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson Message-Id: <20191025113921.9412-4-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- target/sparc/cpu.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) -- 2.17.1 diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index 778aa8e073..ae97c7d9f7 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -13,6 +13,39 @@ /*#define EXCP_INTERRUPT 0x100*/ +/* Windowed register indexes. */ +enum { + WREG_O0, + WREG_O1, + WREG_O2, + WREG_O3, + WREG_O4, + WREG_O5, + WREG_O6, + WREG_O7, + + WREG_L0, + WREG_L1, + WREG_L2, + WREG_L3, + WREG_L4, + WREG_L5, + WREG_L6, + WREG_L7, + + WREG_I0, + WREG_I1, + WREG_I2, + WREG_I3, + WREG_I4, + WREG_I5, + WREG_I6, + WREG_I7, + + WREG_SP = WREG_O6, + WREG_FP = WREG_I6, +}; + /* trap definitions */ #ifndef TARGET_SPARC64 #define TT_TFAULT 0x01