From patchwork Fri May 10 03:27:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 163814 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp1819588ilr; Thu, 9 May 2019 20:27:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQjd1v8H2ufAMQUZ29gTtOBThti4spLSMh5T+n7P8wAeHW810KoebhrbOgF/mFj1izzW4/ X-Received: by 2002:a7b:c04c:: with SMTP id u12mr4910619wmc.59.1557458869502; Thu, 09 May 2019 20:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557458869; cv=none; d=google.com; s=arc-20160816; b=f7QwVLJR/1Ve6v878GEf2YfZIkUpwlmVcw8MNnFM+Yg2xK/gypk+X3/U496nOnSaQt Te1uebx9kpHf4oevAVS0FP4SFmDPs04I6QjtrQRhp5nyooW9WVrczDwEGdpriI/TV1D6 VXac0EgfYZtEDx/8zQZ+KKg97hYLPwkmDdOEfQjgSMfen2Oa0GCRM3b2fcqsH6g0N3pB OZYNWrYLvrySyHQAKADAwX0RZ9fWYz08qX7SnnqdnUZL0UbuHnWYhw/XBi4uzf19kA/J wSoJPg2FaAQQ6K7ThZFoDjK5YalKvrpZ/Ay183UQqsKyhHhacO8DBVT3Fy+qUuE/W/8t 2eTg== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=ynany7TpuwIOWZBHNBqsv0L1yKHGvVYa7cOFengyx/8=; b=U4/kl0Q+tk/wxEVg1fBny+xydatUyOYHvP2MnPlbqeXmVq5K9l0M0r2R+0Ujgw8P9L WfayrL9XZK+FQSxZsA/HRYQBvNGqn4ywnGjBKe4OkeMB1W0Z/ocuKnNPPMQh4zYkhfi2 Lz9NFrIhuw6rQs0KV01E0UMnUQNtNFOH8YCtfY2lbuU+0blLMGGvYfUVMniBXINy4N4s a4aJM6F6cocXVa4ar9MkCmRIHN7Dg0bRawZUITW1/RJVexcHlHdbF5tTX7qLy2sRn0IG pPt4FgtzEYTqLjwGW4i7iucLwGObc/rBIhc2uBO5PJsBH0LU+dkhwa9FvP3gsNY6hHk3 uTxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=yjT0simJ; 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=fail (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 d15si3178735wrv.453.2019.05.09.20.27.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 09 May 2019 20:27:49 -0700 (PDT) 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=fail header.i=@linaro.org header.s=google header.b=yjT0simJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:36118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOwCK-0002ye-Do for patch@linaro.org; Thu, 09 May 2019 23:27:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOwBr-0002wt-7D for qemu-devel@nongnu.org; Thu, 09 May 2019 23:27:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOwBq-0001QX-EP for qemu-devel@nongnu.org; Thu, 09 May 2019 23:27:19 -0400 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:35591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOwBq-0001PJ-9B for qemu-devel@nongnu.org; Thu, 09 May 2019 23:27:18 -0400 Received: by mail-pl1-x644.google.com with SMTP id g5so2133892plt.2 for ; Thu, 09 May 2019 20:27:18 -0700 (PDT) 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=ynany7TpuwIOWZBHNBqsv0L1yKHGvVYa7cOFengyx/8=; b=yjT0simJO9u2OuwMQdQp6mWSIr/NSNxCUkdo/UGM6kQ7Lqqyfy1RVOjW9p0fcorW+o WgkEmCt874s6HU4n+oXj9Ub3A1J1ArN4erWkQAX8VuuNdf2+ZIV5prdaZei0I/O1Q9Xd adPuiLjPINlXBfZfqeNIRurnRQMBexi7csVqe8q8f4/TuZ4ILuqEyjB8Y8bssTIfnVol LJP1nVtK08TmONJQgF8Keon25pFt+iV+pScAKPrGJhYypyk4YSWkJyAgh9/Zd8q/u9dI L2S4Jxh6UWs7qSdrc+2eSl6MR1Zrpm+FJjVehn+WPfayu5rJryxAWQNkiK2dqNVuq1H/ frSw== 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=ynany7TpuwIOWZBHNBqsv0L1yKHGvVYa7cOFengyx/8=; b=h0EdQw9MUaMYUCX0KJQ5kiWralzkRtSxMBsI4X2aLdw2iEQWE5JK1jYkL/fFs83A8N PppyBecbinLG8exrqhYDfdtE+Pj/mFypPfSGILqtXc/gWRsr8TXMXRhKnN0bvTM0sF8z zd3/oirPmxpQ2KLRNRX0kwVxnbyHYd8ihp7cSFVH9j5ysK3L3514vxM3VLuH/EnoW5Pm ePxL4kXndzlQG7jzDushB/okjM9ElUlLl6M+00W3xtFvxnAmVqKX+07NDw7gjKtYSReZ gSgcf+dXrn16HntbAhWxtZ9OSNiaaq+bvMDEIDvWe1Dx5ZbJ6h0RIFbRQM9jzgJS+qzF b+XQ== X-Gm-Message-State: APjAAAUcguASXjzvcC+K/zvVf12K2uuHb9EwsoGz1w5qOAWF1xujkbJa FJQW8/vPvmN/3xnZ18AbfJCmqFTo00c= X-Received: by 2002:a17:902:b412:: with SMTP id x18mr10205522plr.304.1557458836901; Thu, 09 May 2019 20:27:16 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id t26sm6259695pgk.62.2019.05.09.20.27.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 20:27:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 9 May 2019 20:27:05 -0700 Message-Id: <20190510032710.23910-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190510032710.23910-1-richard.henderson@linaro.org> References: <20190510032710.23910-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::644 Subject: [Qemu-devel] [PATCH v2 3/8] target/sparc: Define an enumeration for accessing env->regwptr X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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 --- 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 85b9665ccc..08f7d1a3c6 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -31,6 +31,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