From nobody Tue Feb 10 03:00:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail header.i=@quicinc.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=quicinc.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581381854043335.5280493780473; Mon, 10 Feb 2020 16:44:14 -0800 (PST) Received: from localhost ([::1]:41578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Jeu-0006Mq-M6 for importer@patchew.org; Mon, 10 Feb 2020 19:44:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59684) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Jbs-0000yN-Gx for qemu-devel@nongnu.org; Mon, 10 Feb 2020 19:41:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1Jbq-0004xO-RZ for qemu-devel@nongnu.org; Mon, 10 Feb 2020 19:41:04 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:3639) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j1Jbq-0004qc-Ec for qemu-devel@nongnu.org; Mon, 10 Feb 2020 19:41:02 -0500 Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 10 Feb 2020 16:40:58 -0800 Received: from vu-tsimpson-aus.qualcomm.com (HELO vu-tsimpson1-aus.qualcomm.com) ([10.222.150.1]) by ironmsg01-sd.qualcomm.com with ESMTP; 10 Feb 2020 16:40:57 -0800 Received: by vu-tsimpson1-aus.qualcomm.com (Postfix, from userid 47164) id 51F3D1B5B; Mon, 10 Feb 2020 18:40:57 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1581381662; x=1612917662; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MC1SEBGpm/yv01knW9N91nqMszaqrmn3EVDP/ruP7Ik=; b=dRO+1fcHwYjJYoa/wvoS0svbI61HHEg1uIUS9T+Z+k+R4FdzVXuZGco8 aTVEE/1tJ/7QJmWoM/xnh6tm5/mo0pEqLZ1L7Z+Yrjw0ZIyH88opGtSgC PAjS7ue3+WH8hUVJJihe1/YpJAie1qdq+tyWLX20gungtv5XL4Aa6ZmeV 0=; From: Taylor Simpson To: qemu-devel@nongnu.org Subject: [RFC PATCH 04/66] Hexagon register names Date: Mon, 10 Feb 2020 18:39:42 -0600 Message-Id: <1581381644-13678-5-git-send-email-tsimpson@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581381644-13678-1-git-send-email-tsimpson@quicinc.com> References: <1581381644-13678-1-git-send-email-tsimpson@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 199.106.114.38 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: riku.voipio@iki.fi, richard.henderson@linaro.org, laurent@vivier.eu, Taylor Simpson , philmd@redhat.com, aleksandar.m.mail@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Taylor Simpson --- target/hexagon/hex_regs.h | 97 +++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 97 insertions(+) create mode 100644 target/hexagon/hex_regs.h diff --git a/target/hexagon/hex_regs.h b/target/hexagon/hex_regs.h new file mode 100644 index 0000000..ba1ae10 --- /dev/null +++ b/target/hexagon/hex_regs.h @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2019 Qualcomm Innovation Center, Inc. All Rights Reserve= d. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef HEX_REGS_H +#define HEX_REGS_H + +#define HEX_REG_R00 0 +#define HEX_REG_R01 1 +#define HEX_REG_R02 2 +#define HEX_REG_R03 3 +#define HEX_REG_R04 4 +#define HEX_REG_R05 5 +#define HEX_REG_R06 6 +#define HEX_REG_R07 7 +#define HEX_REG_R08 8 +#define HEX_REG_R09 9 +#define HEX_REG_R10 10 +#define HEX_REG_R11 11 +#define HEX_REG_R12 12 +#define HEX_REG_R13 13 +#define HEX_REG_R14 14 +#define HEX_REG_R15 15 +#define HEX_REG_R16 16 +#define HEX_REG_R17 17 +#define HEX_REG_R18 18 +#define HEX_REG_R19 19 +#define HEX_REG_R20 20 +#define HEX_REG_R21 21 +#define HEX_REG_R22 22 +#define HEX_REG_R23 23 +#define HEX_REG_R24 24 +#define HEX_REG_R25 25 +#define HEX_REG_R26 26 +#define HEX_REG_R27 27 +#define HEX_REG_R28 28 +#define HEX_REG_R29 29 +#define HEX_REG_SP 29 +#define HEX_REG_FP 30 +#define HEX_REG_R30 30 +#define HEX_REG_LR 31 +#define HEX_REG_R31 31 +#define HEX_REG_SA0 32 +#define HEX_REG_LC0 33 +#define HEX_REG_SA1 34 +#define HEX_REG_LC1 35 +#define HEX_REG_P3_0 36 +#define HEX_REG_M0 38 +#define HEX_REG_M1 39 +#define HEX_REG_USR 40 +#define HEX_REG_PC 41 +#define HEX_REG_UGP 42 +#define HEX_REG_GP 43 +#define HEX_REG_CS0 44 +#define HEX_REG_CS1 45 +#define HEX_REG_UPCYCLELO 46 +#define HEX_REG_UPCYCLEHI 47 +#define HEX_REG_FRAMELIMIT 48 +#define HEX_REG_FRAMEKEY 49 +#define HEX_REG_PKTCNTLO 50 +#define HEX_REG_PKTCNTHI 51 +/* Use reserved control registers for qemu execution counts */ +#define HEX_REG_QEMU_PKT_CNT 52 +#define HEX_REG_QEMU_INSN_CNT 53 +#define HEX_REG_QEMU_HVX_CNT 54 +#define HEX_REG_UTIMERLO 62 +#define HEX_REG_UTIMERHI 63 + +#ifndef CONFIG_USER_ONLY +#define HEX_REG_SGP0 64 +#define HEX_REG_SGP1 65 +#define HEX_REG_STID 66 +#define HEX_REG_ELR 67 +#define HEX_REG_BADVA0 68 +#define HEX_REG_BADVA1 69 +#define HEX_REG_SSR 70 +#define HEX_REG_CCR 71 +#define HEX_REG_HTID 72 +#define HEX_REG_BADVA 73 +#define HEX_REG_IMASK 74 +#define HEX_REG_GEVB 75 +#endif + +#endif --=20 2.7.4