From patchwork Mon Sep 12 12:26:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973620 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 912E5C6FA83 for ; Mon, 12 Sep 2022 12:33:04 +0000 (UTC) Received: from localhost ([::1]:38638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXicZ-0006eB-Io for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:33:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiY1-0003cX-Hx for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:28:21 -0400 Received: from mail-vi1eur05on2133.outbound.protection.outlook.com ([40.107.21.133]:56929 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiXu-0005eZ-90 for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:28:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RI3W92asEA10DdDWuJdYgjGVMNS0K9w7JpnNgX7MQUQyohZDNHiVTHclivXMWAgg0R/GGGNRUdcuDJdr8b49ICWLzAJPmx+oJxuEyBHOa5M+ItFz22ptVC+N+Yjl2jmGxibNijMy4A2i8ohj4cEdmf/RyKmHyHnhfOFcl/UztS9+4FJht9WTuAZGCpgccV7FguiiKc7z7k9MhA/VcYTQf6ivz6CAuN8Gd7lSfDAXOWqzp83mIIywJR0Vqyq0FPzMv/F/PkBBUyIpB2JenaGyLrpJ1J5Y8HUFP1Xr4c9ECagdv5Ku9jifax0E1oJVPMTIdLTZbsPhBWGPP5OFmXNX3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=488FreG5O8KZz0byZb4nZbTOU5U5x8QvcdRrbUfRSGI=; b=GsuUvoJXMRzN1tUZRjTpN0MKogFkbprPbrtJKMbL78Sg24bf3gKokQS68AocqNlVdHt/nDEAxPrKGEoKiQzVmFSFaqj5EsO3sqbjzoPJsxJ/TZ+7IiUUrK2hj6Hv25YHFBamMlCGWNPcPrKGv8bbV5fLaMI2gMxfELAJVA5R11n0bwDkft9PqX/ltcMJgzw3FHNE3k+r2T+Mj6KgmG0VlPWEpABSz0au11hloRNUmovj9e7cXlFT78Ay5uZdO4skikTWCWdffM5vctkL+0DXtRUFFEZmxXx+j0aP3GyFXA5CuPY10+gRKjaxqrhyCxRDPWC2NMKvD+eRSLmJ0gpvsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=488FreG5O8KZz0byZb4nZbTOU5U5x8QvcdRrbUfRSGI=; b=RqqwLJQji4AW/h+uejFL8k5c+Li+MxAECs0ATDwnbCzYPoEB7xmO2qIAsyrVQWPMzBSoyrH88AxzWHb7EqE7Ua33g/eyDJPvSpxfZLzDexHL08fG+/U57E0bzh+F1hC1r9T8wGGAbIcR+PCjt3ym1CEwJLeB/YfOdV6vNQNXjVo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB8805.eurprd03.prod.outlook.com (2603:10a6:20b:53e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:27:17 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:27:16 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 01/24] disas/nanomips: Remove namespace img Date: Mon, 12 Sep 2022 14:26:12 +0200 Message-Id: <20220912122635.74032-2-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB8805:EE_ X-MS-Office365-Filtering-Correlation-Id: 8dceb1ea-5f93-49be-9cb0-08da94ba20eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o0sFQoNb2C2w5AvRm4eL4Xq2y3v9zFly+p1sbmKowiir+wBBINfB8VKBNfgfwujZ+vXRrLUE71gZefmK/h/z6Wp7EIPtw/0ZZNrE4JgH2vfZhzYp4x8SYifdwxMSGTctNy3lHpEdRy/DrF1v5NVFxzYedtKbgkAmW+3r3RY7k9kHijcVF3VQil5Dlv9oDQ8PyQw/U6OESUDhdGl8xfPTlR5ogc5VdVsPF1Pka2nbJjzL/FxqnpY4/F//qWZWWNgLjMP7V7Gq+I8Co0G9031I5w6PBtiFSYg2g1bHOfWWfpJD1gv4LlRWdh1D7qFw/Ye7pQnkt7zXBSypxVNp1B2UzXgLpFJbmgnTmUGqVH7TbE9TwWXLkXJXe8FWqmMyBiUUwRusU94HIz8rF982gC6gnOVgVn/H4oiAABh2TcEmSJ8Ao+FL0kBz3nIHZczCTmLN8h8wVZ7MNFFwPkgFY4JhxeJpH0/KGLRKc1FLANBGVmX57aYt2KMc4sQa2atv/1RqTyq3qM/TE1+sDr30HzRXYBJkVo327rEWOzvNZ7i4/vEhNUD3tklrVOZ35dXaSoLr7Z7y3FsssFFaJ9lXJvqEyH80bgz+rtgpg8k+5OV2ZKVeTHzg35csClsWIpR9tgoXUe/m42Kj1Ws1PT8XjIxTmybvaDwJTIkyMM5JKeiZIZLCIqvdVNjGn/yqoaMKDA9uHBjzX0I8fJHcU9Sgxw/eOxNEf7YyQKod6ghK4egdxfzbRAA938QOzSIj0oXVcYfsfzedsQDR9XRrCjJzdzT60w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(346002)(396003)(376002)(136003)(39840400004)(2616005)(6666004)(36756003)(6486002)(316002)(6506007)(6916009)(8936002)(107886003)(83380400001)(52116002)(478600001)(41300700001)(186003)(1076003)(2906002)(38350700002)(38100700002)(26005)(6512007)(44832011)(66556008)(8676002)(66946007)(4326008)(5660300002)(86362001)(30864003)(66476007)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Yoc1f/LmiGtwBOXk+e7LHBc41jJ6hJOYStOfQB6NG/brRRQCCGiNUe6Y1QCtpU4o6a+ZlgGa27+VyMGw//ET/8fdnGS7Mor1s74QHXcYRggfqKloxZtQvWi+H0VDY1DqMIpRgoD38WAywwe2OKByWXPQ5EEcbXJZP1td+NEZ5nHS+rkClkY9RvEbzxlIP5MemyVP/J/d5055/btz2lqMzZWHiRgQgvJp3N273OHrHviqxbAhG7l9zowYhkHiNfT+HDFVX4mLXbkl4qQQe/+eJUoLVtLv3mHK6roj5eT4b4W9wIbRfWq3+wmaW7YfhLxEVvGtqcIWOzkBJUrNts5ZpIcxbMT0TpRfQep3iVPZ6HIHZNxuu1+u/ZpVeEe0dfENA673NSqQ2reuemFLzUfQelZ1CutlyBtXGOMW5Fl5I7QNRHXRMO/jsgidEUXoWF6/T24GIoLzwGzwpirsxwuGKE29QVm0K2RIUhkbti0uOJVLPy4uQ7cyDA5/+eUkT1nZJ4V4GAurmXYSe2xV1swbuBish8ngyUdmA+jKOUatToCUi71zO3EVvuc+qP2a/xFd0l1pFdE9sq/Z9hPNxtNZZp526piz1MKPH3Ll9cCf4Tsfn2ZnfeDhlHcXjZaw035YZjyJI4JGxGwML4oGjmZMq4/qKnRjzTZ/p/tiHc6PyC7FXrQbx+Nc/hQJw8ve6ni/Iobqp92YXYy8PTVB6knxeVXScynwOHd44gGDFluSmBb2DnstXRle7PrXrrLs2AmGJjAc8SPtWpUAfykA3Pso+Wzijj0tyJsUACPMyqAh3ul0b0t+eFt2JY91/5ipsIpC2JKL8ZFmV2Cf70lRrBPj8zqgO91VUnJ2dQK9CPTEYICjdTwn4eTsdEsVLWXRzmCFb+pC4RUketxMaRTT/6kgqAy6VnY1XFMZW78SwjpfbxfnDDYqSN3qU6zKE0j3QSJegKgFKf2d/nXzO3TRi3TtGUQy6pgZPykSsWmSGwgl4vB6D2t57mH5povgyl5OU+GDZ9ibWm2F4Gk5RLUu9iE67rHhaD4YCAhD6fwoPFjyj1uoQtx2sP/huKqDhpxBDnyBJommeScxAOGOk43wq9/qrrKsP869WAnxaj6XqFxg5sHDrhFlfTtS/cDKWWwuTOxo6rxIAW2CzCBrTm9eASUVMp8luV/D+A88tEZonN6mYxFSGu1Bk/K114dMev/45u+I1dtXg0TvDkVXj1M1Dpm7qzeinjLwVrBQpSnaSKPw5l+2jFP+3ctAYUmp6YCh+ojqaH+9RX3u/YSphciyxa1r1ERvnyhgqvnPYGr83LW1xF7EmM28t5xXlmKfd6aHilkxx3ajKmQTLEaekMYGkRKxvYFYMn5qgecdQKsmQVG8wsWCpKO0BTBRyYI7dyMZoyW9N/gGq/F6PIMNSjZpykiOaBqkIfGJ6qLYrDoQ6qB3+yZeAldrn9/WVfjMY/JoGSPnr1pKvI6yGuVEcYkIJeZDc37ZF+gTcnw/Vp/RH3unr+Ty0Ix4ECLkpjHNSwiNsbHb5mRxdYrxu8Oj+RjBS7SyEtosZLgoOd102aRNdOqiVG+H4O63VpLFWNdUU88qBnYzTmyyRt1p93v2FYsvV+LFjQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8dceb1ea-5f93-49be-9cb0-08da94ba20eb X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:27:16.8954 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UCWezmkLLsZmf+8wELkYIsJxId23xngaZkmDNJDSu7feiq0tmmY84P4lfAzWf7DwrGC/KsVy4LRFSaAfd97CyVqPVa7rQ2wb/4VqliFnL+s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB8805 Received-SPF: pass client-ip=40.107.21.133; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Since there's no namespace feature in C, namespace img has been replaced with adding the prefix "img" to the namespace members. Prefix "img" has been added to the function names of functions that used to be wrapped in namespace img. Those are img::format() functions. I.e. replaced img::format with the img_format. Typedef address that used to belong to namespace img now is called img_address. Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 1433 ++++++++++++++++++++++---------------------- disas/nanomips.h | 10 +- 2 files changed, 712 insertions(+), 731 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 9be8df75dd..84529685bf 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -137,131 +137,118 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) } -namespace img +std::string img_format(const char *format, ...) { - address addr32(address a) - { - return a; + char buffer[256]; + va_list args; + va_start(args, format); + int err = vsprintf(buffer, format, args); + if (err < 0) { + perror(buffer); } + va_end(args); + return buffer; +} - std::string format(const char *format, ...) - { - char buffer[256]; - va_list args; - va_start(args, format); - int err = vsprintf(buffer, format, args); - if (err < 0) { - perror(buffer); - } - va_end(args); - return buffer; - } - - std::string format(const char *format, - std::string s) - { - char buffer[256]; - - sprintf(buffer, format, s.c_str()); +std::string img_format(const char *format, + std::string s) +{ + char buffer[256]; - return buffer; - } + sprintf(buffer, format, s.c_str()); - std::string format(const char *format, - std::string s1, - std::string s2) - { - char buffer[256]; + return buffer; +} - sprintf(buffer, format, s1.c_str(), s2.c_str()); +std::string img_format(const char *format, + std::string s1, + std::string s2) +{ + char buffer[256]; - return buffer; - } + sprintf(buffer, format, s1.c_str(), s2.c_str()); - std::string format(const char *format, - std::string s1, - std::string s2, - std::string s3) - { - char buffer[256]; + return buffer; +} - sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str()); +std::string img_format(const char *format, + std::string s1, + std::string s2, + std::string s3) +{ + char buffer[256]; - return buffer; - } + sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str()); - std::string format(const char *format, - std::string s1, - std::string s2, - std::string s3, - std::string s4) - { - char buffer[256]; + return buffer; +} - sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str(), - s4.c_str()); +std::string img_format(const char *format, + std::string s1, + std::string s2, + std::string s3, + std::string s4) +{ + char buffer[256]; - return buffer; - } + sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str(), + s4.c_str()); - std::string format(const char *format, - std::string s1, - std::string s2, - std::string s3, - std::string s4, - std::string s5) - { - char buffer[256]; + return buffer; +} - sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str(), - s4.c_str(), s5.c_str()); +std::string img_format(const char *format, + std::string s1, + std::string s2, + std::string s3, + std::string s4, + std::string s5) +{ + char buffer[256]; - return buffer; - } + sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str(), + s4.c_str(), s5.c_str()); - std::string format(const char *format, - uint64 d, - std::string s2) - { - char buffer[256]; + return buffer; +} - sprintf(buffer, format, d, s2.c_str()); +std::string img_format(const char *format, + uint64 d, + std::string s2) +{ + char buffer[256]; - return buffer; - } + sprintf(buffer, format, d, s2.c_str()); - std::string format(const char *format, - std::string s1, - uint64 d, - std::string s2) - { - char buffer[256]; + return buffer; +} - sprintf(buffer, format, s1.c_str(), d, s2.c_str()); +std::string img_format(const char *format, + std::string s1, + uint64 d, + std::string s2) +{ + char buffer[256]; - return buffer; - } + sprintf(buffer, format, s1.c_str(), d, s2.c_str()); - std::string format(const char *format, - std::string s1, - std::string s2, - uint64 d) - { - char buffer[256]; + return buffer; +} - sprintf(buffer, format, s1.c_str(), s2.c_str(), d); +std::string img_format(const char *format, + std::string s1, + std::string s2, + uint64 d) +{ + char buffer[256]; - return buffer; - } + sprintf(buffer, format, s1.c_str(), s2.c_str(), d); - char as_char(int c) - { - return static_cast(c); - } -}; + return buffer; +} -std::string to_string(img::address a) +std::string to_string(img_address a) { char buffer[256]; sprintf(buffer, "0x%" PRIx64, a); @@ -289,7 +276,7 @@ uint64 NMD::renumber_registers(uint64 index, uint64 *register_list, return register_list[index]; } - throw std::runtime_error(img::format( + throw std::runtime_error(img_format( "Invalid register mapping index %" PRIu64 ", size of list = %zu", index, register_list_size)); @@ -683,7 +670,7 @@ std::string NMD::save_restore_list(uint64 rt, uint64 count, uint64 gp) for (uint64 counter = 0; counter != count; counter++) { bool use_gp = gp && (counter == count - 1); uint64 this_rt = use_gp ? 28 : ((rt & 0x10) | (rt + counter)) & 0x1f; - str += img::format(",%s", GPR(this_rt)); + str += img_format(",%s", GPR(this_rt)); } return str; @@ -703,7 +690,7 @@ std::string NMD::GPR(uint64 reg) return gpr_reg[reg]; } - throw std::runtime_error(img::format("Invalid GPR register index %" PRIu64, + throw std::runtime_error(img_format("Invalid GPR register index %" PRIu64, reg)); } @@ -721,7 +708,7 @@ std::string NMD::FPR(uint64 reg) return fpr_reg[reg]; } - throw std::runtime_error(img::format("Invalid FPR register index %" PRIu64, + throw std::runtime_error(img_format("Invalid FPR register index %" PRIu64, reg)); } @@ -736,37 +723,35 @@ std::string NMD::AC(uint64 reg) return ac_reg[reg]; } - throw std::runtime_error(img::format("Invalid AC register index %" PRIu64, + throw std::runtime_error(img_format("Invalid AC register index %" PRIu64, reg)); } std::string NMD::IMMEDIATE(uint64 value) { - return img::format("0x%" PRIx64, value); + return img_format("0x%" PRIx64, value); } std::string NMD::IMMEDIATE(int64 value) { - return img::format("%" PRId64, value); + return img_format("%" PRId64, value); } std::string NMD::CPR(uint64 reg) { /* needs more work */ - return img::format("CP%" PRIu64, reg); + return img_format("CP%" PRIu64, reg); } std::string NMD::ADDRESS(uint64 value, int instruction_size) { /* token for string replace */ - /* const char TOKEN_REPLACE = (char)0xa2; */ - img::address address = m_pc + value + instruction_size; + img_address address = m_pc + value + instruction_size; /* symbol replacement */ - /* return img::as_char(TOKEN_REPLACE) + to_string(address); */ return to_string(address); } @@ -1807,7 +1792,7 @@ std::string NMD::ABS_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string fd = FPR(copy(fd_value)); - return img::format("ABS.D %s, %s", fd, fs); + return img_format("ABS.D %s, %s", fd, fs); } @@ -1829,7 +1814,7 @@ std::string NMD::ABS_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string fd = FPR(copy(fd_value)); - return img::format("ABS.S %s, %s", fd, fs); + return img_format("ABS.S %s, %s", fd, fs); } @@ -1851,7 +1836,7 @@ std::string NMD::ABSQ_S_PH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("ABSQ_S.PH %s, %s", rt, rs); + return img_format("ABSQ_S.PH %s, %s", rt, rs); } @@ -1873,7 +1858,7 @@ std::string NMD::ABSQ_S_QB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("ABSQ_S.QB %s, %s", rt, rs); + return img_format("ABSQ_S.QB %s, %s", rt, rs); } @@ -1895,7 +1880,7 @@ std::string NMD::ABSQ_S_W(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("ABSQ_S.W %s, %s", rt, rs); + return img_format("ABSQ_S.W %s, %s", rt, rs); } @@ -1918,7 +1903,7 @@ std::string NMD::ACLR(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("ACLR %s, %s(%s)", bit, s, rs); + return img_format("ACLR %s, %s(%s)", bit, s, rs); } @@ -1941,7 +1926,7 @@ std::string NMD::ADD(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADD %s, %s, %s", rd, rs, rt); + return img_format("ADD %s, %s, %s", rd, rs, rt); } @@ -1966,7 +1951,7 @@ std::string NMD::ADD_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string fd = FPR(copy(fd_value)); - return img::format("ADD.D %s, %s, %s", fd, fs, ft); + return img_format("ADD.D %s, %s, %s", fd, fs, ft); } @@ -1991,7 +1976,7 @@ std::string NMD::ADD_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string fd = FPR(copy(fd_value)); - return img::format("ADD.S %s, %s, %s", fd, fs, ft); + return img_format("ADD.S %s, %s, %s", fd, fs, ft); } @@ -2014,7 +1999,7 @@ std::string NMD::ADDIU_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("ADDIU %s, %s, %s", rt, rs, u); + return img_format("ADDIU %s, %s, %s", rt, rs, u); } @@ -2035,7 +2020,7 @@ std::string NMD::ADDIU_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = IMMEDIATE(copy(s_value)); - return img::format("ADDIU %s, %s", rt, s); + return img_format("ADDIU %s, %s", rt, s); } @@ -2056,7 +2041,7 @@ std::string NMD::ADDIU_GP48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = IMMEDIATE(copy(s_value)); - return img::format("ADDIU %s, $%d, %s", rt, 28, s); + return img_format("ADDIU %s, $%d, %s", rt, 28, s); } @@ -2077,7 +2062,7 @@ std::string NMD::ADDIU_GP_B_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("ADDIU %s, $%d, %s", rt, 28, u); + return img_format("ADDIU %s, $%d, %s", rt, 28, u); } @@ -2098,7 +2083,7 @@ std::string NMD::ADDIU_GP_W_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("ADDIU %s, $%d, %s", rt, 28, u); + return img_format("ADDIU %s, $%d, %s", rt, 28, u); } @@ -2121,7 +2106,7 @@ std::string NMD::ADDIU_NEG_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(neg_copy(u_value)); - return img::format("ADDIU %s, %s, %s", rt, rs, u); + return img_format("ADDIU %s, %s, %s", rt, rs, u); } @@ -2142,7 +2127,7 @@ std::string NMD::ADDIU_R1_SP_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("ADDIU %s, $%d, %s", rt3, 29, u); + return img_format("ADDIU %s, $%d, %s", rt3, 29, u); } @@ -2165,7 +2150,7 @@ std::string NMD::ADDIU_R2_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("ADDIU %s, %s, %s", rt3, rs3, u); + return img_format("ADDIU %s, %s, %s", rt3, rs3, u); } @@ -2185,7 +2170,7 @@ std::string NMD::ADDIU_RS5_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = IMMEDIATE(copy(s_value)); - return img::format("ADDIU %s, %s", rt, s); + return img_format("ADDIU %s, %s", rt, s); } @@ -2207,7 +2192,7 @@ std::string NMD::ADDIUPC_32_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("ADDIUPC %s, %s", rt, s); + return img_format("ADDIUPC %s, %s", rt, s); } @@ -2229,7 +2214,7 @@ std::string NMD::ADDIUPC_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 6); - return img::format("ADDIUPC %s, %s", rt, s); + return img_format("ADDIUPC %s, %s", rt, s); } @@ -2253,7 +2238,7 @@ std::string NMD::ADDQ_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDQ.PH %s, %s, %s", rd, rs, rt); + return img_format("ADDQ.PH %s, %s, %s", rd, rs, rt); } @@ -2278,7 +2263,7 @@ std::string NMD::ADDQ_S_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDQ_S.PH %s, %s, %s", rd, rs, rt); + return img_format("ADDQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -2302,7 +2287,7 @@ std::string NMD::ADDQ_S_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDQ_S.W %s, %s, %s", rd, rs, rt); + return img_format("ADDQ_S.W %s, %s, %s", rd, rs, rt); } @@ -2327,7 +2312,7 @@ std::string NMD::ADDQH_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDQH.PH %s, %s, %s", rd, rs, rt); + return img_format("ADDQH.PH %s, %s, %s", rd, rs, rt); } @@ -2352,7 +2337,7 @@ std::string NMD::ADDQH_R_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDQH_R.PH %s, %s, %s", rd, rs, rt); + return img_format("ADDQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -2377,7 +2362,7 @@ std::string NMD::ADDQH_R_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDQH_R.W %s, %s, %s", rd, rs, rt); + return img_format("ADDQH_R.W %s, %s, %s", rd, rs, rt); } @@ -2402,7 +2387,7 @@ std::string NMD::ADDQH_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDQH.W %s, %s, %s", rd, rs, rt); + return img_format("ADDQH.W %s, %s, %s", rd, rs, rt); } @@ -2426,7 +2411,7 @@ std::string NMD::ADDSC(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDSC %s, %s, %s", rd, rs, rt); + return img_format("ADDSC %s, %s, %s", rd, rs, rt); } @@ -2449,7 +2434,7 @@ std::string NMD::ADDU_16_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string rd3 = GPR(decode_gpr_gpr3(rd3_value)); - return img::format("ADDU %s, %s, %s", rd3, rs3, rt3); + return img_format("ADDU %s, %s, %s", rd3, rs3, rt3); } @@ -2473,7 +2458,7 @@ std::string NMD::ADDU_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDU %s, %s, %s", rd, rs, rt); + return img_format("ADDU %s, %s, %s", rd, rs, rt); } @@ -2495,7 +2480,7 @@ std::string NMD::ADDU_4X4_(uint64 instruction) std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); std::string rt4 = GPR(decode_gpr_gpr4(rt4_value)); - return img::format("ADDU %s, %s", rs4, rt4); + return img_format("ADDU %s, %s", rs4, rt4); } @@ -2519,7 +2504,7 @@ std::string NMD::ADDU_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDU.PH %s, %s, %s", rd, rs, rt); + return img_format("ADDU.PH %s, %s, %s", rd, rs, rt); } @@ -2543,7 +2528,7 @@ std::string NMD::ADDU_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDU.QB %s, %s, %s", rd, rs, rt); + return img_format("ADDU.QB %s, %s, %s", rd, rs, rt); } @@ -2568,7 +2553,7 @@ std::string NMD::ADDU_S_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDU_S.PH %s, %s, %s", rd, rs, rt); + return img_format("ADDU_S.PH %s, %s, %s", rd, rs, rt); } @@ -2592,7 +2577,7 @@ std::string NMD::ADDU_S_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDU_S.QB %s, %s, %s", rd, rs, rt); + return img_format("ADDU_S.QB %s, %s, %s", rd, rs, rt); } @@ -2617,7 +2602,7 @@ std::string NMD::ADDUH_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDUH.QB %s, %s, %s", rd, rs, rt); + return img_format("ADDUH.QB %s, %s, %s", rd, rs, rt); } @@ -2642,7 +2627,7 @@ std::string NMD::ADDUH_R_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDUH_R.QB %s, %s, %s", rd, rs, rt); + return img_format("ADDUH_R.QB %s, %s, %s", rd, rs, rt); } /* @@ -2665,7 +2650,7 @@ std::string NMD::ADDWC(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ADDWC %s, %s, %s", rd, rs, rt); + return img_format("ADDWC %s, %s, %s", rd, rs, rt); } @@ -2687,7 +2672,7 @@ std::string NMD::ALUIPC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); + return img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); } @@ -2708,7 +2693,7 @@ std::string NMD::AND_16_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("AND %s, %s", rs3, rt3); + return img_format("AND %s, %s", rs3, rt3); } @@ -2732,7 +2717,7 @@ std::string NMD::AND_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("AND %s, %s, %s", rd, rs, rt); + return img_format("AND %s, %s, %s", rd, rs, rt); } @@ -2755,7 +2740,7 @@ std::string NMD::ANDI_16_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string eu = IMMEDIATE(encode_eu_from_u_andi16(eu_value)); - return img::format("ANDI %s, %s, %s", rt3, rs3, eu); + return img_format("ANDI %s, %s, %s", rt3, rs3, eu); } @@ -2779,7 +2764,7 @@ std::string NMD::ANDI_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("ANDI %s, %s, %s", rt, rs, u); + return img_format("ANDI %s, %s, %s", rt, rs, u); } @@ -2803,7 +2788,7 @@ std::string NMD::APPEND(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("APPEND %s, %s, %s", rt, rs, sa); + return img_format("APPEND %s, %s, %s", rt, rs, sa); } @@ -2827,7 +2812,7 @@ std::string NMD::ASET(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("ASET %s, %s(%s)", bit, s, rs); + return img_format("ASET %s, %s(%s)", bit, s, rs); } @@ -2847,7 +2832,7 @@ std::string NMD::BALC_16_(uint64 instruction) std::string s = ADDRESS(encode_s_from_address(s_value), 2); - return img::format("BALC %s", s); + return img_format("BALC %s", s); } @@ -2867,7 +2852,7 @@ std::string NMD::BALC_32_(uint64 instruction) std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BALC %s", s); + return img_format("BALC %s", s); } @@ -2889,7 +2874,7 @@ std::string NMD::BALRSC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("BALRSC %s, %s", rt, rs); + return img_format("BALRSC %s, %s", rt, rs); } @@ -2913,7 +2898,7 @@ std::string NMD::BBEQZC(uint64 instruction) std::string bit = IMMEDIATE(copy(bit_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BBEQZC %s, %s, %s", rt, bit, s); + return img_format("BBEQZC %s, %s, %s", rt, bit, s); } @@ -2937,7 +2922,7 @@ std::string NMD::BBNEZC(uint64 instruction) std::string bit = IMMEDIATE(copy(bit_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BBNEZC %s, %s, %s", rt, bit, s); + return img_format("BBNEZC %s, %s, %s", rt, bit, s); } @@ -2957,7 +2942,7 @@ std::string NMD::BC_16_(uint64 instruction) std::string s = ADDRESS(encode_s_from_address(s_value), 2); - return img::format("BC %s", s); + return img_format("BC %s", s); } @@ -2977,7 +2962,7 @@ std::string NMD::BC_32_(uint64 instruction) std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BC %s", s); + return img_format("BC %s", s); } @@ -2999,7 +2984,7 @@ std::string NMD::BC1EQZC(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BC1EQZC %s, %s", ft, s); + return img_format("BC1EQZC %s, %s", ft, s); } @@ -3021,7 +3006,7 @@ std::string NMD::BC1NEZC(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BC1NEZC %s, %s", ft, s); + return img_format("BC1NEZC %s, %s", ft, s); } @@ -3043,7 +3028,7 @@ std::string NMD::BC2EQZC(uint64 instruction) std::string ct = CPR(copy(ct_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BC2EQZC %s, %s", ct, s); + return img_format("BC2EQZC %s, %s", ct, s); } @@ -3065,7 +3050,7 @@ std::string NMD::BC2NEZC(uint64 instruction) std::string ct = CPR(copy(ct_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BC2NEZC %s, %s", ct, s); + return img_format("BC2NEZC %s, %s", ct, s); } @@ -3089,7 +3074,7 @@ std::string NMD::BEQC_16_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string u = ADDRESS(encode_u_from_address(u_value), 2); - return img::format("BEQC %s, %s, %s", rs3, rt3, u); + return img_format("BEQC %s, %s, %s", rs3, rt3, u); } @@ -3113,7 +3098,7 @@ std::string NMD::BEQC_32_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BEQC %s, %s, %s", rs, rt, s); + return img_format("BEQC %s, %s, %s", rs, rt, s); } @@ -3137,7 +3122,7 @@ std::string NMD::BEQIC(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BEQIC %s, %s, %s", rt, u, s); + return img_format("BEQIC %s, %s, %s", rt, u, s); } @@ -3159,7 +3144,7 @@ std::string NMD::BEQZC_16_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 2); - return img::format("BEQZC %s, %s", rt3, s); + return img_format("BEQZC %s, %s", rt3, s); } @@ -3183,7 +3168,7 @@ std::string NMD::BGEC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BGEC %s, %s, %s", rs, rt, s); + return img_format("BGEC %s, %s, %s", rs, rt, s); } @@ -3207,7 +3192,7 @@ std::string NMD::BGEIC(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BGEIC %s, %s, %s", rt, u, s); + return img_format("BGEIC %s, %s, %s", rt, u, s); } @@ -3231,7 +3216,7 @@ std::string NMD::BGEIUC(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BGEIUC %s, %s, %s", rt, u, s); + return img_format("BGEIUC %s, %s, %s", rt, u, s); } @@ -3255,7 +3240,7 @@ std::string NMD::BGEUC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BGEUC %s, %s, %s", rs, rt, s); + return img_format("BGEUC %s, %s, %s", rs, rt, s); } @@ -3279,7 +3264,7 @@ std::string NMD::BLTC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BLTC %s, %s, %s", rs, rt, s); + return img_format("BLTC %s, %s, %s", rs, rt, s); } @@ -3303,7 +3288,7 @@ std::string NMD::BLTIC(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BLTIC %s, %s, %s", rt, u, s); + return img_format("BLTIC %s, %s, %s", rt, u, s); } @@ -3327,7 +3312,7 @@ std::string NMD::BLTIUC(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BLTIUC %s, %s, %s", rt, u, s); + return img_format("BLTIUC %s, %s, %s", rt, u, s); } @@ -3351,7 +3336,7 @@ std::string NMD::BLTUC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BLTUC %s, %s, %s", rs, rt, s); + return img_format("BLTUC %s, %s, %s", rs, rt, s); } @@ -3375,7 +3360,7 @@ std::string NMD::BNEC_16_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string u = ADDRESS(encode_u_from_address(u_value), 2); - return img::format("BNEC %s, %s, %s", rs3, rt3, u); + return img_format("BNEC %s, %s, %s", rs3, rt3, u); } @@ -3399,7 +3384,7 @@ std::string NMD::BNEC_32_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BNEC %s, %s, %s", rs, rt, s); + return img_format("BNEC %s, %s, %s", rs, rt, s); } @@ -3423,7 +3408,7 @@ std::string NMD::BNEIC(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BNEIC %s, %s, %s", rt, u, s); + return img_format("BNEIC %s, %s, %s", rt, u, s); } @@ -3445,7 +3430,7 @@ std::string NMD::BNEZC_16_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 2); - return img::format("BNEZC %s, %s", rt3, s); + return img_format("BNEZC %s, %s", rt3, s); } @@ -3465,7 +3450,7 @@ std::string NMD::BPOSGE32C(uint64 instruction) std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("BPOSGE32C %s", s); + return img_format("BPOSGE32C %s", s); } @@ -3485,7 +3470,7 @@ std::string NMD::BREAK_16_(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("BREAK %s", code); + return img_format("BREAK %s", code); } @@ -3505,7 +3490,7 @@ std::string NMD::BREAK_32_(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("BREAK %s", code); + return img_format("BREAK %s", code); } @@ -3525,7 +3510,7 @@ std::string NMD::BRSC(uint64 instruction) std::string rs = GPR(copy(rs_value)); - return img::format("BRSC %s", rs); + return img_format("BRSC %s", rs); } @@ -3549,7 +3534,7 @@ std::string NMD::CACHE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("CACHE %s, %s(%s)", op, s, rs); + return img_format("CACHE %s, %s(%s)", op, s, rs); } @@ -3573,7 +3558,7 @@ std::string NMD::CACHEE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("CACHEE %s, %s(%s)", op, s, rs); + return img_format("CACHEE %s, %s(%s)", op, s, rs); } @@ -3595,7 +3580,7 @@ std::string NMD::CEIL_L_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CEIL.L.D %s, %s", ft, fs); + return img_format("CEIL.L.D %s, %s", ft, fs); } @@ -3617,7 +3602,7 @@ std::string NMD::CEIL_L_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CEIL.L.S %s, %s", ft, fs); + return img_format("CEIL.L.S %s, %s", ft, fs); } @@ -3639,7 +3624,7 @@ std::string NMD::CEIL_W_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CEIL.W.D %s, %s", ft, fs); + return img_format("CEIL.W.D %s, %s", ft, fs); } @@ -3661,7 +3646,7 @@ std::string NMD::CEIL_W_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CEIL.W.S %s, %s", ft, fs); + return img_format("CEIL.W.S %s, %s", ft, fs); } @@ -3683,7 +3668,7 @@ std::string NMD::CFC1(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("CFC1 %s, %s", rt, cs); + return img_format("CFC1 %s, %s", rt, cs); } @@ -3705,7 +3690,7 @@ std::string NMD::CFC2(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("CFC2 %s, %s", rt, cs); + return img_format("CFC2 %s, %s", rt, cs); } @@ -3727,7 +3712,7 @@ std::string NMD::CLASS_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CLASS.D %s, %s", ft, fs); + return img_format("CLASS.D %s, %s", ft, fs); } @@ -3749,7 +3734,7 @@ std::string NMD::CLASS_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CLASS.S %s, %s", ft, fs); + return img_format("CLASS.S %s, %s", ft, fs); } @@ -3771,7 +3756,7 @@ std::string NMD::CLO(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("CLO %s, %s", rt, rs); + return img_format("CLO %s, %s", rt, rs); } @@ -3793,7 +3778,7 @@ std::string NMD::CLZ(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("CLZ %s, %s", rt, rs); + return img_format("CLZ %s, %s", rt, rs); } @@ -3817,7 +3802,7 @@ std::string NMD::CMP_AF_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.AF.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.AF.D %s, %s, %s", fd, fs, ft); } @@ -3841,7 +3826,7 @@ std::string NMD::CMP_AF_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.AF.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.AF.S %s, %s, %s", fd, fs, ft); } @@ -3865,7 +3850,7 @@ std::string NMD::CMP_EQ_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.EQ.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.EQ.D %s, %s, %s", fd, fs, ft); } @@ -3886,7 +3871,7 @@ std::string NMD::CMP_EQ_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMP.EQ.PH %s, %s", rs, rt); + return img_format("CMP.EQ.PH %s, %s", rs, rt); } @@ -3910,7 +3895,7 @@ std::string NMD::CMP_EQ_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.EQ.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.EQ.S %s, %s, %s", fd, fs, ft); } @@ -3934,7 +3919,7 @@ std::string NMD::CMP_LE_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.LE.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.LE.D %s, %s, %s", fd, fs, ft); } @@ -3955,7 +3940,7 @@ std::string NMD::CMP_LE_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMP.LE.PH %s, %s", rs, rt); + return img_format("CMP.LE.PH %s, %s", rs, rt); } @@ -3979,7 +3964,7 @@ std::string NMD::CMP_LE_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.LE.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.LE.S %s, %s, %s", fd, fs, ft); } @@ -4003,7 +3988,7 @@ std::string NMD::CMP_LT_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.LT.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.LT.D %s, %s, %s", fd, fs, ft); } @@ -4024,7 +4009,7 @@ std::string NMD::CMP_LT_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMP.LT.PH %s, %s", rs, rt); + return img_format("CMP.LT.PH %s, %s", rs, rt); } @@ -4048,7 +4033,7 @@ std::string NMD::CMP_LT_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.LT.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.LT.S %s, %s, %s", fd, fs, ft); } @@ -4072,7 +4057,7 @@ std::string NMD::CMP_NE_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.NE.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.NE.D %s, %s, %s", fd, fs, ft); } @@ -4096,7 +4081,7 @@ std::string NMD::CMP_NE_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.NE.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.NE.S %s, %s, %s", fd, fs, ft); } @@ -4120,7 +4105,7 @@ std::string NMD::CMP_OR_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.OR.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.OR.D %s, %s, %s", fd, fs, ft); } @@ -4144,7 +4129,7 @@ std::string NMD::CMP_OR_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.OR.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.OR.S %s, %s, %s", fd, fs, ft); } @@ -4168,7 +4153,7 @@ std::string NMD::CMP_SAF_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SAF.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SAF.D %s, %s, %s", fd, fs, ft); } @@ -4192,7 +4177,7 @@ std::string NMD::CMP_SAF_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SAF.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SAF.S %s, %s, %s", fd, fs, ft); } @@ -4216,7 +4201,7 @@ std::string NMD::CMP_SEQ_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SEQ.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SEQ.D %s, %s, %s", fd, fs, ft); } @@ -4240,7 +4225,7 @@ std::string NMD::CMP_SEQ_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SEQ.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SEQ.S %s, %s, %s", fd, fs, ft); } @@ -4264,7 +4249,7 @@ std::string NMD::CMP_SLE_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SLE.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SLE.D %s, %s, %s", fd, fs, ft); } @@ -4288,7 +4273,7 @@ std::string NMD::CMP_SLE_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SLE.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SLE.S %s, %s, %s", fd, fs, ft); } @@ -4312,7 +4297,7 @@ std::string NMD::CMP_SLT_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SLT.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SLT.D %s, %s, %s", fd, fs, ft); } @@ -4336,7 +4321,7 @@ std::string NMD::CMP_SLT_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SLT.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SLT.S %s, %s, %s", fd, fs, ft); } @@ -4360,7 +4345,7 @@ std::string NMD::CMP_SNE_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SNE.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SNE.D %s, %s, %s", fd, fs, ft); } @@ -4384,7 +4369,7 @@ std::string NMD::CMP_SNE_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SNE.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SNE.S %s, %s, %s", fd, fs, ft); } @@ -4408,7 +4393,7 @@ std::string NMD::CMP_SOR_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SOR.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SOR.D %s, %s, %s", fd, fs, ft); } @@ -4432,7 +4417,7 @@ std::string NMD::CMP_SOR_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SOR.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SOR.S %s, %s, %s", fd, fs, ft); } @@ -4456,7 +4441,7 @@ std::string NMD::CMP_SUEQ_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SUEQ.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SUEQ.D %s, %s, %s", fd, fs, ft); } @@ -4480,7 +4465,7 @@ std::string NMD::CMP_SUEQ_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SUEQ.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SUEQ.S %s, %s, %s", fd, fs, ft); } @@ -4504,7 +4489,7 @@ std::string NMD::CMP_SULE_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SULE.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SULE.D %s, %s, %s", fd, fs, ft); } @@ -4528,7 +4513,7 @@ std::string NMD::CMP_SULE_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SULE.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SULE.S %s, %s, %s", fd, fs, ft); } @@ -4552,7 +4537,7 @@ std::string NMD::CMP_SULT_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SULT.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SULT.D %s, %s, %s", fd, fs, ft); } @@ -4576,7 +4561,7 @@ std::string NMD::CMP_SULT_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SULT.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SULT.S %s, %s, %s", fd, fs, ft); } @@ -4600,7 +4585,7 @@ std::string NMD::CMP_SUN_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SUN.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SUN.D %s, %s, %s", fd, fs, ft); } @@ -4624,7 +4609,7 @@ std::string NMD::CMP_SUNE_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SUNE.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.SUNE.D %s, %s, %s", fd, fs, ft); } @@ -4648,7 +4633,7 @@ std::string NMD::CMP_SUNE_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SUNE.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SUNE.S %s, %s, %s", fd, fs, ft); } @@ -4672,7 +4657,7 @@ std::string NMD::CMP_SUN_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.SUN.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.SUN.S %s, %s, %s", fd, fs, ft); } @@ -4696,7 +4681,7 @@ std::string NMD::CMP_UEQ_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.UEQ.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.UEQ.D %s, %s, %s", fd, fs, ft); } @@ -4720,7 +4705,7 @@ std::string NMD::CMP_UEQ_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.UEQ.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.UEQ.S %s, %s, %s", fd, fs, ft); } @@ -4744,7 +4729,7 @@ std::string NMD::CMP_ULE_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.ULE.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.ULE.D %s, %s, %s", fd, fs, ft); } @@ -4768,7 +4753,7 @@ std::string NMD::CMP_ULE_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.ULE.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.ULE.S %s, %s, %s", fd, fs, ft); } @@ -4792,7 +4777,7 @@ std::string NMD::CMP_ULT_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.ULT.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.ULT.D %s, %s, %s", fd, fs, ft); } @@ -4816,7 +4801,7 @@ std::string NMD::CMP_ULT_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.ULT.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.ULT.S %s, %s, %s", fd, fs, ft); } @@ -4840,7 +4825,7 @@ std::string NMD::CMP_UN_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.UN.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.UN.D %s, %s, %s", fd, fs, ft); } @@ -4864,7 +4849,7 @@ std::string NMD::CMP_UNE_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.UNE.D %s, %s, %s", fd, fs, ft); + return img_format("CMP.UNE.D %s, %s, %s", fd, fs, ft); } @@ -4888,7 +4873,7 @@ std::string NMD::CMP_UNE_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.UNE.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.UNE.S %s, %s, %s", fd, fs, ft); } @@ -4912,7 +4897,7 @@ std::string NMD::CMP_UN_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("CMP.UN.S %s, %s, %s", fd, fs, ft); + return img_format("CMP.UN.S %s, %s, %s", fd, fs, ft); } @@ -4937,7 +4922,7 @@ std::string NMD::CMPGDU_EQ_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPGDU.EQ.QB %s, %s, %s", rd, rs, rt); + return img_format("CMPGDU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4962,7 +4947,7 @@ std::string NMD::CMPGDU_LE_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPGDU.LE.QB %s, %s, %s", rd, rs, rt); + return img_format("CMPGDU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4987,7 +4972,7 @@ std::string NMD::CMPGDU_LT_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPGDU.LT.QB %s, %s, %s", rd, rs, rt); + return img_format("CMPGDU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -5012,7 +4997,7 @@ std::string NMD::CMPGU_EQ_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPGU.EQ.QB %s, %s, %s", rd, rs, rt); + return img_format("CMPGU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -5037,7 +5022,7 @@ std::string NMD::CMPGU_LE_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPGU.LE.QB %s, %s, %s", rd, rs, rt); + return img_format("CMPGU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -5062,7 +5047,7 @@ std::string NMD::CMPGU_LT_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPGU.LT.QB %s, %s, %s", rd, rs, rt); + return img_format("CMPGU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -5084,7 +5069,7 @@ std::string NMD::CMPU_EQ_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPU.EQ.QB %s, %s", rs, rt); + return img_format("CMPU.EQ.QB %s, %s", rs, rt); } @@ -5106,7 +5091,7 @@ std::string NMD::CMPU_LE_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPU.LE.QB %s, %s", rs, rt); + return img_format("CMPU.LE.QB %s, %s", rs, rt); } @@ -5128,7 +5113,7 @@ std::string NMD::CMPU_LT_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("CMPU.LT.QB %s, %s", rs, rt); + return img_format("CMPU.LT.QB %s, %s", rs, rt); } @@ -5148,7 +5133,7 @@ std::string NMD::COP2_1(uint64 instruction) std::string cofun = IMMEDIATE(copy(cofun_value)); - return img::format("COP2_1 %s", cofun); + return img_format("COP2_1 %s", cofun); } @@ -5170,7 +5155,7 @@ std::string NMD::CTC1(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("CTC1 %s, %s", rt, cs); + return img_format("CTC1 %s, %s", rt, cs); } @@ -5192,7 +5177,7 @@ std::string NMD::CTC2(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("CTC2 %s, %s", rt, cs); + return img_format("CTC2 %s, %s", rt, cs); } @@ -5214,7 +5199,7 @@ std::string NMD::CVT_D_L(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.D.L %s, %s", ft, fs); + return img_format("CVT.D.L %s, %s", ft, fs); } @@ -5236,7 +5221,7 @@ std::string NMD::CVT_D_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.D.S %s, %s", ft, fs); + return img_format("CVT.D.S %s, %s", ft, fs); } @@ -5258,7 +5243,7 @@ std::string NMD::CVT_D_W(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.D.W %s, %s", ft, fs); + return img_format("CVT.D.W %s, %s", ft, fs); } @@ -5280,7 +5265,7 @@ std::string NMD::CVT_L_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.L.D %s, %s", ft, fs); + return img_format("CVT.L.D %s, %s", ft, fs); } @@ -5302,7 +5287,7 @@ std::string NMD::CVT_L_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.L.S %s, %s", ft, fs); + return img_format("CVT.L.S %s, %s", ft, fs); } @@ -5324,7 +5309,7 @@ std::string NMD::CVT_S_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.S.D %s, %s", ft, fs); + return img_format("CVT.S.D %s, %s", ft, fs); } @@ -5346,7 +5331,7 @@ std::string NMD::CVT_S_L(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.S.L %s, %s", ft, fs); + return img_format("CVT.S.L %s, %s", ft, fs); } @@ -5368,7 +5353,7 @@ std::string NMD::CVT_S_PL(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.S.PL %s, %s", ft, fs); + return img_format("CVT.S.PL %s, %s", ft, fs); } @@ -5390,7 +5375,7 @@ std::string NMD::CVT_S_PU(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.S.PU %s, %s", ft, fs); + return img_format("CVT.S.PU %s, %s", ft, fs); } @@ -5412,7 +5397,7 @@ std::string NMD::CVT_S_W(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.S.W %s, %s", ft, fs); + return img_format("CVT.S.W %s, %s", ft, fs); } @@ -5434,7 +5419,7 @@ std::string NMD::CVT_W_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.W.D %s, %s", ft, fs); + return img_format("CVT.W.D %s, %s", ft, fs); } @@ -5456,7 +5441,7 @@ std::string NMD::CVT_W_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("CVT.W.S %s, %s", ft, fs); + return img_format("CVT.W.S %s, %s", ft, fs); } @@ -5478,7 +5463,7 @@ std::string NMD::DADDIU_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = IMMEDIATE(copy(s_value)); - return img::format("DADDIU %s, %s", rt, s); + return img_format("DADDIU %s, %s", rt, s); } @@ -5502,7 +5487,7 @@ std::string NMD::DADDIU_NEG_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(neg_copy(u_value)); - return img::format("DADDIU %s, %s, %s", rt, rs, u); + return img_format("DADDIU %s, %s, %s", rt, rs, u); } @@ -5526,7 +5511,7 @@ std::string NMD::DADDIU_U12_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("DADDIU %s, %s, %s", rt, rs, u); + return img_format("DADDIU %s, %s, %s", rt, rs, u); } @@ -5550,7 +5535,7 @@ std::string NMD::DADD(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DADD %s, %s, %s", rd, rs, rt); + return img_format("DADD %s, %s, %s", rd, rs, rt); } @@ -5574,7 +5559,7 @@ std::string NMD::DADDU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DADDU %s, %s, %s", rd, rs, rt); + return img_format("DADDU %s, %s, %s", rd, rs, rt); } @@ -5596,7 +5581,7 @@ std::string NMD::DCLO(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("DCLO %s, %s", rt, rs); + return img_format("DCLO %s, %s", rt, rs); } @@ -5618,7 +5603,7 @@ std::string NMD::DCLZ(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("DCLZ %s, %s", rt, rs); + return img_format("DCLZ %s, %s", rt, rs); } @@ -5642,7 +5627,7 @@ std::string NMD::DDIV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DDIV %s, %s, %s", rd, rs, rt); + return img_format("DDIV %s, %s, %s", rd, rs, rt); } @@ -5666,7 +5651,7 @@ std::string NMD::DDIVU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DDIVU %s, %s, %s", rd, rs, rt); + return img_format("DDIVU %s, %s, %s", rd, rs, rt); } @@ -5710,7 +5695,7 @@ std::string NMD::DEXTM(uint64 instruction) std::string lsb = IMMEDIATE(copy(lsb_value)); std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); - return img::format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); + return img_format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5736,7 +5721,7 @@ std::string NMD::DEXT(uint64 instruction) std::string lsb = IMMEDIATE(copy(lsb_value)); std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); - return img::format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); + return img_format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5762,7 +5747,7 @@ std::string NMD::DEXTU(uint64 instruction) std::string lsb = IMMEDIATE(copy(lsb_value)); std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); - return img::format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); + return img_format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5789,7 +5774,7 @@ std::string NMD::DINSM(uint64 instruction) std::string size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); /* !!!!!!!!!! - no conversion function */ - return img::format("DINSM %s, %s, %s, %s", rt, rs, pos, size); + return img_format("DINSM %s, %s, %s, %s", rt, rs, pos, size); /* hand edited */ } @@ -5817,7 +5802,7 @@ std::string NMD::DINS(uint64 instruction) std::string size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); /* !!!!!!!!!! - no conversion function */ - return img::format("DINS %s, %s, %s, %s", rt, rs, pos, size); + return img_format("DINS %s, %s, %s, %s", rt, rs, pos, size); /* hand edited */ } @@ -5845,7 +5830,7 @@ std::string NMD::DINSU(uint64 instruction) std::string size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); /* !!!!!!!!!! - no conversion function */ - return img::format("DINSU %s, %s, %s, %s", rt, rs, pos, size); + return img_format("DINSU %s, %s, %s, %s", rt, rs, pos, size); /* hand edited */ } @@ -5866,7 +5851,7 @@ std::string NMD::DI(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("DI %s", rt); + return img_format("DI %s", rt); } @@ -5890,7 +5875,7 @@ std::string NMD::DIV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DIV %s, %s, %s", rd, rs, rt); + return img_format("DIV %s, %s, %s", rd, rs, rt); } @@ -5914,7 +5899,7 @@ std::string NMD::DIV_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("DIV.D %s, %s, %s", fd, fs, ft); + return img_format("DIV.D %s, %s, %s", fd, fs, ft); } @@ -5938,7 +5923,7 @@ std::string NMD::DIV_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("DIV.S %s, %s, %s", fd, fs, ft); + return img_format("DIV.S %s, %s, %s", fd, fs, ft); } @@ -5962,7 +5947,7 @@ std::string NMD::DIVU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DIVU %s, %s, %s", rd, rs, rt); + return img_format("DIVU %s, %s, %s", rd, rs, rt); } @@ -5988,7 +5973,7 @@ std::string NMD::DLSA(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u2 = IMMEDIATE(copy(u2_value)); - return img::format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); + return img_format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); } @@ -6010,7 +5995,7 @@ std::string NMD::DLUI_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("DLUI %s, %s", rt, u); + return img_format("DLUI %s, %s", rt, u); } @@ -6034,7 +6019,7 @@ std::string NMD::DMFC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("DMFC0 %s, %s, %s", rt, c0s, sel); + return img_format("DMFC0 %s, %s, %s", rt, c0s, sel); } @@ -6056,7 +6041,7 @@ std::string NMD::DMFC1(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string fs = FPR(copy(fs_value)); - return img::format("DMFC1 %s, %s", rt, fs); + return img_format("DMFC1 %s, %s", rt, fs); } @@ -6078,7 +6063,7 @@ std::string NMD::DMFC2(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("DMFC2 %s, %s", rt, cs); + return img_format("DMFC2 %s, %s", rt, cs); } @@ -6102,7 +6087,7 @@ std::string NMD::DMFGC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("DMFGC0 %s, %s, %s", rt, c0s, sel); + return img_format("DMFGC0 %s, %s, %s", rt, c0s, sel); } @@ -6126,7 +6111,7 @@ std::string NMD::DMOD(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DMOD %s, %s, %s", rd, rs, rt); + return img_format("DMOD %s, %s, %s", rd, rs, rt); } @@ -6150,7 +6135,7 @@ std::string NMD::DMODU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DMODU %s, %s, %s", rd, rs, rt); + return img_format("DMODU %s, %s, %s", rd, rs, rt); } @@ -6174,7 +6159,7 @@ std::string NMD::DMTC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("DMTC0 %s, %s, %s", rt, c0s, sel); + return img_format("DMTC0 %s, %s, %s", rt, c0s, sel); } @@ -6196,7 +6181,7 @@ std::string NMD::DMTC1(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string fs = FPR(copy(fs_value)); - return img::format("DMTC1 %s, %s", rt, fs); + return img_format("DMTC1 %s, %s", rt, fs); } @@ -6218,7 +6203,7 @@ std::string NMD::DMTC2(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("DMTC2 %s, %s", rt, cs); + return img_format("DMTC2 %s, %s", rt, cs); } @@ -6242,7 +6227,7 @@ std::string NMD::DMTGC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("DMTGC0 %s, %s, %s", rt, c0s, sel); + return img_format("DMTGC0 %s, %s, %s", rt, c0s, sel); } @@ -6262,7 +6247,7 @@ std::string NMD::DMT(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("DMT %s", rt); + return img_format("DMT %s", rt); } @@ -6286,7 +6271,7 @@ std::string NMD::DMUH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DMUH %s, %s, %s", rd, rs, rt); + return img_format("DMUH %s, %s, %s", rd, rs, rt); } @@ -6310,7 +6295,7 @@ std::string NMD::DMUHU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DMUHU %s, %s, %s", rd, rs, rt); + return img_format("DMUHU %s, %s, %s", rd, rs, rt); } @@ -6334,7 +6319,7 @@ std::string NMD::DMUL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DMUL %s, %s, %s", rd, rs, rt); + return img_format("DMUL %s, %s, %s", rd, rs, rt); } @@ -6358,7 +6343,7 @@ std::string NMD::DMULU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DMULU %s, %s, %s", rd, rs, rt); + return img_format("DMULU %s, %s, %s", rd, rs, rt); } @@ -6383,7 +6368,7 @@ std::string NMD::DPA_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPA.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6407,7 +6392,7 @@ std::string NMD::DPAQ_SA_L_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPAQ_SA.L.W %s, %s, %s", ac, rs, rt); + return img_format("DPAQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6431,7 +6416,7 @@ std::string NMD::DPAQ_S_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPAQ_S.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6455,7 +6440,7 @@ std::string NMD::DPAQX_SA_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPAQX_SA.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPAQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6479,7 +6464,7 @@ std::string NMD::DPAQX_S_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPAQX_S.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPAQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6503,7 +6488,7 @@ std::string NMD::DPAU_H_QBL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPAU.H.QBL %s, %s, %s", ac, rs, rt); + return img_format("DPAU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6527,7 +6512,7 @@ std::string NMD::DPAU_H_QBR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPAU.H.QBR %s, %s, %s", ac, rs, rt); + return img_format("DPAU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6551,7 +6536,7 @@ std::string NMD::DPAX_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPAX.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPAX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6575,7 +6560,7 @@ std::string NMD::DPS_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPS.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPS.W.PH %s, %s, %s", ac, rs, rt); } @@ -6599,7 +6584,7 @@ std::string NMD::DPSQ_SA_L_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPSQ_SA.L.W %s, %s, %s", ac, rs, rt); + return img_format("DPSQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6623,7 +6608,7 @@ std::string NMD::DPSQ_S_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPSQ_S.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPSQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6647,7 +6632,7 @@ std::string NMD::DPSQX_SA_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPSQX_SA.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPSQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6671,7 +6656,7 @@ std::string NMD::DPSQX_S_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPSQX_S.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPSQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6695,7 +6680,7 @@ std::string NMD::DPSU_H_QBL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPSU.H.QBL %s, %s, %s", ac, rs, rt); + return img_format("DPSU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6719,7 +6704,7 @@ std::string NMD::DPSU_H_QBR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPSU.H.QBR %s, %s, %s", ac, rs, rt); + return img_format("DPSU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6743,7 +6728,7 @@ std::string NMD::DPSX_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DPSX.W.PH %s, %s, %s", ac, rs, rt); + return img_format("DPSX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6767,7 +6752,7 @@ std::string NMD::DROTR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("DROTR %s, %s, %s", rt, rs, shift); + return img_format("DROTR %s, %s, %s", rt, rs, shift); } @@ -6791,7 +6776,7 @@ std::string NMD::DROTR32(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("DROTR32 %s, %s, %s", rt, rs, shift); + return img_format("DROTR32 %s, %s, %s", rt, rs, shift); } @@ -6815,7 +6800,7 @@ std::string NMD::DROTRV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DROTRV %s, %s, %s", rd, rs, rt); + return img_format("DROTRV %s, %s, %s", rd, rs, rt); } @@ -6841,7 +6826,7 @@ std::string NMD::DROTX(uint64 instruction) std::string shift = IMMEDIATE(copy(shift_value)); std::string shiftx = IMMEDIATE(copy(shiftx_value)); - return img::format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); + return img_format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); } @@ -6865,7 +6850,7 @@ std::string NMD::DSLL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("DSLL %s, %s, %s", rt, rs, shift); + return img_format("DSLL %s, %s, %s", rt, rs, shift); } @@ -6889,7 +6874,7 @@ std::string NMD::DSLL32(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("DSLL32 %s, %s, %s", rt, rs, shift); + return img_format("DSLL32 %s, %s, %s", rt, rs, shift); } @@ -6913,7 +6898,7 @@ std::string NMD::DSLLV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DSLLV %s, %s, %s", rd, rs, rt); + return img_format("DSLLV %s, %s, %s", rd, rs, rt); } @@ -6937,7 +6922,7 @@ std::string NMD::DSRA(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("DSRA %s, %s, %s", rt, rs, shift); + return img_format("DSRA %s, %s, %s", rt, rs, shift); } @@ -6961,7 +6946,7 @@ std::string NMD::DSRA32(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("DSRA32 %s, %s, %s", rt, rs, shift); + return img_format("DSRA32 %s, %s, %s", rt, rs, shift); } @@ -6985,7 +6970,7 @@ std::string NMD::DSRAV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DSRAV %s, %s, %s", rd, rs, rt); + return img_format("DSRAV %s, %s, %s", rd, rs, rt); } @@ -7009,7 +6994,7 @@ std::string NMD::DSRL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("DSRL %s, %s, %s", rt, rs, shift); + return img_format("DSRL %s, %s, %s", rt, rs, shift); } @@ -7033,7 +7018,7 @@ std::string NMD::DSRL32(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("DSRL32 %s, %s, %s", rt, rs, shift); + return img_format("DSRL32 %s, %s, %s", rt, rs, shift); } @@ -7057,7 +7042,7 @@ std::string NMD::DSRLV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DSRLV %s, %s, %s", rd, rs, rt); + return img_format("DSRLV %s, %s, %s", rd, rs, rt); } @@ -7081,7 +7066,7 @@ std::string NMD::DSUB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DSUB %s, %s, %s", rd, rs, rt); + return img_format("DSUB %s, %s, %s", rd, rs, rt); } @@ -7105,7 +7090,7 @@ std::string NMD::DSUBU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("DSUBU %s, %s, %s", rd, rs, rt); + return img_format("DSUBU %s, %s, %s", rd, rs, rt); } @@ -7125,7 +7110,7 @@ std::string NMD::DVPE(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("DVPE %s", rt); + return img_format("DVPE %s", rt); } @@ -7145,7 +7130,7 @@ std::string NMD::DVP(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("DVP %s", rt); + return img_format("DVP %s", rt); } @@ -7183,7 +7168,7 @@ std::string NMD::EI(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("EI %s", rt); + return img_format("EI %s", rt); } @@ -7203,7 +7188,7 @@ std::string NMD::EMT(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("EMT %s", rt); + return img_format("EMT %s", rt); } @@ -7259,7 +7244,7 @@ std::string NMD::EVP(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("EVP %s", rt); + return img_format("EVP %s", rt); } @@ -7279,7 +7264,7 @@ std::string NMD::EVPE(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("EVPE %s", rt); + return img_format("EVPE %s", rt); } @@ -7305,7 +7290,7 @@ std::string NMD::EXT(uint64 instruction) std::string lsb = IMMEDIATE(copy(lsb_value)); std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); - return img::format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); + return img_format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -7331,7 +7316,7 @@ std::string NMD::EXTD(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); + return img_format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7357,7 +7342,7 @@ std::string NMD::EXTD32(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); + return img_format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7381,7 +7366,7 @@ std::string NMD::EXTPDP(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string size = IMMEDIATE(copy(size_value)); - return img::format("EXTPDP %s, %s, %s", rt, ac, size); + return img_format("EXTPDP %s, %s, %s", rt, ac, size); } @@ -7405,7 +7390,7 @@ std::string NMD::EXTPDPV(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string rs = GPR(copy(rs_value)); - return img::format("EXTPDPV %s, %s, %s", rt, ac, rs); + return img_format("EXTPDPV %s, %s, %s", rt, ac, rs); } @@ -7429,7 +7414,7 @@ std::string NMD::EXTP(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string size = IMMEDIATE(copy(size_value)); - return img::format("EXTP %s, %s, %s", rt, ac, size); + return img_format("EXTP %s, %s, %s", rt, ac, size); } @@ -7453,7 +7438,7 @@ std::string NMD::EXTPV(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string rs = GPR(copy(rs_value)); - return img::format("EXTPV %s, %s, %s", rt, ac, rs); + return img_format("EXTPV %s, %s, %s", rt, ac, rs); } @@ -7478,7 +7463,7 @@ std::string NMD::EXTR_RS_W(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("EXTR_RS.W %s, %s, %s", rt, ac, shift); + return img_format("EXTR_RS.W %s, %s, %s", rt, ac, shift); } @@ -7503,7 +7488,7 @@ std::string NMD::EXTR_R_W(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("EXTR_R.W %s, %s, %s", rt, ac, shift); + return img_format("EXTR_R.W %s, %s, %s", rt, ac, shift); } @@ -7528,7 +7513,7 @@ std::string NMD::EXTR_S_H(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("EXTR_S.H %s, %s, %s", rt, ac, shift); + return img_format("EXTR_S.H %s, %s, %s", rt, ac, shift); } @@ -7553,7 +7538,7 @@ std::string NMD::EXTR_W(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("EXTR.W %s, %s, %s", rt, ac, shift); + return img_format("EXTR.W %s, %s, %s", rt, ac, shift); } @@ -7578,7 +7563,7 @@ std::string NMD::EXTRV_RS_W(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string rs = GPR(copy(rs_value)); - return img::format("EXTRV_RS.W %s, %s, %s", rt, ac, rs); + return img_format("EXTRV_RS.W %s, %s, %s", rt, ac, rs); } @@ -7603,7 +7588,7 @@ std::string NMD::EXTRV_R_W(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string rs = GPR(copy(rs_value)); - return img::format("EXTRV_R.W %s, %s, %s", rt, ac, rs); + return img_format("EXTRV_R.W %s, %s, %s", rt, ac, rs); } @@ -7628,7 +7613,7 @@ std::string NMD::EXTRV_S_H(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string rs = GPR(copy(rs_value)); - return img::format("EXTRV_S.H %s, %s, %s", rt, ac, rs); + return img_format("EXTRV_S.H %s, %s, %s", rt, ac, rs); } @@ -7653,7 +7638,7 @@ std::string NMD::EXTRV_W(uint64 instruction) std::string ac = AC(copy(ac_value)); std::string rs = GPR(copy(rs_value)); - return img::format("EXTRV.W %s, %s, %s", rt, ac, rs); + return img_format("EXTRV.W %s, %s, %s", rt, ac, rs); } @@ -7680,7 +7665,7 @@ std::string NMD::EXTW(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); + return img_format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7702,7 +7687,7 @@ std::string NMD::FLOOR_L_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("FLOOR.L.D %s, %s", ft, fs); + return img_format("FLOOR.L.D %s, %s", ft, fs); } @@ -7724,7 +7709,7 @@ std::string NMD::FLOOR_L_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("FLOOR.L.S %s, %s", ft, fs); + return img_format("FLOOR.L.S %s, %s", ft, fs); } @@ -7746,7 +7731,7 @@ std::string NMD::FLOOR_W_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("FLOOR.W.D %s, %s", ft, fs); + return img_format("FLOOR.W.D %s, %s", ft, fs); } @@ -7768,7 +7753,7 @@ std::string NMD::FLOOR_W_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("FLOOR.W.S %s, %s", ft, fs); + return img_format("FLOOR.W.S %s, %s", ft, fs); } @@ -7792,7 +7777,7 @@ std::string NMD::FORK(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("FORK %s, %s, %s", rd, rs, rt); + return img_format("FORK %s, %s, %s", rd, rs, rt); } @@ -7812,7 +7797,7 @@ std::string NMD::HYPCALL(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("HYPCALL %s", code); + return img_format("HYPCALL %s", code); } @@ -7832,7 +7817,7 @@ std::string NMD::HYPCALL_16_(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("HYPCALL %s", code); + return img_format("HYPCALL %s", code); } @@ -7859,7 +7844,7 @@ std::string NMD::INS(uint64 instruction) std::string size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); /* !!!!!!!!!! - no conversion function */ - return img::format("INS %s, %s, %s, %s", rt, rs, pos, size); + return img_format("INS %s, %s, %s, %s", rt, rs, pos, size); /* hand edited */ } @@ -7881,7 +7866,7 @@ std::string NMD::INSV(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("INSV %s, %s", rt, rs); + return img_format("INSV %s, %s", rt, rs); } @@ -7919,7 +7904,7 @@ std::string NMD::JALRC_16_(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("JALRC $%d, %s", 31, rt); + return img_format("JALRC $%d, %s", 31, rt); } @@ -7941,7 +7926,7 @@ std::string NMD::JALRC_32_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("JALRC %s, %s", rt, rs); + return img_format("JALRC %s, %s", rt, rs); } @@ -7963,7 +7948,7 @@ std::string NMD::JALRC_HB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("JALRC.HB %s, %s", rt, rs); + return img_format("JALRC.HB %s, %s", rt, rs); } @@ -7983,7 +7968,7 @@ std::string NMD::JRC(uint64 instruction) std::string rt = GPR(copy(rt_value)); - return img::format("JRC %s", rt); + return img_format("JRC %s", rt); } @@ -8007,7 +7992,7 @@ std::string NMD::LB_16_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("LB %s, %s(%s)", rt3, u, rs3); + return img_format("LB %s, %s(%s)", rt3, u, rs3); } @@ -8029,7 +8014,7 @@ std::string NMD::LB_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LB %s, %s($%d)", rt, u, 28); + return img_format("LB %s, %s($%d)", rt, u, 28); } @@ -8053,7 +8038,7 @@ std::string NMD::LB_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LB %s, %s(%s)", rt, s, rs); + return img_format("LB %s, %s(%s)", rt, s, rs); } @@ -8077,7 +8062,7 @@ std::string NMD::LB_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LB %s, %s(%s)", rt, u, rs); + return img_format("LB %s, %s(%s)", rt, u, rs); } @@ -8101,7 +8086,7 @@ std::string NMD::LBE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LBE %s, %s(%s)", rt, s, rs); + return img_format("LBE %s, %s(%s)", rt, s, rs); } @@ -8125,7 +8110,7 @@ std::string NMD::LBU_16_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("LBU %s, %s(%s)", rt3, u, rs3); + return img_format("LBU %s, %s(%s)", rt3, u, rs3); } @@ -8147,7 +8132,7 @@ std::string NMD::LBU_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LBU %s, %s($%d)", rt, u, 28); + return img_format("LBU %s, %s($%d)", rt, u, 28); } @@ -8171,7 +8156,7 @@ std::string NMD::LBU_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LBU %s, %s(%s)", rt, s, rs); + return img_format("LBU %s, %s(%s)", rt, s, rs); } @@ -8195,7 +8180,7 @@ std::string NMD::LBU_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LBU %s, %s(%s)", rt, u, rs); + return img_format("LBU %s, %s(%s)", rt, u, rs); } @@ -8219,7 +8204,7 @@ std::string NMD::LBUE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LBUE %s, %s(%s)", rt, s, rs); + return img_format("LBUE %s, %s(%s)", rt, s, rs); } @@ -8243,7 +8228,7 @@ std::string NMD::LBUX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LBUX %s, %s(%s)", rd, rs, rt); + return img_format("LBUX %s, %s(%s)", rd, rs, rt); } @@ -8267,7 +8252,7 @@ std::string NMD::LBX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LBX %s, %s(%s)", rd, rs, rt); + return img_format("LBX %s, %s(%s)", rd, rs, rt); } @@ -8289,7 +8274,7 @@ std::string NMD::LD_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LD %s, %s($%d)", rt, u, 28); + return img_format("LD %s, %s($%d)", rt, u, 28); } @@ -8313,7 +8298,7 @@ std::string NMD::LD_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LD %s, %s(%s)", rt, s, rs); + return img_format("LD %s, %s(%s)", rt, s, rs); } @@ -8337,7 +8322,7 @@ std::string NMD::LD_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LD %s, %s(%s)", rt, u, rs); + return img_format("LD %s, %s(%s)", rt, u, rs); } @@ -8359,7 +8344,7 @@ std::string NMD::LDC1_GP_(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LDC1 %s, %s($%d)", ft, u, 28); + return img_format("LDC1 %s, %s($%d)", ft, u, 28); } @@ -8383,7 +8368,7 @@ std::string NMD::LDC1_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LDC1 %s, %s(%s)", ft, s, rs); + return img_format("LDC1 %s, %s(%s)", ft, s, rs); } @@ -8407,7 +8392,7 @@ std::string NMD::LDC1_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LDC1 %s, %s(%s)", ft, u, rs); + return img_format("LDC1 %s, %s(%s)", ft, u, rs); } @@ -8431,7 +8416,7 @@ std::string NMD::LDC1XS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LDC1XS %s, %s(%s)", ft, rs, rt); + return img_format("LDC1XS %s, %s(%s)", ft, rs, rt); } @@ -8455,7 +8440,7 @@ std::string NMD::LDC1X(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LDC1X %s, %s(%s)", ft, rs, rt); + return img_format("LDC1X %s, %s(%s)", ft, rs, rt); } @@ -8479,7 +8464,7 @@ std::string NMD::LDC2(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LDC2 %s, %s(%s)", ct, s, rs); + return img_format("LDC2 %s, %s(%s)", ct, s, rs); } @@ -8505,7 +8490,7 @@ std::string NMD::LDM(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img::format("LDM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("LDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -8527,7 +8512,7 @@ std::string NMD::LDPC_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 6); - return img::format("LDPC %s, %s", rt, s); + return img_format("LDPC %s, %s", rt, s); } @@ -8551,7 +8536,7 @@ std::string NMD::LDX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LDX %s, %s(%s)", rd, rs, rt); + return img_format("LDX %s, %s(%s)", rd, rs, rt); } @@ -8575,7 +8560,7 @@ std::string NMD::LDXS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LDXS %s, %s(%s)", rd, rs, rt); + return img_format("LDXS %s, %s(%s)", rd, rs, rt); } @@ -8599,7 +8584,7 @@ std::string NMD::LH_16_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("LH %s, %s(%s)", rt3, u, rs3); + return img_format("LH %s, %s(%s)", rt3, u, rs3); } @@ -8621,7 +8606,7 @@ std::string NMD::LH_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LH %s, %s($%d)", rt, u, 28); + return img_format("LH %s, %s($%d)", rt, u, 28); } @@ -8645,7 +8630,7 @@ std::string NMD::LH_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LH %s, %s(%s)", rt, s, rs); + return img_format("LH %s, %s(%s)", rt, s, rs); } @@ -8669,7 +8654,7 @@ std::string NMD::LH_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LH %s, %s(%s)", rt, u, rs); + return img_format("LH %s, %s(%s)", rt, u, rs); } @@ -8693,7 +8678,7 @@ std::string NMD::LHE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LHE %s, %s(%s)", rt, s, rs); + return img_format("LHE %s, %s(%s)", rt, s, rs); } @@ -8717,7 +8702,7 @@ std::string NMD::LHU_16_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("LHU %s, %s(%s)", rt3, u, rs3); + return img_format("LHU %s, %s(%s)", rt3, u, rs3); } @@ -8739,7 +8724,7 @@ std::string NMD::LHU_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LHU %s, %s($%d)", rt, u, 28); + return img_format("LHU %s, %s($%d)", rt, u, 28); } @@ -8763,7 +8748,7 @@ std::string NMD::LHU_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LHU %s, %s(%s)", rt, s, rs); + return img_format("LHU %s, %s(%s)", rt, s, rs); } @@ -8787,7 +8772,7 @@ std::string NMD::LHU_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LHU %s, %s(%s)", rt, u, rs); + return img_format("LHU %s, %s(%s)", rt, u, rs); } @@ -8811,7 +8796,7 @@ std::string NMD::LHUE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LHUE %s, %s(%s)", rt, s, rs); + return img_format("LHUE %s, %s(%s)", rt, s, rs); } @@ -8835,7 +8820,7 @@ std::string NMD::LHUX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LHUX %s, %s(%s)", rd, rs, rt); + return img_format("LHUX %s, %s(%s)", rd, rs, rt); } @@ -8859,7 +8844,7 @@ std::string NMD::LHUXS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LHUXS %s, %s(%s)", rd, rs, rt); + return img_format("LHUXS %s, %s(%s)", rd, rs, rt); } @@ -8883,7 +8868,7 @@ std::string NMD::LHXS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LHXS %s, %s(%s)", rd, rs, rt); + return img_format("LHXS %s, %s(%s)", rd, rs, rt); } @@ -8907,7 +8892,7 @@ std::string NMD::LHX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LHX %s, %s(%s)", rd, rs, rt); + return img_format("LHX %s, %s(%s)", rd, rs, rt); } @@ -8929,7 +8914,7 @@ std::string NMD::LI_16_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string eu = IMMEDIATE(encode_eu_from_s_li16(eu_value)); - return img::format("LI %s, %s", rt3, eu); + return img_format("LI %s, %s", rt3, eu); } @@ -8951,7 +8936,7 @@ std::string NMD::LI_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = IMMEDIATE(copy(s_value)); - return img::format("LI %s, %s", rt, s); + return img_format("LI %s, %s", rt, s); } @@ -8975,7 +8960,7 @@ std::string NMD::LL(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LL %s, %s(%s)", rt, s, rs); + return img_format("LL %s, %s(%s)", rt, s, rs); } @@ -8999,7 +8984,7 @@ std::string NMD::LLD(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LLD %s, %s(%s)", rt, s, rs); + return img_format("LLD %s, %s(%s)", rt, s, rs); } @@ -9023,7 +9008,7 @@ std::string NMD::LLDP(uint64 instruction) std::string ru = GPR(copy(ru_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LLDP %s, %s, (%s)", rt, ru, rs); + return img_format("LLDP %s, %s, (%s)", rt, ru, rs); } @@ -9047,7 +9032,7 @@ std::string NMD::LLE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LLE %s, %s(%s)", rt, s, rs); + return img_format("LLE %s, %s(%s)", rt, s, rs); } @@ -9071,7 +9056,7 @@ std::string NMD::LLWP(uint64 instruction) std::string ru = GPR(copy(ru_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LLWP %s, %s, (%s)", rt, ru, rs); + return img_format("LLWP %s, %s, (%s)", rt, ru, rs); } @@ -9095,7 +9080,7 @@ std::string NMD::LLWPE(uint64 instruction) std::string ru = GPR(copy(ru_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LLWPE %s, %s, (%s)", rt, ru, rs); + return img_format("LLWPE %s, %s, (%s)", rt, ru, rs); } @@ -9121,7 +9106,7 @@ std::string NMD::LSA(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u2 = IMMEDIATE(copy(u2_value)); - return img::format("LSA %s, %s, %s, %s", rd, rs, rt, u2); + return img_format("LSA %s, %s, %s, %s", rd, rs, rt, u2); } @@ -9143,7 +9128,7 @@ std::string NMD::LUI(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = IMMEDIATE(copy(s_value)); - return img::format("LUI %s, %%hi(%s)", rt, s); + return img_format("LUI %s, %%hi(%s)", rt, s); } @@ -9167,7 +9152,7 @@ std::string NMD::LW_16_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("LW %s, %s(%s)", rt3, u, rs3); + return img_format("LW %s, %s(%s)", rt3, u, rs3); } @@ -9191,7 +9176,7 @@ std::string NMD::LW_4X4_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); - return img::format("LW %s, %s(%s)", rt4, u, rs4); + return img_format("LW %s, %s(%s)", rt4, u, rs4); } @@ -9213,7 +9198,7 @@ std::string NMD::LW_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LW %s, %s($%d)", rt, u, 28); + return img_format("LW %s, %s($%d)", rt, u, 28); } @@ -9235,7 +9220,7 @@ std::string NMD::LW_GP16_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LW %s, %s($%d)", rt3, u, 28); + return img_format("LW %s, %s($%d)", rt3, u, 28); } @@ -9259,7 +9244,7 @@ std::string NMD::LW_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LW %s, %s(%s)", rt, s, rs); + return img_format("LW %s, %s(%s)", rt, s, rs); } @@ -9281,7 +9266,7 @@ std::string NMD::LW_SP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LW %s, %s($%d)", rt, u, 29); + return img_format("LW %s, %s($%d)", rt, u, 29); } @@ -9305,7 +9290,7 @@ std::string NMD::LW_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LW %s, %s(%s)", rt, u, rs); + return img_format("LW %s, %s(%s)", rt, u, rs); } @@ -9327,7 +9312,7 @@ std::string NMD::LWC1_GP_(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LWC1 %s, %s($%d)", ft, u, 28); + return img_format("LWC1 %s, %s($%d)", ft, u, 28); } @@ -9351,7 +9336,7 @@ std::string NMD::LWC1_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LWC1 %s, %s(%s)", ft, s, rs); + return img_format("LWC1 %s, %s(%s)", ft, s, rs); } @@ -9375,7 +9360,7 @@ std::string NMD::LWC1_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LWC1 %s, %s(%s)", ft, u, rs); + return img_format("LWC1 %s, %s(%s)", ft, u, rs); } @@ -9399,7 +9384,7 @@ std::string NMD::LWC1X(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LWC1X %s, %s(%s)", ft, rs, rt); + return img_format("LWC1X %s, %s(%s)", ft, rs, rt); } @@ -9423,7 +9408,7 @@ std::string NMD::LWC1XS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LWC1XS %s, %s(%s)", ft, rs, rt); + return img_format("LWC1XS %s, %s(%s)", ft, rs, rt); } @@ -9447,7 +9432,7 @@ std::string NMD::LWC2(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LWC2 %s, %s(%s)", ct, s, rs); + return img_format("LWC2 %s, %s(%s)", ct, s, rs); } @@ -9471,7 +9456,7 @@ std::string NMD::LWE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LWE %s, %s(%s)", rt, s, rs); + return img_format("LWE %s, %s(%s)", rt, s, rs); } @@ -9497,7 +9482,7 @@ std::string NMD::LWM(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img::format("LWM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("LWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -9519,7 +9504,7 @@ std::string NMD::LWPC_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 6); - return img::format("LWPC %s, %s", rt, s); + return img_format("LWPC %s, %s", rt, s); } @@ -9541,7 +9526,7 @@ std::string NMD::LWU_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("LWU %s, %s($%d)", rt, u, 28); + return img_format("LWU %s, %s($%d)", rt, u, 28); } @@ -9565,7 +9550,7 @@ std::string NMD::LWU_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LWU %s, %s(%s)", rt, s, rs); + return img_format("LWU %s, %s(%s)", rt, s, rs); } @@ -9589,7 +9574,7 @@ std::string NMD::LWU_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("LWU %s, %s(%s)", rt, u, rs); + return img_format("LWU %s, %s(%s)", rt, u, rs); } @@ -9613,7 +9598,7 @@ std::string NMD::LWUX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LWUX %s, %s(%s)", rd, rs, rt); + return img_format("LWUX %s, %s(%s)", rd, rs, rt); } @@ -9637,7 +9622,7 @@ std::string NMD::LWUXS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LWUXS %s, %s(%s)", rd, rs, rt); + return img_format("LWUXS %s, %s(%s)", rd, rs, rt); } @@ -9661,7 +9646,7 @@ std::string NMD::LWX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LWX %s, %s(%s)", rd, rs, rt); + return img_format("LWX %s, %s(%s)", rd, rs, rt); } @@ -9685,7 +9670,7 @@ std::string NMD::LWXS_16_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string rt3 = IMMEDIATE(decode_gpr_gpr3(rt3_value)); - return img::format("LWXS %s, %s(%s)", rd3, rs3, rt3); + return img_format("LWXS %s, %s(%s)", rd3, rs3, rt3); } @@ -9709,7 +9694,7 @@ std::string NMD::LWXS_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("LWXS %s, %s(%s)", rd, rs, rt); + return img_format("LWXS %s, %s(%s)", rd, rs, rt); } @@ -9734,7 +9719,7 @@ std::string NMD::MADD_DSP_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MADD %s, %s, %s", ac, rs, rt); + return img_format("MADD %s, %s, %s", ac, rs, rt); } @@ -9758,7 +9743,7 @@ std::string NMD::MADDF_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MADDF.D %s, %s, %s", fd, fs, ft); + return img_format("MADDF.D %s, %s, %s", fd, fs, ft); } @@ -9782,7 +9767,7 @@ std::string NMD::MADDF_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MADDF.S %s, %s, %s", fd, fs, ft); + return img_format("MADDF.S %s, %s, %s", fd, fs, ft); } @@ -9807,7 +9792,7 @@ std::string NMD::MADDU_DSP_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MADDU %s, %s, %s", ac, rs, rt); + return img_format("MADDU %s, %s, %s", ac, rs, rt); } @@ -9832,7 +9817,7 @@ std::string NMD::MAQ_S_W_PHL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MAQ_S.W.PHL %s, %s, %s", ac, rs, rt); + return img_format("MAQ_S.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9857,7 +9842,7 @@ std::string NMD::MAQ_S_W_PHR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MAQ_S.W.PHR %s, %s, %s", ac, rs, rt); + return img_format("MAQ_S.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9882,7 +9867,7 @@ std::string NMD::MAQ_SA_W_PHL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MAQ_SA.W.PHL %s, %s, %s", ac, rs, rt); + return img_format("MAQ_SA.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9907,7 +9892,7 @@ std::string NMD::MAQ_SA_W_PHR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MAQ_SA.W.PHR %s, %s, %s", ac, rs, rt); + return img_format("MAQ_SA.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9931,7 +9916,7 @@ std::string NMD::MAX_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MAX.D %s, %s, %s", fd, fs, ft); + return img_format("MAX.D %s, %s, %s", fd, fs, ft); } @@ -9955,7 +9940,7 @@ std::string NMD::MAX_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MAX.S %s, %s, %s", fd, fs, ft); + return img_format("MAX.S %s, %s, %s", fd, fs, ft); } @@ -9979,7 +9964,7 @@ std::string NMD::MAXA_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MAXA.D %s, %s, %s", fd, fs, ft); + return img_format("MAXA.D %s, %s, %s", fd, fs, ft); } @@ -10003,7 +9988,7 @@ std::string NMD::MAXA_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MAXA.S %s, %s, %s", fd, fs, ft); + return img_format("MAXA.S %s, %s, %s", fd, fs, ft); } @@ -10027,7 +10012,7 @@ std::string NMD::MFC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MFC0 %s, %s, %s", rt, c0s, sel); + return img_format("MFC0 %s, %s, %s", rt, c0s, sel); } @@ -10049,7 +10034,7 @@ std::string NMD::MFC1(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string fs = FPR(copy(fs_value)); - return img::format("MFC1 %s, %s", rt, fs); + return img_format("MFC1 %s, %s", rt, fs); } @@ -10071,7 +10056,7 @@ std::string NMD::MFC2(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("MFC2 %s, %s", rt, cs); + return img_format("MFC2 %s, %s", rt, cs); } @@ -10095,7 +10080,7 @@ std::string NMD::MFGC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MFGC0 %s, %s, %s", rt, c0s, sel); + return img_format("MFGC0 %s, %s, %s", rt, c0s, sel); } @@ -10119,7 +10104,7 @@ std::string NMD::MFHC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MFHC0 %s, %s, %s", rt, c0s, sel); + return img_format("MFHC0 %s, %s, %s", rt, c0s, sel); } @@ -10141,7 +10126,7 @@ std::string NMD::MFHC1(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string fs = FPR(copy(fs_value)); - return img::format("MFHC1 %s, %s", rt, fs); + return img_format("MFHC1 %s, %s", rt, fs); } @@ -10163,7 +10148,7 @@ std::string NMD::MFHC2(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("MFHC2 %s, %s", rt, cs); + return img_format("MFHC2 %s, %s", rt, cs); } @@ -10187,7 +10172,7 @@ std::string NMD::MFHGC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MFHGC0 %s, %s, %s", rt, c0s, sel); + return img_format("MFHGC0 %s, %s, %s", rt, c0s, sel); } @@ -10208,7 +10193,7 @@ std::string NMD::MFHI_DSP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string ac = AC(copy(ac_value)); - return img::format("MFHI %s, %s", rt, ac); + return img_format("MFHI %s, %s", rt, ac); } @@ -10234,7 +10219,7 @@ std::string NMD::MFHTR(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); + return img_format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10255,7 +10240,7 @@ std::string NMD::MFLO_DSP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string ac = AC(copy(ac_value)); - return img::format("MFLO %s, %s", rt, ac); + return img_format("MFLO %s, %s", rt, ac); } @@ -10281,7 +10266,7 @@ std::string NMD::MFTR(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); + return img_format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10305,7 +10290,7 @@ std::string NMD::MIN_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MIN.D %s, %s, %s", fd, fs, ft); + return img_format("MIN.D %s, %s, %s", fd, fs, ft); } @@ -10329,7 +10314,7 @@ std::string NMD::MIN_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MIN.S %s, %s, %s", fd, fs, ft); + return img_format("MIN.S %s, %s, %s", fd, fs, ft); } @@ -10353,7 +10338,7 @@ std::string NMD::MINA_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MINA.D %s, %s, %s", fd, fs, ft); + return img_format("MINA.D %s, %s, %s", fd, fs, ft); } @@ -10377,7 +10362,7 @@ std::string NMD::MINA_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MINA.S %s, %s, %s", fd, fs, ft); + return img_format("MINA.S %s, %s, %s", fd, fs, ft); } @@ -10401,7 +10386,7 @@ std::string NMD::MOD(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MOD %s, %s, %s", rd, rs, rt); + return img_format("MOD %s, %s, %s", rd, rs, rt); } @@ -10425,7 +10410,7 @@ std::string NMD::MODSUB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MODSUB %s, %s, %s", rd, rs, rt); + return img_format("MODSUB %s, %s, %s", rd, rs, rt); } @@ -10449,7 +10434,7 @@ std::string NMD::MODU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MODU %s, %s, %s", rd, rs, rt); + return img_format("MODU %s, %s, %s", rd, rs, rt); } @@ -10471,7 +10456,7 @@ std::string NMD::MOV_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("MOV.D %s, %s", ft, fs); + return img_format("MOV.D %s, %s", ft, fs); } @@ -10493,7 +10478,7 @@ std::string NMD::MOV_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("MOV.S %s, %s", ft, fs); + return img_format("MOV.S %s, %s", ft, fs); } @@ -10517,7 +10502,7 @@ std::string NMD::MOVE_BALC(uint64 instruction) std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 4); - return img::format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); + return img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); } @@ -10543,7 +10528,7 @@ std::string NMD::MOVEP(uint64 instruction) std::string rsz4 = GPR(decode_gpr_gpr4_zero(rsz4_value)); std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - return img::format("MOVEP %s, %s, %s, %s", rd2, re2, rsz4, rtz4); + return img_format("MOVEP %s, %s, %s, %s", rd2, re2, rsz4, rtz4); /* hand edited */ } @@ -10570,7 +10555,7 @@ std::string NMD::MOVEP_REV_(uint64 instruction) std::string rs2 = GPR(decode_gpr_gpr2_reg2(rd2_value)); /* !!!!!!!!!! - no conversion function */ - return img::format("MOVEP %s, %s, %s, %s", rs4, rt4, rd2, rs2); + return img_format("MOVEP %s, %s, %s, %s", rs4, rt4, rd2, rs2); /* hand edited */ } @@ -10593,7 +10578,7 @@ std::string NMD::MOVE(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("MOVE %s, %s", rt, rs); + return img_format("MOVE %s, %s", rt, rs); } @@ -10617,7 +10602,7 @@ std::string NMD::MOVN(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MOVN %s, %s, %s", rd, rs, rt); + return img_format("MOVN %s, %s, %s", rd, rs, rt); } @@ -10641,7 +10626,7 @@ std::string NMD::MOVZ(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MOVZ %s, %s, %s", rd, rs, rt); + return img_format("MOVZ %s, %s, %s", rd, rs, rt); } @@ -10665,7 +10650,7 @@ std::string NMD::MSUB_DSP_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MSUB %s, %s, %s", ac, rs, rt); + return img_format("MSUB %s, %s, %s", ac, rs, rt); } @@ -10689,7 +10674,7 @@ std::string NMD::MSUBF_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MSUBF.D %s, %s, %s", fd, fs, ft); + return img_format("MSUBF.D %s, %s, %s", fd, fs, ft); } @@ -10713,7 +10698,7 @@ std::string NMD::MSUBF_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MSUBF.S %s, %s, %s", fd, fs, ft); + return img_format("MSUBF.S %s, %s, %s", fd, fs, ft); } @@ -10737,7 +10722,7 @@ std::string NMD::MSUBU_DSP_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MSUBU %s, %s, %s", ac, rs, rt); + return img_format("MSUBU %s, %s, %s", ac, rs, rt); } @@ -10761,7 +10746,7 @@ std::string NMD::MTC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MTC0 %s, %s, %s", rt, c0s, sel); + return img_format("MTC0 %s, %s, %s", rt, c0s, sel); } @@ -10783,7 +10768,7 @@ std::string NMD::MTC1(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string fs = FPR(copy(fs_value)); - return img::format("MTC1 %s, %s", rt, fs); + return img_format("MTC1 %s, %s", rt, fs); } @@ -10805,7 +10790,7 @@ std::string NMD::MTC2(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("MTC2 %s, %s", rt, cs); + return img_format("MTC2 %s, %s", rt, cs); } @@ -10829,7 +10814,7 @@ std::string NMD::MTGC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MTGC0 %s, %s, %s", rt, c0s, sel); + return img_format("MTGC0 %s, %s, %s", rt, c0s, sel); } @@ -10853,7 +10838,7 @@ std::string NMD::MTHC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MTHC0 %s, %s, %s", rt, c0s, sel); + return img_format("MTHC0 %s, %s, %s", rt, c0s, sel); } @@ -10875,7 +10860,7 @@ std::string NMD::MTHC1(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string fs = FPR(copy(fs_value)); - return img::format("MTHC1 %s, %s", rt, fs); + return img_format("MTHC1 %s, %s", rt, fs); } @@ -10897,7 +10882,7 @@ std::string NMD::MTHC2(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string cs = CPR(copy(cs_value)); - return img::format("MTHC2 %s, %s", rt, cs); + return img_format("MTHC2 %s, %s", rt, cs); } @@ -10921,7 +10906,7 @@ std::string NMD::MTHGC0(uint64 instruction) std::string c0s = CPR(copy(c0s_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MTHGC0 %s, %s, %s", rt, c0s, sel); + return img_format("MTHGC0 %s, %s, %s", rt, c0s, sel); } @@ -10942,7 +10927,7 @@ std::string NMD::MTHI_DSP_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string ac = AC(copy(ac_value)); - return img::format("MTHI %s, %s", rs, ac); + return img_format("MTHI %s, %s", rs, ac); } @@ -10963,7 +10948,7 @@ std::string NMD::MTHLIP(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string ac = AC(copy(ac_value)); - return img::format("MTHLIP %s, %s", rs, ac); + return img_format("MTHLIP %s, %s", rs, ac); } @@ -10989,7 +10974,7 @@ std::string NMD::MTHTR(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); + return img_format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -11010,7 +10995,7 @@ std::string NMD::MTLO_DSP_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string ac = AC(copy(ac_value)); - return img::format("MTLO %s, %s", rs, ac); + return img_format("MTLO %s, %s", rs, ac); } @@ -11036,7 +11021,7 @@ std::string NMD::MTTR(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); + return img_format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -11060,7 +11045,7 @@ std::string NMD::MUH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MUH %s, %s, %s", rd, rs, rt); + return img_format("MUH %s, %s, %s", rd, rs, rt); } @@ -11084,7 +11069,7 @@ std::string NMD::MUHU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MUHU %s, %s, %s", rd, rs, rt); + return img_format("MUHU %s, %s, %s", rd, rs, rt); } @@ -11108,7 +11093,7 @@ std::string NMD::MUL_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MUL %s, %s, %s", rd, rs, rt); + return img_format("MUL %s, %s, %s", rd, rs, rt); } @@ -11130,7 +11115,7 @@ std::string NMD::MUL_4X4_(uint64 instruction) std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); std::string rt4 = GPR(decode_gpr_gpr4(rt4_value)); - return img::format("MUL %s, %s", rs4, rt4); + return img_format("MUL %s, %s", rs4, rt4); } @@ -11154,7 +11139,7 @@ std::string NMD::MUL_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MUL.D %s, %s, %s", fd, fs, ft); + return img_format("MUL.D %s, %s, %s", fd, fs, ft); } @@ -11179,7 +11164,7 @@ std::string NMD::MUL_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MUL.PH %s, %s, %s", rd, rs, rt); + return img_format("MUL.PH %s, %s, %s", rd, rs, rt); } @@ -11204,7 +11189,7 @@ std::string NMD::MUL_S_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MUL_S.PH %s, %s, %s", rd, rs, rt); + return img_format("MUL_S.PH %s, %s, %s", rd, rs, rt); } @@ -11228,7 +11213,7 @@ std::string NMD::MUL_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("MUL.S %s, %s, %s", fd, fs, ft); + return img_format("MUL.S %s, %s, %s", fd, fs, ft); } @@ -11253,7 +11238,7 @@ std::string NMD::MULEQ_S_W_PHL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULEQ_S.W.PHL %s, %s, %s", rd, rs, rt); + return img_format("MULEQ_S.W.PHL %s, %s, %s", rd, rs, rt); } @@ -11278,7 +11263,7 @@ std::string NMD::MULEQ_S_W_PHR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULEQ_S.W.PHR %s, %s, %s", rd, rs, rt); + return img_format("MULEQ_S.W.PHR %s, %s, %s", rd, rs, rt); } @@ -11303,7 +11288,7 @@ std::string NMD::MULEU_S_PH_QBL(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULEU_S.PH.QBL %s, %s, %s", rd, rs, rt); + return img_format("MULEU_S.PH.QBL %s, %s, %s", rd, rs, rt); } @@ -11328,7 +11313,7 @@ std::string NMD::MULEU_S_PH_QBR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULEU_S.PH.QBR %s, %s, %s", rd, rs, rt); + return img_format("MULEU_S.PH.QBR %s, %s, %s", rd, rs, rt); } @@ -11353,7 +11338,7 @@ std::string NMD::MULQ_RS_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULQ_RS.PH %s, %s, %s", rd, rs, rt); + return img_format("MULQ_RS.PH %s, %s, %s", rd, rs, rt); } @@ -11378,7 +11363,7 @@ std::string NMD::MULQ_RS_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULQ_RS.W %s, %s, %s", rd, rs, rt); + return img_format("MULQ_RS.W %s, %s, %s", rd, rs, rt); } @@ -11403,7 +11388,7 @@ std::string NMD::MULQ_S_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULQ_S.PH %s, %s, %s", rd, rs, rt); + return img_format("MULQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -11428,7 +11413,7 @@ std::string NMD::MULQ_S_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULQ_S.W %s, %s, %s", rd, rs, rt); + return img_format("MULQ_S.W %s, %s, %s", rd, rs, rt); } @@ -11453,7 +11438,7 @@ std::string NMD::MULSA_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULSA.W.PH %s, %s, %s", ac, rs, rt); + return img_format("MULSA.W.PH %s, %s, %s", ac, rs, rt); } @@ -11478,7 +11463,7 @@ std::string NMD::MULSAQ_S_W_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULSAQ_S.W.PH %s, %s, %s", ac, rs, rt); + return img_format("MULSAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -11502,7 +11487,7 @@ std::string NMD::MULT_DSP_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULT %s, %s, %s", ac, rs, rt); + return img_format("MULT %s, %s, %s", ac, rs, rt); } @@ -11526,7 +11511,7 @@ std::string NMD::MULTU_DSP_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULTU %s, %s, %s", ac, rs, rt); + return img_format("MULTU %s, %s, %s", ac, rs, rt); } @@ -11550,7 +11535,7 @@ std::string NMD::MULU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("MULU %s, %s, %s", rd, rs, rt); + return img_format("MULU %s, %s, %s", rd, rs, rt); } @@ -11572,7 +11557,7 @@ std::string NMD::NEG_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("NEG.D %s, %s", ft, fs); + return img_format("NEG.D %s, %s", ft, fs); } @@ -11594,7 +11579,7 @@ std::string NMD::NEG_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("NEG.S %s, %s", ft, fs); + return img_format("NEG.S %s, %s", ft, fs); } @@ -11654,7 +11639,7 @@ std::string NMD::NOR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("NOR %s, %s, %s", rd, rs, rt); + return img_format("NOR %s, %s, %s", rd, rs, rt); } @@ -11676,7 +11661,7 @@ std::string NMD::NOT_16_(uint64 instruction) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("NOT %s, %s", rt3, rs3); + return img_format("NOT %s, %s", rt3, rs3); } @@ -11698,7 +11683,7 @@ std::string NMD::OR_16_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - return img::format("OR %s, %s", rs3, rt3); + return img_format("OR %s, %s", rs3, rt3); } @@ -11722,7 +11707,7 @@ std::string NMD::OR_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("OR %s, %s, %s", rd, rs, rt); + return img_format("OR %s, %s, %s", rd, rs, rt); } @@ -11746,7 +11731,7 @@ std::string NMD::ORI(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("ORI %s, %s, %s", rt, rs, u); + return img_format("ORI %s, %s, %s", rt, rs, u); } @@ -11771,7 +11756,7 @@ std::string NMD::PACKRL_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("PACKRL.PH %s, %s, %s", rd, rs, rt); + return img_format("PACKRL.PH %s, %s, %s", rd, rs, rt); } @@ -11814,7 +11799,7 @@ std::string NMD::PICK_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("PICK.PH %s, %s, %s", rd, rs, rt); + return img_format("PICK.PH %s, %s, %s", rd, rs, rt); } @@ -11839,7 +11824,7 @@ std::string NMD::PICK_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("PICK.QB %s, %s, %s", rd, rs, rt); + return img_format("PICK.QB %s, %s, %s", rd, rs, rt); } @@ -11862,7 +11847,7 @@ std::string NMD::PRECEQ_W_PHL(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEQ.W.PHL %s, %s", rt, rs); + return img_format("PRECEQ.W.PHL %s, %s", rt, rs); } @@ -11885,7 +11870,7 @@ std::string NMD::PRECEQ_W_PHR(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEQ.W.PHR %s, %s", rt, rs); + return img_format("PRECEQ.W.PHR %s, %s", rt, rs); } @@ -11908,7 +11893,7 @@ std::string NMD::PRECEQU_PH_QBLA(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEQU.PH.QBLA %s, %s", rt, rs); + return img_format("PRECEQU.PH.QBLA %s, %s", rt, rs); } @@ -11931,7 +11916,7 @@ std::string NMD::PRECEQU_PH_QBL(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEQU.PH.QBL %s, %s", rt, rs); + return img_format("PRECEQU.PH.QBL %s, %s", rt, rs); } @@ -11954,7 +11939,7 @@ std::string NMD::PRECEQU_PH_QBRA(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEQU.PH.QBRA %s, %s", rt, rs); + return img_format("PRECEQU.PH.QBRA %s, %s", rt, rs); } @@ -11977,7 +11962,7 @@ std::string NMD::PRECEQU_PH_QBR(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEQU.PH.QBR %s, %s", rt, rs); + return img_format("PRECEQU.PH.QBR %s, %s", rt, rs); } @@ -12001,7 +11986,7 @@ std::string NMD::PRECEU_PH_QBLA(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEU.PH.QBLA %s, %s", rt, rs); + return img_format("PRECEU.PH.QBLA %s, %s", rt, rs); } @@ -12024,7 +12009,7 @@ std::string NMD::PRECEU_PH_QBL(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEU.PH.QBL %s, %s", rt, rs); + return img_format("PRECEU.PH.QBL %s, %s", rt, rs); } @@ -12048,7 +12033,7 @@ std::string NMD::PRECEU_PH_QBRA(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEU.PH.QBRA %s, %s", rt, rs); + return img_format("PRECEU.PH.QBRA %s, %s", rt, rs); } @@ -12071,7 +12056,7 @@ std::string NMD::PRECEU_PH_QBR(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PRECEU.PH.QBR %s, %s", rt, rs); + return img_format("PRECEU.PH.QBR %s, %s", rt, rs); } @@ -12096,7 +12081,7 @@ std::string NMD::PRECR_QB_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("PRECR.QB.PH %s, %s, %s", rd, rs, rt); + return img_format("PRECR.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12121,7 +12106,7 @@ std::string NMD::PRECR_SRA_PH_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); + return img_format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); } @@ -12146,7 +12131,7 @@ std::string NMD::PRECR_SRA_R_PH_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); + return img_format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); } @@ -12171,7 +12156,7 @@ std::string NMD::PRECRQ_PH_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("PRECRQ.PH.W %s, %s, %s", rd, rs, rt); + return img_format("PRECRQ.PH.W %s, %s, %s", rd, rs, rt); } @@ -12196,7 +12181,7 @@ std::string NMD::PRECRQ_QB_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("PRECRQ.QB.PH %s, %s, %s", rd, rs, rt); + return img_format("PRECRQ.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12221,7 +12206,7 @@ std::string NMD::PRECRQ_RS_PH_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("PRECRQ_RS.PH.W %s, %s, %s", rd, rs, rt); + return img_format("PRECRQ_RS.PH.W %s, %s, %s", rd, rs, rt); } @@ -12246,7 +12231,7 @@ std::string NMD::PRECRQU_S_QB_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("PRECRQU_S.QB.PH %s, %s, %s", rd, rs, rt); + return img_format("PRECRQU_S.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12270,7 +12255,7 @@ std::string NMD::PREF_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PREF %s, %s(%s)", hint, s, rs); + return img_format("PREF %s, %s(%s)", hint, s, rs); } @@ -12294,7 +12279,7 @@ std::string NMD::PREF_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PREF %s, %s(%s)", hint, u, rs); + return img_format("PREF %s, %s(%s)", hint, u, rs); } @@ -12318,7 +12303,7 @@ std::string NMD::PREFE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("PREFE %s, %s(%s)", hint, s, rs); + return img_format("PREFE %s, %s(%s)", hint, s, rs); } @@ -12342,7 +12327,7 @@ std::string NMD::PREPEND(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("PREPEND %s, %s, %s", rt, rs, sa); + return img_format("PREPEND %s, %s, %s", rt, rs, sa); } @@ -12363,7 +12348,7 @@ std::string NMD::RADDU_W_QB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("RADDU.W.QB %s, %s", rt, rs); + return img_format("RADDU.W.QB %s, %s", rt, rs); } @@ -12384,7 +12369,7 @@ std::string NMD::RDDSP(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string mask = IMMEDIATE(copy(mask_value)); - return img::format("RDDSP %s, %s", rt, mask); + return img_format("RDDSP %s, %s", rt, mask); } @@ -12408,7 +12393,7 @@ std::string NMD::RDHWR(uint64 instruction) std::string hs = CPR(copy(hs_value)); std::string sel = IMMEDIATE(copy(sel_value)); - return img::format("RDHWR %s, %s, %s", rt, hs, sel); + return img_format("RDHWR %s, %s, %s", rt, hs, sel); } @@ -12430,7 +12415,7 @@ std::string NMD::RDPGPR(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("RDPGPR %s, %s", rt, rs); + return img_format("RDPGPR %s, %s", rt, rs); } @@ -12452,7 +12437,7 @@ std::string NMD::RECIP_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("RECIP.D %s, %s", ft, fs); + return img_format("RECIP.D %s, %s", ft, fs); } @@ -12474,7 +12459,7 @@ std::string NMD::RECIP_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("RECIP.S %s, %s", ft, fs); + return img_format("RECIP.S %s, %s", ft, fs); } @@ -12496,7 +12481,7 @@ std::string NMD::REPL_PH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = IMMEDIATE(copy(s_value)); - return img::format("REPL.PH %s, %s", rt, s); + return img_format("REPL.PH %s, %s", rt, s); } @@ -12518,7 +12503,7 @@ std::string NMD::REPL_QB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("REPL.QB %s, %s", rt, u); + return img_format("REPL.QB %s, %s", rt, u); } @@ -12540,7 +12525,7 @@ std::string NMD::REPLV_PH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("REPLV.PH %s, %s", rt, rs); + return img_format("REPLV.PH %s, %s", rt, rs); } @@ -12561,7 +12546,7 @@ std::string NMD::REPLV_QB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("REPLV.QB %s, %s", rt, rs); + return img_format("REPLV.QB %s, %s", rt, rs); } @@ -12583,7 +12568,7 @@ std::string NMD::RESTORE_32_(uint64 instruction) uint64 gp_value = extract_gp_2(instruction); std::string u = IMMEDIATE(copy(u_value)); - return img::format("RESTORE %s%s", u, + return img_format("RESTORE %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12605,7 +12590,7 @@ std::string NMD::RESTORE_JRC_16_(uint64 instruction) uint64 count_value = extract_count_3_2_1_0(instruction); std::string u = IMMEDIATE(copy(u_value)); - return img::format("RESTORE.JRC %s%s", u, + return img_format("RESTORE.JRC %s%s", u, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12628,7 +12613,7 @@ std::string NMD::RESTORE_JRC_32_(uint64 instruction) uint64 gp_value = extract_gp_2(instruction); std::string u = IMMEDIATE(copy(u_value)); - return img::format("RESTORE.JRC %s%s", u, + return img_format("RESTORE.JRC %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12651,7 +12636,7 @@ std::string NMD::RESTOREF(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string count = IMMEDIATE(copy(count_value)); - return img::format("RESTOREF %s, %s", u, count); + return img_format("RESTOREF %s, %s", u, count); } @@ -12673,7 +12658,7 @@ std::string NMD::RINT_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("RINT.D %s, %s", ft, fs); + return img_format("RINT.D %s, %s", ft, fs); } @@ -12695,7 +12680,7 @@ std::string NMD::RINT_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("RINT.S %s, %s", ft, fs); + return img_format("RINT.S %s, %s", ft, fs); } @@ -12719,7 +12704,7 @@ std::string NMD::ROTR(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("ROTR %s, %s, %s", rt, rs, shift); + return img_format("ROTR %s, %s, %s", rt, rs, shift); } @@ -12743,7 +12728,7 @@ std::string NMD::ROTRV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("ROTRV %s, %s, %s", rd, rs, rt); + return img_format("ROTRV %s, %s, %s", rd, rs, rt); } @@ -12771,7 +12756,7 @@ std::string NMD::ROTX(uint64 instruction) std::string shiftx = IMMEDIATE(copy(shiftx_value)); std::string stripe = IMMEDIATE(copy(stripe_value)); - return img::format("ROTX %s, %s, %s, %s, %s", + return img_format("ROTX %s, %s, %s, %s, %s", rt, rs, shift, shiftx, stripe); } @@ -12794,7 +12779,7 @@ std::string NMD::ROUND_L_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("ROUND.L.D %s, %s", ft, fs); + return img_format("ROUND.L.D %s, %s", ft, fs); } @@ -12816,7 +12801,7 @@ std::string NMD::ROUND_L_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("ROUND.L.S %s, %s", ft, fs); + return img_format("ROUND.L.S %s, %s", ft, fs); } @@ -12838,7 +12823,7 @@ std::string NMD::ROUND_W_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("ROUND.W.D %s, %s", ft, fs); + return img_format("ROUND.W.D %s, %s", ft, fs); } @@ -12860,7 +12845,7 @@ std::string NMD::ROUND_W_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("ROUND.W.S %s, %s", ft, fs); + return img_format("ROUND.W.S %s, %s", ft, fs); } @@ -12882,7 +12867,7 @@ std::string NMD::RSQRT_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("RSQRT.D %s, %s", ft, fs); + return img_format("RSQRT.D %s, %s", ft, fs); } @@ -12904,7 +12889,7 @@ std::string NMD::RSQRT_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("RSQRT.S %s, %s", ft, fs); + return img_format("RSQRT.S %s, %s", ft, fs); } @@ -12925,7 +12910,7 @@ std::string NMD::SAVE_16_(uint64 instruction) uint64 count_value = extract_count_3_2_1_0(instruction); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SAVE %s%s", u, + return img_format("SAVE %s%s", u, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12948,7 +12933,7 @@ std::string NMD::SAVE_32_(uint64 instruction) uint64 gp_value = extract_gp_2(instruction); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SAVE %s%s", u, + return img_format("SAVE %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12971,7 +12956,7 @@ std::string NMD::SAVEF(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string count = IMMEDIATE(copy(count_value)); - return img::format("SAVEF %s, %s", u, count); + return img_format("SAVEF %s, %s", u, count); } @@ -12995,7 +12980,7 @@ std::string NMD::SB_16_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("SB %s, %s(%s)", rtz3, u, rs3); + return img_format("SB %s, %s(%s)", rtz3, u, rs3); } @@ -13017,7 +13002,7 @@ std::string NMD::SB_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SB %s, %s($%d)", rt, u, 28); + return img_format("SB %s, %s($%d)", rt, u, 28); } @@ -13041,7 +13026,7 @@ std::string NMD::SB_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SB %s, %s(%s)", rt, s, rs); + return img_format("SB %s, %s(%s)", rt, s, rs); } @@ -13065,7 +13050,7 @@ std::string NMD::SB_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SB %s, %s(%s)", rt, u, rs); + return img_format("SB %s, %s(%s)", rt, u, rs); } @@ -13089,7 +13074,7 @@ std::string NMD::SBE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SBE %s, %s(%s)", rt, s, rs); + return img_format("SBE %s, %s(%s)", rt, s, rs); } @@ -13113,7 +13098,7 @@ std::string NMD::SBX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SBX %s, %s(%s)", rd, rs, rt); + return img_format("SBX %s, %s(%s)", rd, rs, rt); } @@ -13137,7 +13122,7 @@ std::string NMD::SC(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SC %s, %s(%s)", rt, s, rs); + return img_format("SC %s, %s(%s)", rt, s, rs); } @@ -13161,7 +13146,7 @@ std::string NMD::SCD(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SCD %s, %s(%s)", rt, s, rs); + return img_format("SCD %s, %s(%s)", rt, s, rs); } @@ -13185,7 +13170,7 @@ std::string NMD::SCDP(uint64 instruction) std::string ru = GPR(copy(ru_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SCDP %s, %s, (%s)", rt, ru, rs); + return img_format("SCDP %s, %s, (%s)", rt, ru, rs); } @@ -13209,7 +13194,7 @@ std::string NMD::SCE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SCE %s, %s(%s)", rt, s, rs); + return img_format("SCE %s, %s(%s)", rt, s, rs); } @@ -13233,7 +13218,7 @@ std::string NMD::SCWP(uint64 instruction) std::string ru = GPR(copy(ru_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SCWP %s, %s, (%s)", rt, ru, rs); + return img_format("SCWP %s, %s, (%s)", rt, ru, rs); } @@ -13257,7 +13242,7 @@ std::string NMD::SCWPE(uint64 instruction) std::string ru = GPR(copy(ru_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SCWPE %s, %s, (%s)", rt, ru, rs); + return img_format("SCWPE %s, %s, (%s)", rt, ru, rs); } @@ -13279,7 +13264,7 @@ std::string NMD::SD_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SD %s, %s($%d)", rt, u, 28); + return img_format("SD %s, %s($%d)", rt, u, 28); } @@ -13303,7 +13288,7 @@ std::string NMD::SD_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SD %s, %s(%s)", rt, s, rs); + return img_format("SD %s, %s(%s)", rt, s, rs); } @@ -13327,7 +13312,7 @@ std::string NMD::SD_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SD %s, %s(%s)", rt, u, rs); + return img_format("SD %s, %s(%s)", rt, u, rs); } @@ -13347,7 +13332,7 @@ std::string NMD::SDBBP_16_(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("SDBBP %s", code); + return img_format("SDBBP %s", code); } @@ -13367,7 +13352,7 @@ std::string NMD::SDBBP_32_(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("SDBBP %s", code); + return img_format("SDBBP %s", code); } @@ -13389,7 +13374,7 @@ std::string NMD::SDC1_GP_(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SDC1 %s, %s($%d)", ft, u, 28); + return img_format("SDC1 %s, %s($%d)", ft, u, 28); } @@ -13413,7 +13398,7 @@ std::string NMD::SDC1_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SDC1 %s, %s(%s)", ft, s, rs); + return img_format("SDC1 %s, %s(%s)", ft, s, rs); } @@ -13437,7 +13422,7 @@ std::string NMD::SDC1_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SDC1 %s, %s(%s)", ft, u, rs); + return img_format("SDC1 %s, %s(%s)", ft, u, rs); } @@ -13461,7 +13446,7 @@ std::string NMD::SDC1X(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SDC1X %s, %s(%s)", ft, rs, rt); + return img_format("SDC1X %s, %s(%s)", ft, rs, rt); } @@ -13485,7 +13470,7 @@ std::string NMD::SDC1XS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SDC1XS %s, %s(%s)", ft, rs, rt); + return img_format("SDC1XS %s, %s(%s)", ft, rs, rt); } @@ -13509,7 +13494,7 @@ std::string NMD::SDC2(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SDC2 %s, %s(%s)", cs, s, rs); + return img_format("SDC2 %s, %s(%s)", cs, s, rs); } @@ -13535,7 +13520,7 @@ std::string NMD::SDM(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img::format("SDM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("SDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -13557,7 +13542,7 @@ std::string NMD::SDPC_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 6); - return img::format("SDPC %s, %s", rt, s); + return img_format("SDPC %s, %s", rt, s); } @@ -13581,7 +13566,7 @@ std::string NMD::SDXS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SDXS %s, %s(%s)", rd, rs, rt); + return img_format("SDXS %s, %s(%s)", rd, rs, rt); } @@ -13605,7 +13590,7 @@ std::string NMD::SDX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SDX %s, %s(%s)", rd, rs, rt); + return img_format("SDX %s, %s(%s)", rd, rs, rt); } @@ -13627,7 +13612,7 @@ std::string NMD::SEB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SEB %s, %s", rt, rs); + return img_format("SEB %s, %s", rt, rs); } @@ -13649,7 +13634,7 @@ std::string NMD::SEH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SEH %s, %s", rt, rs); + return img_format("SEH %s, %s", rt, rs); } @@ -13673,7 +13658,7 @@ std::string NMD::SEL_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("SEL.D %s, %s, %s", fd, fs, ft); + return img_format("SEL.D %s, %s, %s", fd, fs, ft); } @@ -13697,7 +13682,7 @@ std::string NMD::SEL_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("SEL.S %s, %s, %s", fd, fs, ft); + return img_format("SEL.S %s, %s, %s", fd, fs, ft); } @@ -13721,7 +13706,7 @@ std::string NMD::SELEQZ_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("SELEQZ.D %s, %s, %s", fd, fs, ft); + return img_format("SELEQZ.D %s, %s, %s", fd, fs, ft); } @@ -13745,7 +13730,7 @@ std::string NMD::SELEQZ_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("SELEQZ.S %s, %s, %s", fd, fs, ft); + return img_format("SELEQZ.S %s, %s, %s", fd, fs, ft); } @@ -13769,7 +13754,7 @@ std::string NMD::SELNEZ_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("SELNEZ.D %s, %s, %s", fd, fs, ft); + return img_format("SELNEZ.D %s, %s, %s", fd, fs, ft); } @@ -13793,7 +13778,7 @@ std::string NMD::SELNEZ_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("SELNEZ.S %s, %s, %s", fd, fs, ft); + return img_format("SELNEZ.S %s, %s, %s", fd, fs, ft); } @@ -13817,7 +13802,7 @@ std::string NMD::SEQI(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SEQI %s, %s, %s", rt, rs, u); + return img_format("SEQI %s, %s, %s", rt, rs, u); } @@ -13841,7 +13826,7 @@ std::string NMD::SH_16_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("SH %s, %s(%s)", rtz3, u, rs3); + return img_format("SH %s, %s(%s)", rtz3, u, rs3); } @@ -13863,7 +13848,7 @@ std::string NMD::SH_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SH %s, %s($%d)", rt, u, 28); + return img_format("SH %s, %s($%d)", rt, u, 28); } @@ -13887,7 +13872,7 @@ std::string NMD::SH_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SH %s, %s(%s)", rt, s, rs); + return img_format("SH %s, %s(%s)", rt, s, rs); } @@ -13911,7 +13896,7 @@ std::string NMD::SH_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SH %s, %s(%s)", rt, u, rs); + return img_format("SH %s, %s(%s)", rt, u, rs); } @@ -13935,7 +13920,7 @@ std::string NMD::SHE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHE %s, %s(%s)", rt, s, rs); + return img_format("SHE %s, %s(%s)", rt, s, rs); } @@ -13957,7 +13942,7 @@ std::string NMD::SHILO(uint64 instruction) std::string shift = IMMEDIATE(copy(shift_value)); std::string ac = AC(copy(ac_value)); - return img::format("SHILO %s, %s", ac, shift); + return img_format("SHILO %s, %s", ac, shift); } @@ -13979,7 +13964,7 @@ std::string NMD::SHILOV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string ac = AC(copy(ac_value)); - return img::format("SHILOV %s, %s", ac, rs); + return img_format("SHILOV %s, %s", ac, rs); } @@ -14003,7 +13988,7 @@ std::string NMD::SHLL_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHLL.PH %s, %s, %s", rt, rs, sa); + return img_format("SHLL.PH %s, %s, %s", rt, rs, sa); } @@ -14027,7 +14012,7 @@ std::string NMD::SHLL_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHLL.QB %s, %s, %s", rt, rs, sa); + return img_format("SHLL.QB %s, %s, %s", rt, rs, sa); } @@ -14052,7 +14037,7 @@ std::string NMD::SHLL_S_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHLL_S.PH %s, %s, %s", rt, rs, sa); + return img_format("SHLL_S.PH %s, %s, %s", rt, rs, sa); } @@ -14076,7 +14061,7 @@ std::string NMD::SHLL_S_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHLL_S.W %s, %s, %s", rt, rs, sa); + return img_format("SHLL_S.W %s, %s, %s", rt, rs, sa); } @@ -14101,7 +14086,7 @@ std::string NMD::SHLLV_PH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHLLV.PH %s, %s, %s", rd, rt, rs); + return img_format("SHLLV.PH %s, %s, %s", rd, rt, rs); } @@ -14125,7 +14110,7 @@ std::string NMD::SHLLV_QB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHLLV.QB %s, %s, %s", rd, rt, rs); + return img_format("SHLLV.QB %s, %s, %s", rd, rt, rs); } @@ -14150,7 +14135,7 @@ std::string NMD::SHLLV_S_PH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHLLV_S.PH %s, %s, %s", rd, rt, rs); + return img_format("SHLLV_S.PH %s, %s, %s", rd, rt, rs); } @@ -14174,7 +14159,7 @@ std::string NMD::SHLLV_S_W(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHLLV_S.W %s, %s, %s", rd, rt, rs); + return img_format("SHLLV_S.W %s, %s, %s", rd, rt, rs); } @@ -14198,7 +14183,7 @@ std::string NMD::SHRA_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHRA.PH %s, %s, %s", rt, rs, sa); + return img_format("SHRA.PH %s, %s, %s", rt, rs, sa); } @@ -14222,7 +14207,7 @@ std::string NMD::SHRA_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHRA.QB %s, %s, %s", rt, rs, sa); + return img_format("SHRA.QB %s, %s, %s", rt, rs, sa); } @@ -14246,7 +14231,7 @@ std::string NMD::SHRA_R_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHRA_R.PH %s, %s, %s", rt, rs, sa); + return img_format("SHRA_R.PH %s, %s, %s", rt, rs, sa); } @@ -14270,7 +14255,7 @@ std::string NMD::SHRA_R_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHRA_R.QB %s, %s, %s", rt, rs, sa); + return img_format("SHRA_R.QB %s, %s, %s", rt, rs, sa); } @@ -14294,7 +14279,7 @@ std::string NMD::SHRA_R_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHRA_R.W %s, %s, %s", rt, rs, sa); + return img_format("SHRA_R.W %s, %s, %s", rt, rs, sa); } @@ -14318,7 +14303,7 @@ std::string NMD::SHRAV_PH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHRAV.PH %s, %s, %s", rd, rt, rs); + return img_format("SHRAV.PH %s, %s, %s", rd, rt, rs); } @@ -14342,7 +14327,7 @@ std::string NMD::SHRAV_QB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHRAV.QB %s, %s, %s", rd, rt, rs); + return img_format("SHRAV.QB %s, %s, %s", rd, rt, rs); } @@ -14366,7 +14351,7 @@ std::string NMD::SHRAV_R_PH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHRAV_R.PH %s, %s, %s", rd, rt, rs); + return img_format("SHRAV_R.PH %s, %s, %s", rd, rt, rs); } @@ -14390,7 +14375,7 @@ std::string NMD::SHRAV_R_QB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHRAV_R.QB %s, %s, %s", rd, rt, rs); + return img_format("SHRAV_R.QB %s, %s, %s", rd, rt, rs); } @@ -14414,7 +14399,7 @@ std::string NMD::SHRAV_R_W(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHRAV_R.W %s, %s, %s", rd, rt, rs); + return img_format("SHRAV_R.W %s, %s, %s", rd, rt, rs); } @@ -14438,7 +14423,7 @@ std::string NMD::SHRL_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHRL.PH %s, %s, %s", rt, rs, sa); + return img_format("SHRL.PH %s, %s, %s", rt, rs, sa); } @@ -14462,7 +14447,7 @@ std::string NMD::SHRL_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string sa = IMMEDIATE(copy(sa_value)); - return img::format("SHRL.QB %s, %s, %s", rt, rs, sa); + return img_format("SHRL.QB %s, %s, %s", rt, rs, sa); } @@ -14487,7 +14472,7 @@ std::string NMD::SHRLV_PH(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHRLV.PH %s, %s, %s", rd, rt, rs); + return img_format("SHRLV.PH %s, %s, %s", rd, rt, rs); } @@ -14511,7 +14496,7 @@ std::string NMD::SHRLV_QB(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SHRLV.QB %s, %s, %s", rd, rt, rs); + return img_format("SHRLV.QB %s, %s, %s", rd, rt, rs); } @@ -14535,7 +14520,7 @@ std::string NMD::SHX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SHX %s, %s(%s)", rd, rs, rt); + return img_format("SHX %s, %s(%s)", rd, rs, rt); } @@ -14559,7 +14544,7 @@ std::string NMD::SHXS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SHXS %s, %s(%s)", rd, rs, rt); + return img_format("SHXS %s, %s(%s)", rd, rs, rt); } @@ -14579,7 +14564,7 @@ std::string NMD::SIGRIE(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("SIGRIE %s", code); + return img_format("SIGRIE %s", code); } @@ -14603,7 +14588,7 @@ std::string NMD::SLL_16_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); - return img::format("SLL %s, %s, %s", rt3, rs3, shift3); + return img_format("SLL %s, %s, %s", rt3, rs3, shift3); } @@ -14627,7 +14612,7 @@ std::string NMD::SLL_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("SLL %s, %s, %s", rt, rs, shift); + return img_format("SLL %s, %s, %s", rt, rs, shift); } @@ -14651,7 +14636,7 @@ std::string NMD::SLLV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SLLV %s, %s, %s", rd, rs, rt); + return img_format("SLLV %s, %s, %s", rd, rs, rt); } @@ -14675,7 +14660,7 @@ std::string NMD::SLT(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SLT %s, %s, %s", rd, rs, rt); + return img_format("SLT %s, %s, %s", rd, rs, rt); } @@ -14699,7 +14684,7 @@ std::string NMD::SLTI(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SLTI %s, %s, %s", rt, rs, u); + return img_format("SLTI %s, %s, %s", rt, rs, u); } @@ -14723,7 +14708,7 @@ std::string NMD::SLTIU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SLTIU %s, %s, %s", rt, rs, u); + return img_format("SLTIU %s, %s, %s", rt, rs, u); } @@ -14747,7 +14732,7 @@ std::string NMD::SLTU(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SLTU %s, %s, %s", rd, rs, rt); + return img_format("SLTU %s, %s, %s", rd, rs, rt); } @@ -14771,7 +14756,7 @@ std::string NMD::SOV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SOV %s, %s, %s", rd, rs, rt); + return img_format("SOV %s, %s, %s", rd, rs, rt); } @@ -14791,7 +14776,7 @@ std::string NMD::SPECIAL2(uint64 instruction) std::string op = IMMEDIATE(copy(op_value)); - return img::format("SPECIAL2 %s", op); + return img_format("SPECIAL2 %s", op); } @@ -14813,7 +14798,7 @@ std::string NMD::SQRT_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("SQRT.D %s, %s", ft, fs); + return img_format("SQRT.D %s, %s", ft, fs); } @@ -14835,7 +14820,7 @@ std::string NMD::SQRT_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("SQRT.S %s, %s", ft, fs); + return img_format("SQRT.S %s, %s", ft, fs); } @@ -14859,7 +14844,7 @@ std::string NMD::SRA(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("SRA %s, %s, %s", rt, rs, shift); + return img_format("SRA %s, %s, %s", rt, rs, shift); } @@ -14883,7 +14868,7 @@ std::string NMD::SRAV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SRAV %s, %s, %s", rd, rs, rt); + return img_format("SRAV %s, %s, %s", rd, rs, rt); } @@ -14907,7 +14892,7 @@ std::string NMD::SRL_16_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); - return img::format("SRL %s, %s, %s", rt3, rs3, shift3); + return img_format("SRL %s, %s, %s", rt3, rs3, shift3); } @@ -14931,7 +14916,7 @@ std::string NMD::SRL_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string shift = IMMEDIATE(copy(shift_value)); - return img::format("SRL %s, %s, %s", rt, rs, shift); + return img_format("SRL %s, %s, %s", rt, rs, shift); } @@ -14955,7 +14940,7 @@ std::string NMD::SRLV(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SRLV %s, %s, %s", rd, rs, rt); + return img_format("SRLV %s, %s, %s", rd, rs, rt); } @@ -14979,7 +14964,7 @@ std::string NMD::SUB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUB %s, %s, %s", rd, rs, rt); + return img_format("SUB %s, %s, %s", rd, rs, rt); } @@ -15003,7 +14988,7 @@ std::string NMD::SUB_D(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("SUB.D %s, %s, %s", fd, fs, ft); + return img_format("SUB.D %s, %s, %s", fd, fs, ft); } @@ -15027,7 +15012,7 @@ std::string NMD::SUB_S(uint64 instruction) std::string fs = FPR(copy(fs_value)); std::string ft = FPR(copy(ft_value)); - return img::format("SUB.S %s, %s, %s", fd, fs, ft); + return img_format("SUB.S %s, %s, %s", fd, fs, ft); } @@ -15051,7 +15036,7 @@ std::string NMD::SUBQ_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBQ.PH %s, %s, %s", rd, rs, rt); + return img_format("SUBQ.PH %s, %s, %s", rd, rs, rt); } @@ -15076,7 +15061,7 @@ std::string NMD::SUBQ_S_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBQ_S.PH %s, %s, %s", rd, rs, rt); + return img_format("SUBQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -15101,7 +15086,7 @@ std::string NMD::SUBQ_S_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBQ_S.W %s, %s, %s", rd, rs, rt); + return img_format("SUBQ_S.W %s, %s, %s", rd, rs, rt); } @@ -15126,7 +15111,7 @@ std::string NMD::SUBQH_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBQH.PH %s, %s, %s", rd, rs, rt); + return img_format("SUBQH.PH %s, %s, %s", rd, rs, rt); } @@ -15151,7 +15136,7 @@ std::string NMD::SUBQH_R_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBQH_R.PH %s, %s, %s", rd, rs, rt); + return img_format("SUBQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -15176,7 +15161,7 @@ std::string NMD::SUBQH_R_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBQH_R.W %s, %s, %s", rd, rs, rt); + return img_format("SUBQH_R.W %s, %s, %s", rd, rs, rt); } @@ -15201,7 +15186,7 @@ std::string NMD::SUBQH_W(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBQH.W %s, %s, %s", rd, rs, rt); + return img_format("SUBQH.W %s, %s, %s", rd, rs, rt); } @@ -15225,7 +15210,7 @@ std::string NMD::SUBU_16_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - return img::format("SUBU %s, %s, %s", rd3, rs3, rt3); + return img_format("SUBU %s, %s, %s", rd3, rs3, rt3); } @@ -15249,7 +15234,7 @@ std::string NMD::SUBU_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBU %s, %s, %s", rd, rs, rt); + return img_format("SUBU %s, %s, %s", rd, rs, rt); } @@ -15273,7 +15258,7 @@ std::string NMD::SUBU_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBU.PH %s, %s, %s", rd, rs, rt); + return img_format("SUBU.PH %s, %s, %s", rd, rs, rt); } @@ -15297,7 +15282,7 @@ std::string NMD::SUBU_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBU.QB %s, %s, %s", rd, rs, rt); + return img_format("SUBU.QB %s, %s, %s", rd, rs, rt); } @@ -15322,7 +15307,7 @@ std::string NMD::SUBU_S_PH(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBU_S.PH %s, %s, %s", rd, rs, rt); + return img_format("SUBU_S.PH %s, %s, %s", rd, rs, rt); } @@ -15347,7 +15332,7 @@ std::string NMD::SUBU_S_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBU_S.QB %s, %s, %s", rd, rs, rt); + return img_format("SUBU_S.QB %s, %s, %s", rd, rs, rt); } @@ -15372,7 +15357,7 @@ std::string NMD::SUBUH_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBUH.QB %s, %s, %s", rd, rs, rt); + return img_format("SUBUH.QB %s, %s, %s", rd, rs, rt); } @@ -15397,7 +15382,7 @@ std::string NMD::SUBUH_R_QB(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SUBUH_R.QB %s, %s, %s", rd, rs, rt); + return img_format("SUBUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -15421,7 +15406,7 @@ std::string NMD::SW_16_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img::format("SW %s, %s(%s)", rtz3, u, rs3); + return img_format("SW %s, %s(%s)", rtz3, u, rs3); } @@ -15445,7 +15430,7 @@ std::string NMD::SW_4X4_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); - return img::format("SW %s, %s(%s)", rtz4, u, rs4); + return img_format("SW %s, %s(%s)", rtz4, u, rs4); } @@ -15467,7 +15452,7 @@ std::string NMD::SW_GP16_(uint64 instruction) std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SW %s, %s($%d)", rtz3, u, 28); + return img_format("SW %s, %s($%d)", rtz3, u, 28); } @@ -15489,7 +15474,7 @@ std::string NMD::SW_GP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SW %s, %s($%d)", rt, u, 28); + return img_format("SW %s, %s($%d)", rt, u, 28); } @@ -15513,7 +15498,7 @@ std::string NMD::SW_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SW %s, %s(%s)", rt, s, rs); + return img_format("SW %s, %s(%s)", rt, s, rs); } @@ -15535,7 +15520,7 @@ std::string NMD::SW_SP_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SW %s, %s($%d)", rt, u, 29); + return img_format("SW %s, %s($%d)", rt, u, 29); } @@ -15559,7 +15544,7 @@ std::string NMD::SW_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SW %s, %s(%s)", rt, u, rs); + return img_format("SW %s, %s(%s)", rt, u, rs); } @@ -15581,7 +15566,7 @@ std::string NMD::SWC1_GP_(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("SWC1 %s, %s($%d)", ft, u, 28); + return img_format("SWC1 %s, %s($%d)", ft, u, 28); } @@ -15605,7 +15590,7 @@ std::string NMD::SWC1_S9_(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SWC1 %s, %s(%s)", ft, s, rs); + return img_format("SWC1 %s, %s(%s)", ft, s, rs); } @@ -15629,7 +15614,7 @@ std::string NMD::SWC1_U12_(uint64 instruction) std::string u = IMMEDIATE(copy(u_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SWC1 %s, %s(%s)", ft, u, rs); + return img_format("SWC1 %s, %s(%s)", ft, u, rs); } @@ -15653,7 +15638,7 @@ std::string NMD::SWC1X(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SWC1X %s, %s(%s)", ft, rs, rt); + return img_format("SWC1X %s, %s(%s)", ft, rs, rt); } @@ -15677,7 +15662,7 @@ std::string NMD::SWC1XS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SWC1XS %s, %s(%s)", ft, rs, rt); + return img_format("SWC1XS %s, %s(%s)", ft, rs, rt); } @@ -15701,7 +15686,7 @@ std::string NMD::SWC2(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SWC2 %s, %s(%s)", cs, s, rs); + return img_format("SWC2 %s, %s(%s)", cs, s, rs); } @@ -15725,7 +15710,7 @@ std::string NMD::SWE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SWE %s, %s(%s)", rt, s, rs); + return img_format("SWE %s, %s(%s)", rt, s, rs); } @@ -15751,7 +15736,7 @@ std::string NMD::SWM(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img::format("SWM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("SWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -15773,7 +15758,7 @@ std::string NMD::SWPC_48_(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string s = ADDRESS(encode_s_from_address(s_value), 6); - return img::format("SWPC %s, %s", rt, s); + return img_format("SWPC %s, %s", rt, s); } @@ -15797,7 +15782,7 @@ std::string NMD::SWX(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SWX %s, %s(%s)", rd, rs, rt); + return img_format("SWX %s, %s(%s)", rd, rs, rt); } @@ -15821,7 +15806,7 @@ std::string NMD::SWXS(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("SWXS %s, %s(%s)", rd, rs, rt); + return img_format("SWXS %s, %s(%s)", rd, rs, rt); } @@ -15841,7 +15826,7 @@ std::string NMD::SYNC(uint64 instruction) std::string stype = IMMEDIATE(copy(stype_value)); - return img::format("SYNC %s", stype); + return img_format("SYNC %s", stype); } @@ -15863,7 +15848,7 @@ std::string NMD::SYNCI(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SYNCI %s(%s)", s, rs); + return img_format("SYNCI %s(%s)", s, rs); } @@ -15885,7 +15870,7 @@ std::string NMD::SYNCIE(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("SYNCIE %s(%s)", s, rs); + return img_format("SYNCIE %s(%s)", s, rs); } @@ -15905,7 +15890,7 @@ std::string NMD::SYSCALL_16_(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("SYSCALL %s", code); + return img_format("SYSCALL %s", code); } @@ -15923,7 +15908,7 @@ std::string NMD::SYSCALL_32_(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("SYSCALL %s", code); + return img_format("SYSCALL %s", code); } @@ -15945,7 +15930,7 @@ std::string NMD::TEQ(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("TEQ %s, %s", rs, rt); + return img_format("TEQ %s, %s", rs, rt); } @@ -16183,7 +16168,7 @@ std::string NMD::TNE(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("TNE %s, %s", rs, rt); + return img_format("TNE %s, %s", rs, rt); } @@ -16205,7 +16190,7 @@ std::string NMD::TRUNC_L_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("TRUNC.L.D %s, %s", ft, fs); + return img_format("TRUNC.L.D %s, %s", ft, fs); } @@ -16227,7 +16212,7 @@ std::string NMD::TRUNC_L_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("TRUNC.L.S %s, %s", ft, fs); + return img_format("TRUNC.L.S %s, %s", ft, fs); } @@ -16249,7 +16234,7 @@ std::string NMD::TRUNC_W_D(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("TRUNC.W.D %s, %s", ft, fs); + return img_format("TRUNC.W.D %s, %s", ft, fs); } @@ -16271,7 +16256,7 @@ std::string NMD::TRUNC_W_S(uint64 instruction) std::string ft = FPR(copy(ft_value)); std::string fs = FPR(copy(fs_value)); - return img::format("TRUNC.W.S %s, %s", ft, fs); + return img_format("TRUNC.W.S %s, %s", ft, fs); } @@ -16297,7 +16282,7 @@ std::string NMD::UALDM(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img::format("UALDM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("UALDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16321,7 +16306,7 @@ std::string NMD::UALH(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("UALH %s, %s(%s)", rt, s, rs); + return img_format("UALH %s, %s(%s)", rt, s, rs); } @@ -16347,7 +16332,7 @@ std::string NMD::UALWM(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img::format("UALWM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("UALWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16373,7 +16358,7 @@ std::string NMD::UASDM(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img::format("UASDM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("UASDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16397,7 +16382,7 @@ std::string NMD::UASH(uint64 instruction) std::string s = IMMEDIATE(copy(s_value)); std::string rs = GPR(copy(rs_value)); - return img::format("UASH %s, %s(%s)", rt, s, rs); + return img_format("UASH %s, %s(%s)", rt, s, rs); } @@ -16423,7 +16408,7 @@ std::string NMD::UASWM(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img::format("UASWM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("UASWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16443,7 +16428,7 @@ std::string NMD::UDI(uint64 instruction) std::string op = IMMEDIATE(copy(op_value)); - return img::format("UDI %s", op); + return img_format("UDI %s", op); } @@ -16461,7 +16446,7 @@ std::string NMD::WAIT(uint64 instruction) std::string code = IMMEDIATE(copy(code_value)); - return img::format("WAIT %s", code); + return img_format("WAIT %s", code); } @@ -16483,7 +16468,7 @@ std::string NMD::WRDSP(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string mask = IMMEDIATE(copy(mask_value)); - return img::format("WRDSP %s, %s", rt, mask); + return img_format("WRDSP %s, %s", rt, mask); } @@ -16505,7 +16490,7 @@ std::string NMD::WRPGPR(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("WRPGPR %s, %s", rt, rs); + return img_format("WRPGPR %s, %s", rt, rs); } @@ -16527,7 +16512,7 @@ std::string NMD::XOR_16_(uint64 instruction) std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - return img::format("XOR %s, %s", rs3, rt3); + return img_format("XOR %s, %s", rs3, rt3); } @@ -16551,7 +16536,7 @@ std::string NMD::XOR_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - return img::format("XOR %s, %s, %s", rd, rs, rt); + return img_format("XOR %s, %s, %s", rd, rs, rt); } @@ -16575,7 +16560,7 @@ std::string NMD::XORI(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string u = IMMEDIATE(copy(u_value)); - return img::format("XORI %s, %s, %s", rt, rs, u); + return img_format("XORI %s, %s, %s", rt, rs, u); } @@ -16596,7 +16581,7 @@ std::string NMD::YIELD(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string rs = GPR(copy(rs_value)); - return img::format("YIELD %s, %s", rt, rs); + return img_format("YIELD %s, %s", rt, rs); } diff --git a/disas/nanomips.h b/disas/nanomips.h index a0a2225301..9fe0cc67da 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -29,11 +29,7 @@ typedef int64_t int64; typedef uint64_t uint64; typedef uint32_t uint32; typedef uint16_t uint16; - -namespace img -{ - typedef uint64_t address; -} +typedef uint64_t img_address; class NMD @@ -70,7 +66,7 @@ public: }; - NMD(img::address pc, TABLE_ATTRIBUTE_TYPE requested_instruction_categories) + NMD(img_address pc, TABLE_ATTRIBUTE_TYPE requested_instruction_categories) : m_pc(pc) , m_requested_instruction_categories(requested_instruction_categories) { @@ -81,7 +77,7 @@ public: private: - img::address m_pc; + img_address m_pc; TABLE_ATTRIBUTE_TYPE m_requested_instruction_categories; typedef std::string(NMD:: *disassembly_function)(uint64 instruction); From patchwork Mon Sep 12 12:26:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973619 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 009F2C6FA83 for ; Mon, 12 Sep 2022 12:31:07 +0000 (UTC) Received: from localhost ([::1]:42312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXiag-0005YT-SD for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:31:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiXd-0003Sy-09 for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:27:57 -0400 Received: from mail-eopbgr20105.outbound.protection.outlook.com ([40.107.2.105]:10471 helo=EUR02-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiXW-0005aW-9k for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:27:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JWLXVO8liavrFaninu1DhH1/S4k+btnc8zhmpDkm/E5JbNBCZtcAq4RIJ/JragJS4qLfr0acC/d+LZsYwlYXndCVcUMP+hA0Mv9PwGd0O2oo5PVBCkwHDj4gx7nQbstkxDo7D7tK6Ws2hXSSkT3bHosMhfQvQUaUx2LF4EW9DXSwa+ChbIoPuCcQX6Z1PIJ2AXZPDUSqyAmIHHp4yxjrptxxv1n0PciwupoWAq73J5A7s1fGWbG69fWORuWSrevQ9L4A1bH1ZDiVer8j7oS5sEn/bInoqo+XUyeLsNu9+BpxFYEHVpNxOTItHqs66NLb3Fmwt3MgzUMf5HNLVr/d/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=teVlKC0opfUmewvZ+DRn62F8reYBnETKJw/6Ux32Wtw=; b=DqFMQMZ2oyReLEJxZsOCzCWo6Y1sjsBHxWNb9B+R7eJdx3afTG1oNXkBNUKP8LIocVpuBMTczVSmfPRJaPRF4nBKWhfBjkde4WFYqOaSIjXbJgYBWrH7UjYUnqnfJtP8a1m+M98EtWRnnHeuLru/Jj5H/YclBNN/4FY3hJ0bMa2Im64D/U6b4D4auXje9wD0Xw86nmkI0FraaSk7HU+Er2U0Pz8l2iltPdsIp4MYZBAN4+g7I+bW3fX8XkYNuG/t1UGbvZvXdEkbmh3fnB/ppGzexB3Al/5qru+MmQg7Bv5/p4X+HqOuWiDMB20To8y17zSEsTq8DTVhayi9YLKycg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=teVlKC0opfUmewvZ+DRn62F8reYBnETKJw/6Ux32Wtw=; b=W1vmMNxG55nrt4xEyWTQTMOkpuWATuv5EjYQSTKlwfVNWbofuhLYT2DupSsmLdKLJX7g1xF52QHi426gcX7p736RRwQZNaxg5MJRD8wBH5pJ5DfGEdD6+3Er6/4iVPbJjjIQsJnpdXoxUKi3NKjqB5JwximesWd1W2TEXLkxMPA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS2PR03MB9768.eurprd03.prod.outlook.com (2603:10a6:20b:60b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:27:46 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:27:46 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 02/24] disas/nanomips: Extract enums out of the NMD class Date: Mon, 12 Sep 2022 14:26:13 +0200 Message-Id: <20220912122635.74032-3-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS2PR03MB9768:EE_ X-MS-Office365-Filtering-Correlation-Id: c369205c-2a5a-46bd-08fd-08da94ba32a2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4Oz9nisiv9jD0uHPqzcBrwSrRXO2utYDuO5GM/eamNLmDYbOgfvaJF32uiAYEdrZsTtfy+44ahi4YqtFVYb0CspkxdlZdwZdwhbVK6rWpRnR2OycEIb/3svkKxKqwDDKbqITCviF8XYu3XUQkYzR8rWFnT+f568WhTYi5ZMPLR48Kfwh8ef4Ir+N3/Pv3zUMuHf1Q44L1IF8qpEDcr2JXSxWS/YCrrpAIcsCwFEbOgLqeYDBSi9TsjMSeTm6vbb3HTtjDhG/wMU9yPBTIDd9zn7vTb7tMy9Pf8LqEWc7U3F6iOvla2hN0fWfAiWjHFYoAaKmW0wZqKYtzhQ2g700Rdc93IFhgNYYLBNdxG0JKq4tZjMj+xD6nSlqLGZTRGvw5Jh/ZWz9fgNjWsJc9S63WLUH60t/+8agHlXSkeekyA6og+rfk1DSZ/tz4MJRnHGFMWwgK3QYn3cXHi83hWt5cv+sQnj9k+qj35ZLLBmB4k2n4RaUbPFE0mn7Wkhew7eLkJFJp3XXmkYAvqQBcZ78xUfbkaNw08uWyGY8jbWeWQOhIONF2kOkF1d+I0227NZWLS57+IylWsrJQCeFemk3dv5hI8Fs537gGlFyUatIhkivqNgjcJKfndsno62A/TyBqBaLvF1vc5J0ixStnlYRWmgwfhpAIQYQz69G9R106M7P/bJfdHVJs429c2cjansQwVbTi+7+L8rktHSaVq4+VXiwWWI2kXGLt8hEFGR5LvGBMBWsL96q3FT/3D97nNc1kF67NAjh6onvTUFBfeiTNw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(396003)(376002)(39840400004)(136003)(346002)(366004)(86362001)(66946007)(8676002)(38100700002)(66556008)(66476007)(4326008)(36756003)(38350700002)(186003)(83380400001)(2616005)(52116002)(6512007)(26005)(478600001)(107886003)(6486002)(41300700001)(6506007)(6666004)(2906002)(6916009)(316002)(1076003)(5660300002)(8936002)(44832011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rrxJYqAlR07bzs1UJoOTBH8Ymo8TzBbr4r7rzgxbKqO8rXzcdHDPkM0zCajW0jmRPLV+12fYp48LFHkDHF8uQufktC0TZNm3sTZ2ebopxXm1S/Oq9h7D0Gc4Qi0xxBV+LVnO+edUJOS3SEkWjRFz8FVS6gopmj1+F8+zJN0lMlH2I4D5StDZ9gS52RsbK4AjOsbCtVuommEDCJnq+GBqqyiqpWq+70Nghl0MidptdNkRY3Awyzgt5jZvYU9q1Ug8wvWYULQmEpS5OQnfv7eUWj5JDLSbwvVQkmIUKlnmUL5AFbJ9Qii07LAG+hHIc3NxWahwG/Ug/Ooa0yuAiZHCLZ9YdVc29Ikz9yHUXKQrFXfxlhBmFVla1Catpn9FwUdinuIrPJFFCdp4PZPM1LO2excLwur62yyH3ZF12r6X+aZSp6cdtK8/XV2gUAQ/8alPF/xfhxaAsnmJId4qX8h3s5jEJsvgAeYfx62IKFUY5K1o0il8Ajw5z0CDvkZN+chM/Cc1jzGp7j3CXU7itQZe7U5IQmlNpk8/drn6ggENMt9CrwgKwyPGWIeF6qPRRt29yTSuQJxaEIvf/QyTEPfjvjvEu6YWKlZ+cFwXqH0Ua5FdzOnuW5kB5luZbda3MIRmu2SNsKApvyqRNrmJjHIvzY8NHLd24Yp55Nf7DT/X52YTeOxjFq0goHVw/+H8/JqQ4+jMIWxU0GO+ymqW7sRK95XlP9pr2d1QDNSmWyft5a35hNtJBFeojGx53dFZxACAMsnPEXgHblAew2mCVzju6ca6XMAho8K1nxpWOV/z3c1t5I1q+iufI8tPc7xvVBM1Xttphff7ZbR79RgNY+HUCtVTNi6dxChH7Ljbp8c/iZeR9A9uxG9tt4oQOZKDW689d8zopdTQqbTGhiqk2l2TtskxohmdJajXvDlyvkfN8XOvbLxu1FyQ2cY7ZyFMLHDD2t6Loy0kqhed/F4EVMG0PgV4MxUCpoD/l24I/cV+n2TGBoq/aUH81fK9pSXPaXtlYrx5WMcyG7USnWXMgyqw3m58I2KVXuL1GvsaI/Nu555TL3WPJRhWDthDdD8wZGKpinGweVuhwIWfFxMIT99Q+rG5A5/iuQl04gFzx+nLS8CXp8KSQ+Ds8GqFAcz6m1RkOa78pvSACe3dyxyE5yQLleyfvY0IhFC8mqZB6xo8VUxN78pNhxoI0cB9hIwr+bEHumNwYAYaRrdZ3xPTYlBJdIZAtQxi+HEHpfSb3kqz6MxONqPg21QdrWLcA/Q7wF54Wu4cMOlLk/7q7hNZNAhxNI1wsjX9OSQgaZXVodRG0QqZIwdMmKYzQcXozGHbPPn3xvbjDgn+fNIPpCXW1Tm7A73rWsJ3ptiN1g1wP8u4gBNyac0ZM4O+BJj8kNzgIKKFJUlATa1qyDSF1lYtjiXcR2862yW06sGxnT/lLZNsEtE1k/2WoCZ5RJYpQjhvn5AIzZ997OUn3AwUTyq8tHcdjBpiw53NrMJLYQ6+ggVTwjj4RBcNPtVo0AgR1TsfRhCOorevatInW88Nb5axWq9X47VJLyyu2bw0hIyOKVTbWBfwvBNdN5C/GkSfdGCo81aQ4i/G8EM/y3crDlyktCX40Q== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c369205c-2a5a-46bd-08fd-08da94ba32a2 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:27:46.2060 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JE4xYylV3330urrc73hIszaueiQQ3LKTmLwfKw+DQcODnH2Zfqhzh5kBZAsVsOEXaJ/1m4oC2r//44/zBTV31t/p+arROSUVlCoeoUyFEAA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB9768 Received-SPF: pass client-ip=40.107.2.105; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR02-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Definitions of enums TABLE_ENTRY_TYPE and TABLE_ATTRIBUTE_TYPE are moved out of the NMD class. The main goal is to remove NMD class completely. Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 8 +++---- disas/nanomips.h | 59 +++++++++++++++++++++++----------------------- 2 files changed, 33 insertions(+), 34 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 84529685bf..bdc640b38b 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -50,8 +50,8 @@ int nanomips_dis(char *buf, std::string disasm; uint16 bits[3] = {one, two, three}; - NMD::TABLE_ENTRY_TYPE type; - NMD d(address, NMD::ALL_ATTRIBUTES); + TABLE_ENTRY_TYPE type; + NMD d(address, ALL_ATTRIBUTES); int size = d.Disassemble(bits, disasm, type); strcpy(buf, disasm.c_str()); @@ -772,7 +772,7 @@ uint64 NMD::extract_op_code_value(const uint16 * data, int size) int NMD::Disassemble(const uint16 * data, std::string & dis, - NMD::TABLE_ENTRY_TYPE & type) + TABLE_ENTRY_TYPE & type) { return Disassemble(data, dis, type, MAJOR, 2); } @@ -790,7 +790,7 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, * disassembly string - on error will constain error string */ int NMD::Disassemble(const uint16 * data, std::string & dis, - NMD::TABLE_ENTRY_TYPE & type, const Pool *table, + TABLE_ENTRY_TYPE & type, const Pool *table, int table_size) { try diff --git a/disas/nanomips.h b/disas/nanomips.h index 9fe0cc67da..f65a0957b8 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -31,41 +31,40 @@ typedef uint32_t uint32; typedef uint16_t uint16; typedef uint64_t img_address; +enum TABLE_ENTRY_TYPE { + instruction, + call_instruction, + branch_instruction, + return_instruction, + reserved_block, + pool, +}; + +enum TABLE_ATTRIBUTE_TYPE { + MIPS64_ = 0x00000001, + XNP_ = 0x00000002, + XMMS_ = 0x00000004, + EVA_ = 0x00000008, + DSP_ = 0x00000010, + MT_ = 0x00000020, + EJTAG_ = 0x00000040, + TLBINV_ = 0x00000080, + CP0_ = 0x00000100, + CP1_ = 0x00000200, + CP2_ = 0x00000400, + UDI_ = 0x00000800, + MCU_ = 0x00001000, + VZ_ = 0x00002000, + TLB_ = 0x00004000, + MVH_ = 0x00008000, + ALL_ATTRIBUTES = 0xffffffffull, +}; + class NMD { public: - enum TABLE_ENTRY_TYPE { - instruction, - call_instruction, - branch_instruction, - return_instruction, - reserved_block, - pool, - }; - - enum TABLE_ATTRIBUTE_TYPE { - MIPS64_ = 0x00000001, - XNP_ = 0x00000002, - XMMS_ = 0x00000004, - EVA_ = 0x00000008, - DSP_ = 0x00000010, - MT_ = 0x00000020, - EJTAG_ = 0x00000040, - TLBINV_ = 0x00000080, - CP0_ = 0x00000100, - CP1_ = 0x00000200, - CP2_ = 0x00000400, - UDI_ = 0x00000800, - MCU_ = 0x00001000, - VZ_ = 0x00002000, - TLB_ = 0x00004000, - MVH_ = 0x00008000, - ALL_ATTRIBUTES = 0xffffffffull, - }; - - NMD(img_address pc, TABLE_ATTRIBUTE_TYPE requested_instruction_categories) : m_pc(pc) , m_requested_instruction_categories(requested_instruction_categories) From patchwork Mon Sep 12 12:26:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973626 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 980F7ECAAD5 for ; Mon, 12 Sep 2022 12:43:02 +0000 (UTC) Received: from localhost ([::1]:35252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXimD-0001FJ-Cb for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:43:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYZ-00043G-QC for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:28:57 -0400 Received: from mail-vi1eur05on2139.outbound.protection.outlook.com ([40.107.21.139]:6240 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYY-0005oA-9T for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:28:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YZZjx5VhHZXf0+6uHv0EX8rEutIa0xeMdxCPQubd5+n2azSiKalSX8i+Av8Xzr8S8Vy7xzZBhGLjn7FTruWlM1IAxqpIUucWEHeLrIXm69jBGt9aUjxK0+hNH/Bq/z2UByANCn2A13t8SQr3N7zgzUUwvLfnpWLD7g7SrywYKzLjxJwV/ZY9b6drPg2TUK0X1au7WXCbwr0joPBQBc9+zwTb4f7/7xKgNRXLBbjQ0kLEgFjhMSqMAOnpNbAhi/sgX0uBNivvhiDaFbg9+654RA0WwUbSQKmB1xPtDPe8MnCl4vukczxIBJRvszmoO5Lz/FNK/5MXwtHGdxKJYdEZYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HO+lpPsmnGtWoA7qG6RRhVul0IJAUn6sR9Ll6um+1g8=; b=KaGFNQJBehY32HDAktv+1cS08E2yIv/YePj9FV7V5BzJGS+mOCHKk4wvplHgaVcIWFWjCOhVGU5OV9axKOMHMNhFnwEvD7lRdFmED5/AMmdAtZXChISxj2S4vyjSkZ2bHOymFEMizKmp4l3lTTbm9ytSIqMXun2u8FdZD1G8JqR719KoD0337NP6x3CtskVzyCl9rHiyQeHzgoXRHpajBdkTxNUsQqQcOgz7FFZjSYk1ZPRPQ8jYpaW9cDdDpsyjWainptGei4pwDcpSWxQKwLlI5BbxJ9dMoVIYvhjBufcdR40abbnn9iO3cXgS4MkhxrGXerg+zTQHP4RZG5yzgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HO+lpPsmnGtWoA7qG6RRhVul0IJAUn6sR9Ll6um+1g8=; b=eQvOVKxL9p5wNXx9RgVz2CY3w1eH1gtWqrbrCYhJQPV9p8qCW90Si52xMC0iEisfttgy2xCzRDmDQtIbxOH5f0Y1iJr2GXOtJ7KPiyFdOoz0ASHdN4qv6v9GVznl+KGPwlXZPbeVzbZ0SfA9yKgjd770jCt8BwXb0JKhhnYBC4I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB8805.eurprd03.prod.outlook.com (2603:10a6:20b:53e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:27:55 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:27:55 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 03/24] disas/nanomips: Delete NMD class field Date: Mon, 12 Sep 2022 14:26:14 +0200 Message-Id: <20220912122635.74032-4-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB8805:EE_ X-MS-Office365-Filtering-Correlation-Id: 060fade2-f8cb-4da2-bfba-08da94ba3865 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O/KZjC7JxwQ8A+CW6eg2C1GKf3t6mJzVtePAvWUxMeXnuQ3KrkiWoLT7YHYxxmQkQ5OJGyIIpXIGz4csdNyUCIlcJjdLAfiBCxjRfi7HGlojgy/qfsb3p9faVRpEHBBJ/ZK4A7uIm12Cwl1OEKybayDXtep322Q7hPv5hjFtehp987rfOSjFblUs+KqkOXApF6djQu1TSugL14FyvX6/m4FdUxKC7YwErVgdYE2F3+oqEaKKuWe77PZ4dJ2pNYdLsT7zWr5aP9fvA/iObKzx51QPQwwHW46wJSZpsPqLMl4YlpPkIY0xLinJ8QnnsgTk3+LpE0C6AUJ2I0EVNZxQwBYu/bwKkLC7iGD59/A2+FuwLIF1PVhOdadOELZo9QCMMsDrRd1RnVYbwFnFSsyMqfR7PX5kjEBDVcel6MY19MjDkoKQlCnVWlbLDbyq4QKmDRyTpNWQjC9IKNdH3yuc+ETnJtccmztODIgGMoC9SMYGx43xEc7NVHavBD+mwFjeDH3N0LwEW9upiTHDaHnWS28pq3UYrh8XEFNxghhyJ30mCUTO81TFj0rYlxhacWjIKLR91YtX8s9XS/79rCIBP6KYwU+MkACDd7MoKwDSMOLZLJ9TDCYsefklBfVjKKB45LTVoHdOKTsplFE83S8c7avYGmb258boniKzCPVrxqm18WtOkbrC5WsH4Bpu16ClmG+apqW20ttrFHoZ6kQjorxtAmr7Xqe3C5J5KYqebcvQl/JIuDq18dBedoLLplcLGzERMZ4tEKbNjbLRW4htOw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(346002)(396003)(376002)(136003)(39840400004)(2616005)(6666004)(36756003)(6486002)(316002)(6506007)(6916009)(8936002)(107886003)(83380400001)(52116002)(478600001)(41300700001)(186003)(1076003)(2906002)(38350700002)(38100700002)(26005)(6512007)(44832011)(66556008)(8676002)(66946007)(4326008)(5660300002)(86362001)(66476007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: arXZZEw6lrCRu81DJBtLLG/5vMNBOSZAHizWQypV5/YoKZrvqSfXVIOgmfBrOm2sdJHGodf9nqVPId7FZiLOKQ0QaPzwKM1CsMzXlGUi9TRjktjTSMl8WZ979+MqY5idqAa3gvVe5dgTg6yNqXPHyGSDiWVPNxs/WaaJcIjcyo+903MR63SUQetOx8oasQ50Smbk1KeYLXH+nEzax2XgvxH35TCcTFiRRtItzAdIT3IXufrJGKgR6Q/FgGo6xFTVv/qA96/baK0ELi2sKi5Ca5NnA9Nf65JsqMvXt3i82Mw6RwCz9nWxQujetMwFOTVTaLXg68mrypNRbMZ1j+k8BqliA+2b/8/7RR8AnJb1IOS+cvgmiD9TgvMeFfCvA01SMVaZsgvJhduXUBWxqwbbMwu32TXn66aLmWZVWsc/BQsp0w9cZLrSS5Gt+R0H35NaRGueqofL1MHbgaMqrhqOM3jKbpS5qo9fVcG6HFxDVZ4qnN2zZwB9I9UP7M+jq6AHRdCLa4qsBXCJU/izNsrRYFygZ2Q6tMEDHjtP7MALl0CAPJ5Gwz472R/Lx5YVMzOUMuhxt0lY7uVnx3pOlfmiYKVRq4Mza6AuuGfjf+thNeS5b5CPbaAh9lBGBDflCIToN5o9u4+pFOjdriCR4Ml8oXjqh3uKU50HpX1gK4fNf3zzHzxJmS4GCA17xX49ACWhCw8+DJX9HDa6NkK21euOB/l/ZeQrGMHMP8DWS44HKjleu1c2OyDbinDozkPtCtCbXGXLDr+S6+xcHXytMbWXe8SKhjhdz64pVlsDdWfqqdAxRV3WGnFHipQKhzPz4PBN44xXuXsz2CyLe0Qe3XLjVdd8YeKVSfRBTEsa6FNvhRgiMQfbFYFkmPoTVwNW3vb3QEd7whrYwyp1J2JkKGLjdFY+COBukzphG0m30Pb9/nIB4R2/u3j0Mry32p+WUxGMNI4APRNgik3MlMVzgpd6H1OydDbmwRinE/de20rbHYe5jqWeK2oyTNDGy0eR6utRN2Enj61kZ9ROnEnl+TrgfNrhURq1vBsIkV6aFim9m2wvEsmI3gU4pT1yJX+lK1Wkpu30mjDQvaPnJxcMwt/q/fsFRAR0Pm0ud2oUAMRn6fu80Fz9W4UmsuE+4yvnACQlo1jpUqR4RsxIItq8o1A4CaHQSNl0TDEwNK28NN7xQUUjRm6LtfPBExgbHzXonRHyRFldBJ8wJEPKMdrybwu7mM2Ida9vcoAz/ZRTm4wsQGBv4a5RJI6rVmAw3RsZqI6TU4TY5w8ya7Rhv+pT1miWMvF86ZreOvPB4xyDFjW8oyf6lzSTYt/BcSJL3j8EREQH7mxxFmpQ6WiUQBKLFPMJOiqSFBGiMud2jtdfuWR9yWElqZ8PusbNoJM66iJQDkmOnQ3eNAiqhfCHNkaEbS+2B+dNqbCEXqwx4rS9AHwe7v5KX+M6GwjS4buaRKqAG1H/sIFPBUawhAUKVeMMTOCBnleFB8jBp8ms7sgaBxfqtQqyaep5KChu/HR0sJwbhgjt4eZKi8+XaJOR0x4wBGgmlVCDLah8Zf222UIauiFAMPiVomWXGCzzjKPRtkxI/SZBHAAQc5xUiuDbqmqkw+pddg== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 060fade2-f8cb-4da2-bfba-08da94ba3865 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:27:55.8929 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hqUGCcmhB/xlDXBeaDFeAGb0KxBG8dwFrFXhdyVrsAA/x7RTALXbOSl2EL8rG9kNFDjhbLjwfbQJECFZq3X0vX2TK6MUws0VCFVd4S/mij8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB8805 Received-SPF: pass client-ip=40.107.21.139; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The m_requested_instruction_categories field always has the same value, ALL_ATTRIBUTES. The only use of that field is within the if statement. When replaced with a specific value, the if statement is always false, so it has been removed. Now, when the only use of the m_requested_instruction_categories field is removed, we can delete the field declaration and initialization in the NMD class. Also, we're changing the way of the construction of the NMD object in the nanomips_dis function. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 13 +------------ disas/nanomips.h | 4 +--- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index bdc640b38b..721ca3f52b 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -51,7 +51,7 @@ int nanomips_dis(char *buf, uint16 bits[3] = {one, two, three}; TABLE_ENTRY_TYPE type; - NMD d(address, ALL_ATTRIBUTES); + NMD d(address); int size = d.Disassemble(bits, disasm, type); strcpy(buf, disasm.c_str()); @@ -812,17 +812,6 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, (table[i].type == call_instruction) || (table[i].type == branch_instruction) || (table[i].type == return_instruction)) { - if ((table[i].attributes != 0) && - (m_requested_instruction_categories & - table[i].attributes) == 0) { - /* - * failed due to instruction having - * an ASE attribute and the requested version - * not having that attribute - */ - dis = "ASE attribute mismatch"; - return -5; - } disassembly_function dis_fn = table[i].disassembly; if (dis_fn == 0) { dis = "disassembler failure - bad table entry"; diff --git a/disas/nanomips.h b/disas/nanomips.h index f65a0957b8..5bdfe1e30b 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -65,9 +65,8 @@ class NMD { public: - NMD(img_address pc, TABLE_ATTRIBUTE_TYPE requested_instruction_categories) + NMD(img_address pc) : m_pc(pc) - , m_requested_instruction_categories(requested_instruction_categories) { } @@ -77,7 +76,6 @@ public: private: img_address m_pc; - TABLE_ATTRIBUTE_TYPE m_requested_instruction_categories; typedef std::string(NMD:: *disassembly_function)(uint64 instruction); typedef bool(NMD:: *conditional_function)(uint64 instruction); From patchwork Mon Sep 12 12:26:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973634 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B26D5ECAAD5 for ; Mon, 12 Sep 2022 12:50:38 +0000 (UTC) Received: from localhost ([::1]:54720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXitZ-0007nd-Hi for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:50:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYh-00048h-Eq for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:03 -0400 Received: from mail-vi1eur05on2139.outbound.protection.outlook.com ([40.107.21.139]:6240 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYa-0005oA-3U for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mi0MbnT7TWvItNx1gGd6EXeIhm/hHxz/2x2gNfx8cbvrOze8gXj9hz8xxsTn/dZAdwXf8uFXUBroOGULHtBA7wpWqIjVwYsBkXgZ0HnEL3DhjEbKjDUZoZrwO1d+IJW54j8gLDdjXs20iZ3asgLVnWvotl/ITXpkoNlurk8yF8N7eqMIQQtAMY2vbZxFUdUaOV6CGaCmAx9W6Gsp7KY1IOatQvoc7Nb1P014hpfFbrQRSkNqlEoPt3QVWcQG4hBa1rlnALhg5V4J3Le3+Ds1H4G3CPIoSCCG068HN99ASxKTiD70rfg6IxfF37YWDK3k7hYnzWw0RW4ZchTqwuLPGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=08N6Yhp4nVlHZnbYfKDRJ6RcB6bCCjl3sayN6eYL/oQ=; b=l4hW8HkImNlr4thP+1BIUBdyAaEnBWrZ+1IPtRnlJty423SXGczzjNV531DeYZTnccCR190Xx6mi/Qx/ZReCG0HlwBZJbDhimkLAotZyYMuJZmQng+za32kFWicBa6DQy8z7QJpIOmIUBL+Lm+bjOr8koCZLWUdDNudhM9SB190w6wQxKQHrAKEB5ncEjAzTm4jk+Fzw9IxEZDbdZHzyjkN5s6iDKEfHD/rPbzvt1+Wr76FkBEjMdQmoLREAHgXFTK72qB0XUs7X+tOdffPGZQg8+ts5hFakp6SJzOUd7KK2o5k6WbuH+7clOVI9r6gdskhLgbRYGXKUQ64zvVXkZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=08N6Yhp4nVlHZnbYfKDRJ6RcB6bCCjl3sayN6eYL/oQ=; b=XkvlgXxI7+cup8Ho6uYypYlCpMrFTq82seOSVeDFOj0rVO2oXMc513QiOnorCsgKwJVXxC7k0U+grP+fdzEgouc8gvsAFSkVDM3q+0nNmBQHjAgISSNo/Bq3q8S+zlNatKswYmP6YdHT+56NBZhjhPKb96mZ8JQhM4mHvfZQQns= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB8805.eurprd03.prod.outlook.com (2603:10a6:20b:53e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:28:00 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:28:00 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 04/24] disas/nanomips: Delete NMD class second field Date: Mon, 12 Sep 2022 14:26:15 +0200 Message-Id: <20220912122635.74032-5-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB8805:EE_ X-MS-Office365-Filtering-Correlation-Id: 78b712d5-63de-494f-3a42-08da94ba3a91 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lRfjJsjT9xxFzOtt2+EWxAtLy4QMj/ydsoRH45esZyPyNQh3G0oA96f36eS2yvL7T1VTMZtQHw4WnMAXrx20mky6/0jyiDkur6kws/UbDav/896A1FDBgl/z01LDu/tBbLkEzi/D3cJuD3laQSkhjsXNNGUui6pjeXf34MssDuNlJVq78S5WAEcvxts92e9hM2I3nwn0/7Y1yvLk0vLsa7JHAJ1jTQ+oajidvBn+E05mtCzmsCzRiywkEgHQ1RanHUJyN4cglhBtrAXkHXh9aqeldVvjM2JwjSMpEQV8KMwC2ij2XrbevuzsRwNM1tLPQhmQErE2FgdXOTPm96jc1K4bI5I+8BnO3IrhmgG5ShbV/LqQplBF2+7FziFG+BlEzf/q/cYPzPKvXTTNiO5U7lVCjXT5PelUcDNRN0biOW+6+E3+TH9nBo/COLvo6CdU0KNOuUekxx8znYCx3aRX+qk0LIb1h9VZrj59h35/2CNTJZAwtidenLV3sV3z6CQFv4BUiEVxRPyBHFy93KhPan66rijhm/2f4RV1glohXkrYJD8dT0zcIB31yyza6qK6sUSzCRSnZ+vHUhxlGQhsfOovW/xKqZ14MS+0OHn4L7QeerDxGMAXBYpKMz4FNvVVpHPfJKgG4+3XPPw77m//xFlleWOdnnaZnusWYQuEULnj/HjKt61kPlbrBD9mX9AyCK33JCwD+XhsLE2VNe94oQoGrzEP8RRk0BrYFG4q+2ipcMfIdQv6G4POCLDo0nXFVMPpvxParJyOjSqOmBbtKw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(346002)(396003)(376002)(136003)(39840400004)(2616005)(6666004)(36756003)(6486002)(316002)(6506007)(6916009)(8936002)(107886003)(83380400001)(52116002)(478600001)(41300700001)(186003)(1076003)(2906002)(38350700002)(38100700002)(26005)(6512007)(44832011)(66556008)(8676002)(66946007)(4326008)(5660300002)(86362001)(30864003)(66476007)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uwkcPL5i1imURMz87vr62tReVA3itGQ4hkWlNEIC+E+jVbbth36J3VmQ8B/oXR3DYUiSr3hXBXpkmozT4+c5ildMySyZaXIShv0MsiH5xpyJTlS4XNnDOANix6lF3QHoBhY721hbIrUbeFEZAF2/MGrETcP9+iBixkeY0wloIwFwyCjD7BZHYfW0bTKb78POupg/LsW4zRxQ7leF66XfCc5pIoOpQCbYfZBdwqC7OhD96pJZb7RQAeaj8Zuv2DEqa8R7lNLR7VSX5s05wgNdb5FxDW0xCsBdgRQDmSvyUo6U/1pdvZSgefrZekdoK9cgLNfW3DJag6Sr19iIpFhnzSAJe0PenO/L0girIMmescUMZ7HAD5OEsM++Y0HdQkRr+bsOgYRGPJQFKPee/kq/vIcipZvULhqyw4nmCkDl1CTscCPa/5+a+SELbD3EkqNGtJGTiLkj4rwHcvSchQf3LfA4++XYs28sRDo4+zPOWJOu7N6REKN+xumSApPK+ILNhnjFcnGD00eMv30AXvQUzGxXxU9NRcFYXa38a96qmNgR06TCIpFYDLWFmgkVlhdvBviHQoJUq9v19meNkzwfBvXgMTLm2XsC0C6+LqtwvFRwbnrA6YT2Q0kX0B+nr/xBZHTI7Jx/4kwACFC8NTzfBtkTb3iXREUKmtkT09ddmFoQV5jYFUQ3+3lUcQgvqtsACpMSjvLnyCjemw1sGiYQVYZ6igtDvBrDXES3uL9mX2gejCaZDm6dX6Aqa+e3U49rDeHiEVCdSBBbGr6uH/4N+S2msDs38aZEYB2FE7nTG14w7sEkpAtMOTKj4fC9YglCrydh32kRJIrlcgj5Aaguq53uGmtPkG0nH3xi3lJm5ZQPuYZMrPKck0a0GE2fw5ylK+WGQAdRBxbJJK7QUDevL0lZW2vmduhvTfnE5owuZNtUFw7lAe5E8/cMa02bxNjULiVcaSLEPUefak5yMR/BNfEAPM80ufgKfRlMcxkTL6oXagvngTQ3krWlardM1qQuZTtwGQq+omjQWGi8ocaEAT3hDV7u+N4KnDbyuDD+8qn9ovSeYr7BvKqTmruoeEus3PhlwNa7TbSn5JBchIYRftuM1G3vbJaAuv5/IuruDyrhirDZXKWHN+sZwwMZG2O03H+LbvJRjCVKvy4/PQZjk+FeSywwt+nUh9cFjfz68v3nZzm//mv1p6RqW6jcO7cbHLpkhLaV8ZsLa8mc1M/cgCDEEfOidm9KLkJzNxsLRrL8d/rkSVhAPngojO1NUqYyF8PEOs9oDqikxg3QxwhKsu5rfsWL3JT+S4wxFDa93WQEEkh7uxpwg6oUQCGOrf4I671wlbqlW6G1ZfsDopMkVFzwketuHtYSSM/HDW/zIwW2SV2dYw/1nScbznM6bJfKw5BUCTD6gvlOtVyZ3vHr/xjYobf5xZP86x6keX47Tf8XhEdPz/Z6XtSeZik/0xp4dHBl3w3SmXiKN16/TVgUXFrH58h1tFE4HOFMHa9l88qlwSlTzpZnS9ZVoAUpLe9VIAGesg0VaXnBp2LZhgCLyBC0y1N9ACze2ilxqaPSQmLv8mmRX1ncP4h+Le+K+9ayFiYlWJia7c/IphUO+olxnA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78b712d5-63de-494f-3a42-08da94ba3a91 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:28:00.2988 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5RMi66i/FJR7h75vy0zWRFx4G5iaQPxssK2QYj3/Bbv7GRgPlOXKEDPa+FgMTYCKjbdHsyOvBKdPEKEU0DlD3WhU/1XghVoZPejvXhSGn2k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB8805 Received-SPF: pass client-ip=40.107.21.139; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" We're deleting the m_pc field of the NMD class. It's now part of the Dis_info struct that this patch introduces. Currently, the Dis_info struct has just one field, m_pc, which we need for address calculation in the ADDRESS function. We're filling Dis_info at the entrance of the nanoMIPS disassembler. I.e. print_insn_nanomips. Next, we're adding that information as an argument wherever we need to. Since NMD class now has no more fields, the NMD constructor is also deleted. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 1368 ++++++++++++++++++++++---------------------- disas/nanomips.h | 1292 +++++++++++++++++++++-------------------- 2 files changed, 1331 insertions(+), 1329 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 721ca3f52b..9005f26ee3 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -42,7 +42,7 @@ int nanomips_dis(char *buf, - unsigned address, + Dis_info *info, unsigned short one, unsigned short two, unsigned short three) @@ -51,8 +51,8 @@ int nanomips_dis(char *buf, uint16 bits[3] = {one, two, three}; TABLE_ENTRY_TYPE type; - NMD d(address); - int size = d.Disassemble(bits, disasm, type); + NMD d; + int size = d.Disassemble(bits, disasm, type, info); strcpy(buf, disasm.c_str()); return size; @@ -74,6 +74,9 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) info->target = 0; info->target2 = 0; + Dis_info disassm_info; + disassm_info.m_pc = memaddr; + status = (*info->read_memory_func)(memaddr, buffer, 2, info); if (status != 0) { (*info->memory_error_func)(status, memaddr, info); @@ -122,7 +125,7 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) (*info->fprintf_func)(info->stream, " "); } - int length = nanomips_dis(buf, memaddr, insn1, insn2, insn3); + int length = nanomips_dis(buf, &disassm_info, insn1, insn2, insn3); /* FIXME: Should probably use a hash table on the major opcode here. */ @@ -747,10 +750,10 @@ std::string NMD::CPR(uint64 reg) } -std::string NMD::ADDRESS(uint64 value, int instruction_size) +std::string NMD::ADDRESS(uint64 value, int instruction_size, Dis_info *info) { /* token for string replace */ - img_address address = m_pc + value + instruction_size; + img_address address = info->m_pc + value + instruction_size; /* symbol replacement */ return to_string(address); } @@ -772,9 +775,9 @@ uint64 NMD::extract_op_code_value(const uint16 * data, int size) int NMD::Disassemble(const uint16 * data, std::string & dis, - TABLE_ENTRY_TYPE & type) + TABLE_ENTRY_TYPE & type, Dis_info *info) { - return Disassemble(data, dis, type, MAJOR, 2); + return Disassemble(data, dis, type, MAJOR, 2, info); } @@ -791,7 +794,7 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, */ int NMD::Disassemble(const uint16 * data, std::string & dis, TABLE_ENTRY_TYPE & type, const Pool *table, - int table_size) + int table_size, Dis_info *info) { try { @@ -807,7 +810,8 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, if (table[i].type == pool) { return Disassemble(data, dis, type, table[i].next_table, - table[i].next_table_size); + table[i].next_table_size, + info); } else if ((table[i].type == instruction) || (table[i].type == call_instruction) || (table[i].type == branch_instruction) || @@ -818,7 +822,7 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, return -6; } type = table[i].type; - dis = (this->*dis_fn)(op_code); + dis = (this->*dis_fn)(op_code, info); return table[i].instructions_size; } else { dis = "reserved instruction"; @@ -1773,7 +1777,7 @@ bool NMD::SLTU_cond(uint64 instruction) * fs ----- * fd ----- */ -std::string NMD::ABS_D(uint64 instruction) +std::string NMD::ABS_D(uint64 instruction, Dis_info *info) { uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1795,7 +1799,7 @@ std::string NMD::ABS_D(uint64 instruction) * fd ----- * fs ----- */ -std::string NMD::ABS_S(uint64 instruction) +std::string NMD::ABS_S(uint64 instruction, Dis_info *info) { uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1817,7 +1821,7 @@ std::string NMD::ABS_S(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_PH(uint64 instruction) +std::string NMD::ABSQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1839,7 +1843,7 @@ std::string NMD::ABSQ_S_PH(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_QB(uint64 instruction) +std::string NMD::ABSQ_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1861,7 +1865,7 @@ std::string NMD::ABSQ_S_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_W(uint64 instruction) +std::string NMD::ABSQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1882,7 +1886,7 @@ std::string NMD::ABSQ_S_W(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ACLR(uint64 instruction) +std::string NMD::ACLR(uint64 instruction, Dis_info *info) { uint64 bit_value = extract_bit_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1905,7 +1909,7 @@ std::string NMD::ACLR(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADD(uint64 instruction) +std::string NMD::ADD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1930,7 +1934,7 @@ std::string NMD::ADD(uint64 instruction) * fs ----- * fd ----- */ -std::string NMD::ADD_D(uint64 instruction) +std::string NMD::ADD_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1955,7 +1959,7 @@ std::string NMD::ADD_D(uint64 instruction) * fs ----- * fd ----- */ -std::string NMD::ADD_S(uint64 instruction) +std::string NMD::ADD_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1978,7 +1982,7 @@ std::string NMD::ADD_S(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_32_(uint64 instruction) +std::string NMD::ADDIU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2001,7 +2005,7 @@ std::string NMD::ADDIU_32_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_48_(uint64 instruction) +std::string NMD::ADDIU_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -2022,7 +2026,7 @@ std::string NMD::ADDIU_48_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP48_(uint64 instruction) +std::string NMD::ADDIU_GP48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -2043,7 +2047,7 @@ std::string NMD::ADDIU_GP48_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP_B_(uint64 instruction) +std::string NMD::ADDIU_GP_B_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -2064,7 +2068,7 @@ std::string NMD::ADDIU_GP_B_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP_W_(uint64 instruction) +std::string NMD::ADDIU_GP_W_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -2085,7 +2089,7 @@ std::string NMD::ADDIU_GP_W_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_NEG_(uint64 instruction) +std::string NMD::ADDIU_NEG_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2108,7 +2112,7 @@ std::string NMD::ADDIU_NEG_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_R1_SP_(uint64 instruction) +std::string NMD::ADDIU_R1_SP_(uint64 instruction, Dis_info *info) { uint64 u_value = extract_u_5_4_3_2_1_0__s2(instruction); uint64 rt3_value = extract_rt3_9_8_7(instruction); @@ -2129,7 +2133,7 @@ std::string NMD::ADDIU_R1_SP_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_R2_(uint64 instruction) +std::string NMD::ADDIU_R2_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2151,7 +2155,7 @@ std::string NMD::ADDIU_R2_(uint64 instruction) * rt ----- * s - --- */ -std::string NMD::ADDIU_RS5_(uint64 instruction) +std::string NMD::ADDIU_RS5_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); int64 s_value = extract_s__se3_4_2_1_0(instruction); @@ -2173,13 +2177,13 @@ std::string NMD::ADDIU_RS5_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDIUPC_32_(uint64 instruction) +std::string NMD::ADDIUPC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2195,13 +2199,13 @@ std::string NMD::ADDIUPC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDIUPC_48_(uint64 instruction) +std::string NMD::ADDIUPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6); + std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2217,7 +2221,7 @@ std::string NMD::ADDIUPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQ_PH(uint64 instruction) +std::string NMD::ADDQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2242,7 +2246,7 @@ std::string NMD::ADDQ_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQ_S_PH(uint64 instruction) +std::string NMD::ADDQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2266,7 +2270,7 @@ std::string NMD::ADDQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQ_S_W(uint64 instruction) +std::string NMD::ADDQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2291,7 +2295,7 @@ std::string NMD::ADDQ_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQH_PH(uint64 instruction) +std::string NMD::ADDQH_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2316,7 +2320,7 @@ std::string NMD::ADDQH_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQH_R_PH(uint64 instruction) +std::string NMD::ADDQH_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2341,7 +2345,7 @@ std::string NMD::ADDQH_R_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQH_R_W(uint64 instruction) +std::string NMD::ADDQH_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2366,7 +2370,7 @@ std::string NMD::ADDQH_R_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQH_W(uint64 instruction) +std::string NMD::ADDQH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2390,7 +2394,7 @@ std::string NMD::ADDQH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDSC(uint64 instruction) +std::string NMD::ADDSC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2413,7 +2417,7 @@ std::string NMD::ADDSC(uint64 instruction) * rs3 --- * rd3 --- */ -std::string NMD::ADDU_16_(uint64 instruction) +std::string NMD::ADDU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2437,7 +2441,7 @@ std::string NMD::ADDU_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_32_(uint64 instruction) +std::string NMD::ADDU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2461,7 +2465,7 @@ std::string NMD::ADDU_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_4X4_(uint64 instruction) +std::string NMD::ADDU_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -2483,7 +2487,7 @@ std::string NMD::ADDU_4X4_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_PH(uint64 instruction) +std::string NMD::ADDU_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2507,7 +2511,7 @@ std::string NMD::ADDU_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_QB(uint64 instruction) +std::string NMD::ADDU_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2532,7 +2536,7 @@ std::string NMD::ADDU_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_S_PH(uint64 instruction) +std::string NMD::ADDU_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2556,7 +2560,7 @@ std::string NMD::ADDU_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_S_QB(uint64 instruction) +std::string NMD::ADDU_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2581,7 +2585,7 @@ std::string NMD::ADDU_S_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDUH_QB(uint64 instruction) +std::string NMD::ADDUH_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2606,7 +2610,7 @@ std::string NMD::ADDUH_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDUH_R_QB(uint64 instruction) +std::string NMD::ADDUH_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2629,7 +2633,7 @@ std::string NMD::ADDUH_R_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDWC(uint64 instruction) +std::string NMD::ADDWC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2653,13 +2657,13 @@ std::string NMD::ADDWC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ALUIPC(uint64 instruction) +std::string NMD::ALUIPC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); } @@ -2674,7 +2678,7 @@ std::string NMD::ALUIPC(uint64 instruction) * rs3 --- * eu ---- */ -std::string NMD::AND_16_(uint64 instruction) +std::string NMD::AND_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2696,7 +2700,7 @@ std::string NMD::AND_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::AND_32_(uint64 instruction) +std::string NMD::AND_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2719,7 +2723,7 @@ std::string NMD::AND_32_(uint64 instruction) * rs3 --- * eu ---- */ -std::string NMD::ANDI_16_(uint64 instruction) +std::string NMD::ANDI_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2743,7 +2747,7 @@ std::string NMD::ANDI_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ANDI_32_(uint64 instruction) +std::string NMD::ANDI_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2767,7 +2771,7 @@ std::string NMD::ANDI_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::APPEND(uint64 instruction) +std::string NMD::APPEND(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2791,7 +2795,7 @@ std::string NMD::APPEND(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ASET(uint64 instruction) +std::string NMD::ASET(uint64 instruction, Dis_info *info) { uint64 bit_value = extract_bit_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2815,11 +2819,11 @@ std::string NMD::ASET(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BALC_16_(uint64 instruction) +std::string NMD::BALC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 2); + std::string s = ADDRESS(encode_s_from_address(s_value), 2, info); return img_format("BALC %s", s); } @@ -2835,11 +2839,11 @@ std::string NMD::BALC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BALC_32_(uint64 instruction) +std::string NMD::BALC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BALC %s", s); } @@ -2855,7 +2859,7 @@ std::string NMD::BALC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BALRSC(uint64 instruction) +std::string NMD::BALRSC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2877,7 +2881,7 @@ std::string NMD::BALRSC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BBEQZC(uint64 instruction) +std::string NMD::BBEQZC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); @@ -2885,7 +2889,7 @@ std::string NMD::BBEQZC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string bit = IMMEDIATE(copy(bit_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BBEQZC %s, %s, %s", rt, bit, s); } @@ -2901,7 +2905,7 @@ std::string NMD::BBEQZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BBNEZC(uint64 instruction) +std::string NMD::BBNEZC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); @@ -2909,7 +2913,7 @@ std::string NMD::BBNEZC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string bit = IMMEDIATE(copy(bit_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BBNEZC %s, %s, %s", rt, bit, s); } @@ -2925,11 +2929,11 @@ std::string NMD::BBNEZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC_16_(uint64 instruction) +std::string NMD::BC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 2); + std::string s = ADDRESS(encode_s_from_address(s_value), 2, info); return img_format("BC %s", s); } @@ -2945,11 +2949,11 @@ std::string NMD::BC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC_32_(uint64 instruction) +std::string NMD::BC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BC %s", s); } @@ -2965,13 +2969,13 @@ std::string NMD::BC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC1EQZC(uint64 instruction) +std::string NMD::BC1EQZC(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); std::string ft = FPR(copy(ft_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BC1EQZC %s, %s", ft, s); } @@ -2987,13 +2991,13 @@ std::string NMD::BC1EQZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC1NEZC(uint64 instruction) +std::string NMD::BC1NEZC(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); std::string ft = FPR(copy(ft_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BC1NEZC %s, %s", ft, s); } @@ -3009,13 +3013,13 @@ std::string NMD::BC1NEZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC2EQZC(uint64 instruction) +std::string NMD::BC2EQZC(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); std::string ct = CPR(copy(ct_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BC2EQZC %s, %s", ct, s); } @@ -3031,13 +3035,13 @@ std::string NMD::BC2EQZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC2NEZC(uint64 instruction) +std::string NMD::BC2NEZC(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); std::string ct = CPR(copy(ct_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BC2NEZC %s, %s", ct, s); } @@ -3053,7 +3057,7 @@ std::string NMD::BC2NEZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BEQC_16_(uint64 instruction) +std::string NMD::BEQC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -3061,7 +3065,7 @@ std::string NMD::BEQC_16_(uint64 instruction) std::string rs3 = GPR(encode_rs3_and_check_rs3_lt_rt3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = ADDRESS(encode_u_from_address(u_value), 2); + std::string u = ADDRESS(encode_u_from_address(u_value), 2, info); return img_format("BEQC %s, %s, %s", rs3, rt3, u); } @@ -3077,7 +3081,7 @@ std::string NMD::BEQC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BEQC_32_(uint64 instruction) +std::string NMD::BEQC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3085,7 +3089,7 @@ std::string NMD::BEQC_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BEQC %s, %s, %s", rs, rt, s); } @@ -3101,7 +3105,7 @@ std::string NMD::BEQC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BEQIC(uint64 instruction) +std::string NMD::BEQIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3109,7 +3113,7 @@ std::string NMD::BEQIC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BEQIC %s, %s, %s", rt, u, s); } @@ -3125,13 +3129,13 @@ std::string NMD::BEQIC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BEQZC_16_(uint64 instruction) +std::string NMD::BEQZC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 2); + std::string s = ADDRESS(encode_s_from_address(s_value), 2, info); return img_format("BEQZC %s, %s", rt3, s); } @@ -3147,7 +3151,7 @@ std::string NMD::BEQZC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BGEC(uint64 instruction) +std::string NMD::BGEC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3155,7 +3159,7 @@ std::string NMD::BGEC(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BGEC %s, %s, %s", rs, rt, s); } @@ -3171,7 +3175,7 @@ std::string NMD::BGEC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BGEIC(uint64 instruction) +std::string NMD::BGEIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3179,7 +3183,7 @@ std::string NMD::BGEIC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BGEIC %s, %s, %s", rt, u, s); } @@ -3195,7 +3199,7 @@ std::string NMD::BGEIC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BGEIUC(uint64 instruction) +std::string NMD::BGEIUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3203,7 +3207,7 @@ std::string NMD::BGEIUC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BGEIUC %s, %s, %s", rt, u, s); } @@ -3219,7 +3223,7 @@ std::string NMD::BGEIUC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BGEUC(uint64 instruction) +std::string NMD::BGEUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3227,7 +3231,7 @@ std::string NMD::BGEUC(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BGEUC %s, %s, %s", rs, rt, s); } @@ -3243,7 +3247,7 @@ std::string NMD::BGEUC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BLTC(uint64 instruction) +std::string NMD::BLTC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3251,7 +3255,7 @@ std::string NMD::BLTC(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BLTC %s, %s, %s", rs, rt, s); } @@ -3267,7 +3271,7 @@ std::string NMD::BLTC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BLTIC(uint64 instruction) +std::string NMD::BLTIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3275,7 +3279,7 @@ std::string NMD::BLTIC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BLTIC %s, %s, %s", rt, u, s); } @@ -3291,7 +3295,7 @@ std::string NMD::BLTIC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BLTIUC(uint64 instruction) +std::string NMD::BLTIUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3299,7 +3303,7 @@ std::string NMD::BLTIUC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BLTIUC %s, %s, %s", rt, u, s); } @@ -3315,7 +3319,7 @@ std::string NMD::BLTIUC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BLTUC(uint64 instruction) +std::string NMD::BLTUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3323,7 +3327,7 @@ std::string NMD::BLTUC(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BLTUC %s, %s, %s", rs, rt, s); } @@ -3339,7 +3343,7 @@ std::string NMD::BLTUC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BNEC_16_(uint64 instruction) +std::string NMD::BNEC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -3347,7 +3351,7 @@ std::string NMD::BNEC_16_(uint64 instruction) std::string rs3 = GPR(encode_rs3_and_check_rs3_ge_rt3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = ADDRESS(encode_u_from_address(u_value), 2); + std::string u = ADDRESS(encode_u_from_address(u_value), 2, info); return img_format("BNEC %s, %s, %s", rs3, rt3, u); } @@ -3363,7 +3367,7 @@ std::string NMD::BNEC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BNEC_32_(uint64 instruction) +std::string NMD::BNEC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3371,7 +3375,7 @@ std::string NMD::BNEC_32_(uint64 instruction) std::string rs = GPR(copy(rs_value)); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BNEC %s, %s, %s", rs, rt, s); } @@ -3387,7 +3391,7 @@ std::string NMD::BNEC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BNEIC(uint64 instruction) +std::string NMD::BNEIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3395,7 +3399,7 @@ std::string NMD::BNEIC(uint64 instruction) std::string rt = GPR(copy(rt_value)); std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BNEIC %s, %s, %s", rt, u, s); } @@ -3411,13 +3415,13 @@ std::string NMD::BNEIC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BNEZC_16_(uint64 instruction) +std::string NMD::BNEZC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 2); + std::string s = ADDRESS(encode_s_from_address(s_value), 2, info); return img_format("BNEZC %s, %s", rt3, s); } @@ -3433,11 +3437,11 @@ std::string NMD::BNEZC_16_(uint64 instruction) * s[13:1] ------------- * s[14] - */ -std::string NMD::BPOSGE32C(uint64 instruction) +std::string NMD::BPOSGE32C(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("BPOSGE32C %s", s); } @@ -3453,7 +3457,7 @@ std::string NMD::BPOSGE32C(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BREAK_16_(uint64 instruction) +std::string NMD::BREAK_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); @@ -3473,7 +3477,7 @@ std::string NMD::BREAK_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BREAK_32_(uint64 instruction) +std::string NMD::BREAK_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); @@ -3493,7 +3497,7 @@ std::string NMD::BREAK_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BRSC(uint64 instruction) +std::string NMD::BRSC(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3513,7 +3517,7 @@ std::string NMD::BRSC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CACHE(uint64 instruction) +std::string NMD::CACHE(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3537,7 +3541,7 @@ std::string NMD::CACHE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CACHEE(uint64 instruction) +std::string NMD::CACHEE(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3561,7 +3565,7 @@ std::string NMD::CACHEE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CEIL_L_D(uint64 instruction) +std::string NMD::CEIL_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3583,7 +3587,7 @@ std::string NMD::CEIL_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CEIL_L_S(uint64 instruction) +std::string NMD::CEIL_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3605,7 +3609,7 @@ std::string NMD::CEIL_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CEIL_W_D(uint64 instruction) +std::string NMD::CEIL_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3627,7 +3631,7 @@ std::string NMD::CEIL_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CEIL_W_S(uint64 instruction) +std::string NMD::CEIL_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3649,7 +3653,7 @@ std::string NMD::CEIL_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CFC1(uint64 instruction) +std::string NMD::CFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -3671,7 +3675,7 @@ std::string NMD::CFC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CFC2(uint64 instruction) +std::string NMD::CFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -3693,7 +3697,7 @@ std::string NMD::CFC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CLASS_D(uint64 instruction) +std::string NMD::CLASS_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3715,7 +3719,7 @@ std::string NMD::CLASS_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CLASS_S(uint64 instruction) +std::string NMD::CLASS_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3737,7 +3741,7 @@ std::string NMD::CLASS_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CLO(uint64 instruction) +std::string NMD::CLO(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3759,7 +3763,7 @@ std::string NMD::CLO(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CLZ(uint64 instruction) +std::string NMD::CLZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3781,7 +3785,7 @@ std::string NMD::CLZ(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_AF_D(uint64 instruction) +std::string NMD::CMP_AF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3805,7 +3809,7 @@ std::string NMD::CMP_AF_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_AF_S(uint64 instruction) +std::string NMD::CMP_AF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3829,7 +3833,7 @@ std::string NMD::CMP_AF_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_EQ_D(uint64 instruction) +std::string NMD::CMP_EQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3852,7 +3856,7 @@ std::string NMD::CMP_EQ_D(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMP_EQ_PH(uint64 instruction) +std::string NMD::CMP_EQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3874,7 +3878,7 @@ std::string NMD::CMP_EQ_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_EQ_S(uint64 instruction) +std::string NMD::CMP_EQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3898,7 +3902,7 @@ std::string NMD::CMP_EQ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_LE_D(uint64 instruction) +std::string NMD::CMP_LE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3921,7 +3925,7 @@ std::string NMD::CMP_LE_D(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMP_LE_PH(uint64 instruction) +std::string NMD::CMP_LE_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3943,7 +3947,7 @@ std::string NMD::CMP_LE_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_LE_S(uint64 instruction) +std::string NMD::CMP_LE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3967,7 +3971,7 @@ std::string NMD::CMP_LE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_LT_D(uint64 instruction) +std::string NMD::CMP_LT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3990,7 +3994,7 @@ std::string NMD::CMP_LT_D(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMP_LT_PH(uint64 instruction) +std::string NMD::CMP_LT_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4012,7 +4016,7 @@ std::string NMD::CMP_LT_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_LT_S(uint64 instruction) +std::string NMD::CMP_LT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4036,7 +4040,7 @@ std::string NMD::CMP_LT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_NE_D(uint64 instruction) +std::string NMD::CMP_NE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4060,7 +4064,7 @@ std::string NMD::CMP_NE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_NE_S(uint64 instruction) +std::string NMD::CMP_NE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4084,7 +4088,7 @@ std::string NMD::CMP_NE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_OR_D(uint64 instruction) +std::string NMD::CMP_OR_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4108,7 +4112,7 @@ std::string NMD::CMP_OR_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_OR_S(uint64 instruction) +std::string NMD::CMP_OR_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4132,7 +4136,7 @@ std::string NMD::CMP_OR_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SAF_D(uint64 instruction) +std::string NMD::CMP_SAF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4156,7 +4160,7 @@ std::string NMD::CMP_SAF_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SAF_S(uint64 instruction) +std::string NMD::CMP_SAF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4180,7 +4184,7 @@ std::string NMD::CMP_SAF_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SEQ_D(uint64 instruction) +std::string NMD::CMP_SEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4204,7 +4208,7 @@ std::string NMD::CMP_SEQ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SEQ_S(uint64 instruction) +std::string NMD::CMP_SEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4228,7 +4232,7 @@ std::string NMD::CMP_SEQ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SLE_D(uint64 instruction) +std::string NMD::CMP_SLE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4252,7 +4256,7 @@ std::string NMD::CMP_SLE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SLE_S(uint64 instruction) +std::string NMD::CMP_SLE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4276,7 +4280,7 @@ std::string NMD::CMP_SLE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SLT_D(uint64 instruction) +std::string NMD::CMP_SLT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4300,7 +4304,7 @@ std::string NMD::CMP_SLT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SLT_S(uint64 instruction) +std::string NMD::CMP_SLT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4324,7 +4328,7 @@ std::string NMD::CMP_SLT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SNE_D(uint64 instruction) +std::string NMD::CMP_SNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4348,7 +4352,7 @@ std::string NMD::CMP_SNE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SNE_S(uint64 instruction) +std::string NMD::CMP_SNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4372,7 +4376,7 @@ std::string NMD::CMP_SNE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SOR_D(uint64 instruction) +std::string NMD::CMP_SOR_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4396,7 +4400,7 @@ std::string NMD::CMP_SOR_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SOR_S(uint64 instruction) +std::string NMD::CMP_SOR_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4420,7 +4424,7 @@ std::string NMD::CMP_SOR_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUEQ_D(uint64 instruction) +std::string NMD::CMP_SUEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4444,7 +4448,7 @@ std::string NMD::CMP_SUEQ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUEQ_S(uint64 instruction) +std::string NMD::CMP_SUEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4468,7 +4472,7 @@ std::string NMD::CMP_SUEQ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SULE_D(uint64 instruction) +std::string NMD::CMP_SULE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4492,7 +4496,7 @@ std::string NMD::CMP_SULE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SULE_S(uint64 instruction) +std::string NMD::CMP_SULE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4516,7 +4520,7 @@ std::string NMD::CMP_SULE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SULT_D(uint64 instruction) +std::string NMD::CMP_SULT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4540,7 +4544,7 @@ std::string NMD::CMP_SULT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SULT_S(uint64 instruction) +std::string NMD::CMP_SULT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4564,7 +4568,7 @@ std::string NMD::CMP_SULT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUN_D(uint64 instruction) +std::string NMD::CMP_SUN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4588,7 +4592,7 @@ std::string NMD::CMP_SUN_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUNE_D(uint64 instruction) +std::string NMD::CMP_SUNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4612,7 +4616,7 @@ std::string NMD::CMP_SUNE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUNE_S(uint64 instruction) +std::string NMD::CMP_SUNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4636,7 +4640,7 @@ std::string NMD::CMP_SUNE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUN_S(uint64 instruction) +std::string NMD::CMP_SUN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4660,7 +4664,7 @@ std::string NMD::CMP_SUN_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UEQ_D(uint64 instruction) +std::string NMD::CMP_UEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4684,7 +4688,7 @@ std::string NMD::CMP_UEQ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UEQ_S(uint64 instruction) +std::string NMD::CMP_UEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4708,7 +4712,7 @@ std::string NMD::CMP_UEQ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_ULE_D(uint64 instruction) +std::string NMD::CMP_ULE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4732,7 +4736,7 @@ std::string NMD::CMP_ULE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_ULE_S(uint64 instruction) +std::string NMD::CMP_ULE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4756,7 +4760,7 @@ std::string NMD::CMP_ULE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_ULT_D(uint64 instruction) +std::string NMD::CMP_ULT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4780,7 +4784,7 @@ std::string NMD::CMP_ULT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_ULT_S(uint64 instruction) +std::string NMD::CMP_ULT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4804,7 +4808,7 @@ std::string NMD::CMP_ULT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UN_D(uint64 instruction) +std::string NMD::CMP_UN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4828,7 +4832,7 @@ std::string NMD::CMP_UN_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UNE_D(uint64 instruction) +std::string NMD::CMP_UNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4852,7 +4856,7 @@ std::string NMD::CMP_UNE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UNE_S(uint64 instruction) +std::string NMD::CMP_UNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4876,7 +4880,7 @@ std::string NMD::CMP_UNE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UN_S(uint64 instruction) +std::string NMD::CMP_UN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4901,7 +4905,7 @@ std::string NMD::CMP_UN_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_EQ_QB(uint64 instruction) +std::string NMD::CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4926,7 +4930,7 @@ std::string NMD::CMPGDU_EQ_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_LE_QB(uint64 instruction) +std::string NMD::CMPGDU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4951,7 +4955,7 @@ std::string NMD::CMPGDU_LE_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_LT_QB(uint64 instruction) +std::string NMD::CMPGDU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4976,7 +4980,7 @@ std::string NMD::CMPGDU_LT_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGU_EQ_QB(uint64 instruction) +std::string NMD::CMPGU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5001,7 +5005,7 @@ std::string NMD::CMPGU_EQ_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGU_LE_QB(uint64 instruction) +std::string NMD::CMPGU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5026,7 +5030,7 @@ std::string NMD::CMPGU_LE_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGU_LT_QB(uint64 instruction) +std::string NMD::CMPGU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5050,7 +5054,7 @@ std::string NMD::CMPGU_LT_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMPU_EQ_QB(uint64 instruction) +std::string NMD::CMPU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5072,7 +5076,7 @@ std::string NMD::CMPU_EQ_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMPU_LE_QB(uint64 instruction) +std::string NMD::CMPU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5094,7 +5098,7 @@ std::string NMD::CMPU_LE_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMPU_LT_QB(uint64 instruction) +std::string NMD::CMPU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5116,7 +5120,7 @@ std::string NMD::CMPU_LT_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::COP2_1(uint64 instruction) +std::string NMD::COP2_1(uint64 instruction, Dis_info *info) { uint64 cofun_value = extract_cofun_25_24_23(instruction); @@ -5136,7 +5140,7 @@ std::string NMD::COP2_1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CTC1(uint64 instruction) +std::string NMD::CTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -5158,7 +5162,7 @@ std::string NMD::CTC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CTC2(uint64 instruction) +std::string NMD::CTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -5180,7 +5184,7 @@ std::string NMD::CTC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_D_L(uint64 instruction) +std::string NMD::CVT_D_L(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5202,7 +5206,7 @@ std::string NMD::CVT_D_L(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_D_S(uint64 instruction) +std::string NMD::CVT_D_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5224,7 +5228,7 @@ std::string NMD::CVT_D_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_D_W(uint64 instruction) +std::string NMD::CVT_D_W(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5246,7 +5250,7 @@ std::string NMD::CVT_D_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_L_D(uint64 instruction) +std::string NMD::CVT_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5268,7 +5272,7 @@ std::string NMD::CVT_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_L_S(uint64 instruction) +std::string NMD::CVT_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5290,7 +5294,7 @@ std::string NMD::CVT_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_D(uint64 instruction) +std::string NMD::CVT_S_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5312,7 +5316,7 @@ std::string NMD::CVT_S_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_L(uint64 instruction) +std::string NMD::CVT_S_L(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5334,7 +5338,7 @@ std::string NMD::CVT_S_L(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_PL(uint64 instruction) +std::string NMD::CVT_S_PL(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5356,7 +5360,7 @@ std::string NMD::CVT_S_PL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_PU(uint64 instruction) +std::string NMD::CVT_S_PU(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5378,7 +5382,7 @@ std::string NMD::CVT_S_PU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_W(uint64 instruction) +std::string NMD::CVT_S_W(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5400,7 +5404,7 @@ std::string NMD::CVT_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_W_D(uint64 instruction) +std::string NMD::CVT_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5422,7 +5426,7 @@ std::string NMD::CVT_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_W_S(uint64 instruction) +std::string NMD::CVT_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5444,7 +5448,7 @@ std::string NMD::CVT_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADDIU_48_(uint64 instruction) +std::string NMD::DADDIU_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -5466,7 +5470,7 @@ std::string NMD::DADDIU_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADDIU_NEG_(uint64 instruction) +std::string NMD::DADDIU_NEG_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5490,7 +5494,7 @@ std::string NMD::DADDIU_NEG_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADDIU_U12_(uint64 instruction) +std::string NMD::DADDIU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5514,7 +5518,7 @@ std::string NMD::DADDIU_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADD(uint64 instruction) +std::string NMD::DADD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5538,7 +5542,7 @@ std::string NMD::DADD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADDU(uint64 instruction) +std::string NMD::DADDU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5562,7 +5566,7 @@ std::string NMD::DADDU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DCLO(uint64 instruction) +std::string NMD::DCLO(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5584,7 +5588,7 @@ std::string NMD::DCLO(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DCLZ(uint64 instruction) +std::string NMD::DCLZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5606,7 +5610,7 @@ std::string NMD::DCLZ(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DDIV(uint64 instruction) +std::string NMD::DDIV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5630,7 +5634,7 @@ std::string NMD::DDIV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DDIVU(uint64 instruction) +std::string NMD::DDIVU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5654,7 +5658,7 @@ std::string NMD::DDIVU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DERET(uint64 instruction) +std::string NMD::DERET(uint64 instruction, Dis_info *info) { (void)instruction; @@ -5672,7 +5676,7 @@ std::string NMD::DERET(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DEXTM(uint64 instruction) +std::string NMD::DEXTM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5698,7 +5702,7 @@ std::string NMD::DEXTM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DEXT(uint64 instruction) +std::string NMD::DEXT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5724,7 +5728,7 @@ std::string NMD::DEXT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DEXTU(uint64 instruction) +std::string NMD::DEXTU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5750,7 +5754,7 @@ std::string NMD::DEXTU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DINSM(uint64 instruction) +std::string NMD::DINSM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5778,7 +5782,7 @@ std::string NMD::DINSM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DINS(uint64 instruction) +std::string NMD::DINS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5806,7 +5810,7 @@ std::string NMD::DINS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DINSU(uint64 instruction) +std::string NMD::DINSU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5834,7 +5838,7 @@ std::string NMD::DINSU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DI(uint64 instruction) +std::string NMD::DI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -5854,7 +5858,7 @@ std::string NMD::DI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DIV(uint64 instruction) +std::string NMD::DIV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5878,7 +5882,7 @@ std::string NMD::DIV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DIV_D(uint64 instruction) +std::string NMD::DIV_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5902,7 +5906,7 @@ std::string NMD::DIV_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DIV_S(uint64 instruction) +std::string NMD::DIV_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5926,7 +5930,7 @@ std::string NMD::DIV_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DIVU(uint64 instruction) +std::string NMD::DIVU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5950,7 +5954,7 @@ std::string NMD::DIVU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DLSA(uint64 instruction) +std::string NMD::DLSA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5976,7 +5980,7 @@ std::string NMD::DLSA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DLUI_48_(uint64 instruction) +std::string NMD::DLUI_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); uint64 u_value = extract_u_31_to_0__s32(instruction); @@ -5998,7 +6002,7 @@ std::string NMD::DLUI_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMFC0(uint64 instruction) +std::string NMD::DMFC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6022,7 +6026,7 @@ std::string NMD::DMFC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMFC1(uint64 instruction) +std::string NMD::DMFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -6044,7 +6048,7 @@ std::string NMD::DMFC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMFC2(uint64 instruction) +std::string NMD::DMFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -6066,7 +6070,7 @@ std::string NMD::DMFC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMFGC0(uint64 instruction) +std::string NMD::DMFGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6090,7 +6094,7 @@ std::string NMD::DMFGC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMOD(uint64 instruction) +std::string NMD::DMOD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6114,7 +6118,7 @@ std::string NMD::DMOD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMODU(uint64 instruction) +std::string NMD::DMODU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6138,7 +6142,7 @@ std::string NMD::DMODU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMTC0(uint64 instruction) +std::string NMD::DMTC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6162,7 +6166,7 @@ std::string NMD::DMTC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMTC1(uint64 instruction) +std::string NMD::DMTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -6184,7 +6188,7 @@ std::string NMD::DMTC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMTC2(uint64 instruction) +std::string NMD::DMTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -6206,7 +6210,7 @@ std::string NMD::DMTC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMTGC0(uint64 instruction) +std::string NMD::DMTGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6230,7 +6234,7 @@ std::string NMD::DMTGC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMT(uint64 instruction) +std::string NMD::DMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -6250,7 +6254,7 @@ std::string NMD::DMT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMUH(uint64 instruction) +std::string NMD::DMUH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6274,7 +6278,7 @@ std::string NMD::DMUH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMUHU(uint64 instruction) +std::string NMD::DMUHU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6298,7 +6302,7 @@ std::string NMD::DMUHU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMUL(uint64 instruction) +std::string NMD::DMUL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6322,7 +6326,7 @@ std::string NMD::DMUL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMULU(uint64 instruction) +std::string NMD::DMULU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6347,7 +6351,7 @@ std::string NMD::DMULU(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::DPA_W_PH(uint64 instruction) +std::string NMD::DPA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6371,7 +6375,7 @@ std::string NMD::DPA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAQ_SA_L_W(uint64 instruction) +std::string NMD::DPAQ_SA_L_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6395,7 +6399,7 @@ std::string NMD::DPAQ_SA_L_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAQ_S_W_PH(uint64 instruction) +std::string NMD::DPAQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6419,7 +6423,7 @@ std::string NMD::DPAQ_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAQX_SA_W_PH(uint64 instruction) +std::string NMD::DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6443,7 +6447,7 @@ std::string NMD::DPAQX_SA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAQX_S_W_PH(uint64 instruction) +std::string NMD::DPAQX_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6467,7 +6471,7 @@ std::string NMD::DPAQX_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAU_H_QBL(uint64 instruction) +std::string NMD::DPAU_H_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6491,7 +6495,7 @@ std::string NMD::DPAU_H_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAU_H_QBR(uint64 instruction) +std::string NMD::DPAU_H_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6515,7 +6519,7 @@ std::string NMD::DPAU_H_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAX_W_PH(uint64 instruction) +std::string NMD::DPAX_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6539,7 +6543,7 @@ std::string NMD::DPAX_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPS_W_PH(uint64 instruction) +std::string NMD::DPS_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6563,7 +6567,7 @@ std::string NMD::DPS_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSQ_SA_L_W(uint64 instruction) +std::string NMD::DPSQ_SA_L_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6587,7 +6591,7 @@ std::string NMD::DPSQ_SA_L_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSQ_S_W_PH(uint64 instruction) +std::string NMD::DPSQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6611,7 +6615,7 @@ std::string NMD::DPSQ_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSQX_SA_W_PH(uint64 instruction) +std::string NMD::DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6635,7 +6639,7 @@ std::string NMD::DPSQX_SA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSQX_S_W_PH(uint64 instruction) +std::string NMD::DPSQX_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6659,7 +6663,7 @@ std::string NMD::DPSQX_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSU_H_QBL(uint64 instruction) +std::string NMD::DPSU_H_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6683,7 +6687,7 @@ std::string NMD::DPSU_H_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSU_H_QBR(uint64 instruction) +std::string NMD::DPSU_H_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6707,7 +6711,7 @@ std::string NMD::DPSU_H_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSX_W_PH(uint64 instruction) +std::string NMD::DPSX_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6731,7 +6735,7 @@ std::string NMD::DPSX_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DROTR(uint64 instruction) +std::string NMD::DROTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6755,7 +6759,7 @@ std::string NMD::DROTR(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DROTR32(uint64 instruction) +std::string NMD::DROTR32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6779,7 +6783,7 @@ std::string NMD::DROTR32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DROTRV(uint64 instruction) +std::string NMD::DROTRV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6803,7 +6807,7 @@ std::string NMD::DROTRV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DROTX(uint64 instruction) +std::string NMD::DROTX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6829,7 +6833,7 @@ std::string NMD::DROTX(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSLL(uint64 instruction) +std::string NMD::DSLL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6853,7 +6857,7 @@ std::string NMD::DSLL(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSLL32(uint64 instruction) +std::string NMD::DSLL32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6877,7 +6881,7 @@ std::string NMD::DSLL32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSLLV(uint64 instruction) +std::string NMD::DSLLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6901,7 +6905,7 @@ std::string NMD::DSLLV(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSRA(uint64 instruction) +std::string NMD::DSRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6925,7 +6929,7 @@ std::string NMD::DSRA(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSRA32(uint64 instruction) +std::string NMD::DSRA32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6949,7 +6953,7 @@ std::string NMD::DSRA32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSRAV(uint64 instruction) +std::string NMD::DSRAV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6973,7 +6977,7 @@ std::string NMD::DSRAV(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSRL(uint64 instruction) +std::string NMD::DSRL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6997,7 +7001,7 @@ std::string NMD::DSRL(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSRL32(uint64 instruction) +std::string NMD::DSRL32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7021,7 +7025,7 @@ std::string NMD::DSRL32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSRLV(uint64 instruction) +std::string NMD::DSRLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7045,7 +7049,7 @@ std::string NMD::DSRLV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSUB(uint64 instruction) +std::string NMD::DSUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7069,7 +7073,7 @@ std::string NMD::DSUB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSUBU(uint64 instruction) +std::string NMD::DSUBU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7093,7 +7097,7 @@ std::string NMD::DSUBU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DVPE(uint64 instruction) +std::string NMD::DVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7113,7 +7117,7 @@ std::string NMD::DVPE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DVP(uint64 instruction) +std::string NMD::DVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7133,7 +7137,7 @@ std::string NMD::DVP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EHB(uint64 instruction) +std::string NMD::EHB(uint64 instruction, Dis_info *info) { (void)instruction; @@ -7151,7 +7155,7 @@ std::string NMD::EHB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EI(uint64 instruction) +std::string NMD::EI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7171,7 +7175,7 @@ std::string NMD::EI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EMT(uint64 instruction) +std::string NMD::EMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7191,7 +7195,7 @@ std::string NMD::EMT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ERET(uint64 instruction) +std::string NMD::ERET(uint64 instruction, Dis_info *info) { (void)instruction; @@ -7209,7 +7213,7 @@ std::string NMD::ERET(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ERETNC(uint64 instruction) +std::string NMD::ERETNC(uint64 instruction, Dis_info *info) { (void)instruction; @@ -7227,7 +7231,7 @@ std::string NMD::ERETNC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EVP(uint64 instruction) +std::string NMD::EVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7247,7 +7251,7 @@ std::string NMD::EVP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EVPE(uint64 instruction) +std::string NMD::EVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7267,7 +7271,7 @@ std::string NMD::EVPE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXT(uint64 instruction) +std::string NMD::EXT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7293,7 +7297,7 @@ std::string NMD::EXT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTD(uint64 instruction) +std::string NMD::EXTD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7319,7 +7323,7 @@ std::string NMD::EXTD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTD32(uint64 instruction) +std::string NMD::EXTD32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7345,7 +7349,7 @@ std::string NMD::EXTD32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTPDP(uint64 instruction) +std::string NMD::EXTPDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 size_value = extract_size_20_19_18_17_16(instruction); @@ -7369,7 +7373,7 @@ std::string NMD::EXTPDP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTPDPV(uint64 instruction) +std::string NMD::EXTPDPV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7393,7 +7397,7 @@ std::string NMD::EXTPDPV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTP(uint64 instruction) +std::string NMD::EXTP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 size_value = extract_size_20_19_18_17_16(instruction); @@ -7417,7 +7421,7 @@ std::string NMD::EXTP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTPV(uint64 instruction) +std::string NMD::EXTPV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7442,7 +7446,7 @@ std::string NMD::EXTPV(uint64 instruction) * shift ----- * ac -- */ -std::string NMD::EXTR_RS_W(uint64 instruction) +std::string NMD::EXTR_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7467,7 +7471,7 @@ std::string NMD::EXTR_RS_W(uint64 instruction) * shift ----- * ac -- */ -std::string NMD::EXTR_R_W(uint64 instruction) +std::string NMD::EXTR_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7492,7 +7496,7 @@ std::string NMD::EXTR_R_W(uint64 instruction) * shift ----- * ac -- */ -std::string NMD::EXTR_S_H(uint64 instruction) +std::string NMD::EXTR_S_H(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7517,7 +7521,7 @@ std::string NMD::EXTR_S_H(uint64 instruction) * shift ----- * ac -- */ -std::string NMD::EXTR_W(uint64 instruction) +std::string NMD::EXTR_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7542,7 +7546,7 @@ std::string NMD::EXTR_W(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::EXTRV_RS_W(uint64 instruction) +std::string NMD::EXTRV_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7567,7 +7571,7 @@ std::string NMD::EXTRV_RS_W(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::EXTRV_R_W(uint64 instruction) +std::string NMD::EXTRV_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7592,7 +7596,7 @@ std::string NMD::EXTRV_R_W(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::EXTRV_S_H(uint64 instruction) +std::string NMD::EXTRV_S_H(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7617,7 +7621,7 @@ std::string NMD::EXTRV_S_H(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::EXTRV_W(uint64 instruction) +std::string NMD::EXTRV_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7642,7 +7646,7 @@ std::string NMD::EXTRV_W(uint64 instruction) * rd ----- * shift ----- */ -std::string NMD::EXTW(uint64 instruction) +std::string NMD::EXTW(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7668,7 +7672,7 @@ std::string NMD::EXTW(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FLOOR_L_D(uint64 instruction) +std::string NMD::FLOOR_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7690,7 +7694,7 @@ std::string NMD::FLOOR_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FLOOR_L_S(uint64 instruction) +std::string NMD::FLOOR_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7712,7 +7716,7 @@ std::string NMD::FLOOR_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FLOOR_W_D(uint64 instruction) +std::string NMD::FLOOR_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7734,7 +7738,7 @@ std::string NMD::FLOOR_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FLOOR_W_S(uint64 instruction) +std::string NMD::FLOOR_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7756,7 +7760,7 @@ std::string NMD::FLOOR_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FORK(uint64 instruction) +std::string NMD::FORK(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7780,7 +7784,7 @@ std::string NMD::FORK(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::HYPCALL(uint64 instruction) +std::string NMD::HYPCALL(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); @@ -7800,7 +7804,7 @@ std::string NMD::HYPCALL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::HYPCALL_16_(uint64 instruction) +std::string NMD::HYPCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); @@ -7820,7 +7824,7 @@ std::string NMD::HYPCALL_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::INS(uint64 instruction) +std::string NMD::INS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7847,7 +7851,7 @@ std::string NMD::INS(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::INSV(uint64 instruction) +std::string NMD::INSV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7869,7 +7873,7 @@ std::string NMD::INSV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::IRET(uint64 instruction) +std::string NMD::IRET(uint64 instruction, Dis_info *info) { (void)instruction; @@ -7887,7 +7891,7 @@ std::string NMD::IRET(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::JALRC_16_(uint64 instruction) +std::string NMD::JALRC_16_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); @@ -7907,7 +7911,7 @@ std::string NMD::JALRC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::JALRC_32_(uint64 instruction) +std::string NMD::JALRC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7929,7 +7933,7 @@ std::string NMD::JALRC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::JALRC_HB(uint64 instruction) +std::string NMD::JALRC_HB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7951,7 +7955,7 @@ std::string NMD::JALRC_HB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::JRC(uint64 instruction) +std::string NMD::JRC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); @@ -7971,7 +7975,7 @@ std::string NMD::JRC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LB_16_(uint64 instruction) +std::string NMD::LB_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -7995,7 +7999,7 @@ std::string NMD::LB_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LB_GP_(uint64 instruction) +std::string NMD::LB_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -8017,7 +8021,7 @@ std::string NMD::LB_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LB_S9_(uint64 instruction) +std::string NMD::LB_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8041,7 +8045,7 @@ std::string NMD::LB_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LB_U12_(uint64 instruction) +std::string NMD::LB_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8065,7 +8069,7 @@ std::string NMD::LB_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBE(uint64 instruction) +std::string NMD::LBE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8089,7 +8093,7 @@ std::string NMD::LBE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBU_16_(uint64 instruction) +std::string NMD::LBU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8113,7 +8117,7 @@ std::string NMD::LBU_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBU_GP_(uint64 instruction) +std::string NMD::LBU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -8135,7 +8139,7 @@ std::string NMD::LBU_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBU_S9_(uint64 instruction) +std::string NMD::LBU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8159,7 +8163,7 @@ std::string NMD::LBU_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBU_U12_(uint64 instruction) +std::string NMD::LBU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8183,7 +8187,7 @@ std::string NMD::LBU_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBUE(uint64 instruction) +std::string NMD::LBUE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8207,7 +8211,7 @@ std::string NMD::LBUE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBUX(uint64 instruction) +std::string NMD::LBUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8231,7 +8235,7 @@ std::string NMD::LBUX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBX(uint64 instruction) +std::string NMD::LBX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8255,7 +8259,7 @@ std::string NMD::LBX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LD_GP_(uint64 instruction) +std::string NMD::LD_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); @@ -8277,7 +8281,7 @@ std::string NMD::LD_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LD_S9_(uint64 instruction) +std::string NMD::LD_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8301,7 +8305,7 @@ std::string NMD::LD_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LD_U12_(uint64 instruction) +std::string NMD::LD_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8325,7 +8329,7 @@ std::string NMD::LD_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1_GP_(uint64 instruction) +std::string NMD::LDC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -8347,7 +8351,7 @@ std::string NMD::LDC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1_S9_(uint64 instruction) +std::string NMD::LDC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8371,7 +8375,7 @@ std::string NMD::LDC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1_U12_(uint64 instruction) +std::string NMD::LDC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8395,7 +8399,7 @@ std::string NMD::LDC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1XS(uint64 instruction) +std::string NMD::LDC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8419,7 +8423,7 @@ std::string NMD::LDC1XS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1X(uint64 instruction) +std::string NMD::LDC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8443,7 +8447,7 @@ std::string NMD::LDC1X(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC2(uint64 instruction) +std::string NMD::LDC2(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8467,7 +8471,7 @@ std::string NMD::LDC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDM(uint64 instruction) +std::string NMD::LDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8493,13 +8497,13 @@ std::string NMD::LDM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDPC_48_(uint64 instruction) +std::string NMD::LDPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6); + std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); return img_format("LDPC %s, %s", rt, s); } @@ -8515,7 +8519,7 @@ std::string NMD::LDPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDX(uint64 instruction) +std::string NMD::LDX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8539,7 +8543,7 @@ std::string NMD::LDX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDXS(uint64 instruction) +std::string NMD::LDXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8563,7 +8567,7 @@ std::string NMD::LDXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LH_16_(uint64 instruction) +std::string NMD::LH_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8587,7 +8591,7 @@ std::string NMD::LH_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LH_GP_(uint64 instruction) +std::string NMD::LH_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -8609,7 +8613,7 @@ std::string NMD::LH_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LH_S9_(uint64 instruction) +std::string NMD::LH_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8633,7 +8637,7 @@ std::string NMD::LH_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LH_U12_(uint64 instruction) +std::string NMD::LH_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8657,7 +8661,7 @@ std::string NMD::LH_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHE(uint64 instruction) +std::string NMD::LHE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8681,7 +8685,7 @@ std::string NMD::LHE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHU_16_(uint64 instruction) +std::string NMD::LHU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8705,7 +8709,7 @@ std::string NMD::LHU_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHU_GP_(uint64 instruction) +std::string NMD::LHU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -8727,7 +8731,7 @@ std::string NMD::LHU_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHU_S9_(uint64 instruction) +std::string NMD::LHU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8751,7 +8755,7 @@ std::string NMD::LHU_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHU_U12_(uint64 instruction) +std::string NMD::LHU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8775,7 +8779,7 @@ std::string NMD::LHU_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHUE(uint64 instruction) +std::string NMD::LHUE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8799,7 +8803,7 @@ std::string NMD::LHUE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHUX(uint64 instruction) +std::string NMD::LHUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8823,7 +8827,7 @@ std::string NMD::LHUX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHUXS(uint64 instruction) +std::string NMD::LHUXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8847,7 +8851,7 @@ std::string NMD::LHUXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHXS(uint64 instruction) +std::string NMD::LHXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8871,7 +8875,7 @@ std::string NMD::LHXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHX(uint64 instruction) +std::string NMD::LHX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8895,7 +8899,7 @@ std::string NMD::LHX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LI_16_(uint64 instruction) +std::string NMD::LI_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 eu_value = extract_eu_6_5_4_3_2_1_0(instruction); @@ -8917,7 +8921,7 @@ std::string NMD::LI_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LI_48_(uint64 instruction) +std::string NMD::LI_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -8939,7 +8943,7 @@ std::string NMD::LI_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LL(uint64 instruction) +std::string NMD::LL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8963,7 +8967,7 @@ std::string NMD::LL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLD(uint64 instruction) +std::string NMD::LLD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8987,7 +8991,7 @@ std::string NMD::LLD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLDP(uint64 instruction) +std::string NMD::LLDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9011,7 +9015,7 @@ std::string NMD::LLDP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLE(uint64 instruction) +std::string NMD::LLE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9035,7 +9039,7 @@ std::string NMD::LLE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLWP(uint64 instruction) +std::string NMD::LLWP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9059,7 +9063,7 @@ std::string NMD::LLWP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLWPE(uint64 instruction) +std::string NMD::LLWPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9083,7 +9087,7 @@ std::string NMD::LLWPE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LSA(uint64 instruction) +std::string NMD::LSA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9109,7 +9113,7 @@ std::string NMD::LSA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LUI(uint64 instruction) +std::string NMD::LUI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); @@ -9131,7 +9135,7 @@ std::string NMD::LUI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_16_(uint64 instruction) +std::string NMD::LW_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -9155,7 +9159,7 @@ std::string NMD::LW_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_4X4_(uint64 instruction) +std::string NMD::LW_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -9179,7 +9183,7 @@ std::string NMD::LW_4X4_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_GP_(uint64 instruction) +std::string NMD::LW_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -9201,7 +9205,7 @@ std::string NMD::LW_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_GP16_(uint64 instruction) +std::string NMD::LW_GP16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); @@ -9223,7 +9227,7 @@ std::string NMD::LW_GP16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_S9_(uint64 instruction) +std::string NMD::LW_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9247,7 +9251,7 @@ std::string NMD::LW_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_SP_(uint64 instruction) +std::string NMD::LW_SP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); @@ -9269,7 +9273,7 @@ std::string NMD::LW_SP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_U12_(uint64 instruction) +std::string NMD::LW_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9293,7 +9297,7 @@ std::string NMD::LW_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1_GP_(uint64 instruction) +std::string NMD::LWC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -9315,7 +9319,7 @@ std::string NMD::LWC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1_S9_(uint64 instruction) +std::string NMD::LWC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9339,7 +9343,7 @@ std::string NMD::LWC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1_U12_(uint64 instruction) +std::string NMD::LWC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9363,7 +9367,7 @@ std::string NMD::LWC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1X(uint64 instruction) +std::string NMD::LWC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9387,7 +9391,7 @@ std::string NMD::LWC1X(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1XS(uint64 instruction) +std::string NMD::LWC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9411,7 +9415,7 @@ std::string NMD::LWC1XS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC2(uint64 instruction) +std::string NMD::LWC2(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9435,7 +9439,7 @@ std::string NMD::LWC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWE(uint64 instruction) +std::string NMD::LWE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9459,7 +9463,7 @@ std::string NMD::LWE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWM(uint64 instruction) +std::string NMD::LWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9485,13 +9489,13 @@ std::string NMD::LWM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWPC_48_(uint64 instruction) +std::string NMD::LWPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6); + std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); return img_format("LWPC %s, %s", rt, s); } @@ -9507,7 +9511,7 @@ std::string NMD::LWPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWU_GP_(uint64 instruction) +std::string NMD::LWU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -9529,7 +9533,7 @@ std::string NMD::LWU_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWU_S9_(uint64 instruction) +std::string NMD::LWU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9553,7 +9557,7 @@ std::string NMD::LWU_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWU_U12_(uint64 instruction) +std::string NMD::LWU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9577,7 +9581,7 @@ std::string NMD::LWU_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWUX(uint64 instruction) +std::string NMD::LWUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9601,7 +9605,7 @@ std::string NMD::LWUX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWUXS(uint64 instruction) +std::string NMD::LWUXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9625,7 +9629,7 @@ std::string NMD::LWUXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWX(uint64 instruction) +std::string NMD::LWX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9649,7 +9653,7 @@ std::string NMD::LWX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWXS_16_(uint64 instruction) +std::string NMD::LWXS_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -9673,7 +9677,7 @@ std::string NMD::LWXS_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWXS_32_(uint64 instruction) +std::string NMD::LWXS_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9698,7 +9702,7 @@ std::string NMD::LWXS_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MADD_DSP_(uint64 instruction) +std::string NMD::MADD_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9722,7 +9726,7 @@ std::string NMD::MADD_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MADDF_D(uint64 instruction) +std::string NMD::MADDF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9746,7 +9750,7 @@ std::string NMD::MADDF_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MADDF_S(uint64 instruction) +std::string NMD::MADDF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9771,7 +9775,7 @@ std::string NMD::MADDF_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MADDU_DSP_(uint64 instruction) +std::string NMD::MADDU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9796,7 +9800,7 @@ std::string NMD::MADDU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAQ_S_W_PHL(uint64 instruction) +std::string NMD::MAQ_S_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9821,7 +9825,7 @@ std::string NMD::MAQ_S_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAQ_S_W_PHR(uint64 instruction) +std::string NMD::MAQ_S_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9846,7 +9850,7 @@ std::string NMD::MAQ_S_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAQ_SA_W_PHL(uint64 instruction) +std::string NMD::MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9871,7 +9875,7 @@ std::string NMD::MAQ_SA_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAQ_SA_W_PHR(uint64 instruction) +std::string NMD::MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9895,7 +9899,7 @@ std::string NMD::MAQ_SA_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAX_D(uint64 instruction) +std::string NMD::MAX_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9919,7 +9923,7 @@ std::string NMD::MAX_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAX_S(uint64 instruction) +std::string NMD::MAX_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9943,7 +9947,7 @@ std::string NMD::MAX_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAXA_D(uint64 instruction) +std::string NMD::MAXA_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9967,7 +9971,7 @@ std::string NMD::MAXA_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAXA_S(uint64 instruction) +std::string NMD::MAXA_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9991,7 +9995,7 @@ std::string NMD::MAXA_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFC0(uint64 instruction) +std::string NMD::MFC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10015,7 +10019,7 @@ std::string NMD::MFC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFC1(uint64 instruction) +std::string NMD::MFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10037,7 +10041,7 @@ std::string NMD::MFC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFC2(uint64 instruction) +std::string NMD::MFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10059,7 +10063,7 @@ std::string NMD::MFC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFGC0(uint64 instruction) +std::string NMD::MFGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10083,7 +10087,7 @@ std::string NMD::MFGC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHC0(uint64 instruction) +std::string NMD::MFHC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10107,7 +10111,7 @@ std::string NMD::MFHC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHC1(uint64 instruction) +std::string NMD::MFHC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10129,7 +10133,7 @@ std::string NMD::MFHC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHC2(uint64 instruction) +std::string NMD::MFHC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10151,7 +10155,7 @@ std::string NMD::MFHC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHGC0(uint64 instruction) +std::string NMD::MFHGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10174,7 +10178,7 @@ std::string NMD::MFHGC0(uint64 instruction) * rt ----- * ac -- */ -std::string NMD::MFHI_DSP_(uint64 instruction) +std::string NMD::MFHI_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10196,7 +10200,7 @@ std::string NMD::MFHI_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHTR(uint64 instruction) +std::string NMD::MFHTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10221,7 +10225,7 @@ std::string NMD::MFHTR(uint64 instruction) * rt ----- * ac -- */ -std::string NMD::MFLO_DSP_(uint64 instruction) +std::string NMD::MFLO_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10243,7 +10247,7 @@ std::string NMD::MFLO_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFTR(uint64 instruction) +std::string NMD::MFTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10269,7 +10273,7 @@ std::string NMD::MFTR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MIN_D(uint64 instruction) +std::string NMD::MIN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10293,7 +10297,7 @@ std::string NMD::MIN_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MIN_S(uint64 instruction) +std::string NMD::MIN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10317,7 +10321,7 @@ std::string NMD::MIN_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MINA_D(uint64 instruction) +std::string NMD::MINA_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10341,7 +10345,7 @@ std::string NMD::MINA_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MINA_S(uint64 instruction) +std::string NMD::MINA_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10365,7 +10369,7 @@ std::string NMD::MINA_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOD(uint64 instruction) +std::string NMD::MOD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10389,7 +10393,7 @@ std::string NMD::MOD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MODSUB(uint64 instruction) +std::string NMD::MODSUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10413,7 +10417,7 @@ std::string NMD::MODSUB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MODU(uint64 instruction) +std::string NMD::MODU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10437,7 +10441,7 @@ std::string NMD::MODU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOV_D(uint64 instruction) +std::string NMD::MOV_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10459,7 +10463,7 @@ std::string NMD::MOV_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOV_S(uint64 instruction) +std::string NMD::MOV_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10481,7 +10485,7 @@ std::string NMD::MOV_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVE_BALC(uint64 instruction) +std::string NMD::MOVE_BALC(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_27_26_25_23_22_21(instruction); uint64 rd1_value = extract_rdl_25_24(instruction); @@ -10489,7 +10493,7 @@ std::string NMD::MOVE_BALC(uint64 instruction) std::string rd1 = GPR(decode_gpr_gpr1(rd1_value)); std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); return img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); } @@ -10505,7 +10509,7 @@ std::string NMD::MOVE_BALC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVEP(uint64 instruction) +std::string NMD::MOVEP(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction); uint64 rd2_value = extract_rd2_3_8(instruction); @@ -10532,7 +10536,7 @@ std::string NMD::MOVEP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVEP_REV_(uint64 instruction) +std::string NMD::MOVEP_REV_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rd2_value = extract_rd2_3_8(instruction); @@ -10559,7 +10563,7 @@ std::string NMD::MOVEP_REV_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVE(uint64 instruction) +std::string NMD::MOVE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 rs_value = extract_rs_4_3_2_1_0(instruction); @@ -10581,7 +10585,7 @@ std::string NMD::MOVE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVN(uint64 instruction) +std::string NMD::MOVN(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10605,7 +10609,7 @@ std::string NMD::MOVN(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVZ(uint64 instruction) +std::string NMD::MOVZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10629,7 +10633,7 @@ std::string NMD::MOVZ(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MSUB_DSP_(uint64 instruction) +std::string NMD::MSUB_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10653,7 +10657,7 @@ std::string NMD::MSUB_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MSUBF_D(uint64 instruction) +std::string NMD::MSUBF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10677,7 +10681,7 @@ std::string NMD::MSUBF_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MSUBF_S(uint64 instruction) +std::string NMD::MSUBF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10701,7 +10705,7 @@ std::string NMD::MSUBF_S(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MSUBU_DSP_(uint64 instruction) +std::string NMD::MSUBU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10725,7 +10729,7 @@ std::string NMD::MSUBU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTC0(uint64 instruction) +std::string NMD::MTC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10749,7 +10753,7 @@ std::string NMD::MTC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTC1(uint64 instruction) +std::string NMD::MTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10771,7 +10775,7 @@ std::string NMD::MTC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTC2(uint64 instruction) +std::string NMD::MTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10793,7 +10797,7 @@ std::string NMD::MTC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTGC0(uint64 instruction) +std::string NMD::MTGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10817,7 +10821,7 @@ std::string NMD::MTGC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHC0(uint64 instruction) +std::string NMD::MTHC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10841,7 +10845,7 @@ std::string NMD::MTHC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHC1(uint64 instruction) +std::string NMD::MTHC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10863,7 +10867,7 @@ std::string NMD::MTHC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHC2(uint64 instruction) +std::string NMD::MTHC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10885,7 +10889,7 @@ std::string NMD::MTHC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHGC0(uint64 instruction) +std::string NMD::MTHGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10908,7 +10912,7 @@ std::string NMD::MTHGC0(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MTHI_DSP_(uint64 instruction) +std::string NMD::MTHI_DSP_(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10929,7 +10933,7 @@ std::string NMD::MTHI_DSP_(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MTHLIP(uint64 instruction) +std::string NMD::MTHLIP(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10951,7 +10955,7 @@ std::string NMD::MTHLIP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHTR(uint64 instruction) +std::string NMD::MTHTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10976,7 +10980,7 @@ std::string NMD::MTHTR(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MTLO_DSP_(uint64 instruction) +std::string NMD::MTLO_DSP_(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10998,7 +11002,7 @@ std::string NMD::MTLO_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTTR(uint64 instruction) +std::string NMD::MTTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -11024,7 +11028,7 @@ std::string NMD::MTTR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUH(uint64 instruction) +std::string NMD::MUH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11048,7 +11052,7 @@ std::string NMD::MUH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUHU(uint64 instruction) +std::string NMD::MUHU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11072,7 +11076,7 @@ std::string NMD::MUHU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_32_(uint64 instruction) +std::string NMD::MUL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11096,7 +11100,7 @@ std::string NMD::MUL_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_4X4_(uint64 instruction) +std::string NMD::MUL_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -11118,7 +11122,7 @@ std::string NMD::MUL_4X4_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_D(uint64 instruction) +std::string NMD::MUL_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11143,7 +11147,7 @@ std::string NMD::MUL_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_PH(uint64 instruction) +std::string NMD::MUL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11168,7 +11172,7 @@ std::string NMD::MUL_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_S_PH(uint64 instruction) +std::string NMD::MUL_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11192,7 +11196,7 @@ std::string NMD::MUL_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_S(uint64 instruction) +std::string NMD::MUL_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11217,7 +11221,7 @@ std::string NMD::MUL_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULEQ_S_W_PHL(uint64 instruction) +std::string NMD::MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11242,7 +11246,7 @@ std::string NMD::MULEQ_S_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULEQ_S_W_PHR(uint64 instruction) +std::string NMD::MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11267,7 +11271,7 @@ std::string NMD::MULEQ_S_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULEU_S_PH_QBL(uint64 instruction) +std::string NMD::MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11292,7 +11296,7 @@ std::string NMD::MULEU_S_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULEU_S_PH_QBR(uint64 instruction) +std::string NMD::MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11317,7 +11321,7 @@ std::string NMD::MULEU_S_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULQ_RS_PH(uint64 instruction) +std::string NMD::MULQ_RS_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11342,7 +11346,7 @@ std::string NMD::MULQ_RS_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULQ_RS_W(uint64 instruction) +std::string NMD::MULQ_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11367,7 +11371,7 @@ std::string NMD::MULQ_RS_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULQ_S_PH(uint64 instruction) +std::string NMD::MULQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11392,7 +11396,7 @@ std::string NMD::MULQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULQ_S_W(uint64 instruction) +std::string NMD::MULQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11417,7 +11421,7 @@ std::string NMD::MULQ_S_W(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MULSA_W_PH(uint64 instruction) +std::string NMD::MULSA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11442,7 +11446,7 @@ std::string NMD::MULSA_W_PH(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MULSAQ_S_W_PH(uint64 instruction) +std::string NMD::MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11466,7 +11470,7 @@ std::string NMD::MULSAQ_S_W_PH(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MULT_DSP_(uint64 instruction) +std::string NMD::MULT_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11490,7 +11494,7 @@ std::string NMD::MULT_DSP_(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MULTU_DSP_(uint64 instruction) +std::string NMD::MULTU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11514,7 +11518,7 @@ std::string NMD::MULTU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULU(uint64 instruction) +std::string NMD::MULU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11538,7 +11542,7 @@ std::string NMD::MULU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NEG_D(uint64 instruction) +std::string NMD::NEG_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11560,7 +11564,7 @@ std::string NMD::NEG_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NEG_S(uint64 instruction) +std::string NMD::NEG_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11582,7 +11586,7 @@ std::string NMD::NEG_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NOP_16_(uint64 instruction) +std::string NMD::NOP_16_(uint64 instruction, Dis_info *info) { (void)instruction; @@ -11600,7 +11604,7 @@ std::string NMD::NOP_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NOP_32_(uint64 instruction) +std::string NMD::NOP_32_(uint64 instruction, Dis_info *info) { (void)instruction; @@ -11618,7 +11622,7 @@ std::string NMD::NOP_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NOR(uint64 instruction) +std::string NMD::NOR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11642,7 +11646,7 @@ std::string NMD::NOR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NOT_16_(uint64 instruction) +std::string NMD::NOT_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -11664,7 +11668,7 @@ std::string NMD::NOT_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::OR_16_(uint64 instruction) +std::string NMD::OR_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -11686,7 +11690,7 @@ std::string NMD::OR_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::OR_32_(uint64 instruction) +std::string NMD::OR_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11710,7 +11714,7 @@ std::string NMD::OR_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ORI(uint64 instruction) +std::string NMD::ORI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11735,7 +11739,7 @@ std::string NMD::ORI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PACKRL_PH(uint64 instruction) +std::string NMD::PACKRL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11759,7 +11763,7 @@ std::string NMD::PACKRL_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PAUSE(uint64 instruction) +std::string NMD::PAUSE(uint64 instruction, Dis_info *info) { (void)instruction; @@ -11778,7 +11782,7 @@ std::string NMD::PAUSE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PICK_PH(uint64 instruction) +std::string NMD::PICK_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11803,7 +11807,7 @@ std::string NMD::PICK_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PICK_QB(uint64 instruction) +std::string NMD::PICK_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11828,7 +11832,7 @@ std::string NMD::PICK_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQ_W_PHL(uint64 instruction) +std::string NMD::PRECEQ_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11851,7 +11855,7 @@ std::string NMD::PRECEQ_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQ_W_PHR(uint64 instruction) +std::string NMD::PRECEQ_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11874,7 +11878,7 @@ std::string NMD::PRECEQ_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBLA(uint64 instruction) +std::string NMD::PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11897,7 +11901,7 @@ std::string NMD::PRECEQU_PH_QBLA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBL(uint64 instruction) +std::string NMD::PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11920,7 +11924,7 @@ std::string NMD::PRECEQU_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBRA(uint64 instruction) +std::string NMD::PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11943,7 +11947,7 @@ std::string NMD::PRECEQU_PH_QBRA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBR(uint64 instruction) +std::string NMD::PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11967,7 +11971,7 @@ std::string NMD::PRECEQU_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBLA(uint64 instruction) +std::string NMD::PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11990,7 +11994,7 @@ std::string NMD::PRECEU_PH_QBLA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBL(uint64 instruction) +std::string NMD::PRECEU_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12014,7 +12018,7 @@ std::string NMD::PRECEU_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBRA(uint64 instruction) +std::string NMD::PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12037,7 +12041,7 @@ std::string NMD::PRECEU_PH_QBRA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBR(uint64 instruction) +std::string NMD::PRECEU_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12060,7 +12064,7 @@ std::string NMD::PRECEU_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECR_QB_PH(uint64 instruction) +std::string NMD::PRECR_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12085,7 +12089,7 @@ std::string NMD::PRECR_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECR_SRA_PH_W(uint64 instruction) +std::string NMD::PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12110,7 +12114,7 @@ std::string NMD::PRECR_SRA_PH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECR_SRA_R_PH_W(uint64 instruction) +std::string NMD::PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12135,7 +12139,7 @@ std::string NMD::PRECR_SRA_R_PH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_PH_W(uint64 instruction) +std::string NMD::PRECRQ_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12160,7 +12164,7 @@ std::string NMD::PRECRQ_PH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_QB_PH(uint64 instruction) +std::string NMD::PRECRQ_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12185,7 +12189,7 @@ std::string NMD::PRECRQ_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_RS_PH_W(uint64 instruction) +std::string NMD::PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12210,7 +12214,7 @@ std::string NMD::PRECRQ_RS_PH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECRQU_S_QB_PH(uint64 instruction) +std::string NMD::PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12234,7 +12238,7 @@ std::string NMD::PRECRQU_S_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PREF_S9_(uint64 instruction) +std::string NMD::PREF_S9_(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12258,7 +12262,7 @@ std::string NMD::PREF_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PREF_U12_(uint64 instruction) +std::string NMD::PREF_U12_(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12282,7 +12286,7 @@ std::string NMD::PREF_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PREFE(uint64 instruction) +std::string NMD::PREFE(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12306,7 +12310,7 @@ std::string NMD::PREFE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PREPEND(uint64 instruction) +std::string NMD::PREPEND(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12329,7 +12333,7 @@ std::string NMD::PREPEND(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::RADDU_W_QB(uint64 instruction) +std::string NMD::RADDU_W_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12350,7 +12354,7 @@ std::string NMD::RADDU_W_QB(uint64 instruction) * rt ----- * mask ------- */ -std::string NMD::RDDSP(uint64 instruction) +std::string NMD::RDDSP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); @@ -12372,7 +12376,7 @@ std::string NMD::RDDSP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RDHWR(uint64 instruction) +std::string NMD::RDHWR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 hs_value = extract_hs_20_19_18_17_16(instruction); @@ -12396,7 +12400,7 @@ std::string NMD::RDHWR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RDPGPR(uint64 instruction) +std::string NMD::RDPGPR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12418,7 +12422,7 @@ std::string NMD::RDPGPR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RECIP_D(uint64 instruction) +std::string NMD::RECIP_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12440,7 +12444,7 @@ std::string NMD::RECIP_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RECIP_S(uint64 instruction) +std::string NMD::RECIP_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12462,7 +12466,7 @@ std::string NMD::RECIP_S(uint64 instruction) * rt ----- * s ---------- */ -std::string NMD::REPL_PH(uint64 instruction) +std::string NMD::REPL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se9_20_19_18_17_16_15_14_13_12_11(instruction); @@ -12484,7 +12488,7 @@ std::string NMD::REPL_PH(uint64 instruction) * rt ----- * u -------- */ -std::string NMD::REPL_QB(uint64 instruction) +std::string NMD::REPL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_19_18_17_16_15_14_13(instruction); @@ -12506,7 +12510,7 @@ std::string NMD::REPL_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::REPLV_PH(uint64 instruction) +std::string NMD::REPLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12527,7 +12531,7 @@ std::string NMD::REPLV_PH(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::REPLV_QB(uint64 instruction) +std::string NMD::REPLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12549,7 +12553,7 @@ std::string NMD::REPLV_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RESTORE_32_(uint64 instruction) +std::string NMD::RESTORE_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 count_value = extract_count_19_18_17_16(instruction); @@ -12572,7 +12576,7 @@ std::string NMD::RESTORE_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RESTORE_JRC_16_(uint64 instruction) +std::string NMD::RESTORE_JRC_16_(uint64 instruction, Dis_info *info) { uint64 rt1_value = extract_rtl_11(instruction); uint64 u_value = extract_u_7_6_5_4__s4(instruction); @@ -12594,7 +12598,7 @@ std::string NMD::RESTORE_JRC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RESTORE_JRC_32_(uint64 instruction) +std::string NMD::RESTORE_JRC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 count_value = extract_count_19_18_17_16(instruction); @@ -12617,7 +12621,7 @@ std::string NMD::RESTORE_JRC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RESTOREF(uint64 instruction) +std::string NMD::RESTOREF(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); @@ -12639,7 +12643,7 @@ std::string NMD::RESTOREF(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RINT_D(uint64 instruction) +std::string NMD::RINT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12661,7 +12665,7 @@ std::string NMD::RINT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RINT_S(uint64 instruction) +std::string NMD::RINT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12683,7 +12687,7 @@ std::string NMD::RINT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROTR(uint64 instruction) +std::string NMD::ROTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12707,7 +12711,7 @@ std::string NMD::ROTR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROTRV(uint64 instruction) +std::string NMD::ROTRV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12731,7 +12735,7 @@ std::string NMD::ROTRV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROTX(uint64 instruction) +std::string NMD::ROTX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12760,7 +12764,7 @@ std::string NMD::ROTX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROUND_L_D(uint64 instruction) +std::string NMD::ROUND_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12782,7 +12786,7 @@ std::string NMD::ROUND_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROUND_L_S(uint64 instruction) +std::string NMD::ROUND_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12804,7 +12808,7 @@ std::string NMD::ROUND_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROUND_W_D(uint64 instruction) +std::string NMD::ROUND_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12826,7 +12830,7 @@ std::string NMD::ROUND_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROUND_W_S(uint64 instruction) +std::string NMD::ROUND_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12848,7 +12852,7 @@ std::string NMD::ROUND_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RSQRT_D(uint64 instruction) +std::string NMD::RSQRT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12870,7 +12874,7 @@ std::string NMD::RSQRT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RSQRT_S(uint64 instruction) +std::string NMD::RSQRT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12892,7 +12896,7 @@ std::string NMD::RSQRT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SAVE_16_(uint64 instruction) +std::string NMD::SAVE_16_(uint64 instruction, Dis_info *info) { uint64 rt1_value = extract_rtl_11(instruction); uint64 u_value = extract_u_7_6_5_4__s4(instruction); @@ -12914,7 +12918,7 @@ std::string NMD::SAVE_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SAVE_32_(uint64 instruction) +std::string NMD::SAVE_32_(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -12937,7 +12941,7 @@ std::string NMD::SAVE_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SAVEF(uint64 instruction) +std::string NMD::SAVEF(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); @@ -12959,7 +12963,7 @@ std::string NMD::SAVEF(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SB_16_(uint64 instruction) +std::string NMD::SB_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -12983,7 +12987,7 @@ std::string NMD::SB_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SB_GP_(uint64 instruction) +std::string NMD::SB_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -13005,7 +13009,7 @@ std::string NMD::SB_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SB_S9_(uint64 instruction) +std::string NMD::SB_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13029,7 +13033,7 @@ std::string NMD::SB_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SB_U12_(uint64 instruction) +std::string NMD::SB_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13053,7 +13057,7 @@ std::string NMD::SB_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SBE(uint64 instruction) +std::string NMD::SBE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13077,7 +13081,7 @@ std::string NMD::SBE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SBX(uint64 instruction) +std::string NMD::SBX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13101,7 +13105,7 @@ std::string NMD::SBX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SC(uint64 instruction) +std::string NMD::SC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13125,7 +13129,7 @@ std::string NMD::SC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCD(uint64 instruction) +std::string NMD::SCD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13149,7 +13153,7 @@ std::string NMD::SCD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCDP(uint64 instruction) +std::string NMD::SCDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13173,7 +13177,7 @@ std::string NMD::SCDP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCE(uint64 instruction) +std::string NMD::SCE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13197,7 +13201,7 @@ std::string NMD::SCE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCWP(uint64 instruction) +std::string NMD::SCWP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13221,7 +13225,7 @@ std::string NMD::SCWP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCWPE(uint64 instruction) +std::string NMD::SCWPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13245,7 +13249,7 @@ std::string NMD::SCWPE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SD_GP_(uint64 instruction) +std::string NMD::SD_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); @@ -13267,7 +13271,7 @@ std::string NMD::SD_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SD_S9_(uint64 instruction) +std::string NMD::SD_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13291,7 +13295,7 @@ std::string NMD::SD_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SD_U12_(uint64 instruction) +std::string NMD::SD_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13315,7 +13319,7 @@ std::string NMD::SD_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDBBP_16_(uint64 instruction) +std::string NMD::SDBBP_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); @@ -13335,7 +13339,7 @@ std::string NMD::SDBBP_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDBBP_32_(uint64 instruction) +std::string NMD::SDBBP_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); @@ -13355,7 +13359,7 @@ std::string NMD::SDBBP_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1_GP_(uint64 instruction) +std::string NMD::SDC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -13377,7 +13381,7 @@ std::string NMD::SDC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1_S9_(uint64 instruction) +std::string NMD::SDC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13401,7 +13405,7 @@ std::string NMD::SDC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1_U12_(uint64 instruction) +std::string NMD::SDC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13425,7 +13429,7 @@ std::string NMD::SDC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1X(uint64 instruction) +std::string NMD::SDC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13449,7 +13453,7 @@ std::string NMD::SDC1X(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1XS(uint64 instruction) +std::string NMD::SDC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13473,7 +13477,7 @@ std::string NMD::SDC1XS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC2(uint64 instruction) +std::string NMD::SDC2(uint64 instruction, Dis_info *info) { uint64 cs_value = extract_cs_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13497,7 +13501,7 @@ std::string NMD::SDC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDM(uint64 instruction) +std::string NMD::SDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13523,13 +13527,13 @@ std::string NMD::SDM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDPC_48_(uint64 instruction) +std::string NMD::SDPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6); + std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); return img_format("SDPC %s, %s", rt, s); } @@ -13545,7 +13549,7 @@ std::string NMD::SDPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDXS(uint64 instruction) +std::string NMD::SDXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13569,7 +13573,7 @@ std::string NMD::SDXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDX(uint64 instruction) +std::string NMD::SDX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13593,7 +13597,7 @@ std::string NMD::SDX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEB(uint64 instruction) +std::string NMD::SEB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13615,7 +13619,7 @@ std::string NMD::SEB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEH(uint64 instruction) +std::string NMD::SEH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13637,7 +13641,7 @@ std::string NMD::SEH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEL_D(uint64 instruction) +std::string NMD::SEL_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13661,7 +13665,7 @@ std::string NMD::SEL_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEL_S(uint64 instruction) +std::string NMD::SEL_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13685,7 +13689,7 @@ std::string NMD::SEL_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SELEQZ_D(uint64 instruction) +std::string NMD::SELEQZ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13709,7 +13713,7 @@ std::string NMD::SELEQZ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SELEQZ_S(uint64 instruction) +std::string NMD::SELEQZ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13733,7 +13737,7 @@ std::string NMD::SELEQZ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SELNEZ_D(uint64 instruction) +std::string NMD::SELNEZ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13757,7 +13761,7 @@ std::string NMD::SELNEZ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SELNEZ_S(uint64 instruction) +std::string NMD::SELNEZ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13781,7 +13785,7 @@ std::string NMD::SELNEZ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEQI(uint64 instruction) +std::string NMD::SEQI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13805,7 +13809,7 @@ std::string NMD::SEQI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SH_16_(uint64 instruction) +std::string NMD::SH_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -13829,7 +13833,7 @@ std::string NMD::SH_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SH_GP_(uint64 instruction) +std::string NMD::SH_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -13851,7 +13855,7 @@ std::string NMD::SH_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SH_S9_(uint64 instruction) +std::string NMD::SH_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13875,7 +13879,7 @@ std::string NMD::SH_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SH_U12_(uint64 instruction) +std::string NMD::SH_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13899,7 +13903,7 @@ std::string NMD::SH_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHE(uint64 instruction) +std::string NMD::SHE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13923,7 +13927,7 @@ std::string NMD::SHE(uint64 instruction) * shift ------ * ac -- */ -std::string NMD::SHILO(uint64 instruction) +std::string NMD::SHILO(uint64 instruction, Dis_info *info) { int64 shift_value = extract_shift__se5_21_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -13945,7 +13949,7 @@ std::string NMD::SHILO(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::SHILOV(uint64 instruction) +std::string NMD::SHILOV(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -13967,7 +13971,7 @@ std::string NMD::SHILOV(uint64 instruction) * rs ----- * sa ---- */ -std::string NMD::SHLL_PH(uint64 instruction) +std::string NMD::SHLL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13991,7 +13995,7 @@ std::string NMD::SHLL_PH(uint64 instruction) * rs ----- * sa --- */ -std::string NMD::SHLL_QB(uint64 instruction) +std::string NMD::SHLL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14016,7 +14020,7 @@ std::string NMD::SHLL_QB(uint64 instruction) * rs ----- * sa ---- */ -std::string NMD::SHLL_S_PH(uint64 instruction) +std::string NMD::SHLL_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14040,7 +14044,7 @@ std::string NMD::SHLL_S_PH(uint64 instruction) * rs ----- * sa ----- */ -std::string NMD::SHLL_S_W(uint64 instruction) +std::string NMD::SHLL_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14065,7 +14069,7 @@ std::string NMD::SHLL_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHLLV_PH(uint64 instruction) +std::string NMD::SHLLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14089,7 +14093,7 @@ std::string NMD::SHLLV_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHLLV_QB(uint64 instruction) +std::string NMD::SHLLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14114,7 +14118,7 @@ std::string NMD::SHLLV_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHLLV_S_PH(uint64 instruction) +std::string NMD::SHLLV_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14138,7 +14142,7 @@ std::string NMD::SHLLV_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHLLV_S_W(uint64 instruction) +std::string NMD::SHLLV_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14162,7 +14166,7 @@ std::string NMD::SHLLV_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_PH(uint64 instruction) +std::string NMD::SHRA_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14186,7 +14190,7 @@ std::string NMD::SHRA_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_QB(uint64 instruction) +std::string NMD::SHRA_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14210,7 +14214,7 @@ std::string NMD::SHRA_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_PH(uint64 instruction) +std::string NMD::SHRA_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14234,7 +14238,7 @@ std::string NMD::SHRA_R_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_QB(uint64 instruction) +std::string NMD::SHRA_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14258,7 +14262,7 @@ std::string NMD::SHRA_R_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_W(uint64 instruction) +std::string NMD::SHRA_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14282,7 +14286,7 @@ std::string NMD::SHRA_R_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_PH(uint64 instruction) +std::string NMD::SHRAV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14306,7 +14310,7 @@ std::string NMD::SHRAV_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_QB(uint64 instruction) +std::string NMD::SHRAV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14330,7 +14334,7 @@ std::string NMD::SHRAV_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_PH(uint64 instruction) +std::string NMD::SHRAV_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14354,7 +14358,7 @@ std::string NMD::SHRAV_R_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_QB(uint64 instruction) +std::string NMD::SHRAV_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14378,7 +14382,7 @@ std::string NMD::SHRAV_R_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_W(uint64 instruction) +std::string NMD::SHRAV_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14402,7 +14406,7 @@ std::string NMD::SHRAV_R_W(uint64 instruction) * rs ----- * sa ---- */ -std::string NMD::SHRL_PH(uint64 instruction) +std::string NMD::SHRL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14426,7 +14430,7 @@ std::string NMD::SHRL_PH(uint64 instruction) * rs ----- * sa --- */ -std::string NMD::SHRL_QB(uint64 instruction) +std::string NMD::SHRL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14451,7 +14455,7 @@ std::string NMD::SHRL_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRLV_PH(uint64 instruction) +std::string NMD::SHRLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14475,7 +14479,7 @@ std::string NMD::SHRLV_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRLV_QB(uint64 instruction) +std::string NMD::SHRLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14499,7 +14503,7 @@ std::string NMD::SHRLV_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHX(uint64 instruction) +std::string NMD::SHX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14523,7 +14527,7 @@ std::string NMD::SHX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHXS(uint64 instruction) +std::string NMD::SHXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14547,7 +14551,7 @@ std::string NMD::SHXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SIGRIE(uint64 instruction) +std::string NMD::SIGRIE(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); @@ -14567,7 +14571,7 @@ std::string NMD::SIGRIE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLL_16_(uint64 instruction) +std::string NMD::SLL_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -14591,7 +14595,7 @@ std::string NMD::SLL_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLL_32_(uint64 instruction) +std::string NMD::SLL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14615,7 +14619,7 @@ std::string NMD::SLL_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLLV(uint64 instruction) +std::string NMD::SLLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14639,7 +14643,7 @@ std::string NMD::SLLV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLT(uint64 instruction) +std::string NMD::SLT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14663,7 +14667,7 @@ std::string NMD::SLT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLTI(uint64 instruction) +std::string NMD::SLTI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14687,7 +14691,7 @@ std::string NMD::SLTI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLTIU(uint64 instruction) +std::string NMD::SLTIU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14711,7 +14715,7 @@ std::string NMD::SLTIU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLTU(uint64 instruction) +std::string NMD::SLTU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14735,7 +14739,7 @@ std::string NMD::SLTU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SOV(uint64 instruction) +std::string NMD::SOV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14759,7 +14763,7 @@ std::string NMD::SOV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SPECIAL2(uint64 instruction) +std::string NMD::SPECIAL2(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); @@ -14779,7 +14783,7 @@ std::string NMD::SPECIAL2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SQRT_D(uint64 instruction) +std::string NMD::SQRT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14801,7 +14805,7 @@ std::string NMD::SQRT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SQRT_S(uint64 instruction) +std::string NMD::SQRT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14823,7 +14827,7 @@ std::string NMD::SQRT_S(uint64 instruction) * rd ----- * sa ----- */ -std::string NMD::SRA(uint64 instruction) +std::string NMD::SRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14847,7 +14851,7 @@ std::string NMD::SRA(uint64 instruction) * rt ----- * rd ----- */ -std::string NMD::SRAV(uint64 instruction) +std::string NMD::SRAV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14871,7 +14875,7 @@ std::string NMD::SRAV(uint64 instruction) * rt ----- * rd ----- */ -std::string NMD::SRL_16_(uint64 instruction) +std::string NMD::SRL_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -14895,7 +14899,7 @@ std::string NMD::SRL_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SRL_32_(uint64 instruction) +std::string NMD::SRL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14919,7 +14923,7 @@ std::string NMD::SRL_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SRLV(uint64 instruction) +std::string NMD::SRLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14943,7 +14947,7 @@ std::string NMD::SRLV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUB(uint64 instruction) +std::string NMD::SUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14967,7 +14971,7 @@ std::string NMD::SUB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUB_D(uint64 instruction) +std::string NMD::SUB_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14991,7 +14995,7 @@ std::string NMD::SUB_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUB_S(uint64 instruction) +std::string NMD::SUB_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -15015,7 +15019,7 @@ std::string NMD::SUB_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQ_PH(uint64 instruction) +std::string NMD::SUBQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15040,7 +15044,7 @@ std::string NMD::SUBQ_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQ_S_PH(uint64 instruction) +std::string NMD::SUBQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15065,7 +15069,7 @@ std::string NMD::SUBQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQ_S_W(uint64 instruction) +std::string NMD::SUBQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15090,7 +15094,7 @@ std::string NMD::SUBQ_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQH_PH(uint64 instruction) +std::string NMD::SUBQH_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15115,7 +15119,7 @@ std::string NMD::SUBQH_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQH_R_PH(uint64 instruction) +std::string NMD::SUBQH_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15140,7 +15144,7 @@ std::string NMD::SUBQH_R_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQH_R_W(uint64 instruction) +std::string NMD::SUBQH_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15165,7 +15169,7 @@ std::string NMD::SUBQH_R_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQH_W(uint64 instruction) +std::string NMD::SUBQH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15189,7 +15193,7 @@ std::string NMD::SUBQH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_16_(uint64 instruction) +std::string NMD::SUBU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -15213,7 +15217,7 @@ std::string NMD::SUBU_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_32_(uint64 instruction) +std::string NMD::SUBU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15237,7 +15241,7 @@ std::string NMD::SUBU_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_PH(uint64 instruction) +std::string NMD::SUBU_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15261,7 +15265,7 @@ std::string NMD::SUBU_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_QB(uint64 instruction) +std::string NMD::SUBU_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15286,7 +15290,7 @@ std::string NMD::SUBU_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_S_PH(uint64 instruction) +std::string NMD::SUBU_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15311,7 +15315,7 @@ std::string NMD::SUBU_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_S_QB(uint64 instruction) +std::string NMD::SUBU_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15336,7 +15340,7 @@ std::string NMD::SUBU_S_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBUH_QB(uint64 instruction) +std::string NMD::SUBUH_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15361,7 +15365,7 @@ std::string NMD::SUBUH_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBUH_R_QB(uint64 instruction) +std::string NMD::SUBUH_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15385,7 +15389,7 @@ std::string NMD::SUBUH_R_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_16_(uint64 instruction) +std::string NMD::SW_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -15409,7 +15413,7 @@ std::string NMD::SW_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_4X4_(uint64 instruction) +std::string NMD::SW_4X4_(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -15433,7 +15437,7 @@ std::string NMD::SW_4X4_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_GP16_(uint64 instruction) +std::string NMD::SW_GP16_(uint64 instruction, Dis_info *info) { uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); uint64 rtz3_value = extract_rtz3_9_8_7(instruction); @@ -15455,7 +15459,7 @@ std::string NMD::SW_GP16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_GP_(uint64 instruction) +std::string NMD::SW_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -15477,7 +15481,7 @@ std::string NMD::SW_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_S9_(uint64 instruction) +std::string NMD::SW_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); @@ -15501,7 +15505,7 @@ std::string NMD::SW_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_SP_(uint64 instruction) +std::string NMD::SW_SP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); @@ -15523,7 +15527,7 @@ std::string NMD::SW_SP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_U12_(uint64 instruction) +std::string NMD::SW_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15547,7 +15551,7 @@ std::string NMD::SW_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1_GP_(uint64 instruction) +std::string NMD::SWC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -15569,7 +15573,7 @@ std::string NMD::SWC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1_S9_(uint64 instruction) +std::string NMD::SWC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15593,7 +15597,7 @@ std::string NMD::SWC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1_U12_(uint64 instruction) +std::string NMD::SWC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15617,7 +15621,7 @@ std::string NMD::SWC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1X(uint64 instruction) +std::string NMD::SWC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15641,7 +15645,7 @@ std::string NMD::SWC1X(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1XS(uint64 instruction) +std::string NMD::SWC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15665,7 +15669,7 @@ std::string NMD::SWC1XS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC2(uint64 instruction) +std::string NMD::SWC2(uint64 instruction, Dis_info *info) { uint64 cs_value = extract_cs_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15689,7 +15693,7 @@ std::string NMD::SWC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWE(uint64 instruction) +std::string NMD::SWE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15713,7 +15717,7 @@ std::string NMD::SWE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWM(uint64 instruction) +std::string NMD::SWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15739,13 +15743,13 @@ std::string NMD::SWM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWPC_48_(uint64 instruction) +std::string NMD::SWPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6); + std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); return img_format("SWPC %s, %s", rt, s); } @@ -15761,7 +15765,7 @@ std::string NMD::SWPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWX(uint64 instruction) +std::string NMD::SWX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15785,7 +15789,7 @@ std::string NMD::SWX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWXS(uint64 instruction) +std::string NMD::SWXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15809,7 +15813,7 @@ std::string NMD::SWXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SYNC(uint64 instruction) +std::string NMD::SYNC(uint64 instruction, Dis_info *info) { uint64 stype_value = extract_stype_20_19_18_17_16(instruction); @@ -15829,7 +15833,7 @@ std::string NMD::SYNC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SYNCI(uint64 instruction) +std::string NMD::SYNCI(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); @@ -15851,7 +15855,7 @@ std::string NMD::SYNCI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SYNCIE(uint64 instruction) +std::string NMD::SYNCIE(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); @@ -15873,7 +15877,7 @@ std::string NMD::SYNCIE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SYSCALL_16_(uint64 instruction) +std::string NMD::SYSCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); @@ -15891,7 +15895,7 @@ std::string NMD::SYSCALL_16_(uint64 instruction) * 00000000000010 * code ------------------ */ -std::string NMD::SYSCALL_32_(uint64 instruction) +std::string NMD::SYSCALL_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); @@ -15911,7 +15915,7 @@ std::string NMD::SYSCALL_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TEQ(uint64 instruction) +std::string NMD::TEQ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15933,7 +15937,7 @@ std::string NMD::TEQ(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGINV(uint64 instruction) +std::string NMD::TLBGINV(uint64 instruction, Dis_info *info) { (void)instruction; @@ -15951,7 +15955,7 @@ std::string NMD::TLBGINV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGINVF(uint64 instruction) +std::string NMD::TLBGINVF(uint64 instruction, Dis_info *info) { (void)instruction; @@ -15969,7 +15973,7 @@ std::string NMD::TLBGINVF(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGP(uint64 instruction) +std::string NMD::TLBGP(uint64 instruction, Dis_info *info) { (void)instruction; @@ -15987,7 +15991,7 @@ std::string NMD::TLBGP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGR(uint64 instruction) +std::string NMD::TLBGR(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16005,7 +16009,7 @@ std::string NMD::TLBGR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGWI(uint64 instruction) +std::string NMD::TLBGWI(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16023,7 +16027,7 @@ std::string NMD::TLBGWI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGWR(uint64 instruction) +std::string NMD::TLBGWR(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16041,7 +16045,7 @@ std::string NMD::TLBGWR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBINV(uint64 instruction) +std::string NMD::TLBINV(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16059,7 +16063,7 @@ std::string NMD::TLBINV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBINVF(uint64 instruction) +std::string NMD::TLBINVF(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16077,7 +16081,7 @@ std::string NMD::TLBINVF(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBP(uint64 instruction) +std::string NMD::TLBP(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16095,7 +16099,7 @@ std::string NMD::TLBP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBR(uint64 instruction) +std::string NMD::TLBR(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16113,7 +16117,7 @@ std::string NMD::TLBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBWI(uint64 instruction) +std::string NMD::TLBWI(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16131,7 +16135,7 @@ std::string NMD::TLBWI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBWR(uint64 instruction) +std::string NMD::TLBWR(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16149,7 +16153,7 @@ std::string NMD::TLBWR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TNE(uint64 instruction) +std::string NMD::TNE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16171,7 +16175,7 @@ std::string NMD::TNE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TRUNC_L_D(uint64 instruction) +std::string NMD::TRUNC_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16193,7 +16197,7 @@ std::string NMD::TRUNC_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TRUNC_L_S(uint64 instruction) +std::string NMD::TRUNC_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16215,7 +16219,7 @@ std::string NMD::TRUNC_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TRUNC_W_D(uint64 instruction) +std::string NMD::TRUNC_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16237,7 +16241,7 @@ std::string NMD::TRUNC_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TRUNC_W_S(uint64 instruction) +std::string NMD::TRUNC_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16259,7 +16263,7 @@ std::string NMD::TRUNC_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UALDM(uint64 instruction) +std::string NMD::UALDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16285,7 +16289,7 @@ std::string NMD::UALDM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UALH(uint64 instruction) +std::string NMD::UALH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16309,7 +16313,7 @@ std::string NMD::UALH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UALWM(uint64 instruction) +std::string NMD::UALWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16335,7 +16339,7 @@ std::string NMD::UALWM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UASDM(uint64 instruction) +std::string NMD::UASDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16361,7 +16365,7 @@ std::string NMD::UASDM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UASH(uint64 instruction) +std::string NMD::UASH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16385,7 +16389,7 @@ std::string NMD::UASH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UASWM(uint64 instruction) +std::string NMD::UASWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16411,7 +16415,7 @@ std::string NMD::UASWM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UDI(uint64 instruction) +std::string NMD::UDI(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); @@ -16429,7 +16433,7 @@ std::string NMD::UDI(uint64 instruction) * 001000 1100001101111111 * code ---------- */ -std::string NMD::WAIT(uint64 instruction) +std::string NMD::WAIT(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_25_24_23_22_21_20_19_18_17_16(instruction); @@ -16449,7 +16453,7 @@ std::string NMD::WAIT(uint64 instruction) * rt ----- * mask ------- */ -std::string NMD::WRDSP(uint64 instruction) +std::string NMD::WRDSP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); @@ -16471,7 +16475,7 @@ std::string NMD::WRDSP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::WRPGPR(uint64 instruction) +std::string NMD::WRPGPR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16493,7 +16497,7 @@ std::string NMD::WRPGPR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::XOR_16_(uint64 instruction) +std::string NMD::XOR_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -16515,7 +16519,7 @@ std::string NMD::XOR_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::XOR_32_(uint64 instruction) +std::string NMD::XOR_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16539,7 +16543,7 @@ std::string NMD::XOR_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::XORI(uint64 instruction) +std::string NMD::XORI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16562,7 +16566,7 @@ std::string NMD::XORI(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::YIELD(uint64 instruction) +std::string NMD::YIELD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); diff --git a/disas/nanomips.h b/disas/nanomips.h index 5bdfe1e30b..fcd41c405c 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -60,24 +60,21 @@ enum TABLE_ATTRIBUTE_TYPE { ALL_ATTRIBUTES = 0xffffffffull, }; +typedef struct Dis_info { + img_address m_pc; +} Dis_info; class NMD { public: - NMD(img_address pc) - : m_pc(pc) - { - } - int Disassemble(const uint16 *data, std::string & dis, - TABLE_ENTRY_TYPE & type); + TABLE_ENTRY_TYPE & type, Dis_info *info); private: - img_address m_pc; - - typedef std::string(NMD:: *disassembly_function)(uint64 instruction); + typedef std::string(NMD:: *disassembly_function)(uint64 instruction, + Dis_info *info); typedef bool(NMD:: *conditional_function)(uint64 instruction); struct Pool { @@ -94,7 +91,8 @@ private: uint64 extract_op_code_value(const uint16 *data, int size); int Disassemble(const uint16 *data, std::string & dis, - TABLE_ENTRY_TYPE & type, const Pool *table, int table_size); + TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, + Dis_info *info); uint64 renumber_registers(uint64 index, uint64 *register_list, size_t register_list_size); @@ -135,7 +133,7 @@ private: std::string IMMEDIATE(uint64 value); std::string IMMEDIATE(int64 value); std::string CPR(uint64 reg); - std::string ADDRESS(uint64 value, int instruction_size); + std::string ADDRESS(uint64 value, int instruction_size, Dis_info *info); int64 extract_s__se3_4_2_1_0(uint64 instruction); int64 extract_s__se7_0_6_5_4_3_2_1_s1(uint64 instruction); @@ -251,642 +249,642 @@ private: bool PREFE_cond(uint64 instruction); bool SLTU_cond(uint64 instruction); - std::string ABS_D(uint64 instruction); - std::string ABS_S(uint64 instruction); - std::string ABSQ_S_PH(uint64 instruction); - std::string ABSQ_S_QB(uint64 instruction); - std::string ABSQ_S_W(uint64 instruction); - std::string ACLR(uint64 instruction); - std::string ADD(uint64 instruction); - std::string ADD_D(uint64 instruction); - std::string ADD_S(uint64 instruction); - std::string ADDIU_32_(uint64 instruction); - std::string ADDIU_48_(uint64 instruction); - std::string ADDIU_GP48_(uint64 instruction); - std::string ADDIU_GP_B_(uint64 instruction); - std::string ADDIU_GP_W_(uint64 instruction); - std::string ADDIU_NEG_(uint64 instruction); - std::string ADDIU_R1_SP_(uint64 instruction); - std::string ADDIU_R2_(uint64 instruction); - std::string ADDIU_RS5_(uint64 instruction); - std::string ADDIUPC_32_(uint64 instruction); - std::string ADDIUPC_48_(uint64 instruction); - std::string ADDQ_PH(uint64 instruction); - std::string ADDQ_S_PH(uint64 instruction); - std::string ADDQ_S_W(uint64 instruction); - std::string ADDQH_PH(uint64 instruction); - std::string ADDQH_R_PH(uint64 instruction); - std::string ADDQH_R_W(uint64 instruction); - std::string ADDQH_W(uint64 instruction); - std::string ADDSC(uint64 instruction); - std::string ADDU_16_(uint64 instruction); - std::string ADDU_32_(uint64 instruction); - std::string ADDU_4X4_(uint64 instruction); - std::string ADDU_PH(uint64 instruction); - std::string ADDU_QB(uint64 instruction); - std::string ADDU_S_PH(uint64 instruction); - std::string ADDU_S_QB(uint64 instruction); - std::string ADDUH_QB(uint64 instruction); - std::string ADDUH_R_QB(uint64 instruction); - std::string ADDWC(uint64 instruction); - std::string ALUIPC(uint64 instruction); - std::string AND_16_(uint64 instruction); - std::string AND_32_(uint64 instruction); - std::string ANDI_16_(uint64 instruction); - std::string ANDI_32_(uint64 instruction); - std::string APPEND(uint64 instruction); - std::string ASET(uint64 instruction); - std::string BALC_16_(uint64 instruction); - std::string BALC_32_(uint64 instruction); - std::string BALRSC(uint64 instruction); - std::string BBEQZC(uint64 instruction); - std::string BBNEZC(uint64 instruction); - std::string BC_16_(uint64 instruction); - std::string BC_32_(uint64 instruction); - std::string BC1EQZC(uint64 instruction); - std::string BC1NEZC(uint64 instruction); - std::string BC2EQZC(uint64 instruction); - std::string BC2NEZC(uint64 instruction); - std::string BEQC_16_(uint64 instruction); - std::string BEQC_32_(uint64 instruction); - std::string BEQIC(uint64 instruction); - std::string BEQZC_16_(uint64 instruction); - std::string BGEC(uint64 instruction); - std::string BGEIC(uint64 instruction); - std::string BGEIUC(uint64 instruction); - std::string BGEUC(uint64 instruction); - std::string BLTC(uint64 instruction); - std::string BLTIC(uint64 instruction); - std::string BLTIUC(uint64 instruction); - std::string BLTUC(uint64 instruction); - std::string BNEC_16_(uint64 instruction); - std::string BNEC_32_(uint64 instruction); - std::string BNEIC(uint64 instruction); - std::string BNEZC_16_(uint64 instruction); - std::string BPOSGE32C(uint64 instruction); - std::string BREAK_16_(uint64 instruction); - std::string BREAK_32_(uint64 instruction); - std::string BRSC(uint64 instruction); - std::string CACHE(uint64 instruction); - std::string CACHEE(uint64 instruction); - std::string CEIL_L_D(uint64 instruction); - std::string CEIL_L_S(uint64 instruction); - std::string CEIL_W_D(uint64 instruction); - std::string CEIL_W_S(uint64 instruction); - std::string CFC1(uint64 instruction); - std::string CFC2(uint64 instruction); - std::string CLASS_D(uint64 instruction); - std::string CLASS_S(uint64 instruction); - std::string CLO(uint64 instruction); - std::string CLZ(uint64 instruction); - std::string CMP_AF_D(uint64 instruction); - std::string CMP_AF_S(uint64 instruction); - std::string CMP_EQ_D(uint64 instruction); - std::string CMP_EQ_PH(uint64 instruction); - std::string CMP_EQ_S(uint64 instruction); - std::string CMP_LE_D(uint64 instruction); - std::string CMP_LE_PH(uint64 instruction); - std::string CMP_LE_S(uint64 instruction); - std::string CMP_LT_D(uint64 instruction); - std::string CMP_LT_PH(uint64 instruction); - std::string CMP_LT_S(uint64 instruction); - std::string CMP_NE_D(uint64 instruction); - std::string CMP_NE_S(uint64 instruction); - std::string CMP_OR_D(uint64 instruction); - std::string CMP_OR_S(uint64 instruction); - std::string CMP_SAF_D(uint64 instruction); - std::string CMP_SAF_S(uint64 instruction); - std::string CMP_SEQ_D(uint64 instruction); - std::string CMP_SEQ_S(uint64 instruction); - std::string CMP_SLE_D(uint64 instruction); - std::string CMP_SLE_S(uint64 instruction); - std::string CMP_SLT_D(uint64 instruction); - std::string CMP_SLT_S(uint64 instruction); - std::string CMP_SNE_D(uint64 instruction); - std::string CMP_SNE_S(uint64 instruction); - std::string CMP_SOR_D(uint64 instruction); - std::string CMP_SOR_S(uint64 instruction); - std::string CMP_SUEQ_D(uint64 instruction); - std::string CMP_SUEQ_S(uint64 instruction); - std::string CMP_SULE_D(uint64 instruction); - std::string CMP_SULE_S(uint64 instruction); - std::string CMP_SULT_D(uint64 instruction); - std::string CMP_SULT_S(uint64 instruction); - std::string CMP_SUN_D(uint64 instruction); - std::string CMP_SUN_S(uint64 instruction); - std::string CMP_SUNE_D(uint64 instruction); - std::string CMP_SUNE_S(uint64 instruction); - std::string CMP_UEQ_D(uint64 instruction); - std::string CMP_UEQ_S(uint64 instruction); - std::string CMP_ULE_D(uint64 instruction); - std::string CMP_ULE_S(uint64 instruction); - std::string CMP_ULT_D(uint64 instruction); - std::string CMP_ULT_S(uint64 instruction); - std::string CMP_UN_D(uint64 instruction); - std::string CMP_UN_S(uint64 instruction); - std::string CMP_UNE_D(uint64 instruction); - std::string CMP_UNE_S(uint64 instruction); - std::string CMPGDU_EQ_QB(uint64 instruction); - std::string CMPGDU_LE_QB(uint64 instruction); - std::string CMPGDU_LT_QB(uint64 instruction); - std::string CMPGU_EQ_QB(uint64 instruction); - std::string CMPGU_LE_QB(uint64 instruction); - std::string CMPGU_LT_QB(uint64 instruction); - std::string CMPU_EQ_QB(uint64 instruction); - std::string CMPU_LE_QB(uint64 instruction); - std::string CMPU_LT_QB(uint64 instruction); - std::string COP2_1(uint64 instruction); - std::string CTC1(uint64 instruction); - std::string CTC2(uint64 instruction); - std::string CVT_D_L(uint64 instruction); - std::string CVT_D_S(uint64 instruction); - std::string CVT_D_W(uint64 instruction); - std::string CVT_L_D(uint64 instruction); - std::string CVT_L_S(uint64 instruction); - std::string CVT_S_D(uint64 instruction); - std::string CVT_S_L(uint64 instruction); - std::string CVT_S_PL(uint64 instruction); - std::string CVT_S_PU(uint64 instruction); - std::string CVT_S_W(uint64 instruction); - std::string CVT_W_D(uint64 instruction); - std::string CVT_W_S(uint64 instruction); - std::string DADDIU_48_(uint64 instruction); - std::string DADDIU_NEG_(uint64 instruction); - std::string DADDIU_U12_(uint64 instruction); - std::string DADD(uint64 instruction); - std::string DADDU(uint64 instruction); - std::string DCLO(uint64 instruction); - std::string DCLZ(uint64 instruction); - std::string DDIV(uint64 instruction); - std::string DDIVU(uint64 instruction); - std::string DERET(uint64 instruction); - std::string DEXTM(uint64 instruction); - std::string DEXT(uint64 instruction); - std::string DEXTU(uint64 instruction); - std::string DINSM(uint64 instruction); - std::string DINS(uint64 instruction); - std::string DINSU(uint64 instruction); - std::string DI(uint64 instruction); - std::string DIV(uint64 instruction); - std::string DIV_D(uint64 instruction); - std::string DIV_S(uint64 instruction); - std::string DIVU(uint64 instruction); - std::string DLSA(uint64 instruction); - std::string DLUI_48_(uint64 instruction); - std::string DMFC0(uint64 instruction); - std::string DMFC1(uint64 instruction); - std::string DMFC2(uint64 instruction); - std::string DMFGC0(uint64 instruction); - std::string DMOD(uint64 instruction); - std::string DMODU(uint64 instruction); - std::string DMTC0(uint64 instruction); - std::string DMTC1(uint64 instruction); - std::string DMTC2(uint64 instruction); - std::string DMTGC0(uint64 instruction); - std::string DMT(uint64 instruction); - std::string DMUH(uint64 instruction); - std::string DMUHU(uint64 instruction); - std::string DMUL(uint64 instruction); - std::string DMULU(uint64 instruction); - std::string DPAQ_S_W_PH(uint64 instruction); - std::string DPAQ_SA_L_W(uint64 instruction); - std::string DPAQX_S_W_PH(uint64 instruction); - std::string DPAQX_SA_W_PH(uint64 instruction); - std::string DPAU_H_QBL(uint64 instruction); - std::string DPAU_H_QBR(uint64 instruction); - std::string DPA_W_PH(uint64 instruction); - std::string DPAX_W_PH(uint64 instruction); - std::string DPS_W_PH(uint64 instruction); - std::string DPSQ_SA_L_W(uint64 instruction); - std::string DPSQ_S_W_PH(uint64 instruction); - std::string DPSQX_SA_W_PH(uint64 instruction); - std::string DPSQX_S_W_PH(uint64 instruction); - std::string DPSU_H_QBL(uint64 instruction); - std::string DPSU_H_QBR(uint64 instruction); - std::string DPSX_W_PH(uint64 instruction); - std::string DROTR(uint64 instruction); - std::string DROTR32(uint64 instruction); - std::string DROTRV(uint64 instruction); - std::string DROTX(uint64 instruction); - std::string DSLL(uint64 instruction); - std::string DSLL32(uint64 instruction); - std::string DSLLV(uint64 instruction); - std::string DSRA(uint64 instruction); - std::string DSRA32(uint64 instruction); - std::string DSRAV(uint64 instruction); - std::string DSRL32(uint64 instruction); - std::string DSRL(uint64 instruction); - std::string DSRLV(uint64 instruction); - std::string DSUB(uint64 instruction); - std::string DSUBU(uint64 instruction); - std::string DVP(uint64 instruction); - std::string DVPE(uint64 instruction); - std::string EHB(uint64 instruction); - std::string EI(uint64 instruction); - std::string EMT(uint64 instruction); - std::string ERET(uint64 instruction); - std::string ERETNC(uint64 instruction); - std::string EVP(uint64 instruction); - std::string EVPE(uint64 instruction); - std::string EXT(uint64 instruction); - std::string EXTD(uint64 instruction); - std::string EXTD32(uint64 instruction); - std::string EXTP(uint64 instruction); - std::string EXTPDP(uint64 instruction); - std::string EXTPDPV(uint64 instruction); - std::string EXTPV(uint64 instruction); - std::string EXTR_RS_W(uint64 instruction); - std::string EXTR_R_W(uint64 instruction); - std::string EXTR_S_H(uint64 instruction); - std::string EXTR_W(uint64 instruction); - std::string EXTRV_R_W(uint64 instruction); - std::string EXTRV_RS_W(uint64 instruction); - std::string EXTRV_S_H(uint64 instruction); - std::string EXTRV_W(uint64 instruction); - std::string EXTW(uint64 instruction); - std::string FLOOR_L_D(uint64 instruction); - std::string FLOOR_L_S(uint64 instruction); - std::string FLOOR_W_D(uint64 instruction); - std::string FLOOR_W_S(uint64 instruction); - std::string FORK(uint64 instruction); - std::string HYPCALL(uint64 instruction); - std::string HYPCALL_16_(uint64 instruction); - std::string INS(uint64 instruction); - std::string INSV(uint64 instruction); - std::string IRET(uint64 instruction); - std::string JALRC_16_(uint64 instruction); - std::string JALRC_32_(uint64 instruction); - std::string JALRC_HB(uint64 instruction); - std::string JRC(uint64 instruction); - std::string LB_16_(uint64 instruction); - std::string LB_GP_(uint64 instruction); - std::string LB_S9_(uint64 instruction); - std::string LB_U12_(uint64 instruction); - std::string LBE(uint64 instruction); - std::string LBU_16_(uint64 instruction); - std::string LBU_GP_(uint64 instruction); - std::string LBU_S9_(uint64 instruction); - std::string LBU_U12_(uint64 instruction); - std::string LBUE(uint64 instruction); - std::string LBUX(uint64 instruction); - std::string LBX(uint64 instruction); - std::string LD_GP_(uint64 instruction); - std::string LD_S9_(uint64 instruction); - std::string LD_U12_(uint64 instruction); - std::string LDC1_GP_(uint64 instruction); - std::string LDC1_S9_(uint64 instruction); - std::string LDC1_U12_(uint64 instruction); - std::string LDC1X(uint64 instruction); - std::string LDC1XS(uint64 instruction); - std::string LDC2(uint64 instruction); - std::string LDM(uint64 instruction); - std::string LDPC_48_(uint64 instruction); - std::string LDX(uint64 instruction); - std::string LDXS(uint64 instruction); - std::string LH_16_(uint64 instruction); - std::string LH_GP_(uint64 instruction); - std::string LH_S9_(uint64 instruction); - std::string LH_U12_(uint64 instruction); - std::string LHE(uint64 instruction); - std::string LHU_16_(uint64 instruction); - std::string LHU_GP_(uint64 instruction); - std::string LHU_S9_(uint64 instruction); - std::string LHU_U12_(uint64 instruction); - std::string LHUE(uint64 instruction); - std::string LHUX(uint64 instruction); - std::string LHUXS(uint64 instruction); - std::string LHX(uint64 instruction); - std::string LHXS(uint64 instruction); - std::string LI_16_(uint64 instruction); - std::string LI_48_(uint64 instruction); - std::string LL(uint64 instruction); - std::string LLD(uint64 instruction); - std::string LLDP(uint64 instruction); - std::string LLE(uint64 instruction); - std::string LLWP(uint64 instruction); - std::string LLWPE(uint64 instruction); - std::string LSA(uint64 instruction); - std::string LUI(uint64 instruction); - std::string LW_16_(uint64 instruction); - std::string LW_4X4_(uint64 instruction); - std::string LWC1_GP_(uint64 instruction); - std::string LWC1_S9_(uint64 instruction); - std::string LWC1_U12_(uint64 instruction); - std::string LWC1X(uint64 instruction); - std::string LWC1XS(uint64 instruction); - std::string LWC2(uint64 instruction); - std::string LWE(uint64 instruction); - std::string LW_GP_(uint64 instruction); - std::string LW_GP16_(uint64 instruction); - std::string LWM(uint64 instruction); - std::string LWPC_48_(uint64 instruction); - std::string LW_S9_(uint64 instruction); - std::string LW_SP_(uint64 instruction); - std::string LW_U12_(uint64 instruction); - std::string LWU_GP_(uint64 instruction); - std::string LWU_S9_(uint64 instruction); - std::string LWU_U12_(uint64 instruction); - std::string LWUX(uint64 instruction); - std::string LWUXS(uint64 instruction); - std::string LWX(uint64 instruction); - std::string LWXS_16_(uint64 instruction); - std::string LWXS_32_(uint64 instruction); - std::string MADD_DSP_(uint64 instruction); - std::string MADDF_D(uint64 instruction); - std::string MADDF_S(uint64 instruction); - std::string MADDU_DSP_(uint64 instruction); - std::string MAQ_S_W_PHL(uint64 instruction); - std::string MAQ_S_W_PHR(uint64 instruction); - std::string MAQ_SA_W_PHL(uint64 instruction); - std::string MAQ_SA_W_PHR(uint64 instruction); - std::string MAX_D(uint64 instruction); - std::string MAX_S(uint64 instruction); - std::string MAXA_D(uint64 instruction); - std::string MAXA_S(uint64 instruction); - std::string MFC0(uint64 instruction); - std::string MFC1(uint64 instruction); - std::string MFC2(uint64 instruction); - std::string MFGC0(uint64 instruction); - std::string MFHC0(uint64 instruction); - std::string MFHC1(uint64 instruction); - std::string MFHC2(uint64 instruction); - std::string MFHGC0(uint64 instruction); - std::string MFHI_DSP_(uint64 instruction); - std::string MFHTR(uint64 instruction); - std::string MFLO_DSP_(uint64 instruction); - std::string MFTR(uint64 instruction); - std::string MIN_D(uint64 instruction); - std::string MIN_S(uint64 instruction); - std::string MINA_D(uint64 instruction); - std::string MINA_S(uint64 instruction); - std::string MOD(uint64 instruction); - std::string MODSUB(uint64 instruction); - std::string MODU(uint64 instruction); - std::string MOV_D(uint64 instruction); - std::string MOV_S(uint64 instruction); - std::string MOVE_BALC(uint64 instruction); - std::string MOVEP(uint64 instruction); - std::string MOVEP_REV_(uint64 instruction); - std::string MOVE(uint64 instruction); - std::string MOVN(uint64 instruction); - std::string MOVZ(uint64 instruction); - std::string MSUB_DSP_(uint64 instruction); - std::string MSUBF_D(uint64 instruction); - std::string MSUBF_S(uint64 instruction); - std::string MSUBU_DSP_(uint64 instruction); - std::string MTC0(uint64 instruction); - std::string MTC1(uint64 instruction); - std::string MTC2(uint64 instruction); - std::string MTGC0(uint64 instruction); - std::string MTHC0(uint64 instruction); - std::string MTHC1(uint64 instruction); - std::string MTHC2(uint64 instruction); - std::string MTHGC0(uint64 instruction); - std::string MTHI_DSP_(uint64 instruction); - std::string MTHLIP(uint64 instruction); - std::string MTHTR(uint64 instruction); - std::string MTLO_DSP_(uint64 instruction); - std::string MTTR(uint64 instruction); - std::string MUH(uint64 instruction); - std::string MUHU(uint64 instruction); - std::string MUL_32_(uint64 instruction); - std::string MUL_4X4_(uint64 instruction); - std::string MUL_D(uint64 instruction); - std::string MUL_PH(uint64 instruction); - std::string MUL_S(uint64 instruction); - std::string MUL_S_PH(uint64 instruction); - std::string MULEQ_S_W_PHL(uint64 instruction); - std::string MULEQ_S_W_PHR(uint64 instruction); - std::string MULEU_S_PH_QBL(uint64 instruction); - std::string MULEU_S_PH_QBR(uint64 instruction); - std::string MULQ_RS_PH(uint64 instruction); - std::string MULQ_RS_W(uint64 instruction); - std::string MULQ_S_PH(uint64 instruction); - std::string MULQ_S_W(uint64 instruction); - std::string MULSA_W_PH(uint64 instruction); - std::string MULSAQ_S_W_PH(uint64 instruction); - std::string MULT_DSP_(uint64 instruction); - std::string MULTU_DSP_(uint64 instruction); - std::string MULU(uint64 instruction); - std::string NEG_D(uint64 instruction); - std::string NEG_S(uint64 instruction); - std::string NOP_16_(uint64 instruction); - std::string NOP_32_(uint64 instruction); - std::string NOR(uint64 instruction); - std::string NOT_16_(uint64 instruction); - std::string OR_16_(uint64 instruction); - std::string OR_32_(uint64 instruction); - std::string ORI(uint64 instruction); - std::string PACKRL_PH(uint64 instruction); - std::string PAUSE(uint64 instruction); - std::string PICK_PH(uint64 instruction); - std::string PICK_QB(uint64 instruction); - std::string PRECEQ_W_PHL(uint64 instruction); - std::string PRECEQ_W_PHR(uint64 instruction); - std::string PRECEQU_PH_QBL(uint64 instruction); - std::string PRECEQU_PH_QBLA(uint64 instruction); - std::string PRECEQU_PH_QBR(uint64 instruction); - std::string PRECEQU_PH_QBRA(uint64 instruction); - std::string PRECEU_PH_QBL(uint64 instruction); - std::string PRECEU_PH_QBLA(uint64 instruction); - std::string PRECEU_PH_QBR(uint64 instruction); - std::string PRECEU_PH_QBRA(uint64 instruction); - std::string PRECR_QB_PH(uint64 instruction); - std::string PRECR_SRA_PH_W(uint64 instruction); - std::string PRECR_SRA_R_PH_W(uint64 instruction); - std::string PRECRQ_PH_W(uint64 instruction); - std::string PRECRQ_QB_PH(uint64 instruction); - std::string PRECRQ_RS_PH_W(uint64 instruction); - std::string PRECRQU_S_QB_PH(uint64 instruction); - std::string PREF_S9_(uint64 instruction); - std::string PREF_U12_(uint64 instruction); - std::string PREFE(uint64 instruction); - std::string PREPEND(uint64 instruction); - std::string RADDU_W_QB(uint64 instruction); - std::string RDDSP(uint64 instruction); - std::string RDHWR(uint64 instruction); - std::string RDPGPR(uint64 instruction); - std::string RECIP_D(uint64 instruction); - std::string RECIP_S(uint64 instruction); - std::string REPL_PH(uint64 instruction); - std::string REPL_QB(uint64 instruction); - std::string REPLV_PH(uint64 instruction); - std::string REPLV_QB(uint64 instruction); - std::string RESTORE_32_(uint64 instruction); - std::string RESTORE_JRC_16_(uint64 instruction); - std::string RESTORE_JRC_32_(uint64 instruction); - std::string RESTOREF(uint64 instruction); - std::string RINT_D(uint64 instruction); - std::string RINT_S(uint64 instruction); - std::string ROTR(uint64 instruction); - std::string ROTRV(uint64 instruction); - std::string ROTX(uint64 instruction); - std::string ROUND_L_D(uint64 instruction); - std::string ROUND_L_S(uint64 instruction); - std::string ROUND_W_D(uint64 instruction); - std::string ROUND_W_S(uint64 instruction); - std::string RSQRT_D(uint64 instruction); - std::string RSQRT_S(uint64 instruction); - std::string SAVE_16_(uint64 instruction); - std::string SAVE_32_(uint64 instruction); - std::string SAVEF(uint64 instruction); - std::string SB_16_(uint64 instruction); - std::string SB_GP_(uint64 instruction); - std::string SB_S9_(uint64 instruction); - std::string SB_U12_(uint64 instruction); - std::string SBE(uint64 instruction); - std::string SBX(uint64 instruction); - std::string SC(uint64 instruction); - std::string SCD(uint64 instruction); - std::string SCDP(uint64 instruction); - std::string SCE(uint64 instruction); - std::string SCWP(uint64 instruction); - std::string SCWPE(uint64 instruction); - std::string SD_GP_(uint64 instruction); - std::string SD_S9_(uint64 instruction); - std::string SD_U12_(uint64 instruction); - std::string SDBBP_16_(uint64 instruction); - std::string SDBBP_32_(uint64 instruction); - std::string SDC1_GP_(uint64 instruction); - std::string SDC1_S9_(uint64 instruction); - std::string SDC1_U12_(uint64 instruction); - std::string SDC1X(uint64 instruction); - std::string SDC1XS(uint64 instruction); - std::string SDC2(uint64 instruction); - std::string SDM(uint64 instruction); - std::string SDPC_48_(uint64 instruction); - std::string SDX(uint64 instruction); - std::string SDXS(uint64 instruction); - std::string SEB(uint64 instruction); - std::string SEH(uint64 instruction); - std::string SEL_D(uint64 instruction); - std::string SEL_S(uint64 instruction); - std::string SELEQZ_D(uint64 instruction); - std::string SELEQZ_S(uint64 instruction); - std::string SELNEZ_D(uint64 instruction); - std::string SELNEZ_S(uint64 instruction); - std::string SEQI(uint64 instruction); - std::string SH_16_(uint64 instruction); - std::string SH_GP_(uint64 instruction); - std::string SH_S9_(uint64 instruction); - std::string SH_U12_(uint64 instruction); - std::string SHE(uint64 instruction); - std::string SHILO(uint64 instruction); - std::string SHILOV(uint64 instruction); - std::string SHLL_PH(uint64 instruction); - std::string SHLL_QB(uint64 instruction); - std::string SHLL_S_PH(uint64 instruction); - std::string SHLL_S_W(uint64 instruction); - std::string SHLLV_PH(uint64 instruction); - std::string SHLLV_QB(uint64 instruction); - std::string SHLLV_S_PH(uint64 instruction); - std::string SHLLV_S_W(uint64 instruction); - std::string SHRA_PH(uint64 instruction); - std::string SHRA_QB(uint64 instruction); - std::string SHRA_R_PH(uint64 instruction); - std::string SHRA_R_QB(uint64 instruction); - std::string SHRA_R_W(uint64 instruction); - std::string SHRAV_PH(uint64 instruction); - std::string SHRAV_QB(uint64 instruction); - std::string SHRAV_R_PH(uint64 instruction); - std::string SHRAV_R_QB(uint64 instruction); - std::string SHRAV_R_W(uint64 instruction); - std::string SHRL_PH(uint64 instruction); - std::string SHRL_QB(uint64 instruction); - std::string SHRLV_PH(uint64 instruction); - std::string SHRLV_QB(uint64 instruction); - std::string SHX(uint64 instruction); - std::string SHXS(uint64 instruction); - std::string SIGRIE(uint64 instruction); - std::string SLL_16_(uint64 instruction); - std::string SLL_32_(uint64 instruction); - std::string SLLV(uint64 instruction); - std::string SLT(uint64 instruction); - std::string SLTI(uint64 instruction); - std::string SLTIU(uint64 instruction); - std::string SLTU(uint64 instruction); - std::string SOV(uint64 instruction); - std::string SPECIAL2(uint64 instruction); - std::string SQRT_D(uint64 instruction); - std::string SQRT_S(uint64 instruction); - std::string SRA(uint64 instruction); - std::string SRAV(uint64 instruction); - std::string SRL_16_(uint64 instruction); - std::string SRL_32_(uint64 instruction); - std::string SRLV(uint64 instruction); - std::string SUB(uint64 instruction); - std::string SUB_D(uint64 instruction); - std::string SUB_S(uint64 instruction); - std::string SUBQ_PH(uint64 instruction); - std::string SUBQ_S_PH(uint64 instruction); - std::string SUBQ_S_W(uint64 instruction); - std::string SUBQH_PH(uint64 instruction); - std::string SUBQH_R_PH(uint64 instruction); - std::string SUBQH_R_W(uint64 instruction); - std::string SUBQH_W(uint64 instruction); - std::string SUBU_16_(uint64 instruction); - std::string SUBU_32_(uint64 instruction); - std::string SUBU_PH(uint64 instruction); - std::string SUBU_QB(uint64 instruction); - std::string SUBU_S_PH(uint64 instruction); - std::string SUBU_S_QB(uint64 instruction); - std::string SUBUH_QB(uint64 instruction); - std::string SUBUH_R_QB(uint64 instruction); - std::string SW_16_(uint64 instruction); - std::string SW_4X4_(uint64 instruction); - std::string SW_GP16_(uint64 instruction); - std::string SW_GP_(uint64 instruction); - std::string SW_S9_(uint64 instruction); - std::string SW_SP_(uint64 instruction); - std::string SW_U12_(uint64 instruction); - std::string SWC1_GP_(uint64 instruction); - std::string SWC1_S9_(uint64 instruction); - std::string SWC1_U12_(uint64 instruction); - std::string SWC1X(uint64 instruction); - std::string SWC1XS(uint64 instruction); - std::string SWC2(uint64 instruction); - std::string SWE(uint64 instruction); - std::string SWM(uint64 instruction); - std::string SWPC_48_(uint64 instruction); - std::string SWX(uint64 instruction); - std::string SWXS(uint64 instruction); - std::string SYNC(uint64 instruction); - std::string SYNCI(uint64 instruction); - std::string SYNCIE(uint64 instruction); - std::string SYSCALL_16_(uint64 instruction); - std::string SYSCALL_32_(uint64 instruction); - std::string TEQ(uint64 instruction); - std::string TLBGINV(uint64 instruction); - std::string TLBGINVF(uint64 instruction); - std::string TLBGP(uint64 instruction); - std::string TLBGR(uint64 instruction); - std::string TLBGWI(uint64 instruction); - std::string TLBGWR(uint64 instruction); - std::string TLBINV(uint64 instruction); - std::string TLBINVF(uint64 instruction); - std::string TLBP(uint64 instruction); - std::string TLBR(uint64 instruction); - std::string TLBWI(uint64 instruction); - std::string TLBWR(uint64 instruction); - std::string TNE(uint64 instruction); - std::string TRUNC_L_D(uint64 instruction); - std::string TRUNC_L_S(uint64 instruction); - std::string TRUNC_W_D(uint64 instruction); - std::string TRUNC_W_S(uint64 instruction); - std::string UALDM(uint64 instruction); - std::string UALH(uint64 instruction); - std::string UALWM(uint64 instruction); - std::string UASDM(uint64 instruction); - std::string UASH(uint64 instruction); - std::string UASWM(uint64 instruction); - std::string UDI(uint64 instruction); - std::string WAIT(uint64 instruction); - std::string WRDSP(uint64 instruction); - std::string WRPGPR(uint64 instruction); - std::string XOR_16_(uint64 instruction); - std::string XOR_32_(uint64 instruction); - std::string XORI(uint64 instruction); - std::string YIELD(uint64 instruction); + std::string ABS_D(uint64 instruction, Dis_info *info); + std::string ABS_S(uint64 instruction, Dis_info *info); + std::string ABSQ_S_PH(uint64 instruction, Dis_info *info); + std::string ABSQ_S_QB(uint64 instruction, Dis_info *info); + std::string ABSQ_S_W(uint64 instruction, Dis_info *info); + std::string ACLR(uint64 instruction, Dis_info *info); + std::string ADD(uint64 instruction, Dis_info *info); + std::string ADD_D(uint64 instruction, Dis_info *info); + std::string ADD_S(uint64 instruction, Dis_info *info); + std::string ADDIU_32_(uint64 instruction, Dis_info *info); + std::string ADDIU_48_(uint64 instruction, Dis_info *info); + std::string ADDIU_GP48_(uint64 instruction, Dis_info *info); + std::string ADDIU_GP_B_(uint64 instruction, Dis_info *info); + std::string ADDIU_GP_W_(uint64 instruction, Dis_info *info); + std::string ADDIU_NEG_(uint64 instruction, Dis_info *info); + std::string ADDIU_R1_SP_(uint64 instruction, Dis_info *info); + std::string ADDIU_R2_(uint64 instruction, Dis_info *info); + std::string ADDIU_RS5_(uint64 instruction, Dis_info *info); + std::string ADDIUPC_32_(uint64 instruction, Dis_info *info); + std::string ADDIUPC_48_(uint64 instruction, Dis_info *info); + std::string ADDQ_PH(uint64 instruction, Dis_info *info); + std::string ADDQ_S_PH(uint64 instruction, Dis_info *info); + std::string ADDQ_S_W(uint64 instruction, Dis_info *info); + std::string ADDQH_PH(uint64 instruction, Dis_info *info); + std::string ADDQH_R_PH(uint64 instruction, Dis_info *info); + std::string ADDQH_R_W(uint64 instruction, Dis_info *info); + std::string ADDQH_W(uint64 instruction, Dis_info *info); + std::string ADDSC(uint64 instruction, Dis_info *info); + std::string ADDU_16_(uint64 instruction, Dis_info *info); + std::string ADDU_32_(uint64 instruction, Dis_info *info); + std::string ADDU_4X4_(uint64 instruction, Dis_info *info); + std::string ADDU_PH(uint64 instruction, Dis_info *info); + std::string ADDU_QB(uint64 instruction, Dis_info *info); + std::string ADDU_S_PH(uint64 instruction, Dis_info *info); + std::string ADDU_S_QB(uint64 instruction, Dis_info *info); + std::string ADDUH_QB(uint64 instruction, Dis_info *info); + std::string ADDUH_R_QB(uint64 instruction, Dis_info *info); + std::string ADDWC(uint64 instruction, Dis_info *info); + std::string ALUIPC(uint64 instruction, Dis_info *info); + std::string AND_16_(uint64 instruction, Dis_info *info); + std::string AND_32_(uint64 instruction, Dis_info *info); + std::string ANDI_16_(uint64 instruction, Dis_info *info); + std::string ANDI_32_(uint64 instruction, Dis_info *info); + std::string APPEND(uint64 instruction, Dis_info *info); + std::string ASET(uint64 instruction, Dis_info *info); + std::string BALC_16_(uint64 instruction, Dis_info *info); + std::string BALC_32_(uint64 instruction, Dis_info *info); + std::string BALRSC(uint64 instruction, Dis_info *info); + std::string BBEQZC(uint64 instruction, Dis_info *info); + std::string BBNEZC(uint64 instruction, Dis_info *info); + std::string BC_16_(uint64 instruction, Dis_info *info); + std::string BC_32_(uint64 instruction, Dis_info *info); + std::string BC1EQZC(uint64 instruction, Dis_info *info); + std::string BC1NEZC(uint64 instruction, Dis_info *info); + std::string BC2EQZC(uint64 instruction, Dis_info *info); + std::string BC2NEZC(uint64 instruction, Dis_info *info); + std::string BEQC_16_(uint64 instruction, Dis_info *info); + std::string BEQC_32_(uint64 instruction, Dis_info *info); + std::string BEQIC(uint64 instruction, Dis_info *info); + std::string BEQZC_16_(uint64 instruction, Dis_info *info); + std::string BGEC(uint64 instruction, Dis_info *info); + std::string BGEIC(uint64 instruction, Dis_info *info); + std::string BGEIUC(uint64 instruction, Dis_info *info); + std::string BGEUC(uint64 instruction, Dis_info *info); + std::string BLTC(uint64 instruction, Dis_info *info); + std::string BLTIC(uint64 instruction, Dis_info *info); + std::string BLTIUC(uint64 instruction, Dis_info *info); + std::string BLTUC(uint64 instruction, Dis_info *info); + std::string BNEC_16_(uint64 instruction, Dis_info *info); + std::string BNEC_32_(uint64 instruction, Dis_info *info); + std::string BNEIC(uint64 instruction, Dis_info *info); + std::string BNEZC_16_(uint64 instruction, Dis_info *info); + std::string BPOSGE32C(uint64 instruction, Dis_info *info); + std::string BREAK_16_(uint64 instruction, Dis_info *info); + std::string BREAK_32_(uint64 instruction, Dis_info *info); + std::string BRSC(uint64 instruction, Dis_info *info); + std::string CACHE(uint64 instruction, Dis_info *info); + std::string CACHEE(uint64 instruction, Dis_info *info); + std::string CEIL_L_D(uint64 instruction, Dis_info *info); + std::string CEIL_L_S(uint64 instruction, Dis_info *info); + std::string CEIL_W_D(uint64 instruction, Dis_info *info); + std::string CEIL_W_S(uint64 instruction, Dis_info *info); + std::string CFC1(uint64 instruction, Dis_info *info); + std::string CFC2(uint64 instruction, Dis_info *info); + std::string CLASS_D(uint64 instruction, Dis_info *info); + std::string CLASS_S(uint64 instruction, Dis_info *info); + std::string CLO(uint64 instruction, Dis_info *info); + std::string CLZ(uint64 instruction, Dis_info *info); + std::string CMP_AF_D(uint64 instruction, Dis_info *info); + std::string CMP_AF_S(uint64 instruction, Dis_info *info); + std::string CMP_EQ_D(uint64 instruction, Dis_info *info); + std::string CMP_EQ_PH(uint64 instruction, Dis_info *info); + std::string CMP_EQ_S(uint64 instruction, Dis_info *info); + std::string CMP_LE_D(uint64 instruction, Dis_info *info); + std::string CMP_LE_PH(uint64 instruction, Dis_info *info); + std::string CMP_LE_S(uint64 instruction, Dis_info *info); + std::string CMP_LT_D(uint64 instruction, Dis_info *info); + std::string CMP_LT_PH(uint64 instruction, Dis_info *info); + std::string CMP_LT_S(uint64 instruction, Dis_info *info); + std::string CMP_NE_D(uint64 instruction, Dis_info *info); + std::string CMP_NE_S(uint64 instruction, Dis_info *info); + std::string CMP_OR_D(uint64 instruction, Dis_info *info); + std::string CMP_OR_S(uint64 instruction, Dis_info *info); + std::string CMP_SAF_D(uint64 instruction, Dis_info *info); + std::string CMP_SAF_S(uint64 instruction, Dis_info *info); + std::string CMP_SEQ_D(uint64 instruction, Dis_info *info); + std::string CMP_SEQ_S(uint64 instruction, Dis_info *info); + std::string CMP_SLE_D(uint64 instruction, Dis_info *info); + std::string CMP_SLE_S(uint64 instruction, Dis_info *info); + std::string CMP_SLT_D(uint64 instruction, Dis_info *info); + std::string CMP_SLT_S(uint64 instruction, Dis_info *info); + std::string CMP_SNE_D(uint64 instruction, Dis_info *info); + std::string CMP_SNE_S(uint64 instruction, Dis_info *info); + std::string CMP_SOR_D(uint64 instruction, Dis_info *info); + std::string CMP_SOR_S(uint64 instruction, Dis_info *info); + std::string CMP_SUEQ_D(uint64 instruction, Dis_info *info); + std::string CMP_SUEQ_S(uint64 instruction, Dis_info *info); + std::string CMP_SULE_D(uint64 instruction, Dis_info *info); + std::string CMP_SULE_S(uint64 instruction, Dis_info *info); + std::string CMP_SULT_D(uint64 instruction, Dis_info *info); + std::string CMP_SULT_S(uint64 instruction, Dis_info *info); + std::string CMP_SUN_D(uint64 instruction, Dis_info *info); + std::string CMP_SUN_S(uint64 instruction, Dis_info *info); + std::string CMP_SUNE_D(uint64 instruction, Dis_info *info); + std::string CMP_SUNE_S(uint64 instruction, Dis_info *info); + std::string CMP_UEQ_D(uint64 instruction, Dis_info *info); + std::string CMP_UEQ_S(uint64 instruction, Dis_info *info); + std::string CMP_ULE_D(uint64 instruction, Dis_info *info); + std::string CMP_ULE_S(uint64 instruction, Dis_info *info); + std::string CMP_ULT_D(uint64 instruction, Dis_info *info); + std::string CMP_ULT_S(uint64 instruction, Dis_info *info); + std::string CMP_UN_D(uint64 instruction, Dis_info *info); + std::string CMP_UN_S(uint64 instruction, Dis_info *info); + std::string CMP_UNE_D(uint64 instruction, Dis_info *info); + std::string CMP_UNE_S(uint64 instruction, Dis_info *info); + std::string CMPGDU_EQ_QB(uint64 instruction, Dis_info *info); + std::string CMPGDU_LE_QB(uint64 instruction, Dis_info *info); + std::string CMPGDU_LT_QB(uint64 instruction, Dis_info *info); + std::string CMPGU_EQ_QB(uint64 instruction, Dis_info *info); + std::string CMPGU_LE_QB(uint64 instruction, Dis_info *info); + std::string CMPGU_LT_QB(uint64 instruction, Dis_info *info); + std::string CMPU_EQ_QB(uint64 instruction, Dis_info *info); + std::string CMPU_LE_QB(uint64 instruction, Dis_info *info); + std::string CMPU_LT_QB(uint64 instruction, Dis_info *info); + std::string COP2_1(uint64 instruction, Dis_info *info); + std::string CTC1(uint64 instruction, Dis_info *info); + std::string CTC2(uint64 instruction, Dis_info *info); + std::string CVT_D_L(uint64 instruction, Dis_info *info); + std::string CVT_D_S(uint64 instruction, Dis_info *info); + std::string CVT_D_W(uint64 instruction, Dis_info *info); + std::string CVT_L_D(uint64 instruction, Dis_info *info); + std::string CVT_L_S(uint64 instruction, Dis_info *info); + std::string CVT_S_D(uint64 instruction, Dis_info *info); + std::string CVT_S_L(uint64 instruction, Dis_info *info); + std::string CVT_S_PL(uint64 instruction, Dis_info *info); + std::string CVT_S_PU(uint64 instruction, Dis_info *info); + std::string CVT_S_W(uint64 instruction, Dis_info *info); + std::string CVT_W_D(uint64 instruction, Dis_info *info); + std::string CVT_W_S(uint64 instruction, Dis_info *info); + std::string DADDIU_48_(uint64 instruction, Dis_info *info); + std::string DADDIU_NEG_(uint64 instruction, Dis_info *info); + std::string DADDIU_U12_(uint64 instruction, Dis_info *info); + std::string DADD(uint64 instruction, Dis_info *info); + std::string DADDU(uint64 instruction, Dis_info *info); + std::string DCLO(uint64 instruction, Dis_info *info); + std::string DCLZ(uint64 instruction, Dis_info *info); + std::string DDIV(uint64 instruction, Dis_info *info); + std::string DDIVU(uint64 instruction, Dis_info *info); + std::string DERET(uint64 instruction, Dis_info *info); + std::string DEXTM(uint64 instruction, Dis_info *info); + std::string DEXT(uint64 instruction, Dis_info *info); + std::string DEXTU(uint64 instruction, Dis_info *info); + std::string DINSM(uint64 instruction, Dis_info *info); + std::string DINS(uint64 instruction, Dis_info *info); + std::string DINSU(uint64 instruction, Dis_info *info); + std::string DI(uint64 instruction, Dis_info *info); + std::string DIV(uint64 instruction, Dis_info *info); + std::string DIV_D(uint64 instruction, Dis_info *info); + std::string DIV_S(uint64 instruction, Dis_info *info); + std::string DIVU(uint64 instruction, Dis_info *info); + std::string DLSA(uint64 instruction, Dis_info *info); + std::string DLUI_48_(uint64 instruction, Dis_info *info); + std::string DMFC0(uint64 instruction, Dis_info *info); + std::string DMFC1(uint64 instruction, Dis_info *info); + std::string DMFC2(uint64 instruction, Dis_info *info); + std::string DMFGC0(uint64 instruction, Dis_info *info); + std::string DMOD(uint64 instruction, Dis_info *info); + std::string DMODU(uint64 instruction, Dis_info *info); + std::string DMTC0(uint64 instruction, Dis_info *info); + std::string DMTC1(uint64 instruction, Dis_info *info); + std::string DMTC2(uint64 instruction, Dis_info *info); + std::string DMTGC0(uint64 instruction, Dis_info *info); + std::string DMT(uint64 instruction, Dis_info *info); + std::string DMUH(uint64 instruction, Dis_info *info); + std::string DMUHU(uint64 instruction, Dis_info *info); + std::string DMUL(uint64 instruction, Dis_info *info); + std::string DMULU(uint64 instruction, Dis_info *info); + std::string DPAQ_S_W_PH(uint64 instruction, Dis_info *info); + std::string DPAQ_SA_L_W(uint64 instruction, Dis_info *info); + std::string DPAQX_S_W_PH(uint64 instruction, Dis_info *info); + std::string DPAQX_SA_W_PH(uint64 instruction, Dis_info *info); + std::string DPAU_H_QBL(uint64 instruction, Dis_info *info); + std::string DPAU_H_QBR(uint64 instruction, Dis_info *info); + std::string DPA_W_PH(uint64 instruction, Dis_info *info); + std::string DPAX_W_PH(uint64 instruction, Dis_info *info); + std::string DPS_W_PH(uint64 instruction, Dis_info *info); + std::string DPSQ_SA_L_W(uint64 instruction, Dis_info *info); + std::string DPSQ_S_W_PH(uint64 instruction, Dis_info *info); + std::string DPSQX_SA_W_PH(uint64 instruction, Dis_info *info); + std::string DPSQX_S_W_PH(uint64 instruction, Dis_info *info); + std::string DPSU_H_QBL(uint64 instruction, Dis_info *info); + std::string DPSU_H_QBR(uint64 instruction, Dis_info *info); + std::string DPSX_W_PH(uint64 instruction, Dis_info *info); + std::string DROTR(uint64 instruction, Dis_info *info); + std::string DROTR32(uint64 instruction, Dis_info *info); + std::string DROTRV(uint64 instruction, Dis_info *info); + std::string DROTX(uint64 instruction, Dis_info *info); + std::string DSLL(uint64 instruction, Dis_info *info); + std::string DSLL32(uint64 instruction, Dis_info *info); + std::string DSLLV(uint64 instruction, Dis_info *info); + std::string DSRA(uint64 instruction, Dis_info *info); + std::string DSRA32(uint64 instruction, Dis_info *info); + std::string DSRAV(uint64 instruction, Dis_info *info); + std::string DSRL32(uint64 instruction, Dis_info *info); + std::string DSRL(uint64 instruction, Dis_info *info); + std::string DSRLV(uint64 instruction, Dis_info *info); + std::string DSUB(uint64 instruction, Dis_info *info); + std::string DSUBU(uint64 instruction, Dis_info *info); + std::string DVP(uint64 instruction, Dis_info *info); + std::string DVPE(uint64 instruction, Dis_info *info); + std::string EHB(uint64 instruction, Dis_info *info); + std::string EI(uint64 instruction, Dis_info *info); + std::string EMT(uint64 instruction, Dis_info *info); + std::string ERET(uint64 instruction, Dis_info *info); + std::string ERETNC(uint64 instruction, Dis_info *info); + std::string EVP(uint64 instruction, Dis_info *info); + std::string EVPE(uint64 instruction, Dis_info *info); + std::string EXT(uint64 instruction, Dis_info *info); + std::string EXTD(uint64 instruction, Dis_info *info); + std::string EXTD32(uint64 instruction, Dis_info *info); + std::string EXTP(uint64 instruction, Dis_info *info); + std::string EXTPDP(uint64 instruction, Dis_info *info); + std::string EXTPDPV(uint64 instruction, Dis_info *info); + std::string EXTPV(uint64 instruction, Dis_info *info); + std::string EXTR_RS_W(uint64 instruction, Dis_info *info); + std::string EXTR_R_W(uint64 instruction, Dis_info *info); + std::string EXTR_S_H(uint64 instruction, Dis_info *info); + std::string EXTR_W(uint64 instruction, Dis_info *info); + std::string EXTRV_R_W(uint64 instruction, Dis_info *info); + std::string EXTRV_RS_W(uint64 instruction, Dis_info *info); + std::string EXTRV_S_H(uint64 instruction, Dis_info *info); + std::string EXTRV_W(uint64 instruction, Dis_info *info); + std::string EXTW(uint64 instruction, Dis_info *info); + std::string FLOOR_L_D(uint64 instruction, Dis_info *info); + std::string FLOOR_L_S(uint64 instruction, Dis_info *info); + std::string FLOOR_W_D(uint64 instruction, Dis_info *info); + std::string FLOOR_W_S(uint64 instruction, Dis_info *info); + std::string FORK(uint64 instruction, Dis_info *info); + std::string HYPCALL(uint64 instruction, Dis_info *info); + std::string HYPCALL_16_(uint64 instruction, Dis_info *info); + std::string INS(uint64 instruction, Dis_info *info); + std::string INSV(uint64 instruction, Dis_info *info); + std::string IRET(uint64 instruction, Dis_info *info); + std::string JALRC_16_(uint64 instruction, Dis_info *info); + std::string JALRC_32_(uint64 instruction, Dis_info *info); + std::string JALRC_HB(uint64 instruction, Dis_info *info); + std::string JRC(uint64 instruction, Dis_info *info); + std::string LB_16_(uint64 instruction, Dis_info *info); + std::string LB_GP_(uint64 instruction, Dis_info *info); + std::string LB_S9_(uint64 instruction, Dis_info *info); + std::string LB_U12_(uint64 instruction, Dis_info *info); + std::string LBE(uint64 instruction, Dis_info *info); + std::string LBU_16_(uint64 instruction, Dis_info *info); + std::string LBU_GP_(uint64 instruction, Dis_info *info); + std::string LBU_S9_(uint64 instruction, Dis_info *info); + std::string LBU_U12_(uint64 instruction, Dis_info *info); + std::string LBUE(uint64 instruction, Dis_info *info); + std::string LBUX(uint64 instruction, Dis_info *info); + std::string LBX(uint64 instruction, Dis_info *info); + std::string LD_GP_(uint64 instruction, Dis_info *info); + std::string LD_S9_(uint64 instruction, Dis_info *info); + std::string LD_U12_(uint64 instruction, Dis_info *info); + std::string LDC1_GP_(uint64 instruction, Dis_info *info); + std::string LDC1_S9_(uint64 instruction, Dis_info *info); + std::string LDC1_U12_(uint64 instruction, Dis_info *info); + std::string LDC1X(uint64 instruction, Dis_info *info); + std::string LDC1XS(uint64 instruction, Dis_info *info); + std::string LDC2(uint64 instruction, Dis_info *info); + std::string LDM(uint64 instruction, Dis_info *info); + std::string LDPC_48_(uint64 instruction, Dis_info *info); + std::string LDX(uint64 instruction, Dis_info *info); + std::string LDXS(uint64 instruction, Dis_info *info); + std::string LH_16_(uint64 instruction, Dis_info *info); + std::string LH_GP_(uint64 instruction, Dis_info *info); + std::string LH_S9_(uint64 instruction, Dis_info *info); + std::string LH_U12_(uint64 instruction, Dis_info *info); + std::string LHE(uint64 instruction, Dis_info *info); + std::string LHU_16_(uint64 instruction, Dis_info *info); + std::string LHU_GP_(uint64 instruction, Dis_info *info); + std::string LHU_S9_(uint64 instruction, Dis_info *info); + std::string LHU_U12_(uint64 instruction, Dis_info *info); + std::string LHUE(uint64 instruction, Dis_info *info); + std::string LHUX(uint64 instruction, Dis_info *info); + std::string LHUXS(uint64 instruction, Dis_info *info); + std::string LHX(uint64 instruction, Dis_info *info); + std::string LHXS(uint64 instruction, Dis_info *info); + std::string LI_16_(uint64 instruction, Dis_info *info); + std::string LI_48_(uint64 instruction, Dis_info *info); + std::string LL(uint64 instruction, Dis_info *info); + std::string LLD(uint64 instruction, Dis_info *info); + std::string LLDP(uint64 instruction, Dis_info *info); + std::string LLE(uint64 instruction, Dis_info *info); + std::string LLWP(uint64 instruction, Dis_info *info); + std::string LLWPE(uint64 instruction, Dis_info *info); + std::string LSA(uint64 instruction, Dis_info *info); + std::string LUI(uint64 instruction, Dis_info *info); + std::string LW_16_(uint64 instruction, Dis_info *info); + std::string LW_4X4_(uint64 instruction, Dis_info *info); + std::string LWC1_GP_(uint64 instruction, Dis_info *info); + std::string LWC1_S9_(uint64 instruction, Dis_info *info); + std::string LWC1_U12_(uint64 instruction, Dis_info *info); + std::string LWC1X(uint64 instruction, Dis_info *info); + std::string LWC1XS(uint64 instruction, Dis_info *info); + std::string LWC2(uint64 instruction, Dis_info *info); + std::string LWE(uint64 instruction, Dis_info *info); + std::string LW_GP_(uint64 instruction, Dis_info *info); + std::string LW_GP16_(uint64 instruction, Dis_info *info); + std::string LWM(uint64 instruction, Dis_info *info); + std::string LWPC_48_(uint64 instruction, Dis_info *info); + std::string LW_S9_(uint64 instruction, Dis_info *info); + std::string LW_SP_(uint64 instruction, Dis_info *info); + std::string LW_U12_(uint64 instruction, Dis_info *info); + std::string LWU_GP_(uint64 instruction, Dis_info *info); + std::string LWU_S9_(uint64 instruction, Dis_info *info); + std::string LWU_U12_(uint64 instruction, Dis_info *info); + std::string LWUX(uint64 instruction, Dis_info *info); + std::string LWUXS(uint64 instruction, Dis_info *info); + std::string LWX(uint64 instruction, Dis_info *info); + std::string LWXS_16_(uint64 instruction, Dis_info *info); + std::string LWXS_32_(uint64 instruction, Dis_info *info); + std::string MADD_DSP_(uint64 instruction, Dis_info *info); + std::string MADDF_D(uint64 instruction, Dis_info *info); + std::string MADDF_S(uint64 instruction, Dis_info *info); + std::string MADDU_DSP_(uint64 instruction, Dis_info *info); + std::string MAQ_S_W_PHL(uint64 instruction, Dis_info *info); + std::string MAQ_S_W_PHR(uint64 instruction, Dis_info *info); + std::string MAQ_SA_W_PHL(uint64 instruction, Dis_info *info); + std::string MAQ_SA_W_PHR(uint64 instruction, Dis_info *info); + std::string MAX_D(uint64 instruction, Dis_info *info); + std::string MAX_S(uint64 instruction, Dis_info *info); + std::string MAXA_D(uint64 instruction, Dis_info *info); + std::string MAXA_S(uint64 instruction, Dis_info *info); + std::string MFC0(uint64 instruction, Dis_info *info); + std::string MFC1(uint64 instruction, Dis_info *info); + std::string MFC2(uint64 instruction, Dis_info *info); + std::string MFGC0(uint64 instruction, Dis_info *info); + std::string MFHC0(uint64 instruction, Dis_info *info); + std::string MFHC1(uint64 instruction, Dis_info *info); + std::string MFHC2(uint64 instruction, Dis_info *info); + std::string MFHGC0(uint64 instruction, Dis_info *info); + std::string MFHI_DSP_(uint64 instruction, Dis_info *info); + std::string MFHTR(uint64 instruction, Dis_info *info); + std::string MFLO_DSP_(uint64 instruction, Dis_info *info); + std::string MFTR(uint64 instruction, Dis_info *info); + std::string MIN_D(uint64 instruction, Dis_info *info); + std::string MIN_S(uint64 instruction, Dis_info *info); + std::string MINA_D(uint64 instruction, Dis_info *info); + std::string MINA_S(uint64 instruction, Dis_info *info); + std::string MOD(uint64 instruction, Dis_info *info); + std::string MODSUB(uint64 instruction, Dis_info *info); + std::string MODU(uint64 instruction, Dis_info *info); + std::string MOV_D(uint64 instruction, Dis_info *info); + std::string MOV_S(uint64 instruction, Dis_info *info); + std::string MOVE_BALC(uint64 instruction, Dis_info *info); + std::string MOVEP(uint64 instruction, Dis_info *info); + std::string MOVEP_REV_(uint64 instruction, Dis_info *info); + std::string MOVE(uint64 instruction, Dis_info *info); + std::string MOVN(uint64 instruction, Dis_info *info); + std::string MOVZ(uint64 instruction, Dis_info *info); + std::string MSUB_DSP_(uint64 instruction, Dis_info *info); + std::string MSUBF_D(uint64 instruction, Dis_info *info); + std::string MSUBF_S(uint64 instruction, Dis_info *info); + std::string MSUBU_DSP_(uint64 instruction, Dis_info *info); + std::string MTC0(uint64 instruction, Dis_info *info); + std::string MTC1(uint64 instruction, Dis_info *info); + std::string MTC2(uint64 instruction, Dis_info *info); + std::string MTGC0(uint64 instruction, Dis_info *info); + std::string MTHC0(uint64 instruction, Dis_info *info); + std::string MTHC1(uint64 instruction, Dis_info *info); + std::string MTHC2(uint64 instruction, Dis_info *info); + std::string MTHGC0(uint64 instruction, Dis_info *info); + std::string MTHI_DSP_(uint64 instruction, Dis_info *info); + std::string MTHLIP(uint64 instruction, Dis_info *info); + std::string MTHTR(uint64 instruction, Dis_info *info); + std::string MTLO_DSP_(uint64 instruction, Dis_info *info); + std::string MTTR(uint64 instruction, Dis_info *info); + std::string MUH(uint64 instruction, Dis_info *info); + std::string MUHU(uint64 instruction, Dis_info *info); + std::string MUL_32_(uint64 instruction, Dis_info *info); + std::string MUL_4X4_(uint64 instruction, Dis_info *info); + std::string MUL_D(uint64 instruction, Dis_info *info); + std::string MUL_PH(uint64 instruction, Dis_info *info); + std::string MUL_S(uint64 instruction, Dis_info *info); + std::string MUL_S_PH(uint64 instruction, Dis_info *info); + std::string MULEQ_S_W_PHL(uint64 instruction, Dis_info *info); + std::string MULEQ_S_W_PHR(uint64 instruction, Dis_info *info); + std::string MULEU_S_PH_QBL(uint64 instruction, Dis_info *info); + std::string MULEU_S_PH_QBR(uint64 instruction, Dis_info *info); + std::string MULQ_RS_PH(uint64 instruction, Dis_info *info); + std::string MULQ_RS_W(uint64 instruction, Dis_info *info); + std::string MULQ_S_PH(uint64 instruction, Dis_info *info); + std::string MULQ_S_W(uint64 instruction, Dis_info *info); + std::string MULSA_W_PH(uint64 instruction, Dis_info *info); + std::string MULSAQ_S_W_PH(uint64 instruction, Dis_info *info); + std::string MULT_DSP_(uint64 instruction, Dis_info *info); + std::string MULTU_DSP_(uint64 instruction, Dis_info *info); + std::string MULU(uint64 instruction, Dis_info *info); + std::string NEG_D(uint64 instruction, Dis_info *info); + std::string NEG_S(uint64 instruction, Dis_info *info); + std::string NOP_16_(uint64 instruction, Dis_info *info); + std::string NOP_32_(uint64 instruction, Dis_info *info); + std::string NOR(uint64 instruction, Dis_info *info); + std::string NOT_16_(uint64 instruction, Dis_info *info); + std::string OR_16_(uint64 instruction, Dis_info *info); + std::string OR_32_(uint64 instruction, Dis_info *info); + std::string ORI(uint64 instruction, Dis_info *info); + std::string PACKRL_PH(uint64 instruction, Dis_info *info); + std::string PAUSE(uint64 instruction, Dis_info *info); + std::string PICK_PH(uint64 instruction, Dis_info *info); + std::string PICK_QB(uint64 instruction, Dis_info *info); + std::string PRECEQ_W_PHL(uint64 instruction, Dis_info *info); + std::string PRECEQ_W_PHR(uint64 instruction, Dis_info *info); + std::string PRECEQU_PH_QBL(uint64 instruction, Dis_info *info); + std::string PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info); + std::string PRECEQU_PH_QBR(uint64 instruction, Dis_info *info); + std::string PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info); + std::string PRECEU_PH_QBL(uint64 instruction, Dis_info *info); + std::string PRECEU_PH_QBLA(uint64 instruction, Dis_info *info); + std::string PRECEU_PH_QBR(uint64 instruction, Dis_info *info); + std::string PRECEU_PH_QBRA(uint64 instruction, Dis_info *info); + std::string PRECR_QB_PH(uint64 instruction, Dis_info *info); + std::string PRECR_SRA_PH_W(uint64 instruction, Dis_info *info); + std::string PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info); + std::string PRECRQ_PH_W(uint64 instruction, Dis_info *info); + std::string PRECRQ_QB_PH(uint64 instruction, Dis_info *info); + std::string PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info); + std::string PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info); + std::string PREF_S9_(uint64 instruction, Dis_info *info); + std::string PREF_U12_(uint64 instruction, Dis_info *info); + std::string PREFE(uint64 instruction, Dis_info *info); + std::string PREPEND(uint64 instruction, Dis_info *info); + std::string RADDU_W_QB(uint64 instruction, Dis_info *info); + std::string RDDSP(uint64 instruction, Dis_info *info); + std::string RDHWR(uint64 instruction, Dis_info *info); + std::string RDPGPR(uint64 instruction, Dis_info *info); + std::string RECIP_D(uint64 instruction, Dis_info *info); + std::string RECIP_S(uint64 instruction, Dis_info *info); + std::string REPL_PH(uint64 instruction, Dis_info *info); + std::string REPL_QB(uint64 instruction, Dis_info *info); + std::string REPLV_PH(uint64 instruction, Dis_info *info); + std::string REPLV_QB(uint64 instruction, Dis_info *info); + std::string RESTORE_32_(uint64 instruction, Dis_info *info); + std::string RESTORE_JRC_16_(uint64 instruction, Dis_info *info); + std::string RESTORE_JRC_32_(uint64 instruction, Dis_info *info); + std::string RESTOREF(uint64 instruction, Dis_info *info); + std::string RINT_D(uint64 instruction, Dis_info *info); + std::string RINT_S(uint64 instruction, Dis_info *info); + std::string ROTR(uint64 instruction, Dis_info *info); + std::string ROTRV(uint64 instruction, Dis_info *info); + std::string ROTX(uint64 instruction, Dis_info *info); + std::string ROUND_L_D(uint64 instruction, Dis_info *info); + std::string ROUND_L_S(uint64 instruction, Dis_info *info); + std::string ROUND_W_D(uint64 instruction, Dis_info *info); + std::string ROUND_W_S(uint64 instruction, Dis_info *info); + std::string RSQRT_D(uint64 instruction, Dis_info *info); + std::string RSQRT_S(uint64 instruction, Dis_info *info); + std::string SAVE_16_(uint64 instruction, Dis_info *info); + std::string SAVE_32_(uint64 instruction, Dis_info *info); + std::string SAVEF(uint64 instruction, Dis_info *info); + std::string SB_16_(uint64 instruction, Dis_info *info); + std::string SB_GP_(uint64 instruction, Dis_info *info); + std::string SB_S9_(uint64 instruction, Dis_info *info); + std::string SB_U12_(uint64 instruction, Dis_info *info); + std::string SBE(uint64 instruction, Dis_info *info); + std::string SBX(uint64 instruction, Dis_info *info); + std::string SC(uint64 instruction, Dis_info *info); + std::string SCD(uint64 instruction, Dis_info *info); + std::string SCDP(uint64 instruction, Dis_info *info); + std::string SCE(uint64 instruction, Dis_info *info); + std::string SCWP(uint64 instruction, Dis_info *info); + std::string SCWPE(uint64 instruction, Dis_info *info); + std::string SD_GP_(uint64 instruction, Dis_info *info); + std::string SD_S9_(uint64 instruction, Dis_info *info); + std::string SD_U12_(uint64 instruction, Dis_info *info); + std::string SDBBP_16_(uint64 instruction, Dis_info *info); + std::string SDBBP_32_(uint64 instruction, Dis_info *info); + std::string SDC1_GP_(uint64 instruction, Dis_info *info); + std::string SDC1_S9_(uint64 instruction, Dis_info *info); + std::string SDC1_U12_(uint64 instruction, Dis_info *info); + std::string SDC1X(uint64 instruction, Dis_info *info); + std::string SDC1XS(uint64 instruction, Dis_info *info); + std::string SDC2(uint64 instruction, Dis_info *info); + std::string SDM(uint64 instruction, Dis_info *info); + std::string SDPC_48_(uint64 instruction, Dis_info *info); + std::string SDX(uint64 instruction, Dis_info *info); + std::string SDXS(uint64 instruction, Dis_info *info); + std::string SEB(uint64 instruction, Dis_info *info); + std::string SEH(uint64 instruction, Dis_info *info); + std::string SEL_D(uint64 instruction, Dis_info *info); + std::string SEL_S(uint64 instruction, Dis_info *info); + std::string SELEQZ_D(uint64 instruction, Dis_info *info); + std::string SELEQZ_S(uint64 instruction, Dis_info *info); + std::string SELNEZ_D(uint64 instruction, Dis_info *info); + std::string SELNEZ_S(uint64 instruction, Dis_info *info); + std::string SEQI(uint64 instruction, Dis_info *info); + std::string SH_16_(uint64 instruction, Dis_info *info); + std::string SH_GP_(uint64 instruction, Dis_info *info); + std::string SH_S9_(uint64 instruction, Dis_info *info); + std::string SH_U12_(uint64 instruction, Dis_info *info); + std::string SHE(uint64 instruction, Dis_info *info); + std::string SHILO(uint64 instruction, Dis_info *info); + std::string SHILOV(uint64 instruction, Dis_info *info); + std::string SHLL_PH(uint64 instruction, Dis_info *info); + std::string SHLL_QB(uint64 instruction, Dis_info *info); + std::string SHLL_S_PH(uint64 instruction, Dis_info *info); + std::string SHLL_S_W(uint64 instruction, Dis_info *info); + std::string SHLLV_PH(uint64 instruction, Dis_info *info); + std::string SHLLV_QB(uint64 instruction, Dis_info *info); + std::string SHLLV_S_PH(uint64 instruction, Dis_info *info); + std::string SHLLV_S_W(uint64 instruction, Dis_info *info); + std::string SHRA_PH(uint64 instruction, Dis_info *info); + std::string SHRA_QB(uint64 instruction, Dis_info *info); + std::string SHRA_R_PH(uint64 instruction, Dis_info *info); + std::string SHRA_R_QB(uint64 instruction, Dis_info *info); + std::string SHRA_R_W(uint64 instruction, Dis_info *info); + std::string SHRAV_PH(uint64 instruction, Dis_info *info); + std::string SHRAV_QB(uint64 instruction, Dis_info *info); + std::string SHRAV_R_PH(uint64 instruction, Dis_info *info); + std::string SHRAV_R_QB(uint64 instruction, Dis_info *info); + std::string SHRAV_R_W(uint64 instruction, Dis_info *info); + std::string SHRL_PH(uint64 instruction, Dis_info *info); + std::string SHRL_QB(uint64 instruction, Dis_info *info); + std::string SHRLV_PH(uint64 instruction, Dis_info *info); + std::string SHRLV_QB(uint64 instruction, Dis_info *info); + std::string SHX(uint64 instruction, Dis_info *info); + std::string SHXS(uint64 instruction, Dis_info *info); + std::string SIGRIE(uint64 instruction, Dis_info *info); + std::string SLL_16_(uint64 instruction, Dis_info *info); + std::string SLL_32_(uint64 instruction, Dis_info *info); + std::string SLLV(uint64 instruction, Dis_info *info); + std::string SLT(uint64 instruction, Dis_info *info); + std::string SLTI(uint64 instruction, Dis_info *info); + std::string SLTIU(uint64 instruction, Dis_info *info); + std::string SLTU(uint64 instruction, Dis_info *info); + std::string SOV(uint64 instruction, Dis_info *info); + std::string SPECIAL2(uint64 instruction, Dis_info *info); + std::string SQRT_D(uint64 instruction, Dis_info *info); + std::string SQRT_S(uint64 instruction, Dis_info *info); + std::string SRA(uint64 instruction, Dis_info *info); + std::string SRAV(uint64 instruction, Dis_info *info); + std::string SRL_16_(uint64 instruction, Dis_info *info); + std::string SRL_32_(uint64 instruction, Dis_info *info); + std::string SRLV(uint64 instruction, Dis_info *info); + std::string SUB(uint64 instruction, Dis_info *info); + std::string SUB_D(uint64 instruction, Dis_info *info); + std::string SUB_S(uint64 instruction, Dis_info *info); + std::string SUBQ_PH(uint64 instruction, Dis_info *info); + std::string SUBQ_S_PH(uint64 instruction, Dis_info *info); + std::string SUBQ_S_W(uint64 instruction, Dis_info *info); + std::string SUBQH_PH(uint64 instruction, Dis_info *info); + std::string SUBQH_R_PH(uint64 instruction, Dis_info *info); + std::string SUBQH_R_W(uint64 instruction, Dis_info *info); + std::string SUBQH_W(uint64 instruction, Dis_info *info); + std::string SUBU_16_(uint64 instruction, Dis_info *info); + std::string SUBU_32_(uint64 instruction, Dis_info *info); + std::string SUBU_PH(uint64 instruction, Dis_info *info); + std::string SUBU_QB(uint64 instruction, Dis_info *info); + std::string SUBU_S_PH(uint64 instruction, Dis_info *info); + std::string SUBU_S_QB(uint64 instruction, Dis_info *info); + std::string SUBUH_QB(uint64 instruction, Dis_info *info); + std::string SUBUH_R_QB(uint64 instruction, Dis_info *info); + std::string SW_16_(uint64 instruction, Dis_info *info); + std::string SW_4X4_(uint64 instruction, Dis_info *info); + std::string SW_GP16_(uint64 instruction, Dis_info *info); + std::string SW_GP_(uint64 instruction, Dis_info *info); + std::string SW_S9_(uint64 instruction, Dis_info *info); + std::string SW_SP_(uint64 instruction, Dis_info *info); + std::string SW_U12_(uint64 instruction, Dis_info *info); + std::string SWC1_GP_(uint64 instruction, Dis_info *info); + std::string SWC1_S9_(uint64 instruction, Dis_info *info); + std::string SWC1_U12_(uint64 instruction, Dis_info *info); + std::string SWC1X(uint64 instruction, Dis_info *info); + std::string SWC1XS(uint64 instruction, Dis_info *info); + std::string SWC2(uint64 instruction, Dis_info *info); + std::string SWE(uint64 instruction, Dis_info *info); + std::string SWM(uint64 instruction, Dis_info *info); + std::string SWPC_48_(uint64 instruction, Dis_info *info); + std::string SWX(uint64 instruction, Dis_info *info); + std::string SWXS(uint64 instruction, Dis_info *info); + std::string SYNC(uint64 instruction, Dis_info *info); + std::string SYNCI(uint64 instruction, Dis_info *info); + std::string SYNCIE(uint64 instruction, Dis_info *info); + std::string SYSCALL_16_(uint64 instruction, Dis_info *info); + std::string SYSCALL_32_(uint64 instruction, Dis_info *info); + std::string TEQ(uint64 instruction, Dis_info *info); + std::string TLBGINV(uint64 instruction, Dis_info *info); + std::string TLBGINVF(uint64 instruction, Dis_info *info); + std::string TLBGP(uint64 instruction, Dis_info *info); + std::string TLBGR(uint64 instruction, Dis_info *info); + std::string TLBGWI(uint64 instruction, Dis_info *info); + std::string TLBGWR(uint64 instruction, Dis_info *info); + std::string TLBINV(uint64 instruction, Dis_info *info); + std::string TLBINVF(uint64 instruction, Dis_info *info); + std::string TLBP(uint64 instruction, Dis_info *info); + std::string TLBR(uint64 instruction, Dis_info *info); + std::string TLBWI(uint64 instruction, Dis_info *info); + std::string TLBWR(uint64 instruction, Dis_info *info); + std::string TNE(uint64 instruction, Dis_info *info); + std::string TRUNC_L_D(uint64 instruction, Dis_info *info); + std::string TRUNC_L_S(uint64 instruction, Dis_info *info); + std::string TRUNC_W_D(uint64 instruction, Dis_info *info); + std::string TRUNC_W_S(uint64 instruction, Dis_info *info); + std::string UALDM(uint64 instruction, Dis_info *info); + std::string UALH(uint64 instruction, Dis_info *info); + std::string UALWM(uint64 instruction, Dis_info *info); + std::string UASDM(uint64 instruction, Dis_info *info); + std::string UASH(uint64 instruction, Dis_info *info); + std::string UASWM(uint64 instruction, Dis_info *info); + std::string UDI(uint64 instruction, Dis_info *info); + std::string WAIT(uint64 instruction, Dis_info *info); + std::string WRDSP(uint64 instruction, Dis_info *info); + std::string WRPGPR(uint64 instruction, Dis_info *info); + std::string XOR_16_(uint64 instruction, Dis_info *info); + std::string XOR_32_(uint64 instruction, Dis_info *info); + std::string XORI(uint64 instruction, Dis_info *info); + std::string YIELD(uint64 instruction, Dis_info *info); static Pool P_SYSCALL[2]; static Pool P_RI[4]; From patchwork Mon Sep 12 12:26:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973624 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D841EECAAD5 for ; Mon, 12 Sep 2022 12:38:42 +0000 (UTC) Received: from localhost ([::1]:39758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXii1-0003YH-UT for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:38:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYL-0003tM-Lb for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:28:42 -0400 Received: from mail-db8eur05on2095.outbound.protection.outlook.com ([40.107.20.95]:56929 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYG-0005mE-Vz for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:28:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XVGpkHs+3T031Y4XJ8UktB/dCE12hI+MsS5gPYi+BS7ZAMlr623+AmmrGySqi6J6XxlcyxfNNTTJGrrSyD9a8VRfq6giE8ZZx05O86nC4J0XjlXK/Fjgj76QED6/ZwnZNqbbXOT3wPTcqx6MctUpob1JRvuVGdoJ5dbn6nPr7Ppe5lMSgwCTa4eXjToxjjoXTbqF/1FK05tOphyLwlvgIV4m1WTByFz3626HG3dsu4FUFlZJpRvyYF57GP9lemsb0RQddUKOBlWeae3uupzGxyyvIc94tmq1gRtY4ZpSL/2krxOExy6vJ1TUYYqsJPWthCFZizp8BbnNREKFwmkYCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tbx0ZB1BVjv1kDBX4C9RfHrYu26WAOE9uG+/pLdTWVQ=; b=dBvcHUb/EffoIguhhqF3hlzw/6bp+5lAca1d8ppRq1cJP5dDLJBkwZY2I2G26pbN4wAjp1eTfTt2JJAEAKPSbt1MVxXcraktK+hf7K7k4GjXxRo+64bbYqTcxKsKr1uF3EIXDuPPaxXaLBi3lxaaxHkOo90uKqOM3HT2OBp5P+hvkYutVfq/aAwfOOPKcGM4m/bP2Q9neY382apLKo9B+HKwOmqeCA27GL3utj394VWaTdloE9gA/q4zdr7GXBmmh/JJIpRn/jsEXWvrCLIKq/f+Qe1ucd8xg0jlVoFhudZV6E9oBvhTYln7LKRMzQ7nkQS1Q757uHIYBT6P0lQQ7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tbx0ZB1BVjv1kDBX4C9RfHrYu26WAOE9uG+/pLdTWVQ=; b=CZAqUvjq/J9SOvdVt625ExLJYEzRkodV3QjV36ldKfMwl9fmxQ31fbW8pmkgPjWTbhzQETDohvtBGbUB9nfS7hMHw6QGUQ+PcLq7x2dFFb1LCqlpKFUIz6X0csIElnjdlUPXXWejMe++Io21RvcQnCJswC6/xUAC3LYY3rki2cY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS2PR03MB9768.eurprd03.prod.outlook.com (2603:10a6:20b:60b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:28:32 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:28:32 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 05/24] disas/nanomips: Remove helper methods from class Date: Mon, 12 Sep 2022 14:26:16 +0200 Message-Id: <20220912122635.74032-6-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS2PR03MB9768:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b55f44a-7de6-4956-3d63-08da94ba4deb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MOxeJuGnmwE9Q+dQtPG0YzplAai+GvbzCD/tdcFO4CSN6X0WxJ+4LUSzuByJRc+B2j9qAsve1WhhVURBpeyYX84SAgdTWUlEcWGJIKYChpftAK83QPZmXijWhnC3SUrXoho8EZWdzzuNK9/wp6/Lf8LDvoNVthrFcKGXzjzQxGPUEgpUB6Qx+peZD4L4XcxLSlYswXrmntQlHYs1VYm6R4wBz+uR/aWcLX6BRtQrCSVr0KTEfild40bgTfR/4q2Ud5J7DdMOxDmlh3Rou6bIL14cDGqR2tghKcLWMNpipPpy9dREtF9ZuJl5UsuAv7kicvVY//S/Q+jfFULRUBdJOELI2ZqYKJLJ8EcJOJEwb9LJiezifmhu6uLvsfaETYBXLsCWyc2QaIXah3jOzre8Ml0HBKx8T2DzLUAXtI4STx4OAHjjfkpVPP9a+Aq5T1FpmtkeVeKQhnHBHL+YZA0RBruW2EcsSy/S4s1lZIO6sSzU0PCPlQ93utFVsx/k9BWAPqRmgvJJC8KZ1xMZ299cqIRkHtQMEhnQobsV4MS2w2yDNvIAuq1cMGBv9vWB2xkUR5fY4Mfa5TG01S8q2/AlyE+dTBTYvm/2W4ffRrnsFRImiFfPr0dHvh40QdMx/bPJXSHYV60IGq+TJCUZWBUY9CYdLx5ZMx8HIh+Tmq8SUHHpt8AJ1qiRspk1MdTgKa7RypM4wgyoMxto5FLzZ8Ch2a9xQ9Mk4uGU954+S/1TLof+7RO9mcHRWEItiHDwPgzf X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(396003)(376002)(39840400004)(136003)(346002)(366004)(86362001)(66946007)(8676002)(38100700002)(66556008)(66476007)(4326008)(36756003)(38350700002)(186003)(83380400001)(2616005)(52116002)(6512007)(26005)(478600001)(107886003)(6486002)(41300700001)(6506007)(6666004)(2906002)(6916009)(316002)(1076003)(5660300002)(8936002)(44832011)(30864003)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +HA8tZ0ezjYwxu+ZJ2r689Our3lWREecWo0kzRcZ2BaqyIVY4240pk2dhDmy/WFEn8iXylAuyoMtJY35PMML0ry9r2/c/9m3Oa2zuhYnPmdqut+6YSUpBE1XfeUE3WcewaKngHm9ryJgSDdkDmUg+2vrXcw5MQ2tqIGo/U9p6Z+dDWWa/NanPanmsgza5ZEmWLsGWCE7TZfswxFs5zlvn8krZAqNRrpPD+SbFv0dTCF32aZuxyjYzMS0foRDMYnlMIGAvZtyGIZcpAQ14isTd+uP4ywOkgBnskSpGilWPB16Y+nB1tfrijJsAL67HG2Jc9zKaq+/n2/LMXi44xMig74MY06vxp7ihGP9KwOVVTCPIBgpcMDQ/sp0U8hoeZRegKP14IWQIDJQNzol4YAYtbHafSSDLQEWAp7ogzdY92Xn12Prj2uonpetN5pjtBHbNVApkiM+7x0dzDIevxk1kAXIurr/D0P0+HOklk7eKhS0fcSX8wZ0uXnFd7UryDdjGHxHmWZFGBchb5NGbUi+S4fl8Axs5lApbVWQFjjDIymskk6wFBxM+Yu1i1CvDJ54m1j/ewu3/XxoL5DbQkJrwXFpVtlU7zLjaMDoV2/5VBz6w7N2uVc40/nRPCM6IKoBp6zXLv6heT5GVQl9EWHxiOXxIy0liq7rJDFmBg/wGjaAiCtBqdOLD4Jz5t7UBcZEAnXZHmiBtQ2y9XpCtzBule39YGYekyl9wPCFCyAeo0V5K1YLPeEvFMgnJoUxmMGcqHYdYJDL/Gl240/K2KRueeAtAShBhcKigIxO6F8J2Iz0z38eg5WhFbgdL+Fcc0XxSmzygL2qp3Iz8gXcEiYdcHD+KdJizrjusZIAB+m/9LRKOmDqk8VjAxK9dNx2zwvKnvW4gBQFVtuXFnnA855aquV9O2DnfMJ8vNrnUk8GrauQP5T6O6p5gV5KPBkAF2ELKMAgBrSQ4ZejDSE/RZgh2oqUyIoFhyubtmucHo9rswJpOErcHl8JGATYSQI/CPyEwPPl7mKkwAAjq6jFdt2hVGde5VydhukmzR8eJcRYaaG6yMb6nPnm3MklxLjqLbWtVDLi4XS31qjAS+pINpcrg8IPY4m+cR3x3oqufejxvvwsib+MlZkApoYMDBgsZRbtihlj/b/lsf/0Z0pfEwJ7rqB0liI0PXp0tQaqW+unptnGwm4EzIREawiBOok1LU8onYpb1jSZrqGRb+YsM7J87obF0JDgMHhKvw5OXjHbSWDUAKnYcl0Lplp51XsVXoslpNDWtwJBMOjbxuF+KyPf94js1WHIRS/JQdQACd4D0pSqmIgH8Nq7aJe9j1Rang0nTqMrMEP/JIqg02vqYa18CNtQgj9Sa7jH4W0TIQ/VT+NFWOY+F8cejemrzfAcbPmU41Qw6EH+vD8jwDEaAobr0JSZv5AxbkdLbP7SFaZaJ0yNV7rqxEs9t8hyGTUoSvXAjFpOJXuXVB6nYTGaeaGivqiiEj5i+5lyatjaja2cBA2C2zpkw8IcNmkRLTWU8lLkoyR0GJQdT11HA+Em/SBwbuNMV8Kp2c1XS1zOxpeupW0o+eyFHpQXlCGJ/A29HPiLvW1auROi6or8AiIAaie2uQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b55f44a-7de6-4956-3d63-08da94ba4deb X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:28:32.0311 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: E2x7ln4W2IKh1T4Lft/LH82X26EnMfUKyV1FP37xgMI3Oy5aRqpuBfaQfBvYGIpnov3C7Lqn9ZcZu4XFnt2snMAavzfizueoALMpQVAaA+s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB9768 Received-SPF: pass client-ip=40.107.20.95; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Helper methods from NMD class like NMD::renumber_registers, NMD::decode_gpr_gpr4... etc. are removed from the class. They're now declared global static functions. Following helper methods have been deleted because they're not used by the nanomips disassembler: - NMD::encode_msbd_from_pos_and_size, - NMD::encode_s_from_s_hi, - NMD::neg_copy Global functions used by those methods: - nanomips_dis - sign_extend - extract_bits have also been defined as static global functions. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 328 +++++++++++++++++++++------------------------ disas/nanomips.h | 144 -------------------- 2 files changed, 154 insertions(+), 318 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 9005f26ee3..271afcde07 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -41,7 +41,7 @@ #define IMGASSERTONCE(test) -int nanomips_dis(char *buf, +static int nanomips_dis(char *buf, Dis_info *info, unsigned short one, unsigned short two, @@ -259,20 +259,20 @@ std::string to_string(img_address a) } -uint64 extract_bits(uint64 data, uint32 bit_offset, uint32 bit_size) +static uint64 extract_bits(uint64 data, uint32 bit_offset, uint32 bit_size) { return (data << (64 - (bit_size + bit_offset))) >> (64 - bit_size); } -int64 sign_extend(int64 data, int msb) +static int64 sign_extend(int64 data, int msb) { uint64 shift = 63 - msb; return (data << shift) >> shift; } -uint64 NMD::renumber_registers(uint64 index, uint64 *register_list, +static uint64 renumber_registers(uint64 index, uint64 *register_list, size_t register_list_size) { if (index < register_list_size) { @@ -287,7 +287,7 @@ uint64 NMD::renumber_registers(uint64 index, uint64 *register_list, /* - * NMD::decode_gpr_gpr4() - decoder for 'gpr4' gpr encoding type + * decode_gpr_gpr4() - decoder for 'gpr4' gpr encoding type * * Map a 4-bit code to the 5-bit register space according to this pattern: * @@ -312,7 +312,7 @@ uint64 NMD::renumber_registers(uint64 index, uint64 *register_list, * - MUL[4X4] * - SW[4X4] */ -uint64 NMD::decode_gpr_gpr4(uint64 d) +static uint64 decode_gpr_gpr4(uint64 d) { static uint64 register_list[] = { 8, 9, 10, 11, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23 }; @@ -322,7 +322,7 @@ uint64 NMD::decode_gpr_gpr4(uint64 d) /* - * NMD::decode_gpr_gpr4_zero() - decoder for 'gpr4.zero' gpr encoding type + * decode_gpr_gpr4_zero() - decoder for 'gpr4.zero' gpr encoding type * * Map a 4-bit code to the 5-bit register space according to this pattern: * @@ -348,7 +348,7 @@ uint64 NMD::decode_gpr_gpr4(uint64 d) * - MOVEP * - SW[4X4] */ -uint64 NMD::decode_gpr_gpr4_zero(uint64 d) +static uint64 decode_gpr_gpr4_zero(uint64 d) { static uint64 register_list[] = { 8, 9, 10, 0, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23 }; @@ -358,7 +358,7 @@ uint64 NMD::decode_gpr_gpr4_zero(uint64 d) /* - * NMD::decode_gpr_gpr3() - decoder for 'gpr3' gpr encoding type + * decode_gpr_gpr3() - decoder for 'gpr3' gpr encoding type * * Map a 3-bit code to the 5-bit register space according to this pattern: * @@ -407,7 +407,7 @@ uint64 NMD::decode_gpr_gpr4_zero(uint64 d) * - SW[16] * - XOR[16] */ -uint64 NMD::decode_gpr_gpr3(uint64 d) +static uint64 decode_gpr_gpr3(uint64 d) { static uint64 register_list[] = { 16, 17, 18, 19, 4, 5, 6, 7 }; return renumber_registers(d, register_list, @@ -416,7 +416,7 @@ uint64 NMD::decode_gpr_gpr3(uint64 d) /* - * NMD::decode_gpr_gpr3_src_store() - decoder for 'gpr3.src.store' gpr encoding + * decode_gpr_gpr3_src_store() - decoder for 'gpr3.src.store' gpr encoding * type * * Map a 3-bit code to the 5-bit register space according to this pattern: @@ -447,7 +447,7 @@ uint64 NMD::decode_gpr_gpr3(uint64 d) * - SW[16] * - SW[GP16] */ -uint64 NMD::decode_gpr_gpr3_src_store(uint64 d) +static uint64 decode_gpr_gpr3_src_store(uint64 d) { static uint64 register_list[] = { 0, 17, 18, 19, 4, 5, 6, 7 }; return renumber_registers(d, register_list, @@ -456,7 +456,7 @@ uint64 NMD::decode_gpr_gpr3_src_store(uint64 d) /* - * NMD::decode_gpr_gpr2_reg1() - decoder for 'gpr2.reg1' gpr encoding type + * decode_gpr_gpr2_reg1() - decoder for 'gpr2.reg1' gpr encoding type * * Map a 2-bit code to the 5-bit register space according to this pattern: * @@ -477,7 +477,7 @@ uint64 NMD::decode_gpr_gpr3_src_store(uint64 d) * - MOVEP * - MOVEP[REV] */ -uint64 NMD::decode_gpr_gpr2_reg1(uint64 d) +static uint64 decode_gpr_gpr2_reg1(uint64 d) { static uint64 register_list[] = { 4, 5, 6, 7 }; return renumber_registers(d, register_list, @@ -486,7 +486,7 @@ uint64 NMD::decode_gpr_gpr2_reg1(uint64 d) /* - * NMD::decode_gpr_gpr2_reg2() - decoder for 'gpr2.reg2' gpr encoding type + * decode_gpr_gpr2_reg2() - decoder for 'gpr2.reg2' gpr encoding type * * Map a 2-bit code to the 5-bit register space according to this pattern: * @@ -507,7 +507,7 @@ uint64 NMD::decode_gpr_gpr2_reg1(uint64 d) * - MOVEP * - MOVEP[REV] */ -uint64 NMD::decode_gpr_gpr2_reg2(uint64 d) +static uint64 decode_gpr_gpr2_reg2(uint64 d) { static uint64 register_list[] = { 5, 6, 7, 8 }; return renumber_registers(d, register_list, @@ -516,7 +516,7 @@ uint64 NMD::decode_gpr_gpr2_reg2(uint64 d) /* - * NMD::decode_gpr_gpr1() - decoder for 'gpr1' gpr encoding type + * decode_gpr_gpr1() - decoder for 'gpr1' gpr encoding type * * Map a 1-bit code to the 5-bit register space according to this pattern: * @@ -536,7 +536,7 @@ uint64 NMD::decode_gpr_gpr2_reg2(uint64 d) * * - MOVE.BALC */ -uint64 NMD::decode_gpr_gpr1(uint64 d) +static uint64 decode_gpr_gpr1(uint64 d) { static uint64 register_list[] = { 4, 5 }; return renumber_registers(d, register_list, @@ -544,73 +544,60 @@ uint64 NMD::decode_gpr_gpr1(uint64 d) } -uint64 NMD::copy(uint64 d) +static uint64 copy(uint64 d) { return d; } -int64 NMD::copy(int64 d) +static int64 copy(int64 d) { return d; } -int64 NMD::neg_copy(uint64 d) +static int64 neg_copy(uint64 d) { return 0ll - d; } -int64 NMD::neg_copy(int64 d) -{ - return -d; -} - - /* strange wrapper around gpr3 */ -uint64 NMD::encode_rs3_and_check_rs3_ge_rt3(uint64 d) +static uint64 encode_rs3_and_check_rs3_ge_rt3(uint64 d) { return decode_gpr_gpr3(d); } /* strange wrapper around gpr3 */ -uint64 NMD::encode_rs3_and_check_rs3_lt_rt3(uint64 d) +static uint64 encode_rs3_and_check_rs3_lt_rt3(uint64 d) { return decode_gpr_gpr3(d); } /* nop - done by extraction function */ -uint64 NMD::encode_s_from_address(uint64 d) +static uint64 encode_s_from_address(uint64 d) { return d; } /* nop - done by extraction function */ -uint64 NMD::encode_u_from_address(uint64 d) +static uint64 encode_u_from_address(uint64 d) { return d; } -/* nop - done by extraction function */ -uint64 NMD::encode_s_from_s_hi(uint64 d) -{ - return d; -} - - -uint64 NMD::encode_count3_from_count(uint64 d) +static uint64 encode_count3_from_count(uint64 d) { IMGASSERTONCE(d < 8); return d == 0ull ? 8ull : d; } -uint64 NMD::encode_shift3_from_shift(uint64 d) +static uint64 encode_shift3_from_shift(uint64 d) { IMGASSERTONCE(d < 8); return d == 0ull ? 8ull : d; @@ -618,21 +605,21 @@ uint64 NMD::encode_shift3_from_shift(uint64 d) /* special value for load literal */ -int64 NMD::encode_eu_from_s_li16(uint64 d) +static int64 encode_eu_from_s_li16(uint64 d) { IMGASSERTONCE(d < 128); return d == 127 ? -1 : (int64)d; } -uint64 NMD::encode_msbd_from_size(uint64 d) +static uint64 encode_msbd_from_size(uint64 d) { IMGASSERTONCE(d < 32); return d + 1; } -uint64 NMD::encode_eu_from_u_andi16(uint64 d) +static uint64 encode_eu_from_u_andi16(uint64 d) { IMGASSERTONCE(d < 16); if (d == 12) { @@ -645,42 +632,21 @@ uint64 NMD::encode_eu_from_u_andi16(uint64 d) } -uint64 NMD::encode_msbd_from_pos_and_size(uint64 d) -{ - IMGASSERTONCE(0); - return d; -} - - /* save16 / restore16 ???? */ -uint64 NMD::encode_rt1_from_rt(uint64 d) +static uint64 encode_rt1_from_rt(uint64 d) { return d ? 31 : 30; } /* ? */ -uint64 NMD::encode_lsb_from_pos_and_size(uint64 d) +static uint64 encode_lsb_from_pos_and_size(uint64 d) { return d; } -std::string NMD::save_restore_list(uint64 rt, uint64 count, uint64 gp) -{ - std::string str; - - for (uint64 counter = 0; counter != count; counter++) { - bool use_gp = gp && (counter == count - 1); - uint64 this_rt = use_gp ? 28 : ((rt & 0x10) | (rt + counter)) & 0x1f; - str += img_format(",%s", GPR(this_rt)); - } - - return str; -} - - -std::string NMD::GPR(uint64 reg) +static std::string GPR(uint64 reg) { static const char *gpr_reg[32] = { "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", @@ -698,7 +664,21 @@ std::string NMD::GPR(uint64 reg) } -std::string NMD::FPR(uint64 reg) +static std::string save_restore_list(uint64 rt, uint64 count, uint64 gp) +{ + std::string str; + + for (uint64 counter = 0; counter != count; counter++) { + bool use_gp = gp && (counter == count - 1); + uint64 this_rt = use_gp ? 28 : ((rt & 0x10) | (rt + counter)) & 0x1f; + str += img_format(",%s", GPR(this_rt)); + } + + return str; +} + + +static std::string FPR(uint64 reg) { static const char *fpr_reg[32] = { "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", @@ -716,7 +696,7 @@ std::string NMD::FPR(uint64 reg) } -std::string NMD::AC(uint64 reg) +static std::string AC(uint64 reg) { static const char *ac_reg[4] = { "ac0", "ac1", "ac2", "ac3" @@ -731,26 +711,26 @@ std::string NMD::AC(uint64 reg) } -std::string NMD::IMMEDIATE(uint64 value) +static std::string IMMEDIATE(uint64 value) { return img_format("0x%" PRIx64, value); } -std::string NMD::IMMEDIATE(int64 value) +static std::string IMMEDIATE(int64 value) { return img_format("%" PRId64, value); } -std::string NMD::CPR(uint64 reg) +static std::string CPR(uint64 reg) { /* needs more work */ return img_format("CP%" PRIu64, reg); } -std::string NMD::ADDRESS(uint64 value, int instruction_size, Dis_info *info) +static std::string ADDRESS(uint64 value, int instruction_size, Dis_info *info) { /* token for string replace */ img_address address = info->m_pc + value + instruction_size; @@ -849,7 +829,7 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, } -uint64 NMD::extract_code_18_to_0(uint64 instruction) +static uint64 extract_code_18_to_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 19); @@ -857,7 +837,7 @@ uint64 NMD::extract_code_18_to_0(uint64 instruction) } -uint64 NMD::extract_shift3_2_1_0(uint64 instruction) +static uint64 extract_shift3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 3); @@ -865,7 +845,7 @@ uint64 NMD::extract_shift3_2_1_0(uint64 instruction) } -uint64 NMD::extract_u_11_10_9_8_7_6_5_4_3__s3(uint64 instruction) +static uint64 extract_u_11_10_9_8_7_6_5_4_3__s3(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 3, 9) << 3; @@ -873,7 +853,7 @@ uint64 NMD::extract_u_11_10_9_8_7_6_5_4_3__s3(uint64 instruction) } -uint64 NMD::extract_count_3_2_1_0(uint64 instruction) +static uint64 extract_count_3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 4); @@ -881,7 +861,7 @@ uint64 NMD::extract_count_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_rtz3_9_8_7(uint64 instruction) +static uint64 extract_rtz3_9_8_7(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 7, 3); @@ -889,7 +869,7 @@ uint64 NMD::extract_rtz3_9_8_7(uint64 instruction) } -uint64 NMD::extract_u_17_to_1__s1(uint64 instruction) +static uint64 extract_u_17_to_1__s1(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 1, 17) << 1; @@ -897,7 +877,7 @@ uint64 NMD::extract_u_17_to_1__s1(uint64 instruction) } -int64 NMD::extract_s__se9_20_19_18_17_16_15_14_13_12_11(uint64 instruction) +static int64 extract_s__se9_20_19_18_17_16_15_14_13_12_11(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 11, 10); @@ -906,7 +886,7 @@ int64 NMD::extract_s__se9_20_19_18_17_16_15_14_13_12_11(uint64 instruction) } -int64 NMD::extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(uint64 instruction) +static int64 extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 1) << 11; @@ -916,7 +896,7 @@ int64 NMD::extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(uint64 instruction) } -uint64 NMD::extract_u_10(uint64 instruction) +static uint64 extract_u_10(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 10, 1); @@ -924,7 +904,7 @@ uint64 NMD::extract_u_10(uint64 instruction) } -uint64 NMD::extract_rtz4_27_26_25_23_22_21(uint64 instruction) +static uint64 extract_rtz4_27_26_25_23_22_21(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 21, 3); @@ -933,7 +913,7 @@ uint64 NMD::extract_rtz4_27_26_25_23_22_21(uint64 instruction) } -uint64 NMD::extract_sa_15_14_13_12_11(uint64 instruction) +static uint64 extract_sa_15_14_13_12_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 11, 5); @@ -941,7 +921,7 @@ uint64 NMD::extract_sa_15_14_13_12_11(uint64 instruction) } -uint64 NMD::extract_shift_4_3_2_1_0(uint64 instruction) +static uint64 extract_shift_4_3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 5); @@ -949,7 +929,7 @@ uint64 NMD::extract_shift_4_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_shiftx_10_9_8_7__s1(uint64 instruction) +static uint64 extract_shiftx_10_9_8_7__s1(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 7, 4) << 1; @@ -957,7 +937,7 @@ uint64 NMD::extract_shiftx_10_9_8_7__s1(uint64 instruction) } -uint64 NMD::extract_hint_25_24_23_22_21(uint64 instruction) +static uint64 extract_hint_25_24_23_22_21(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 21, 5); @@ -965,7 +945,7 @@ uint64 NMD::extract_hint_25_24_23_22_21(uint64 instruction) } -uint64 NMD::extract_count3_14_13_12(uint64 instruction) +static uint64 extract_count3_14_13_12(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 12, 3); @@ -973,7 +953,7 @@ uint64 NMD::extract_count3_14_13_12(uint64 instruction) } -int64 NMD::extract_s__se31_0_11_to_2_20_to_12_s12(uint64 instruction) +static int64 extract_s__se31_0_11_to_2_20_to_12_s12(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 1) << 31; @@ -984,7 +964,7 @@ int64 NMD::extract_s__se31_0_11_to_2_20_to_12_s12(uint64 instruction) } -int64 NMD::extract_s__se7_0_6_5_4_3_2_1_s1(uint64 instruction) +static int64 extract_s__se7_0_6_5_4_3_2_1_s1(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 1) << 7; @@ -994,7 +974,7 @@ int64 NMD::extract_s__se7_0_6_5_4_3_2_1_s1(uint64 instruction) } -uint64 NMD::extract_u2_10_9(uint64 instruction) +static uint64 extract_u2_10_9(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 9, 2); @@ -1002,7 +982,7 @@ uint64 NMD::extract_u2_10_9(uint64 instruction) } -uint64 NMD::extract_code_25_24_23_22_21_20_19_18_17_16(uint64 instruction) +static uint64 extract_code_25_24_23_22_21_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 10); @@ -1010,7 +990,7 @@ uint64 NMD::extract_code_25_24_23_22_21_20_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_rs_20_19_18_17_16(uint64 instruction) +static uint64 extract_rs_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 5); @@ -1018,7 +998,7 @@ uint64 NMD::extract_rs_20_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_u_2_1__s1(uint64 instruction) +static uint64 extract_u_2_1__s1(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 1, 2) << 1; @@ -1026,7 +1006,7 @@ uint64 NMD::extract_u_2_1__s1(uint64 instruction) } -uint64 NMD::extract_stripe_6(uint64 instruction) +static uint64 extract_stripe_6(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 6, 1); @@ -1034,7 +1014,7 @@ uint64 NMD::extract_stripe_6(uint64 instruction) } -uint64 NMD::extract_ac_15_14(uint64 instruction) +static uint64 extract_ac_15_14(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 14, 2); @@ -1042,7 +1022,7 @@ uint64 NMD::extract_ac_15_14(uint64 instruction) } -uint64 NMD::extract_shift_20_19_18_17_16(uint64 instruction) +static uint64 extract_shift_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 5); @@ -1050,7 +1030,7 @@ uint64 NMD::extract_shift_20_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_rdl_25_24(uint64 instruction) +static uint64 extract_rdl_25_24(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 24, 1); @@ -1058,7 +1038,7 @@ uint64 NMD::extract_rdl_25_24(uint64 instruction) } -int64 NMD::extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(uint64 instruction) +static int64 extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 1) << 10; @@ -1068,7 +1048,7 @@ int64 NMD::extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(uint64 instruction) } -uint64 NMD::extract_eu_6_5_4_3_2_1_0(uint64 instruction) +static uint64 extract_eu_6_5_4_3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 7); @@ -1076,7 +1056,7 @@ uint64 NMD::extract_eu_6_5_4_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_shift_5_4_3_2_1_0(uint64 instruction) +static uint64 extract_shift_5_4_3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 6); @@ -1084,7 +1064,7 @@ uint64 NMD::extract_shift_5_4_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_count_19_18_17_16(uint64 instruction) +static uint64 extract_count_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 4); @@ -1092,7 +1072,7 @@ uint64 NMD::extract_count_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_code_2_1_0(uint64 instruction) +static uint64 extract_code_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 3); @@ -1100,7 +1080,7 @@ uint64 NMD::extract_code_2_1_0(uint64 instruction) } -uint64 NMD::extract_u_11_10_9_8_7_6_5_4_3_2_1_0(uint64 instruction) +static uint64 extract_u_11_10_9_8_7_6_5_4_3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 12); @@ -1108,7 +1088,7 @@ uint64 NMD::extract_u_11_10_9_8_7_6_5_4_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_rs_4_3_2_1_0(uint64 instruction) +static uint64 extract_rs_4_3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 5); @@ -1116,7 +1096,7 @@ uint64 NMD::extract_rs_4_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_u_20_to_3__s3(uint64 instruction) +static uint64 extract_u_20_to_3__s3(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 3, 18) << 3; @@ -1124,7 +1104,7 @@ uint64 NMD::extract_u_20_to_3__s3(uint64 instruction) } -uint64 NMD::extract_u_3_2_1_0__s2(uint64 instruction) +static uint64 extract_u_3_2_1_0__s2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 4) << 2; @@ -1132,7 +1112,7 @@ uint64 NMD::extract_u_3_2_1_0__s2(uint64 instruction) } -uint64 NMD::extract_cofun_25_24_23(uint64 instruction) +static uint64 extract_cofun_25_24_23(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 3, 23); @@ -1140,7 +1120,7 @@ uint64 NMD::extract_cofun_25_24_23(uint64 instruction) } -uint64 NMD::extract_u_2_1_0__s2(uint64 instruction) +static uint64 extract_u_2_1_0__s2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 3) << 2; @@ -1148,7 +1128,7 @@ uint64 NMD::extract_u_2_1_0__s2(uint64 instruction) } -uint64 NMD::extract_rd3_3_2_1(uint64 instruction) +static uint64 extract_rd3_3_2_1(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 1, 3); @@ -1156,7 +1136,7 @@ uint64 NMD::extract_rd3_3_2_1(uint64 instruction) } -uint64 NMD::extract_sa_15_14_13_12(uint64 instruction) +static uint64 extract_sa_15_14_13_12(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 12, 4); @@ -1164,7 +1144,7 @@ uint64 NMD::extract_sa_15_14_13_12(uint64 instruction) } -uint64 NMD::extract_rt_25_24_23_22_21(uint64 instruction) +static uint64 extract_rt_25_24_23_22_21(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 21, 5); @@ -1172,7 +1152,7 @@ uint64 NMD::extract_rt_25_24_23_22_21(uint64 instruction) } -uint64 NMD::extract_ru_7_6_5_4_3(uint64 instruction) +static uint64 extract_ru_7_6_5_4_3(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 3, 5); @@ -1180,7 +1160,7 @@ uint64 NMD::extract_ru_7_6_5_4_3(uint64 instruction) } -uint64 NMD::extract_u_17_to_0(uint64 instruction) +static uint64 extract_u_17_to_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 18); @@ -1188,7 +1168,7 @@ uint64 NMD::extract_u_17_to_0(uint64 instruction) } -uint64 NMD::extract_rsz4_4_2_1_0(uint64 instruction) +static uint64 extract_rsz4_4_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 3); @@ -1197,7 +1177,7 @@ uint64 NMD::extract_rsz4_4_2_1_0(uint64 instruction) } -int64 NMD::extract_s__se21_0_20_to_1_s1(uint64 instruction) +static int64 extract_s__se21_0_20_to_1_s1(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 1) << 21; @@ -1207,7 +1187,7 @@ int64 NMD::extract_s__se21_0_20_to_1_s1(uint64 instruction) } -uint64 NMD::extract_op_25_to_3(uint64 instruction) +static uint64 extract_op_25_to_3(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 3, 23); @@ -1215,7 +1195,7 @@ uint64 NMD::extract_op_25_to_3(uint64 instruction) } -uint64 NMD::extract_rs4_4_2_1_0(uint64 instruction) +static uint64 extract_rs4_4_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 3); @@ -1224,7 +1204,7 @@ uint64 NMD::extract_rs4_4_2_1_0(uint64 instruction) } -uint64 NMD::extract_bit_23_22_21(uint64 instruction) +static uint64 extract_bit_23_22_21(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 21, 3); @@ -1232,7 +1212,7 @@ uint64 NMD::extract_bit_23_22_21(uint64 instruction) } -uint64 NMD::extract_rt_41_40_39_38_37(uint64 instruction) +static uint64 extract_rt_41_40_39_38_37(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 37, 5); @@ -1240,7 +1220,7 @@ uint64 NMD::extract_rt_41_40_39_38_37(uint64 instruction) } -int64 NMD::extract_shift__se5_21_20_19_18_17_16(uint64 instruction) +static int64 extract_shift__se5_21_20_19_18_17_16(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 16, 6); @@ -1249,7 +1229,7 @@ int64 NMD::extract_shift__se5_21_20_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_rd2_3_8(uint64 instruction) +static uint64 extract_rd2_3_8(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 3, 1) << 1; @@ -1258,7 +1238,7 @@ uint64 NMD::extract_rd2_3_8(uint64 instruction) } -uint64 NMD::extract_code_17_to_0(uint64 instruction) +static uint64 extract_code_17_to_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 18); @@ -1266,7 +1246,7 @@ uint64 NMD::extract_code_17_to_0(uint64 instruction) } -uint64 NMD::extract_size_20_19_18_17_16(uint64 instruction) +static uint64 extract_size_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 5); @@ -1274,7 +1254,7 @@ uint64 NMD::extract_size_20_19_18_17_16(uint64 instruction) } -int64 NMD::extract_s__se8_15_7_6_5_4_3_2_s2(uint64 instruction) +static int64 extract_s__se8_15_7_6_5_4_3_2_s2(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 2, 6) << 2; @@ -1284,7 +1264,7 @@ int64 NMD::extract_s__se8_15_7_6_5_4_3_2_s2(uint64 instruction) } -uint64 NMD::extract_u_15_to_0(uint64 instruction) +static uint64 extract_u_15_to_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 16); @@ -1292,7 +1272,7 @@ uint64 NMD::extract_u_15_to_0(uint64 instruction) } -uint64 NMD::extract_fs_20_19_18_17_16(uint64 instruction) +static uint64 extract_fs_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 5); @@ -1300,7 +1280,7 @@ uint64 NMD::extract_fs_20_19_18_17_16(uint64 instruction) } -int64 NMD::extract_s__se8_15_7_6_5_4_3_2_1_0(uint64 instruction) +static int64 extract_s__se8_15_7_6_5_4_3_2_1_0(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 8); @@ -1310,7 +1290,7 @@ int64 NMD::extract_s__se8_15_7_6_5_4_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_stype_20_19_18_17_16(uint64 instruction) +static uint64 extract_stype_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 5); @@ -1318,7 +1298,7 @@ uint64 NMD::extract_stype_20_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_rtl_11(uint64 instruction) +static uint64 extract_rtl_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 9, 1); @@ -1326,7 +1306,7 @@ uint64 NMD::extract_rtl_11(uint64 instruction) } -uint64 NMD::extract_hs_20_19_18_17_16(uint64 instruction) +static uint64 extract_hs_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 5); @@ -1334,7 +1314,7 @@ uint64 NMD::extract_hs_20_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_sel_13_12_11(uint64 instruction) +static uint64 extract_sel_13_12_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 11, 3); @@ -1342,7 +1322,7 @@ uint64 NMD::extract_sel_13_12_11(uint64 instruction) } -uint64 NMD::extract_lsb_4_3_2_1_0(uint64 instruction) +static uint64 extract_lsb_4_3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 5); @@ -1350,7 +1330,7 @@ uint64 NMD::extract_lsb_4_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_gp_2(uint64 instruction) +static uint64 extract_gp_2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 2, 1); @@ -1358,7 +1338,7 @@ uint64 NMD::extract_gp_2(uint64 instruction) } -uint64 NMD::extract_rt3_9_8_7(uint64 instruction) +static uint64 extract_rt3_9_8_7(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 7, 3); @@ -1366,7 +1346,7 @@ uint64 NMD::extract_rt3_9_8_7(uint64 instruction) } -uint64 NMD::extract_ft_25_24_23_22_21(uint64 instruction) +static uint64 extract_ft_25_24_23_22_21(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 21, 5); @@ -1374,7 +1354,7 @@ uint64 NMD::extract_ft_25_24_23_22_21(uint64 instruction) } -uint64 NMD::extract_u_17_16_15_14_13_12_11(uint64 instruction) +static uint64 extract_u_17_16_15_14_13_12_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 11, 7); @@ -1382,7 +1362,7 @@ uint64 NMD::extract_u_17_16_15_14_13_12_11(uint64 instruction) } -uint64 NMD::extract_cs_20_19_18_17_16(uint64 instruction) +static uint64 extract_cs_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 5); @@ -1390,7 +1370,7 @@ uint64 NMD::extract_cs_20_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_rt4_9_7_6_5(uint64 instruction) +static uint64 extract_rt4_9_7_6_5(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 5, 3); @@ -1399,7 +1379,7 @@ uint64 NMD::extract_rt4_9_7_6_5(uint64 instruction) } -uint64 NMD::extract_msbt_10_9_8_7_6(uint64 instruction) +static uint64 extract_msbt_10_9_8_7_6(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 6, 5); @@ -1407,7 +1387,7 @@ uint64 NMD::extract_msbt_10_9_8_7_6(uint64 instruction) } -uint64 NMD::extract_u_5_4_3_2_1_0__s2(uint64 instruction) +static uint64 extract_u_5_4_3_2_1_0__s2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 6) << 2; @@ -1415,7 +1395,7 @@ uint64 NMD::extract_u_5_4_3_2_1_0__s2(uint64 instruction) } -uint64 NMD::extract_sa_15_14_13(uint64 instruction) +static uint64 extract_sa_15_14_13(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 13, 3); @@ -1423,7 +1403,7 @@ uint64 NMD::extract_sa_15_14_13(uint64 instruction) } -int64 NMD::extract_s__se14_0_13_to_1_s1(uint64 instruction) +static int64 extract_s__se14_0_13_to_1_s1(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 1) << 14; @@ -1433,7 +1413,7 @@ int64 NMD::extract_s__se14_0_13_to_1_s1(uint64 instruction) } -uint64 NMD::extract_rs3_6_5_4(uint64 instruction) +static uint64 extract_rs3_6_5_4(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 4, 3); @@ -1441,7 +1421,7 @@ uint64 NMD::extract_rs3_6_5_4(uint64 instruction) } -uint64 NMD::extract_u_31_to_0__s32(uint64 instruction) +static uint64 extract_u_31_to_0__s32(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 32) << 32; @@ -1449,7 +1429,7 @@ uint64 NMD::extract_u_31_to_0__s32(uint64 instruction) } -uint64 NMD::extract_shift_10_9_8_7_6(uint64 instruction) +static uint64 extract_shift_10_9_8_7_6(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 6, 5); @@ -1457,7 +1437,7 @@ uint64 NMD::extract_shift_10_9_8_7_6(uint64 instruction) } -uint64 NMD::extract_cs_25_24_23_22_21(uint64 instruction) +static uint64 extract_cs_25_24_23_22_21(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 21, 5); @@ -1465,7 +1445,7 @@ uint64 NMD::extract_cs_25_24_23_22_21(uint64 instruction) } -uint64 NMD::extract_shiftx_11_10_9_8_7_6(uint64 instruction) +static uint64 extract_shiftx_11_10_9_8_7_6(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 6, 6); @@ -1473,7 +1453,7 @@ uint64 NMD::extract_shiftx_11_10_9_8_7_6(uint64 instruction) } -uint64 NMD::extract_rt_9_8_7_6_5(uint64 instruction) +static uint64 extract_rt_9_8_7_6_5(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 5, 5); @@ -1481,7 +1461,7 @@ uint64 NMD::extract_rt_9_8_7_6_5(uint64 instruction) } -uint64 NMD::extract_op_25_24_23_22_21(uint64 instruction) +static uint64 extract_op_25_24_23_22_21(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 21, 5); @@ -1489,7 +1469,7 @@ uint64 NMD::extract_op_25_24_23_22_21(uint64 instruction) } -uint64 NMD::extract_u_6_5_4_3_2_1_0__s2(uint64 instruction) +static uint64 extract_u_6_5_4_3_2_1_0__s2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 7) << 2; @@ -1497,7 +1477,7 @@ uint64 NMD::extract_u_6_5_4_3_2_1_0__s2(uint64 instruction) } -uint64 NMD::extract_bit_16_15_14_13_12_11(uint64 instruction) +static uint64 extract_bit_16_15_14_13_12_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 11, 6); @@ -1505,7 +1485,7 @@ uint64 NMD::extract_bit_16_15_14_13_12_11(uint64 instruction) } -uint64 NMD::extract_mask_20_19_18_17_16_15_14(uint64 instruction) +static uint64 extract_mask_20_19_18_17_16_15_14(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 14, 7); @@ -1513,7 +1493,7 @@ uint64 NMD::extract_mask_20_19_18_17_16_15_14(uint64 instruction) } -uint64 NMD::extract_eu_3_2_1_0(uint64 instruction) +static uint64 extract_eu_3_2_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 4); @@ -1521,7 +1501,7 @@ uint64 NMD::extract_eu_3_2_1_0(uint64 instruction) } -uint64 NMD::extract_u_7_6_5_4__s4(uint64 instruction) +static uint64 extract_u_7_6_5_4__s4(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 4, 4) << 4; @@ -1529,7 +1509,7 @@ uint64 NMD::extract_u_7_6_5_4__s4(uint64 instruction) } -int64 NMD::extract_s__se8_15_7_6_5_4_3_s3(uint64 instruction) +static int64 extract_s__se8_15_7_6_5_4_3_s3(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 3, 5) << 3; @@ -1539,7 +1519,7 @@ int64 NMD::extract_s__se8_15_7_6_5_4_3_s3(uint64 instruction) } -uint64 NMD::extract_ft_15_14_13_12_11(uint64 instruction) +static uint64 extract_ft_15_14_13_12_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 11, 5); @@ -1547,7 +1527,7 @@ uint64 NMD::extract_ft_15_14_13_12_11(uint64 instruction) } -int64 NMD::extract_s__se31_15_to_0_31_to_16(uint64 instruction) +static int64 extract_s__se31_15_to_0_31_to_16(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 16) << 16; @@ -1557,7 +1537,7 @@ int64 NMD::extract_s__se31_15_to_0_31_to_16(uint64 instruction) } -uint64 NMD::extract_u_20_19_18_17_16_15_14_13(uint64 instruction) +static uint64 extract_u_20_19_18_17_16_15_14_13(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 13, 8); @@ -1565,7 +1545,7 @@ uint64 NMD::extract_u_20_19_18_17_16_15_14_13(uint64 instruction) } -uint64 NMD::extract_u_17_to_2__s2(uint64 instruction) +static uint64 extract_u_17_to_2__s2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 2, 16) << 2; @@ -1573,7 +1553,7 @@ uint64 NMD::extract_u_17_to_2__s2(uint64 instruction) } -uint64 NMD::extract_rd_15_14_13_12_11(uint64 instruction) +static uint64 extract_rd_15_14_13_12_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 11, 5); @@ -1581,7 +1561,7 @@ uint64 NMD::extract_rd_15_14_13_12_11(uint64 instruction) } -uint64 NMD::extract_c0s_20_19_18_17_16(uint64 instruction) +static uint64 extract_c0s_20_19_18_17_16(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 16, 5); @@ -1589,7 +1569,7 @@ uint64 NMD::extract_c0s_20_19_18_17_16(uint64 instruction) } -uint64 NMD::extract_code_1_0(uint64 instruction) +static uint64 extract_code_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 2); @@ -1597,7 +1577,7 @@ uint64 NMD::extract_code_1_0(uint64 instruction) } -int64 NMD::extract_s__se25_0_24_to_1_s1(uint64 instruction) +static int64 extract_s__se25_0_24_to_1_s1(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 1) << 25; @@ -1607,7 +1587,7 @@ int64 NMD::extract_s__se25_0_24_to_1_s1(uint64 instruction) } -uint64 NMD::extract_u_1_0(uint64 instruction) +static uint64 extract_u_1_0(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 2); @@ -1615,7 +1595,7 @@ uint64 NMD::extract_u_1_0(uint64 instruction) } -uint64 NMD::extract_u_3_8__s2(uint64 instruction) +static uint64 extract_u_3_8__s2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 3, 1) << 3; @@ -1624,7 +1604,7 @@ uint64 NMD::extract_u_3_8__s2(uint64 instruction) } -uint64 NMD::extract_fd_15_14_13_12_11(uint64 instruction) +static uint64 extract_fd_15_14_13_12_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 11, 5); @@ -1632,7 +1612,7 @@ uint64 NMD::extract_fd_15_14_13_12_11(uint64 instruction) } -uint64 NMD::extract_u_4_3_2_1_0__s2(uint64 instruction) +static uint64 extract_u_4_3_2_1_0__s2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 5) << 2; @@ -1640,7 +1620,7 @@ uint64 NMD::extract_u_4_3_2_1_0__s2(uint64 instruction) } -uint64 NMD::extract_rtz4_9_7_6_5(uint64 instruction) +static uint64 extract_rtz4_9_7_6_5(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 5, 3); @@ -1649,7 +1629,7 @@ uint64 NMD::extract_rtz4_9_7_6_5(uint64 instruction) } -uint64 NMD::extract_sel_15_14_13_12_11(uint64 instruction) +static uint64 extract_sel_15_14_13_12_11(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 11, 5); @@ -1657,7 +1637,7 @@ uint64 NMD::extract_sel_15_14_13_12_11(uint64 instruction) } -uint64 NMD::extract_ct_25_24_23_22_21(uint64 instruction) +static uint64 extract_ct_25_24_23_22_21(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 21, 5); @@ -1665,7 +1645,7 @@ uint64 NMD::extract_ct_25_24_23_22_21(uint64 instruction) } -uint64 NMD::extract_u_20_to_2__s2(uint64 instruction) +static uint64 extract_u_20_to_2__s2(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 2, 19) << 2; @@ -1673,7 +1653,7 @@ uint64 NMD::extract_u_20_to_2__s2(uint64 instruction) } -int64 NMD::extract_s__se3_4_2_1_0(uint64 instruction) +static int64 extract_s__se3_4_2_1_0(uint64 instruction) { int64 value = 0; value |= extract_bits(instruction, 0, 3); @@ -1683,7 +1663,7 @@ int64 NMD::extract_s__se3_4_2_1_0(uint64 instruction) } -uint64 NMD::extract_u_3_2_1_0__s1(uint64 instruction) +static uint64 extract_u_3_2_1_0__s1(uint64 instruction) { uint64 value = 0; value |= extract_bits(instruction, 0, 4) << 1; diff --git a/disas/nanomips.h b/disas/nanomips.h index fcd41c405c..8eca843ef0 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -94,150 +94,6 @@ private: TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, Dis_info *info); - uint64 renumber_registers(uint64 index, uint64 *register_list, - size_t register_list_size); - - uint64 decode_gpr_gpr4(uint64 d); - uint64 decode_gpr_gpr4_zero(uint64 d); - uint64 decode_gpr_gpr3(uint64 d); - uint64 decode_gpr_gpr3_src_store(uint64 d); - uint64 decode_gpr_gpr2_reg1(uint64 d); - uint64 decode_gpr_gpr2_reg2(uint64 d); - uint64 decode_gpr_gpr1(uint64 d); - - uint64 copy(uint64 d); - int64 copy(int64 d); - int64 neg_copy(uint64 d); - int64 neg_copy(int64 d); - uint64 encode_rs3_and_check_rs3_ge_rt3(uint64 d); - uint64 encode_rs3_and_check_rs3_lt_rt3(uint64 d); - uint64 encode_s_from_address(uint64 d); - uint64 encode_u_from_address(uint64 d); - uint64 encode_s_from_s_hi(uint64 d); - uint64 encode_count3_from_count(uint64 d); - uint64 encode_shift3_from_shift(uint64 d); - int64 encode_eu_from_s_li16(uint64 d); - uint64 encode_msbd_from_size(uint64 d); - uint64 encode_eu_from_u_andi16(uint64 d); - - uint64 encode_msbd_from_pos_and_size(uint64 d); - - uint64 encode_rt1_from_rt(uint64 d); - uint64 encode_lsb_from_pos_and_size(uint64 d); - - std::string save_restore_list(uint64 rt, uint64 count, uint64 gp); - - std::string GPR(uint64 reg); - std::string FPR(uint64 reg); - std::string AC(uint64 reg); - std::string IMMEDIATE(uint64 value); - std::string IMMEDIATE(int64 value); - std::string CPR(uint64 reg); - std::string ADDRESS(uint64 value, int instruction_size, Dis_info *info); - - int64 extract_s__se3_4_2_1_0(uint64 instruction); - int64 extract_s__se7_0_6_5_4_3_2_1_s1(uint64 instruction); - int64 extract_s__se8_15_7_6_5_4_3_s3(uint64 instruction); - int64 extract_s__se8_15_7_6_5_4_3_2_s2(uint64 instruction); - int64 extract_s__se8_15_7_6_5_4_3_2_1_0(uint64 instruction); - int64 extract_s__se9_20_19_18_17_16_15_14_13_12_11(uint64 instruction); - int64 extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(uint64 instruction); - int64 extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(uint64 instruction); - int64 extract_s__se14_0_13_to_1_s1(uint64 instruction); - int64 extract_s__se21_0_20_to_1_s1(uint64 instruction); - int64 extract_s__se25_0_24_to_1_s1(uint64 instruction); - int64 extract_s__se31_15_to_0_31_to_16(uint64 instruction); - int64 extract_s__se31_0_11_to_2_20_to_12_s12(uint64 instruction); - int64 extract_shift__se5_21_20_19_18_17_16(uint64 instruction); - - uint64 extract_ac_15_14(uint64 instruction); - uint64 extract_bit_16_15_14_13_12_11(uint64 instruction); - uint64 extract_bit_23_22_21(uint64 instruction); - uint64 extract_c0s_20_19_18_17_16(uint64 instruction); - uint64 extract_code_17_to_0(uint64 instruction); - uint64 extract_code_18_to_0(uint64 instruction); - uint64 extract_code_1_0(uint64 instruction); - uint64 extract_code_2_1_0(uint64 instruction); - uint64 extract_code_25_24_23_22_21_20_19_18_17_16(uint64 instruction); - uint64 extract_cofun_25_24_23(uint64 instruction); - uint64 extract_count3_14_13_12(uint64 instruction); - uint64 extract_count_3_2_1_0(uint64 instruction); - uint64 extract_count_19_18_17_16(uint64 instruction); - uint64 extract_cs_20_19_18_17_16(uint64 instruction); - uint64 extract_cs_25_24_23_22_21(uint64 instruction); - uint64 extract_ct_25_24_23_22_21(uint64 instruction); - uint64 extract_eu_3_2_1_0(uint64 instruction); - uint64 extract_eu_6_5_4_3_2_1_0(uint64 instruction); - uint64 extract_fd_15_14_13_12_11(uint64 instruction); - uint64 extract_fs_20_19_18_17_16(uint64 instruction); - uint64 extract_ft_15_14_13_12_11(uint64 instruction); - uint64 extract_ft_25_24_23_22_21(uint64 instruction); - uint64 extract_gp_2(uint64 instruction); - uint64 extract_hint_25_24_23_22_21(uint64 instruction); - uint64 extract_hs_20_19_18_17_16(uint64 instruction); - uint64 extract_lsb_4_3_2_1_0(uint64 instruction); - uint64 extract_mask_20_19_18_17_16_15_14(uint64 instruction); - uint64 extract_msbt_10_9_8_7_6(uint64 instruction); - uint64 extract_op_25_24_23_22_21(uint64 instruction); - uint64 extract_op_25_to_3(uint64 instruction); - uint64 extract_rdl_25_24(uint64 instruction); - uint64 extract_rd2_3_8(uint64 instruction); - uint64 extract_rd3_3_2_1(uint64 instruction); - uint64 extract_rd_15_14_13_12_11(uint64 instruction); - uint64 extract_rs3_6_5_4(uint64 instruction); - uint64 extract_rs4_4_2_1_0(uint64 instruction); - uint64 extract_rs_4_3_2_1_0(uint64 instruction); - uint64 extract_rs_20_19_18_17_16(uint64 instruction); - uint64 extract_rsz4_4_2_1_0(uint64 instruction); - uint64 extract_rtl_11(uint64 instruction); - uint64 extract_rt3_9_8_7(uint64 instruction); - uint64 extract_rt4_9_7_6_5(uint64 instruction); - uint64 extract_rt_25_24_23_22_21(uint64 instruction); - uint64 extract_rt_41_40_39_38_37(uint64 instruction); - uint64 extract_rt_9_8_7_6_5(uint64 instruction); - uint64 extract_rtz3_9_8_7(uint64 instruction); - uint64 extract_rtz4_27_26_25_23_22_21(uint64 instruction); - uint64 extract_rtz4_9_7_6_5(uint64 instruction); - uint64 extract_ru_7_6_5_4_3(uint64 instruction); - uint64 extract_sa_15_14_13_12_11(uint64 instruction); - uint64 extract_sa_15_14_13_12(uint64 instruction); - uint64 extract_sa_15_14_13(uint64 instruction); - uint64 extract_sel_13_12_11(uint64 instruction); - uint64 extract_sel_15_14_13_12_11(uint64 instruction); - uint64 extract_shift3_2_1_0(uint64 instruction); - uint64 extract_shift_4_3_2_1_0(uint64 instruction); - uint64 extract_shift_5_4_3_2_1_0(uint64 instruction); - uint64 extract_shift_20_19_18_17_16(uint64 instruction); - uint64 extract_shift_10_9_8_7_6(uint64 instruction); - uint64 extract_shiftx_11_10_9_8_7_6(uint64 instruction); - uint64 extract_shiftx_10_9_8_7__s1(uint64 instruction); - uint64 extract_size_20_19_18_17_16(uint64 instruction); - uint64 extract_stripe_6(uint64 instruction); - uint64 extract_stype_20_19_18_17_16(uint64 instruction); - uint64 extract_u2_10_9(uint64 instruction); - uint64 extract_u_11_10_9_8_7_6_5_4_3_2_1_0(uint64 instruction); - uint64 extract_u_15_to_0(uint64 instruction); - uint64 extract_u_17_to_0(uint64 instruction); - uint64 extract_u_1_0(uint64 instruction); - uint64 extract_u_3_2_1_0__s1(uint64 instruction); - uint64 extract_u_2_1_0__s2(uint64 instruction); - uint64 extract_u_3_2_1_0__s2(uint64 instruction); - uint64 extract_u_4_3_2_1_0__s2(uint64 instruction); - uint64 extract_u_5_4_3_2_1_0__s2(uint64 instruction); - uint64 extract_u_6_5_4_3_2_1_0__s2(uint64 instruction); - uint64 extract_u_31_to_0__s32(uint64 instruction); - uint64 extract_u_10(uint64 instruction); - uint64 extract_u_17_16_15_14_13_12_11(uint64 instruction); - uint64 extract_u_20_19_18_17_16_15_14_13(uint64 instruction); - uint64 extract_u_17_to_1__s1(uint64 instruction); - uint64 extract_u_2_1__s1(uint64 instruction); - uint64 extract_u_17_to_2__s2(uint64 instruction); - uint64 extract_u_20_to_2__s2(uint64 instruction); - uint64 extract_u_20_to_3__s3(uint64 instruction); - uint64 extract_u_3_8__s2(uint64 instruction); - uint64 extract_u_11_10_9_8_7_6_5_4_3__s3(uint64 instruction); - uint64 extract_u_7_6_5_4__s4(uint64 instruction); - bool ADDIU_32__cond(uint64 instruction); bool ADDIU_RS5__cond(uint64 instruction); bool BALRSC_cond(uint64 instruction); From patchwork Mon Sep 12 12:26:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973625 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1B14ECAAD5 for ; Mon, 12 Sep 2022 12:39:41 +0000 (UTC) Received: from localhost ([::1]:37990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXiiy-0004v3-Sm for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:39:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYN-0003uN-TN for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:28:44 -0400 Received: from mail-db8eur05on2095.outbound.protection.outlook.com ([40.107.20.95]:56929 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYL-0005mE-Ts for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:28:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PJ8oq9VT/HZeYlZ4qi91mkJL7BsJNYqShR7/3ivNA8cUF5A8QrNdu0EWTr6iz5q73wL89OwpxPiumfFEab9nz+GikDtPTbS9ZZCcFNiP59hCZissbK5j+V1Ruc8CescSr5N8tfRzwMUp9Zf6g/BjiBUzl8rwajEnSfilbGkKyeoKSstAo8XJFDECig5J2aIXe/APDUPfCS11GsDJPhwYL4cm9TZ+YHSbtzy8WCauZbB6TdHIa07RJwOmksAWmmH9thWPNaitZT3EXiWZUIacqK0dw0QPLw0rW/SND+9ZrBT1yeGJ92es94Z5MkS00GEQe8gRj70/qLOrRzc3By54mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sUGlD5yv3C23BY73vd8z3UclK/EAeks6JdApBdsFY9g=; b=D1LIWDZFJDxP4hIz+hyMM63YImDDSxO6nv7f33u9crM7KtSpEP0zAeA7hJcme5BIFboUOnncOsiaGWsSL9LLLPIKBTM3/Pm+OSFzULdpxNgmFxDZM5dVM13xvdfVAvm1BQ4299Cu9gKmzQUftaQiVyuAXDvk+rbJ7lVpUy8UlD/303N/2Rm0d8T8aqbJ+Rvvf1MgcvkxHhqj5Ko6R62lt+UXBSer3EYqnGRukNuYtK19Hd1UQaJWLFtsbuB1wOg5uNs9Pfd2PCVAibUXpsWEtwVtdHF64wkuKY1bePDCouheyFjq6eAnit/uDifrfcHSRa89w2gJ1hMk35SwWyuefA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sUGlD5yv3C23BY73vd8z3UclK/EAeks6JdApBdsFY9g=; b=WJ94akLVWiK+1TWFWnr+ZluZWI/rgl8l2ral7hkHYtd3osu6hhxTid4EU/Sib9FjzUG7iN5RtruiqWVqFzbY7KbwW05SdB3FNY9tSiM2wuCe0a+mEoRBcb3gjohlBJ5cCX/FwL0C7cZyPdpSUOSUn1O483d7oQy6UsCBfsdWvEY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS2PR03MB9768.eurprd03.prod.outlook.com (2603:10a6:20b:60b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:28:40 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:28:40 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [PATCH v3 06/24] disas/nanomips: Remove __cond methods from class Date: Mon, 12 Sep 2022 14:26:17 +0200 Message-Id: <20220912122635.74032-7-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS2PR03MB9768:EE_ X-MS-Office365-Filtering-Correlation-Id: ea94672b-1636-4826-164d-08da94ba52ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: e6L1qe7F9Ul6YJKgpceIatDy9ANapLcp3pPSisryt7oQO8YOE1C0h/Lwdi1D3nxN3Bxp0NqekUIZI3jQ9rWU/xSOICCK2nlZl0r5buVt1vC3KSukG+C8IlmyH4UQzbRxVEkINgZZALpZK7FSLMu9ZmVw4g0J31uvWWdg62pRMytEExjhDW9NkwzXmkYOBGuOOPHx/uEZUlX6qp5tJTDJmazgSKGl5oLSmZZN0VhPtZ8AcirRiHlwPrJPWaNljgIdTHOV6dg1YAjOkUCPElYQDTXFSAd3E3yUW3K2PznbOrzfu/Z7MbMMwFEUgeXPKImlP988A9fBXsrj3mGkIvoK5NdTRUxTumsHL3CPpzTkgh+L4pP5M4jdqpc5N1aUIAkrT7EfPH5eBdWUH8lRuVu533b+/uV8YCF3mNPGVE36hJDggReKUuS1b+zidkVV9yY/vVAhRtUlPULHYv294L/u6/eZ36OZzei+tGfHXKKixA+gIVh4EsQNCdPBqkuBz57KRmDGBXqsdVNpC7aisflLKEhH9s10sUDf+HEB3+Ew1qJIIE2xbNO/kMB4C2Tvfdd7jBM03qpx6NDNuV40a6BsuCwbfkdM4PkJtwqEqhJfYFB6XL0Mq3RTWhfqoXiRS0YwxqKVriYXrdSxpMnp7MVvRwE4rS7ITmOeXbYoimIfzEI2JO4oz4dnqzAkJ7oyS6FPm6PzH91aM+/3IEpzb1ec1uKjlOm8G1RjtdPSbcifiSj/EgviwCyw41cuy1Unvmdd X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(396003)(376002)(39840400004)(136003)(346002)(366004)(86362001)(66946007)(8676002)(38100700002)(66556008)(66476007)(4326008)(36756003)(38350700002)(186003)(83380400001)(2616005)(52116002)(6512007)(26005)(478600001)(6486002)(41300700001)(6506007)(6666004)(2906002)(6916009)(54906003)(316002)(1076003)(5660300002)(7416002)(8936002)(44832011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qSmpYuIx2R7JAjSWqP0UaogJk06r?= =?utf-8?q?WcHH7va2t3NW1hxJylDInFX3rAP6097nVju+53Ghxwf3TPFQJkcYJtG4y4Ge0SpeK?= =?utf-8?q?097OmpoUyaUAhK7Hfk5ouwbc7YBK6HvTGDkzWwosPijx1oTfsjwFx/lo0tOMOM6vj?= =?utf-8?q?uP/yKw0xT9nw9ntkhmv6FALProL8b2Ggpy9Wjill0A5aHEXavHmJKtUW3pY3MW1e5?= =?utf-8?q?MbqIoekarY3jG2m6UIvQD29gAuZCiCVfocEAVywpvT5KNgnnZ7VnDn9UfyV7coKZJ?= =?utf-8?q?It9XbS5gIOkdPJfFK+tfkdrLCQfTT5AstWO1eMGR8lFVsa9rEoPqDA9VPssWrzyRk?= =?utf-8?q?OLOc906L2GxBnCuJIiaHkoMYR6o6tBaHHn/bCgYM3XEn/wJV1bR0v0CzOHCBc5BAZ?= =?utf-8?q?4MdfqWK7RlssU0JIdIHuTnGFX65qFlw+y39sF/6Nw/RQlqnD/eFsRESbxSQHPJaEx?= =?utf-8?q?ZdJYUeop25bC4LlyynBuZ7GlggyfN9yUiZB834EPCPTJcZjCnVbb1hhyoNVmQpgDL?= =?utf-8?q?hGxptYojl8YURMj7xwNyNOlC/XerYa1RRyLejx9ih1j15ZtaLuVTIG18pqKR3uQxW?= =?utf-8?q?Go69HLGmqm9G+asXNlU6ms1RB09bSjQeKrV1asRnmIrrM1DoU0B+v1aCr8rWJGHw0?= =?utf-8?q?FB/JMMgbAgyfvn5zyIgf/aeUBOeCc8uhxH8nDM3lscZwkeL5DnEI8d3L530eNc29m?= =?utf-8?q?uwcLLNRYuv+WdiIGklEl4d373MU9LrQeWq+kIECVBS6QLj9yiiGIU8cGot7TMfxoO?= =?utf-8?q?7/qMgCziELBZe9W71ZlJzR6H+opr1qsHqbi1h/ig2gtjyWn2JLsXRUGyZ3pUUqsZR?= =?utf-8?q?Wo498Gd1fVpvqgrODKQ/+15vekht8fXIy4FBpuGCClDByZ2ECyFNb1o5YU3KsqUp/?= =?utf-8?q?qMIqYXn1yAgM4gYEum9HkfHRaXKwbnTJ13wMDshRO68eb+0f5iscqvHGzMTrjF1Ta?= =?utf-8?q?Sfuhu8WOecYOBxNtnWusk7RFp7tI3qAzXV5j3NhZ1Oq7Rf5Ba3hS/Nr3guOlD7eG3?= =?utf-8?q?pFlnX1nYKKroxWAnT8Lry4HKKWKGAp3FgfCf8MWIfiSGx1UBpXMqmbbjUV9kHaZW2?= =?utf-8?q?8E7cHfqis5nwNP+o+zTqCRq+DGRh5cnNgk+fsuxBa/RYWxb9lsrGOmWnT2UkFVCqH?= =?utf-8?q?u+b7PgOrF3Ehwqdyn7XZglUUku4/47uhC02TiSQdrqbSLP2Czmv/S1p9YluAF/aMK?= =?utf-8?q?xG958/vBdSeRjXNi2hRXSFgZ0PV+86oAHe4SW7vbuzvtJY+gwA7RFFGsx++8gI5ta?= =?utf-8?q?Mu7PubxGojQbQJKA1pWzAennUJuSNolluIz4qUA8vpgyi1h9XfKnWsFGFaisxs73P?= =?utf-8?q?2OAK7WTKKCriJYlWXI/MsjPqspEQ97t0c6ZJmQKShqHPNptz1wCDJ1+ze6uUjYgIX?= =?utf-8?q?ezZ1nNVrlmxD3smmPX6X5o3QCFYTJnPC/s/Sd8G+TPj6MvT2xzgqiYL27ktHR8ydt?= =?utf-8?q?nMCmaC1gHHUtgcfvj7XLDuwgQpacJmwME4WVLe1c4ifCwljgY7suaKtnlS/0XJpYb?= =?utf-8?q?ww64yInDXS34EQgYvmbDyLfKP05syH0NFw=3D=3D?= X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea94672b-1636-4826-164d-08da94ba52ca X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:28:40.1556 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: J2fFZkbIIFb6Ncc16zOShlSDcvhcpYL5WqqgM7oNq+cGRIuHL7BTi9dYdX8u2joLiYMxUqukII9Qhq5XnuBF9ByPCuFZWMn9q8PuR0ssimo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB9768 Received-SPF: pass client-ip=40.107.20.95; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" NMD class methods with the conditional_function type like NMD::ADDIU_32__cond, NMD::ADDIU_RS5__cond, etc. are removed from the NMD class. They're now declared global static functions. Therefore, typedef of the function pointer, conditional_function is defined outside of the class. Now that conditional_function type functions are not part of the NMD class we can't access them using the this pointer. Thus, the use of the this pointer has been deleted. Signed-off-by: Milica Lazarevic Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 42 +++++++++++++++++++++--------------------- disas/nanomips.h | 14 ++------------ 2 files changed, 23 insertions(+), 33 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 271afcde07..98a632a3fc 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -784,7 +784,7 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, if ((op_code & table[i].mask) == table[i].value) { /* possible match */ conditional_function cond = table[i].condition; - if ((cond == 0) || (this->*cond)(op_code)) { + if ((cond == NULL) || cond(op_code)) { try { if (table[i].type == pool) { @@ -1672,28 +1672,28 @@ static uint64 extract_u_3_2_1_0__s1(uint64 instruction) -bool NMD::ADDIU_32__cond(uint64 instruction) +static bool ADDIU_32__cond(uint64 instruction) { uint64 rt = extract_rt_25_24_23_22_21(instruction); return rt != 0; } -bool NMD::ADDIU_RS5__cond(uint64 instruction) +static bool ADDIU_RS5__cond(uint64 instruction) { uint64 rt = extract_rt_9_8_7_6_5(instruction); return rt != 0; } -bool NMD::BALRSC_cond(uint64 instruction) +static bool BALRSC_cond(uint64 instruction) { uint64 rt = extract_rt_25_24_23_22_21(instruction); return rt != 0; } -bool NMD::BEQC_16__cond(uint64 instruction) +static bool BEQC_16__cond(uint64 instruction) { uint64 rs3 = extract_rs3_6_5_4(instruction); uint64 rt3 = extract_rt3_9_8_7(instruction); @@ -1702,7 +1702,7 @@ bool NMD::BEQC_16__cond(uint64 instruction) } -bool NMD::BNEC_16__cond(uint64 instruction) +static bool BNEC_16__cond(uint64 instruction) { uint64 rs3 = extract_rs3_6_5_4(instruction); uint64 rt3 = extract_rt3_9_8_7(instruction); @@ -1711,35 +1711,35 @@ bool NMD::BNEC_16__cond(uint64 instruction) } -bool NMD::MOVE_cond(uint64 instruction) +static bool MOVE_cond(uint64 instruction) { uint64 rt = extract_rt_9_8_7_6_5(instruction); return rt != 0; } -bool NMD::P16_BR1_cond(uint64 instruction) +static bool P16_BR1_cond(uint64 instruction) { uint64 u = extract_u_3_2_1_0__s1(instruction); return u != 0; } -bool NMD::PREF_S9__cond(uint64 instruction) +static bool PREF_S9__cond(uint64 instruction) { uint64 hint = extract_hint_25_24_23_22_21(instruction); return hint != 31; } -bool NMD::PREFE_cond(uint64 instruction) +static bool PREFE_cond(uint64 instruction) { uint64 hint = extract_hint_25_24_23_22_21(instruction); return hint != 31; } -bool NMD::SLTU_cond(uint64 instruction) +static bool SLTU_cond(uint64 instruction) { uint64 rd = extract_rd_15_14_13_12_11(instruction); return rd != 0; @@ -16692,7 +16692,7 @@ NMD::Pool NMD::P_ADDIU[2] = { 0xffe00000, 0x00000000, 0 , 0, 0x0 }, /* P.RI */ { instruction , 0 , 0 , 32, - 0xfc000000, 0x00000000, &NMD::ADDIU_32_ , &NMD::ADDIU_32__cond , + 0xfc000000, 0x00000000, &NMD::ADDIU_32_ , &ADDIU_32__cond , 0x0 }, /* ADDIU[32] */ }; @@ -16790,7 +16790,7 @@ NMD::Pool NMD::P_SLTU[2] = { 0xfc00fbff, 0x20000390, 0 , 0, 0x0 }, /* P.DVP */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000390, &NMD::SLTU , &NMD::SLTU_cond , + 0xfc0003ff, 0x20000390, &NMD::SLTU , &SLTU_cond , 0x0 }, /* SLTU */ }; @@ -21335,7 +21335,7 @@ NMD::Pool NMD::P_PREF_S9_[2] = { 0xffe07f00, 0xa7e01800, &NMD::SYNCI , 0, 0x0 }, /* SYNCI */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4001800, &NMD::PREF_S9_ , &NMD::PREF_S9__cond , + 0xfc007f00, 0xa4001800, &NMD::PREF_S9_ , &PREF_S9__cond , 0x0 }, /* PREF[S9] */ }; @@ -21547,7 +21547,7 @@ NMD::Pool NMD::P_PREFE[2] = { 0xffe07f00, 0xa7e01a00, &NMD::SYNCIE , 0, CP0_ | EVA_ }, /* SYNCIE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4001a00, &NMD::PREFE , &NMD::PREFE_cond , + 0xfc007f00, 0xa4001a00, &NMD::PREFE , &PREFE_cond , CP0_ | EVA_ }, /* PREFE */ }; @@ -21719,7 +21719,7 @@ NMD::Pool NMD::P_BALRSC[2] = { 0xffe0f000, 0x48008000, &NMD::BRSC , 0, 0x0 }, /* BRSC */ { call_instruction , 0 , 0 , 32, - 0xfc00f000, 0x48008000, &NMD::BALRSC , &NMD::BALRSC_cond , + 0xfc00f000, 0x48008000, &NMD::BALRSC , &BALRSC_cond , 0x0 }, /* BALRSC */ }; @@ -22067,7 +22067,7 @@ NMD::Pool NMD::P16_MV[2] = { 0xffe0 , 0x1000 , 0 , 0, 0x0 }, /* P16.RI */ { instruction , 0 , 0 , 16, - 0xfc00 , 0x1000 , &NMD::MOVE , &NMD::MOVE_cond , + 0xfc00 , 0x1000 , &NMD::MOVE , &MOVE_cond , 0x0 }, /* MOVE */ }; @@ -22133,7 +22133,7 @@ NMD::Pool NMD::P_ADDIU_RS5_[2] = { 0xffe8 , 0x9008 , &NMD::NOP_16_ , 0, 0x0 }, /* NOP[16] */ { instruction , 0 , 0 , 16, - 0xfc08 , 0x9008 , &NMD::ADDIU_RS5_ , &NMD::ADDIU_RS5__cond , + 0xfc08 , 0x9008 , &NMD::ADDIU_RS5_ , &ADDIU_RS5__cond , 0x0 }, /* ADDIU[RS5] */ }; @@ -22170,10 +22170,10 @@ NMD::Pool NMD::P16_JRC[2] = { NMD::Pool NMD::P16_BR1[2] = { { branch_instruction , 0 , 0 , 16, - 0xfc00 , 0xd800 , &NMD::BEQC_16_ , &NMD::BEQC_16__cond , + 0xfc00 , 0xd800 , &NMD::BEQC_16_ , &BEQC_16__cond , XMMS_ }, /* BEQC[16] */ { branch_instruction , 0 , 0 , 16, - 0xfc00 , 0xd800 , &NMD::BNEC_16_ , &NMD::BNEC_16__cond , + 0xfc00 , 0xd800 , &NMD::BNEC_16_ , &BNEC_16__cond , XMMS_ }, /* BNEC[16] */ }; @@ -22183,7 +22183,7 @@ NMD::Pool NMD::P16_BR[2] = { 0xfc0f , 0xd800 , 0 , 0, 0x0 }, /* P16.JRC */ { pool , P16_BR1 , 2 , 16, - 0xfc00 , 0xd800 , 0 , &NMD::P16_BR1_cond , + 0xfc00 , 0xd800 , 0 , &P16_BR1_cond , 0x0 }, /* P16.BR1 */ }; diff --git a/disas/nanomips.h b/disas/nanomips.h index 8eca843ef0..af803f4cc0 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -64,6 +64,8 @@ typedef struct Dis_info { img_address m_pc; } Dis_info; +typedef bool (*conditional_function)(uint64 instruction); + class NMD { public: @@ -75,7 +77,6 @@ private: typedef std::string(NMD:: *disassembly_function)(uint64 instruction, Dis_info *info); - typedef bool(NMD:: *conditional_function)(uint64 instruction); struct Pool { TABLE_ENTRY_TYPE type; @@ -94,17 +95,6 @@ private: TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, Dis_info *info); - bool ADDIU_32__cond(uint64 instruction); - bool ADDIU_RS5__cond(uint64 instruction); - bool BALRSC_cond(uint64 instruction); - bool BEQC_16__cond(uint64 instruction); - bool BNEC_16__cond(uint64 instruction); - bool MOVE_cond(uint64 instruction); - bool P16_BR1_cond(uint64 instruction); - bool PREF_S9__cond(uint64 instruction); - bool PREFE_cond(uint64 instruction); - bool SLTU_cond(uint64 instruction); - std::string ABS_D(uint64 instruction, Dis_info *info); std::string ABS_S(uint64 instruction, Dis_info *info); std::string ABSQ_S_PH(uint64 instruction, Dis_info *info); From patchwork Mon Sep 12 12:26:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973637 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9895BC6FA86 for ; Mon, 12 Sep 2022 12:56:27 +0000 (UTC) Received: from localhost ([::1]:53312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXizC-0005Nh-HH for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:56:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZ3-0004TC-Jk for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:25 -0400 Received: from mail-db8eur05on2102.outbound.protection.outlook.com ([40.107.20.102]:50785 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYy-0005rJ-6b for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kYooZgEzt1Jr151F77VlStN5DcEHwgiLFE5THjLLrmMnrD3qA1bgs1/0Ld/dBJ9GIwMms44Wic2rtSIkiqUZiw+AQW0X/cA7EYbTts1Q0j+nwcOrxHAuGrpZ5Cwh6Xna6Oypg7H2fUp266k+QDE1TuwwbiOWtzDCjLd26qitIg5A/FIJzODOydK5ht+zQr2vAtgGpz6s4PYWxJMSAAjdKY9weOInWmdPvFBxxj5O3SBTyK62D3iKD5G8shBdZx/dszOPMw6cyjQKv+bN0fVoKKs/chImCiKm30c6/3uUHEEliU7a84EPd4QIjN00wY0uemz+AdtqlU4nXaoMrNtjGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=s001kDeKpuqw7JIk2IhHR+Gqfv0Bvgk8YlRiT/XnsfA=; b=KZ7OetvwymD+lGC3geBgFEmLdux6fJyaMghkEBe3H5rQfgvg5J3jeicYK6PClJ60odB2J33SvwKMRtvo8DjmzneAwkVRMdQkQQnY/xRyIATsMFJ0eZ/pzCAxtzLhOS9Tz/YkeJ9IJ+Y+pc0SOrOplHkV8Q6HIva1m8JMn3NDsBDb7mJsyqFAdgf3F4lRgT4TfmModrxP83LmEOEuL4LTHw391Wdbp7g918oK9AJnbMm+9rJTsiPppODR7tQLbx36KKcvUWyEus++3YUHO55+gZn+ORnuXnrRh+MzikVbgxjImYHYH9BevEdvY+AEvXqXqXCatby9qOxMLv7FoXMUSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s001kDeKpuqw7JIk2IhHR+Gqfv0Bvgk8YlRiT/XnsfA=; b=ecSxjs21G5tjZepNcGhWsAjtLRKZqlhks6kO30vPslFvwvAKsQtvuByvRJA0wmHUlN6Hq5nCsIdT9VnIfyUbSQ0m/PN63Fdpvfi+976FsBzG6yHxouPJhgR/qp4PDBCDh+6tbKzM0kA9zsctRjB7BD/w1Gbm2EZvOnc+OPPJz5w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS2PR03MB9768.eurprd03.prod.outlook.com (2603:10a6:20b:60b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:28:45 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:28:45 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [PATCH v3 07/24] disas/nanomips: Remove disasm methods from class Date: Mon, 12 Sep 2022 14:26:18 +0200 Message-Id: <20220912122635.74032-8-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS2PR03MB9768:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e05b834-c574-4440-3d1a-08da94ba5544 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M8YNboabkfyKAH/r8qk9ZjxOwbaXQIJbltgp4rvtLGMi/eypCIxx9KLYY6kugFJu2LpbbA/IVui4mLEOGaLVdro5siQUvet4wKY+zCV5Rw7SF5WRpzTkzncbljHIShQrjMpLEdQtpjmKcmetKTKciGpaVpe57V2O27OPnKhW3007A056Xal/HcTDmiO+CDgXFW3ZhyhumMcUpUb7TaXO/KbnRa9gnbOytyV4VdnMFfKybEfxhs4tvUb7BTdH7iTOjt47ilipPqZY/F5Daxy+T+IoiN1Xp8UbPVZAS8WHAcvZO3XC6l9rA/qQpETbBebzpeXZTWnKbgyuSJqA8Iw+yQaOD2CHn3q3kAbw2uzSz7cyGE3Zjxpxpa9nJtxwm9ocOuDjMl7VKT9abnTbZnQgNt+/9Evv3xqR6D0r+UBJlYdLEKC6HeIIZQtmdui9KthCGj9rVxSHFb6sKroAL64bMe59TtHTHjYL5ixXfHsx7a6mThmgIkfT60dAMask9c+1/3v9WagMcfFiMmQJdLVOCXhQoQ52jSSGZcKef1fLfsMW7yZjQ1r0HKkgJkVBDY/1g6VBlUNu4E4tQGHParJvL+TqTI5giqUZqHEHfPvzEULQhOzcJ03HaYZQHwwjFB9a2xiy4EYmp7KQD4T4FAv8AsiNkTbgH599xUR2YlBFN0VHv2+om30kyaq7hkJBNOA40GFjrAnpS3dGZGek/xJ1+78qc42LsV2RvOH0AqTa0TqcATK2m7IoYJw6tOL1B3ND X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(396003)(376002)(39840400004)(136003)(346002)(366004)(86362001)(66946007)(8676002)(38100700002)(66556008)(66476007)(4326008)(36756003)(38350700002)(186003)(83380400001)(2616005)(52116002)(6512007)(26005)(478600001)(6486002)(41300700001)(6506007)(6666004)(2906002)(6916009)(54906003)(316002)(1076003)(5660300002)(7416002)(8936002)(44832011)(30864003)(579004)(559001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0/LLzW8jnYkRBZS6VstV1fCaDxSr?= =?utf-8?q?EjzvigT8qIF1/l/iIemmUolAHrXx9dUhCwl9vA4Y0Z/EiOM0zfTxoP1zbj2lke62t?= =?utf-8?q?NfJA0f0BPcwPLbYXFGHNaiw9m5B2MtHvV58Jt4wzzlrXoEafVTioj5GPOD4eQxVqY?= =?utf-8?q?9sCPeMHyGT7/dKxRHjg8eDw3MlJ0nHHe1VMJPwHicBDYDJ9oCpZSENFMzjRft/23e?= =?utf-8?q?MM49wijPkk9ua2huNgKA45fCAAhAcJY20O5KvVDnKx4hr2M8L+jbhcrQRGguITUkd?= =?utf-8?q?5RQxSpwaZpLZivZEMULGrMYD2g0LEjLvvyx2cyHxeqkrVgvEhIBCrbpkQkaRdSQpg?= =?utf-8?q?hlMCjbjV/BqOc9sxaRl6PHaHOSYvE0ezMgdkgXPLE3vIPw00lw9hmBxhon3LAP+D5?= =?utf-8?q?mRP1Md+JjEpKj8as9QWSFJzntmpxnvRASLPUgEz1/5G6h1HANSe/CJOG9PdRCaoNY?= =?utf-8?q?1JLuWc9bb52xu3zqr6edleI97zP+e2XMhEE2fyPEoZ7VhgS/64pNETq49Fk5f9dfc?= =?utf-8?q?hkZ0iYIJYbKLVQyxzjAekq3UcvHKQ3tkEX0hJN7cRynOABP+q/VEXHnejIu0PbC/i?= =?utf-8?q?s54t7oGk7dW0jY+BOR5XKsIOpUVEI97ZZiDKOYNID9k4VDZkpqO/dI2TVmG+F7+WX?= =?utf-8?q?uq6k7FMPwqg/MqlKFOSoha+xuvSGRSSwAsx7GWWBytIrKJvUCGHiD4ktsaDIQ+vo2?= =?utf-8?q?NJDZnX1hP5Y30BJQFs4aup5RQhUVB0zu7hbpiq9Y7c5SVRY9WiO+0gKMQMflIeBPY?= =?utf-8?q?fhFI6eV7jMFPT4H1XE9gQdOsksfgHimB7SfdjIuWygArWzwn/DafYLo833AI8COqH?= =?utf-8?q?lrET+axG+2NuFxa14IrGqNU82A0/+NixZrhrik3GkJtV+s61kJDO+oM2bkAcXVZxJ?= =?utf-8?q?XR5NiQHKt+ZAJV9Vvnvwn6bv95Kc71lQysXM/tcYRaRuWj9MG7GcAy9NNXriXZqIL?= =?utf-8?q?vcffD8ILgyDcrvZOjh50uauMduYTRsvtHpWu/Ih8056r+CPav2RdVe1bfKKX/mL1X?= =?utf-8?q?AtTqSipNKPBiN0Ik4qVmXXnrORAErxbqoAfKehg1Psumcstrv5Jhn4domyn2N0O9g?= =?utf-8?q?bHgkah8xjRqhW6MH0OEPd6Fyu7jwoVX9qNMFDIZDQV+/RpfAExkW7Tw14Dvi1skG9?= =?utf-8?q?sylMZsgt/baVW8Ws50syuoGqcDJCU3GukdBkL4CCakKFunPOzaimRkFjKiMApv1Xn?= =?utf-8?q?mNcjiJwwgXkZzYxmczWsIAkAgIsA8BZkfeUifmiu87HK0kERx6wPJOY5cZsZQR7w/?= =?utf-8?q?H8S6h+tjETs2tzJIBvW9PElxEtKnxN7oUzvJ7L176NgsPtNHGjPSQTfxs0snNqAaR?= =?utf-8?q?dKtzNuJdq6XVB/7/KPtT7l9wO1FuGkS4pJJ9/yXhd6IAZTO3ezbFbq2OGHbqaRMp3?= =?utf-8?q?vZrMaawq+LNYBJZZRGfGHRp8/X3w/EIf7F2mq2/K6UNW4lM9b6SzuavoOYKcVOtGU?= =?utf-8?q?CO65OPOzjjUyEw/WaACx3vcMwM0IXSE0AWd73D9vDpwm8OtOPNnp4YaqjF2oDeIjp?= =?utf-8?q?6gAzCB4QqB3n38Hb61ut4cK1nMjmyQx4xg=3D=3D?= X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e05b834-c574-4440-3d1a-08da94ba5544 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:28:45.1084 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BgiFYGb3P7ehyAeO7XuqhzUarwb0E+vr9cKLkaAsEmOSqx/zOm7K14D57i+FpUpGmyV9Huu+IkLLkh9Y1WMqw2cHHjHFvSSCroTrRRjzHX0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB9768 Received-SPF: pass client-ip=40.107.20.102; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" NMD class methods with the disassembly_function type like NMD::ABS_D, NMD::ABS_S, etc. are removed from the class. They're now declared global static functions. Therefore, typedef of the function pointer, disassembly_function is defined outside of the class. Now that disassembly_function type functions are not part of the NMD class we can't access them using the this pointer. Thus, the use of the this pointer has been deleted. Signed-off-by: Milica Lazarevic Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 2546 ++++++++++++++++++++++---------------------- disas/nanomips.h | 642 +---------- 2 files changed, 1275 insertions(+), 1913 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 98a632a3fc..5482284206 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -802,7 +802,7 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, return -6; } type = table[i].type; - dis = (this->*dis_fn)(op_code, info); + dis = dis_fn(op_code, info); return table[i].instructions_size; } else { dis = "reserved instruction"; @@ -1757,7 +1757,7 @@ static bool SLTU_cond(uint64 instruction) * fs ----- * fd ----- */ -std::string NMD::ABS_D(uint64 instruction, Dis_info *info) +static std::string ABS_D(uint64 instruction, Dis_info *info) { uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1779,7 +1779,7 @@ std::string NMD::ABS_D(uint64 instruction, Dis_info *info) * fd ----- * fs ----- */ -std::string NMD::ABS_S(uint64 instruction, Dis_info *info) +static std::string ABS_S(uint64 instruction, Dis_info *info) { uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1801,7 +1801,7 @@ std::string NMD::ABS_S(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_PH(uint64 instruction, Dis_info *info) +static std::string ABSQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1823,7 +1823,7 @@ std::string NMD::ABSQ_S_PH(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_QB(uint64 instruction, Dis_info *info) +static std::string ABSQ_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1845,7 +1845,7 @@ std::string NMD::ABSQ_S_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_W(uint64 instruction, Dis_info *info) +static std::string ABSQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1866,7 +1866,7 @@ std::string NMD::ABSQ_S_W(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ACLR(uint64 instruction, Dis_info *info) +static std::string ACLR(uint64 instruction, Dis_info *info) { uint64 bit_value = extract_bit_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1889,7 +1889,7 @@ std::string NMD::ACLR(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADD(uint64 instruction, Dis_info *info) +static std::string ADD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1914,7 +1914,7 @@ std::string NMD::ADD(uint64 instruction, Dis_info *info) * fs ----- * fd ----- */ -std::string NMD::ADD_D(uint64 instruction, Dis_info *info) +static std::string ADD_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1939,7 +1939,7 @@ std::string NMD::ADD_D(uint64 instruction, Dis_info *info) * fs ----- * fd ----- */ -std::string NMD::ADD_S(uint64 instruction, Dis_info *info) +static std::string ADD_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1962,7 +1962,7 @@ std::string NMD::ADD_S(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADDIU_32_(uint64 instruction, Dis_info *info) +static std::string ADDIU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1985,7 +1985,7 @@ std::string NMD::ADDIU_32_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADDIU_48_(uint64 instruction, Dis_info *info) +static std::string ADDIU_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -2006,7 +2006,7 @@ std::string NMD::ADDIU_48_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP48_(uint64 instruction, Dis_info *info) +static std::string ADDIU_GP48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -2027,7 +2027,7 @@ std::string NMD::ADDIU_GP48_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP_B_(uint64 instruction, Dis_info *info) +static std::string ADDIU_GP_B_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -2048,7 +2048,7 @@ std::string NMD::ADDIU_GP_B_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP_W_(uint64 instruction, Dis_info *info) +static std::string ADDIU_GP_W_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -2069,7 +2069,7 @@ std::string NMD::ADDIU_GP_W_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADDIU_NEG_(uint64 instruction, Dis_info *info) +static std::string ADDIU_NEG_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2092,7 +2092,7 @@ std::string NMD::ADDIU_NEG_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADDIU_R1_SP_(uint64 instruction, Dis_info *info) +static std::string ADDIU_R1_SP_(uint64 instruction, Dis_info *info) { uint64 u_value = extract_u_5_4_3_2_1_0__s2(instruction); uint64 rt3_value = extract_rt3_9_8_7(instruction); @@ -2113,7 +2113,7 @@ std::string NMD::ADDIU_R1_SP_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::ADDIU_R2_(uint64 instruction, Dis_info *info) +static std::string ADDIU_R2_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2135,7 +2135,7 @@ std::string NMD::ADDIU_R2_(uint64 instruction, Dis_info *info) * rt ----- * s - --- */ -std::string NMD::ADDIU_RS5_(uint64 instruction, Dis_info *info) +static std::string ADDIU_RS5_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); int64 s_value = extract_s__se3_4_2_1_0(instruction); @@ -2157,7 +2157,7 @@ std::string NMD::ADDIU_RS5_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDIUPC_32_(uint64 instruction, Dis_info *info) +static std::string ADDIUPC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); @@ -2179,7 +2179,7 @@ std::string NMD::ADDIUPC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDIUPC_48_(uint64 instruction, Dis_info *info) +static std::string ADDIUPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -2201,7 +2201,7 @@ std::string NMD::ADDIUPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDQ_PH(uint64 instruction, Dis_info *info) +static std::string ADDQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2226,7 +2226,7 @@ std::string NMD::ADDQ_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDQ_S_PH(uint64 instruction, Dis_info *info) +static std::string ADDQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2250,7 +2250,7 @@ std::string NMD::ADDQ_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDQ_S_W(uint64 instruction, Dis_info *info) +static std::string ADDQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2275,7 +2275,7 @@ std::string NMD::ADDQ_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDQH_PH(uint64 instruction, Dis_info *info) +static std::string ADDQH_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2300,7 +2300,7 @@ std::string NMD::ADDQH_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDQH_R_PH(uint64 instruction, Dis_info *info) +static std::string ADDQH_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2325,7 +2325,7 @@ std::string NMD::ADDQH_R_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDQH_R_W(uint64 instruction, Dis_info *info) +static std::string ADDQH_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2350,7 +2350,7 @@ std::string NMD::ADDQH_R_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDQH_W(uint64 instruction, Dis_info *info) +static std::string ADDQH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2374,7 +2374,7 @@ std::string NMD::ADDQH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDSC(uint64 instruction, Dis_info *info) +static std::string ADDSC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2397,7 +2397,7 @@ std::string NMD::ADDSC(uint64 instruction, Dis_info *info) * rs3 --- * rd3 --- */ -std::string NMD::ADDU_16_(uint64 instruction, Dis_info *info) +static std::string ADDU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2421,7 +2421,7 @@ std::string NMD::ADDU_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDU_32_(uint64 instruction, Dis_info *info) +static std::string ADDU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2445,7 +2445,7 @@ std::string NMD::ADDU_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDU_4X4_(uint64 instruction, Dis_info *info) +static std::string ADDU_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -2467,7 +2467,7 @@ std::string NMD::ADDU_4X4_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDU_PH(uint64 instruction, Dis_info *info) +static std::string ADDU_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2491,7 +2491,7 @@ std::string NMD::ADDU_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDU_QB(uint64 instruction, Dis_info *info) +static std::string ADDU_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2516,7 +2516,7 @@ std::string NMD::ADDU_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDU_S_PH(uint64 instruction, Dis_info *info) +static std::string ADDU_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2540,7 +2540,7 @@ std::string NMD::ADDU_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDU_S_QB(uint64 instruction, Dis_info *info) +static std::string ADDU_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2565,7 +2565,7 @@ std::string NMD::ADDU_S_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDUH_QB(uint64 instruction, Dis_info *info) +static std::string ADDUH_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2590,7 +2590,7 @@ std::string NMD::ADDUH_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDUH_R_QB(uint64 instruction, Dis_info *info) +static std::string ADDUH_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2613,7 +2613,7 @@ std::string NMD::ADDUH_R_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ADDWC(uint64 instruction, Dis_info *info) +static std::string ADDWC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2637,7 +2637,7 @@ std::string NMD::ADDWC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ALUIPC(uint64 instruction, Dis_info *info) +static std::string ALUIPC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); @@ -2658,7 +2658,7 @@ std::string NMD::ALUIPC(uint64 instruction, Dis_info *info) * rs3 --- * eu ---- */ -std::string NMD::AND_16_(uint64 instruction, Dis_info *info) +static std::string AND_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2680,7 +2680,7 @@ std::string NMD::AND_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::AND_32_(uint64 instruction, Dis_info *info) +static std::string AND_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2703,7 +2703,7 @@ std::string NMD::AND_32_(uint64 instruction, Dis_info *info) * rs3 --- * eu ---- */ -std::string NMD::ANDI_16_(uint64 instruction, Dis_info *info) +static std::string ANDI_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2727,7 +2727,7 @@ std::string NMD::ANDI_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ANDI_32_(uint64 instruction, Dis_info *info) +static std::string ANDI_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2751,7 +2751,7 @@ std::string NMD::ANDI_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::APPEND(uint64 instruction, Dis_info *info) +static std::string APPEND(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2775,7 +2775,7 @@ std::string NMD::APPEND(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ASET(uint64 instruction, Dis_info *info) +static std::string ASET(uint64 instruction, Dis_info *info) { uint64 bit_value = extract_bit_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2799,7 +2799,7 @@ std::string NMD::ASET(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BALC_16_(uint64 instruction, Dis_info *info) +static std::string BALC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); @@ -2819,7 +2819,7 @@ std::string NMD::BALC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BALC_32_(uint64 instruction, Dis_info *info) +static std::string BALC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); @@ -2839,7 +2839,7 @@ std::string NMD::BALC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BALRSC(uint64 instruction, Dis_info *info) +static std::string BALRSC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2861,7 +2861,7 @@ std::string NMD::BALRSC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BBEQZC(uint64 instruction, Dis_info *info) +static std::string BBEQZC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); @@ -2885,7 +2885,7 @@ std::string NMD::BBEQZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BBNEZC(uint64 instruction, Dis_info *info) +static std::string BBNEZC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); @@ -2909,7 +2909,7 @@ std::string NMD::BBNEZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BC_16_(uint64 instruction, Dis_info *info) +static std::string BC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); @@ -2929,7 +2929,7 @@ std::string NMD::BC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BC_32_(uint64 instruction, Dis_info *info) +static std::string BC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); @@ -2949,7 +2949,7 @@ std::string NMD::BC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BC1EQZC(uint64 instruction, Dis_info *info) +static std::string BC1EQZC(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -2971,7 +2971,7 @@ std::string NMD::BC1EQZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BC1NEZC(uint64 instruction, Dis_info *info) +static std::string BC1NEZC(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -2993,7 +2993,7 @@ std::string NMD::BC1NEZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BC2EQZC(uint64 instruction, Dis_info *info) +static std::string BC2EQZC(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -3015,7 +3015,7 @@ std::string NMD::BC2EQZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BC2NEZC(uint64 instruction, Dis_info *info) +static std::string BC2NEZC(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -3037,7 +3037,7 @@ std::string NMD::BC2NEZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BEQC_16_(uint64 instruction, Dis_info *info) +static std::string BEQC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -3061,7 +3061,7 @@ std::string NMD::BEQC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BEQC_32_(uint64 instruction, Dis_info *info) +static std::string BEQC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3085,7 +3085,7 @@ std::string NMD::BEQC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BEQIC(uint64 instruction, Dis_info *info) +static std::string BEQIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3109,7 +3109,7 @@ std::string NMD::BEQIC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BEQZC_16_(uint64 instruction, Dis_info *info) +static std::string BEQZC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); @@ -3131,7 +3131,7 @@ std::string NMD::BEQZC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BGEC(uint64 instruction, Dis_info *info) +static std::string BGEC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3155,7 +3155,7 @@ std::string NMD::BGEC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BGEIC(uint64 instruction, Dis_info *info) +static std::string BGEIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3179,7 +3179,7 @@ std::string NMD::BGEIC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BGEIUC(uint64 instruction, Dis_info *info) +static std::string BGEIUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3203,7 +3203,7 @@ std::string NMD::BGEIUC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BGEUC(uint64 instruction, Dis_info *info) +static std::string BGEUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3227,7 +3227,7 @@ std::string NMD::BGEUC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BLTC(uint64 instruction, Dis_info *info) +static std::string BLTC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3251,7 +3251,7 @@ std::string NMD::BLTC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BLTIC(uint64 instruction, Dis_info *info) +static std::string BLTIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3275,7 +3275,7 @@ std::string NMD::BLTIC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BLTIUC(uint64 instruction, Dis_info *info) +static std::string BLTIUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3299,7 +3299,7 @@ std::string NMD::BLTIUC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BLTUC(uint64 instruction, Dis_info *info) +static std::string BLTUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3323,7 +3323,7 @@ std::string NMD::BLTUC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BNEC_16_(uint64 instruction, Dis_info *info) +static std::string BNEC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -3347,7 +3347,7 @@ std::string NMD::BNEC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BNEC_32_(uint64 instruction, Dis_info *info) +static std::string BNEC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3371,7 +3371,7 @@ std::string NMD::BNEC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BNEIC(uint64 instruction, Dis_info *info) +static std::string BNEIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3395,7 +3395,7 @@ std::string NMD::BNEIC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BNEZC_16_(uint64 instruction, Dis_info *info) +static std::string BNEZC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); @@ -3417,7 +3417,7 @@ std::string NMD::BNEZC_16_(uint64 instruction, Dis_info *info) * s[13:1] ------------- * s[14] - */ -std::string NMD::BPOSGE32C(uint64 instruction, Dis_info *info) +static std::string BPOSGE32C(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -3437,7 +3437,7 @@ std::string NMD::BPOSGE32C(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BREAK_16_(uint64 instruction, Dis_info *info) +static std::string BREAK_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); @@ -3457,7 +3457,7 @@ std::string NMD::BREAK_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BREAK_32_(uint64 instruction, Dis_info *info) +static std::string BREAK_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); @@ -3477,7 +3477,7 @@ std::string NMD::BREAK_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::BRSC(uint64 instruction, Dis_info *info) +static std::string BRSC(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3497,7 +3497,7 @@ std::string NMD::BRSC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CACHE(uint64 instruction, Dis_info *info) +static std::string CACHE(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3521,7 +3521,7 @@ std::string NMD::CACHE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CACHEE(uint64 instruction, Dis_info *info) +static std::string CACHEE(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3545,7 +3545,7 @@ std::string NMD::CACHEE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CEIL_L_D(uint64 instruction, Dis_info *info) +static std::string CEIL_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3567,7 +3567,7 @@ std::string NMD::CEIL_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CEIL_L_S(uint64 instruction, Dis_info *info) +static std::string CEIL_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3589,7 +3589,7 @@ std::string NMD::CEIL_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CEIL_W_D(uint64 instruction, Dis_info *info) +static std::string CEIL_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3611,7 +3611,7 @@ std::string NMD::CEIL_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CEIL_W_S(uint64 instruction, Dis_info *info) +static std::string CEIL_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3633,7 +3633,7 @@ std::string NMD::CEIL_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CFC1(uint64 instruction, Dis_info *info) +static std::string CFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -3655,7 +3655,7 @@ std::string NMD::CFC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CFC2(uint64 instruction, Dis_info *info) +static std::string CFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -3677,7 +3677,7 @@ std::string NMD::CFC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CLASS_D(uint64 instruction, Dis_info *info) +static std::string CLASS_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3699,7 +3699,7 @@ std::string NMD::CLASS_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CLASS_S(uint64 instruction, Dis_info *info) +static std::string CLASS_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3721,7 +3721,7 @@ std::string NMD::CLASS_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CLO(uint64 instruction, Dis_info *info) +static std::string CLO(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3743,7 +3743,7 @@ std::string NMD::CLO(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CLZ(uint64 instruction, Dis_info *info) +static std::string CLZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3765,7 +3765,7 @@ std::string NMD::CLZ(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_AF_D(uint64 instruction, Dis_info *info) +static std::string CMP_AF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3789,7 +3789,7 @@ std::string NMD::CMP_AF_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_AF_S(uint64 instruction, Dis_info *info) +static std::string CMP_AF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3813,7 +3813,7 @@ std::string NMD::CMP_AF_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_EQ_D(uint64 instruction, Dis_info *info) +static std::string CMP_EQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3836,7 +3836,7 @@ std::string NMD::CMP_EQ_D(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::CMP_EQ_PH(uint64 instruction, Dis_info *info) +static std::string CMP_EQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3858,7 +3858,7 @@ std::string NMD::CMP_EQ_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_EQ_S(uint64 instruction, Dis_info *info) +static std::string CMP_EQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3882,7 +3882,7 @@ std::string NMD::CMP_EQ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_LE_D(uint64 instruction, Dis_info *info) +static std::string CMP_LE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3905,7 +3905,7 @@ std::string NMD::CMP_LE_D(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::CMP_LE_PH(uint64 instruction, Dis_info *info) +static std::string CMP_LE_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3927,7 +3927,7 @@ std::string NMD::CMP_LE_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_LE_S(uint64 instruction, Dis_info *info) +static std::string CMP_LE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3951,7 +3951,7 @@ std::string NMD::CMP_LE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_LT_D(uint64 instruction, Dis_info *info) +static std::string CMP_LT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3974,7 +3974,7 @@ std::string NMD::CMP_LT_D(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::CMP_LT_PH(uint64 instruction, Dis_info *info) +static std::string CMP_LT_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3996,7 +3996,7 @@ std::string NMD::CMP_LT_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_LT_S(uint64 instruction, Dis_info *info) +static std::string CMP_LT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4020,7 +4020,7 @@ std::string NMD::CMP_LT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_NE_D(uint64 instruction, Dis_info *info) +static std::string CMP_NE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4044,7 +4044,7 @@ std::string NMD::CMP_NE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_NE_S(uint64 instruction, Dis_info *info) +static std::string CMP_NE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4068,7 +4068,7 @@ std::string NMD::CMP_NE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_OR_D(uint64 instruction, Dis_info *info) +static std::string CMP_OR_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4092,7 +4092,7 @@ std::string NMD::CMP_OR_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_OR_S(uint64 instruction, Dis_info *info) +static std::string CMP_OR_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4116,7 +4116,7 @@ std::string NMD::CMP_OR_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SAF_D(uint64 instruction, Dis_info *info) +static std::string CMP_SAF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4140,7 +4140,7 @@ std::string NMD::CMP_SAF_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SAF_S(uint64 instruction, Dis_info *info) +static std::string CMP_SAF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4164,7 +4164,7 @@ std::string NMD::CMP_SAF_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SEQ_D(uint64 instruction, Dis_info *info) +static std::string CMP_SEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4188,7 +4188,7 @@ std::string NMD::CMP_SEQ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SEQ_S(uint64 instruction, Dis_info *info) +static std::string CMP_SEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4212,7 +4212,7 @@ std::string NMD::CMP_SEQ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SLE_D(uint64 instruction, Dis_info *info) +static std::string CMP_SLE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4236,7 +4236,7 @@ std::string NMD::CMP_SLE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SLE_S(uint64 instruction, Dis_info *info) +static std::string CMP_SLE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4260,7 +4260,7 @@ std::string NMD::CMP_SLE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SLT_D(uint64 instruction, Dis_info *info) +static std::string CMP_SLT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4284,7 +4284,7 @@ std::string NMD::CMP_SLT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SLT_S(uint64 instruction, Dis_info *info) +static std::string CMP_SLT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4308,7 +4308,7 @@ std::string NMD::CMP_SLT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SNE_D(uint64 instruction, Dis_info *info) +static std::string CMP_SNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4332,7 +4332,7 @@ std::string NMD::CMP_SNE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SNE_S(uint64 instruction, Dis_info *info) +static std::string CMP_SNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4356,7 +4356,7 @@ std::string NMD::CMP_SNE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SOR_D(uint64 instruction, Dis_info *info) +static std::string CMP_SOR_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4380,7 +4380,7 @@ std::string NMD::CMP_SOR_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SOR_S(uint64 instruction, Dis_info *info) +static std::string CMP_SOR_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4404,7 +4404,7 @@ std::string NMD::CMP_SOR_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SUEQ_D(uint64 instruction, Dis_info *info) +static std::string CMP_SUEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4428,7 +4428,7 @@ std::string NMD::CMP_SUEQ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SUEQ_S(uint64 instruction, Dis_info *info) +static std::string CMP_SUEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4452,7 +4452,7 @@ std::string NMD::CMP_SUEQ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SULE_D(uint64 instruction, Dis_info *info) +static std::string CMP_SULE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4476,7 +4476,7 @@ std::string NMD::CMP_SULE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SULE_S(uint64 instruction, Dis_info *info) +static std::string CMP_SULE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4500,7 +4500,7 @@ std::string NMD::CMP_SULE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SULT_D(uint64 instruction, Dis_info *info) +static std::string CMP_SULT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4524,7 +4524,7 @@ std::string NMD::CMP_SULT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SULT_S(uint64 instruction, Dis_info *info) +static std::string CMP_SULT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4548,7 +4548,7 @@ std::string NMD::CMP_SULT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SUN_D(uint64 instruction, Dis_info *info) +static std::string CMP_SUN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4572,7 +4572,7 @@ std::string NMD::CMP_SUN_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SUNE_D(uint64 instruction, Dis_info *info) +static std::string CMP_SUNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4596,7 +4596,7 @@ std::string NMD::CMP_SUNE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SUNE_S(uint64 instruction, Dis_info *info) +static std::string CMP_SUNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4620,7 +4620,7 @@ std::string NMD::CMP_SUNE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_SUN_S(uint64 instruction, Dis_info *info) +static std::string CMP_SUN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4644,7 +4644,7 @@ std::string NMD::CMP_SUN_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_UEQ_D(uint64 instruction, Dis_info *info) +static std::string CMP_UEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4668,7 +4668,7 @@ std::string NMD::CMP_UEQ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_UEQ_S(uint64 instruction, Dis_info *info) +static std::string CMP_UEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4692,7 +4692,7 @@ std::string NMD::CMP_UEQ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_ULE_D(uint64 instruction, Dis_info *info) +static std::string CMP_ULE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4716,7 +4716,7 @@ std::string NMD::CMP_ULE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_ULE_S(uint64 instruction, Dis_info *info) +static std::string CMP_ULE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4740,7 +4740,7 @@ std::string NMD::CMP_ULE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_ULT_D(uint64 instruction, Dis_info *info) +static std::string CMP_ULT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4764,7 +4764,7 @@ std::string NMD::CMP_ULT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_ULT_S(uint64 instruction, Dis_info *info) +static std::string CMP_ULT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4788,7 +4788,7 @@ std::string NMD::CMP_ULT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_UN_D(uint64 instruction, Dis_info *info) +static std::string CMP_UN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4812,7 +4812,7 @@ std::string NMD::CMP_UN_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_UNE_D(uint64 instruction, Dis_info *info) +static std::string CMP_UNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4836,7 +4836,7 @@ std::string NMD::CMP_UNE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_UNE_S(uint64 instruction, Dis_info *info) +static std::string CMP_UNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4860,7 +4860,7 @@ std::string NMD::CMP_UNE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMP_UN_S(uint64 instruction, Dis_info *info) +static std::string CMP_UN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4885,7 +4885,7 @@ std::string NMD::CMP_UN_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) +static std::string CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4910,7 +4910,7 @@ std::string NMD::CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_LE_QB(uint64 instruction, Dis_info *info) +static std::string CMPGDU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4935,7 +4935,7 @@ std::string NMD::CMPGDU_LE_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_LT_QB(uint64 instruction, Dis_info *info) +static std::string CMPGDU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4960,7 +4960,7 @@ std::string NMD::CMPGDU_LT_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMPGU_EQ_QB(uint64 instruction, Dis_info *info) +static std::string CMPGU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4985,7 +4985,7 @@ std::string NMD::CMPGU_EQ_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMPGU_LE_QB(uint64 instruction, Dis_info *info) +static std::string CMPGU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5010,7 +5010,7 @@ std::string NMD::CMPGU_LE_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CMPGU_LT_QB(uint64 instruction, Dis_info *info) +static std::string CMPGU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5034,7 +5034,7 @@ std::string NMD::CMPGU_LT_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::CMPU_EQ_QB(uint64 instruction, Dis_info *info) +static std::string CMPU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5056,7 +5056,7 @@ std::string NMD::CMPU_EQ_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::CMPU_LE_QB(uint64 instruction, Dis_info *info) +static std::string CMPU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5078,7 +5078,7 @@ std::string NMD::CMPU_LE_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::CMPU_LT_QB(uint64 instruction, Dis_info *info) +static std::string CMPU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5100,7 +5100,7 @@ std::string NMD::CMPU_LT_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::COP2_1(uint64 instruction, Dis_info *info) +static std::string COP2_1(uint64 instruction, Dis_info *info) { uint64 cofun_value = extract_cofun_25_24_23(instruction); @@ -5120,7 +5120,7 @@ std::string NMD::COP2_1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CTC1(uint64 instruction, Dis_info *info) +static std::string CTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -5142,7 +5142,7 @@ std::string NMD::CTC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CTC2(uint64 instruction, Dis_info *info) +static std::string CTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -5164,7 +5164,7 @@ std::string NMD::CTC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_D_L(uint64 instruction, Dis_info *info) +static std::string CVT_D_L(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5186,7 +5186,7 @@ std::string NMD::CVT_D_L(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_D_S(uint64 instruction, Dis_info *info) +static std::string CVT_D_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5208,7 +5208,7 @@ std::string NMD::CVT_D_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_D_W(uint64 instruction, Dis_info *info) +static std::string CVT_D_W(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5230,7 +5230,7 @@ std::string NMD::CVT_D_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_L_D(uint64 instruction, Dis_info *info) +static std::string CVT_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5252,7 +5252,7 @@ std::string NMD::CVT_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_L_S(uint64 instruction, Dis_info *info) +static std::string CVT_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5274,7 +5274,7 @@ std::string NMD::CVT_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_S_D(uint64 instruction, Dis_info *info) +static std::string CVT_S_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5296,7 +5296,7 @@ std::string NMD::CVT_S_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_S_L(uint64 instruction, Dis_info *info) +static std::string CVT_S_L(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5318,7 +5318,7 @@ std::string NMD::CVT_S_L(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_S_PL(uint64 instruction, Dis_info *info) +static std::string CVT_S_PL(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5340,7 +5340,7 @@ std::string NMD::CVT_S_PL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_S_PU(uint64 instruction, Dis_info *info) +static std::string CVT_S_PU(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5362,7 +5362,7 @@ std::string NMD::CVT_S_PU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_S_W(uint64 instruction, Dis_info *info) +static std::string CVT_S_W(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5384,7 +5384,7 @@ std::string NMD::CVT_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_W_D(uint64 instruction, Dis_info *info) +static std::string CVT_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5406,7 +5406,7 @@ std::string NMD::CVT_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::CVT_W_S(uint64 instruction, Dis_info *info) +static std::string CVT_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5428,7 +5428,7 @@ std::string NMD::CVT_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DADDIU_48_(uint64 instruction, Dis_info *info) +static std::string DADDIU_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -5450,7 +5450,7 @@ std::string NMD::DADDIU_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DADDIU_NEG_(uint64 instruction, Dis_info *info) +static std::string DADDIU_NEG_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5474,7 +5474,7 @@ std::string NMD::DADDIU_NEG_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DADDIU_U12_(uint64 instruction, Dis_info *info) +static std::string DADDIU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5498,7 +5498,7 @@ std::string NMD::DADDIU_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DADD(uint64 instruction, Dis_info *info) +static std::string DADD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5522,7 +5522,7 @@ std::string NMD::DADD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DADDU(uint64 instruction, Dis_info *info) +static std::string DADDU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5546,7 +5546,7 @@ std::string NMD::DADDU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DCLO(uint64 instruction, Dis_info *info) +static std::string DCLO(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5568,7 +5568,7 @@ std::string NMD::DCLO(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DCLZ(uint64 instruction, Dis_info *info) +static std::string DCLZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5590,7 +5590,7 @@ std::string NMD::DCLZ(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DDIV(uint64 instruction, Dis_info *info) +static std::string DDIV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5614,7 +5614,7 @@ std::string NMD::DDIV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DDIVU(uint64 instruction, Dis_info *info) +static std::string DDIVU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5638,7 +5638,7 @@ std::string NMD::DDIVU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DERET(uint64 instruction, Dis_info *info) +static std::string DERET(uint64 instruction, Dis_info *info) { (void)instruction; @@ -5656,7 +5656,7 @@ std::string NMD::DERET(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DEXTM(uint64 instruction, Dis_info *info) +static std::string DEXTM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5682,7 +5682,7 @@ std::string NMD::DEXTM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DEXT(uint64 instruction, Dis_info *info) +static std::string DEXT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5708,7 +5708,7 @@ std::string NMD::DEXT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DEXTU(uint64 instruction, Dis_info *info) +static std::string DEXTU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5734,7 +5734,7 @@ std::string NMD::DEXTU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DINSM(uint64 instruction, Dis_info *info) +static std::string DINSM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5762,7 +5762,7 @@ std::string NMD::DINSM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DINS(uint64 instruction, Dis_info *info) +static std::string DINS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5790,7 +5790,7 @@ std::string NMD::DINS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DINSU(uint64 instruction, Dis_info *info) +static std::string DINSU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5818,7 +5818,7 @@ std::string NMD::DINSU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DI(uint64 instruction, Dis_info *info) +static std::string DI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -5838,7 +5838,7 @@ std::string NMD::DI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DIV(uint64 instruction, Dis_info *info) +static std::string DIV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5862,7 +5862,7 @@ std::string NMD::DIV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DIV_D(uint64 instruction, Dis_info *info) +static std::string DIV_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5886,7 +5886,7 @@ std::string NMD::DIV_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DIV_S(uint64 instruction, Dis_info *info) +static std::string DIV_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5910,7 +5910,7 @@ std::string NMD::DIV_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DIVU(uint64 instruction, Dis_info *info) +static std::string DIVU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5934,7 +5934,7 @@ std::string NMD::DIVU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DLSA(uint64 instruction, Dis_info *info) +static std::string DLSA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5960,7 +5960,7 @@ std::string NMD::DLSA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DLUI_48_(uint64 instruction, Dis_info *info) +static std::string DLUI_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); uint64 u_value = extract_u_31_to_0__s32(instruction); @@ -5982,7 +5982,7 @@ std::string NMD::DLUI_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMFC0(uint64 instruction, Dis_info *info) +static std::string DMFC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6006,7 +6006,7 @@ std::string NMD::DMFC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMFC1(uint64 instruction, Dis_info *info) +static std::string DMFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -6028,7 +6028,7 @@ std::string NMD::DMFC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMFC2(uint64 instruction, Dis_info *info) +static std::string DMFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -6050,7 +6050,7 @@ std::string NMD::DMFC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMFGC0(uint64 instruction, Dis_info *info) +static std::string DMFGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6074,7 +6074,7 @@ std::string NMD::DMFGC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMOD(uint64 instruction, Dis_info *info) +static std::string DMOD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6098,7 +6098,7 @@ std::string NMD::DMOD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMODU(uint64 instruction, Dis_info *info) +static std::string DMODU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6122,7 +6122,7 @@ std::string NMD::DMODU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMTC0(uint64 instruction, Dis_info *info) +static std::string DMTC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6146,7 +6146,7 @@ std::string NMD::DMTC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMTC1(uint64 instruction, Dis_info *info) +static std::string DMTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -6168,7 +6168,7 @@ std::string NMD::DMTC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMTC2(uint64 instruction, Dis_info *info) +static std::string DMTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -6190,7 +6190,7 @@ std::string NMD::DMTC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMTGC0(uint64 instruction, Dis_info *info) +static std::string DMTGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6214,7 +6214,7 @@ std::string NMD::DMTGC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMT(uint64 instruction, Dis_info *info) +static std::string DMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -6234,7 +6234,7 @@ std::string NMD::DMT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMUH(uint64 instruction, Dis_info *info) +static std::string DMUH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6258,7 +6258,7 @@ std::string NMD::DMUH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMUHU(uint64 instruction, Dis_info *info) +static std::string DMUHU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6282,7 +6282,7 @@ std::string NMD::DMUHU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMUL(uint64 instruction, Dis_info *info) +static std::string DMUL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6306,7 +6306,7 @@ std::string NMD::DMUL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DMULU(uint64 instruction, Dis_info *info) +static std::string DMULU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6331,7 +6331,7 @@ std::string NMD::DMULU(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::DPA_W_PH(uint64 instruction, Dis_info *info) +static std::string DPA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6355,7 +6355,7 @@ std::string NMD::DPA_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPAQ_SA_L_W(uint64 instruction, Dis_info *info) +static std::string DPAQ_SA_L_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6379,7 +6379,7 @@ std::string NMD::DPAQ_SA_L_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPAQ_S_W_PH(uint64 instruction, Dis_info *info) +static std::string DPAQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6403,7 +6403,7 @@ std::string NMD::DPAQ_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) +static std::string DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6427,7 +6427,7 @@ std::string NMD::DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPAQX_S_W_PH(uint64 instruction, Dis_info *info) +static std::string DPAQX_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6451,7 +6451,7 @@ std::string NMD::DPAQX_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPAU_H_QBL(uint64 instruction, Dis_info *info) +static std::string DPAU_H_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6475,7 +6475,7 @@ std::string NMD::DPAU_H_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPAU_H_QBR(uint64 instruction, Dis_info *info) +static std::string DPAU_H_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6499,7 +6499,7 @@ std::string NMD::DPAU_H_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPAX_W_PH(uint64 instruction, Dis_info *info) +static std::string DPAX_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6523,7 +6523,7 @@ std::string NMD::DPAX_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPS_W_PH(uint64 instruction, Dis_info *info) +static std::string DPS_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6547,7 +6547,7 @@ std::string NMD::DPS_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPSQ_SA_L_W(uint64 instruction, Dis_info *info) +static std::string DPSQ_SA_L_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6571,7 +6571,7 @@ std::string NMD::DPSQ_SA_L_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPSQ_S_W_PH(uint64 instruction, Dis_info *info) +static std::string DPSQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6595,7 +6595,7 @@ std::string NMD::DPSQ_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) +static std::string DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6619,7 +6619,7 @@ std::string NMD::DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPSQX_S_W_PH(uint64 instruction, Dis_info *info) +static std::string DPSQX_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6643,7 +6643,7 @@ std::string NMD::DPSQX_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPSU_H_QBL(uint64 instruction, Dis_info *info) +static std::string DPSU_H_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6667,7 +6667,7 @@ std::string NMD::DPSU_H_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPSU_H_QBR(uint64 instruction, Dis_info *info) +static std::string DPSU_H_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6691,7 +6691,7 @@ std::string NMD::DPSU_H_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DPSX_W_PH(uint64 instruction, Dis_info *info) +static std::string DPSX_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6715,7 +6715,7 @@ std::string NMD::DPSX_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DROTR(uint64 instruction, Dis_info *info) +static std::string DROTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6739,7 +6739,7 @@ std::string NMD::DROTR(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -std::string NMD::DROTR32(uint64 instruction, Dis_info *info) +static std::string DROTR32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6763,7 +6763,7 @@ std::string NMD::DROTR32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DROTRV(uint64 instruction, Dis_info *info) +static std::string DROTRV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6787,7 +6787,7 @@ std::string NMD::DROTRV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DROTX(uint64 instruction, Dis_info *info) +static std::string DROTX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6813,7 +6813,7 @@ std::string NMD::DROTX(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -std::string NMD::DSLL(uint64 instruction, Dis_info *info) +static std::string DSLL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6837,7 +6837,7 @@ std::string NMD::DSLL(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -std::string NMD::DSLL32(uint64 instruction, Dis_info *info) +static std::string DSLL32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6861,7 +6861,7 @@ std::string NMD::DSLL32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DSLLV(uint64 instruction, Dis_info *info) +static std::string DSLLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6885,7 +6885,7 @@ std::string NMD::DSLLV(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -std::string NMD::DSRA(uint64 instruction, Dis_info *info) +static std::string DSRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6909,7 +6909,7 @@ std::string NMD::DSRA(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -std::string NMD::DSRA32(uint64 instruction, Dis_info *info) +static std::string DSRA32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6933,7 +6933,7 @@ std::string NMD::DSRA32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DSRAV(uint64 instruction, Dis_info *info) +static std::string DSRAV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6957,7 +6957,7 @@ std::string NMD::DSRAV(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -std::string NMD::DSRL(uint64 instruction, Dis_info *info) +static std::string DSRL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6981,7 +6981,7 @@ std::string NMD::DSRL(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -std::string NMD::DSRL32(uint64 instruction, Dis_info *info) +static std::string DSRL32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7005,7 +7005,7 @@ std::string NMD::DSRL32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DSRLV(uint64 instruction, Dis_info *info) +static std::string DSRLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7029,7 +7029,7 @@ std::string NMD::DSRLV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DSUB(uint64 instruction, Dis_info *info) +static std::string DSUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7053,7 +7053,7 @@ std::string NMD::DSUB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DSUBU(uint64 instruction, Dis_info *info) +static std::string DSUBU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7077,7 +7077,7 @@ std::string NMD::DSUBU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DVPE(uint64 instruction, Dis_info *info) +static std::string DVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7097,7 +7097,7 @@ std::string NMD::DVPE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::DVP(uint64 instruction, Dis_info *info) +static std::string DVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7117,7 +7117,7 @@ std::string NMD::DVP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EHB(uint64 instruction, Dis_info *info) +static std::string EHB(uint64 instruction, Dis_info *info) { (void)instruction; @@ -7135,7 +7135,7 @@ std::string NMD::EHB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EI(uint64 instruction, Dis_info *info) +static std::string EI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7155,7 +7155,7 @@ std::string NMD::EI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EMT(uint64 instruction, Dis_info *info) +static std::string EMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7175,7 +7175,7 @@ std::string NMD::EMT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ERET(uint64 instruction, Dis_info *info) +static std::string ERET(uint64 instruction, Dis_info *info) { (void)instruction; @@ -7193,7 +7193,7 @@ std::string NMD::ERET(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ERETNC(uint64 instruction, Dis_info *info) +static std::string ERETNC(uint64 instruction, Dis_info *info) { (void)instruction; @@ -7211,7 +7211,7 @@ std::string NMD::ERETNC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EVP(uint64 instruction, Dis_info *info) +static std::string EVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7231,7 +7231,7 @@ std::string NMD::EVP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EVPE(uint64 instruction, Dis_info *info) +static std::string EVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7251,7 +7251,7 @@ std::string NMD::EVPE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EXT(uint64 instruction, Dis_info *info) +static std::string EXT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7277,7 +7277,7 @@ std::string NMD::EXT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EXTD(uint64 instruction, Dis_info *info) +static std::string EXTD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7303,7 +7303,7 @@ std::string NMD::EXTD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EXTD32(uint64 instruction, Dis_info *info) +static std::string EXTD32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7329,7 +7329,7 @@ std::string NMD::EXTD32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EXTPDP(uint64 instruction, Dis_info *info) +static std::string EXTPDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 size_value = extract_size_20_19_18_17_16(instruction); @@ -7353,7 +7353,7 @@ std::string NMD::EXTPDP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EXTPDPV(uint64 instruction, Dis_info *info) +static std::string EXTPDPV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7377,7 +7377,7 @@ std::string NMD::EXTPDPV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EXTP(uint64 instruction, Dis_info *info) +static std::string EXTP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 size_value = extract_size_20_19_18_17_16(instruction); @@ -7401,7 +7401,7 @@ std::string NMD::EXTP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::EXTPV(uint64 instruction, Dis_info *info) +static std::string EXTPV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7426,7 +7426,7 @@ std::string NMD::EXTPV(uint64 instruction, Dis_info *info) * shift ----- * ac -- */ -std::string NMD::EXTR_RS_W(uint64 instruction, Dis_info *info) +static std::string EXTR_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7451,7 +7451,7 @@ std::string NMD::EXTR_RS_W(uint64 instruction, Dis_info *info) * shift ----- * ac -- */ -std::string NMD::EXTR_R_W(uint64 instruction, Dis_info *info) +static std::string EXTR_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7476,7 +7476,7 @@ std::string NMD::EXTR_R_W(uint64 instruction, Dis_info *info) * shift ----- * ac -- */ -std::string NMD::EXTR_S_H(uint64 instruction, Dis_info *info) +static std::string EXTR_S_H(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7501,7 +7501,7 @@ std::string NMD::EXTR_S_H(uint64 instruction, Dis_info *info) * shift ----- * ac -- */ -std::string NMD::EXTR_W(uint64 instruction, Dis_info *info) +static std::string EXTR_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7526,7 +7526,7 @@ std::string NMD::EXTR_W(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::EXTRV_RS_W(uint64 instruction, Dis_info *info) +static std::string EXTRV_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7551,7 +7551,7 @@ std::string NMD::EXTRV_RS_W(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::EXTRV_R_W(uint64 instruction, Dis_info *info) +static std::string EXTRV_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7576,7 +7576,7 @@ std::string NMD::EXTRV_R_W(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::EXTRV_S_H(uint64 instruction, Dis_info *info) +static std::string EXTRV_S_H(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7601,7 +7601,7 @@ std::string NMD::EXTRV_S_H(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::EXTRV_W(uint64 instruction, Dis_info *info) +static std::string EXTRV_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7626,7 +7626,7 @@ std::string NMD::EXTRV_W(uint64 instruction, Dis_info *info) * rd ----- * shift ----- */ -std::string NMD::EXTW(uint64 instruction, Dis_info *info) +static std::string EXTW(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7652,7 +7652,7 @@ std::string NMD::EXTW(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::FLOOR_L_D(uint64 instruction, Dis_info *info) +static std::string FLOOR_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7674,7 +7674,7 @@ std::string NMD::FLOOR_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::FLOOR_L_S(uint64 instruction, Dis_info *info) +static std::string FLOOR_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7696,7 +7696,7 @@ std::string NMD::FLOOR_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::FLOOR_W_D(uint64 instruction, Dis_info *info) +static std::string FLOOR_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7718,7 +7718,7 @@ std::string NMD::FLOOR_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::FLOOR_W_S(uint64 instruction, Dis_info *info) +static std::string FLOOR_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7740,7 +7740,7 @@ std::string NMD::FLOOR_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::FORK(uint64 instruction, Dis_info *info) +static std::string FORK(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7764,7 +7764,7 @@ std::string NMD::FORK(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::HYPCALL(uint64 instruction, Dis_info *info) +static std::string HYPCALL(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); @@ -7784,7 +7784,7 @@ std::string NMD::HYPCALL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::HYPCALL_16_(uint64 instruction, Dis_info *info) +static std::string HYPCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); @@ -7804,7 +7804,7 @@ std::string NMD::HYPCALL_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::INS(uint64 instruction, Dis_info *info) +static std::string INS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7831,7 +7831,7 @@ std::string NMD::INS(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::INSV(uint64 instruction, Dis_info *info) +static std::string INSV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7853,7 +7853,7 @@ std::string NMD::INSV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::IRET(uint64 instruction, Dis_info *info) +static std::string IRET(uint64 instruction, Dis_info *info) { (void)instruction; @@ -7871,7 +7871,7 @@ std::string NMD::IRET(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::JALRC_16_(uint64 instruction, Dis_info *info) +static std::string JALRC_16_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); @@ -7891,7 +7891,7 @@ std::string NMD::JALRC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::JALRC_32_(uint64 instruction, Dis_info *info) +static std::string JALRC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7913,7 +7913,7 @@ std::string NMD::JALRC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::JALRC_HB(uint64 instruction, Dis_info *info) +static std::string JALRC_HB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7935,7 +7935,7 @@ std::string NMD::JALRC_HB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::JRC(uint64 instruction, Dis_info *info) +static std::string JRC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); @@ -7955,7 +7955,7 @@ std::string NMD::JRC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LB_16_(uint64 instruction, Dis_info *info) +static std::string LB_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -7979,7 +7979,7 @@ std::string NMD::LB_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LB_GP_(uint64 instruction, Dis_info *info) +static std::string LB_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -8001,7 +8001,7 @@ std::string NMD::LB_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LB_S9_(uint64 instruction, Dis_info *info) +static std::string LB_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8025,7 +8025,7 @@ std::string NMD::LB_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LB_U12_(uint64 instruction, Dis_info *info) +static std::string LB_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8049,7 +8049,7 @@ std::string NMD::LB_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LBE(uint64 instruction, Dis_info *info) +static std::string LBE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8073,7 +8073,7 @@ std::string NMD::LBE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LBU_16_(uint64 instruction, Dis_info *info) +static std::string LBU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8097,7 +8097,7 @@ std::string NMD::LBU_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LBU_GP_(uint64 instruction, Dis_info *info) +static std::string LBU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -8119,7 +8119,7 @@ std::string NMD::LBU_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LBU_S9_(uint64 instruction, Dis_info *info) +static std::string LBU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8143,7 +8143,7 @@ std::string NMD::LBU_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LBU_U12_(uint64 instruction, Dis_info *info) +static std::string LBU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8167,7 +8167,7 @@ std::string NMD::LBU_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LBUE(uint64 instruction, Dis_info *info) +static std::string LBUE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8191,7 +8191,7 @@ std::string NMD::LBUE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LBUX(uint64 instruction, Dis_info *info) +static std::string LBUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8215,7 +8215,7 @@ std::string NMD::LBUX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LBX(uint64 instruction, Dis_info *info) +static std::string LBX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8239,7 +8239,7 @@ std::string NMD::LBX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LD_GP_(uint64 instruction, Dis_info *info) +static std::string LD_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); @@ -8261,7 +8261,7 @@ std::string NMD::LD_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LD_S9_(uint64 instruction, Dis_info *info) +static std::string LD_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8285,7 +8285,7 @@ std::string NMD::LD_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LD_U12_(uint64 instruction, Dis_info *info) +static std::string LD_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8309,7 +8309,7 @@ std::string NMD::LD_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDC1_GP_(uint64 instruction, Dis_info *info) +static std::string LDC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -8331,7 +8331,7 @@ std::string NMD::LDC1_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDC1_S9_(uint64 instruction, Dis_info *info) +static std::string LDC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8355,7 +8355,7 @@ std::string NMD::LDC1_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDC1_U12_(uint64 instruction, Dis_info *info) +static std::string LDC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8379,7 +8379,7 @@ std::string NMD::LDC1_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDC1XS(uint64 instruction, Dis_info *info) +static std::string LDC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8403,7 +8403,7 @@ std::string NMD::LDC1XS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDC1X(uint64 instruction, Dis_info *info) +static std::string LDC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8427,7 +8427,7 @@ std::string NMD::LDC1X(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDC2(uint64 instruction, Dis_info *info) +static std::string LDC2(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8451,7 +8451,7 @@ std::string NMD::LDC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDM(uint64 instruction, Dis_info *info) +static std::string LDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8477,7 +8477,7 @@ std::string NMD::LDM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDPC_48_(uint64 instruction, Dis_info *info) +static std::string LDPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -8499,7 +8499,7 @@ std::string NMD::LDPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDX(uint64 instruction, Dis_info *info) +static std::string LDX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8523,7 +8523,7 @@ std::string NMD::LDX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LDXS(uint64 instruction, Dis_info *info) +static std::string LDXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8547,7 +8547,7 @@ std::string NMD::LDXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LH_16_(uint64 instruction, Dis_info *info) +static std::string LH_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8571,7 +8571,7 @@ std::string NMD::LH_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LH_GP_(uint64 instruction, Dis_info *info) +static std::string LH_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -8593,7 +8593,7 @@ std::string NMD::LH_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LH_S9_(uint64 instruction, Dis_info *info) +static std::string LH_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8617,7 +8617,7 @@ std::string NMD::LH_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LH_U12_(uint64 instruction, Dis_info *info) +static std::string LH_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8641,7 +8641,7 @@ std::string NMD::LH_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHE(uint64 instruction, Dis_info *info) +static std::string LHE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8665,7 +8665,7 @@ std::string NMD::LHE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHU_16_(uint64 instruction, Dis_info *info) +static std::string LHU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8689,7 +8689,7 @@ std::string NMD::LHU_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHU_GP_(uint64 instruction, Dis_info *info) +static std::string LHU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -8711,7 +8711,7 @@ std::string NMD::LHU_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHU_S9_(uint64 instruction, Dis_info *info) +static std::string LHU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8735,7 +8735,7 @@ std::string NMD::LHU_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHU_U12_(uint64 instruction, Dis_info *info) +static std::string LHU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8759,7 +8759,7 @@ std::string NMD::LHU_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHUE(uint64 instruction, Dis_info *info) +static std::string LHUE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8783,7 +8783,7 @@ std::string NMD::LHUE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHUX(uint64 instruction, Dis_info *info) +static std::string LHUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8807,7 +8807,7 @@ std::string NMD::LHUX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHUXS(uint64 instruction, Dis_info *info) +static std::string LHUXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8831,7 +8831,7 @@ std::string NMD::LHUXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHXS(uint64 instruction, Dis_info *info) +static std::string LHXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8855,7 +8855,7 @@ std::string NMD::LHXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LHX(uint64 instruction, Dis_info *info) +static std::string LHX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8879,7 +8879,7 @@ std::string NMD::LHX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LI_16_(uint64 instruction, Dis_info *info) +static std::string LI_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 eu_value = extract_eu_6_5_4_3_2_1_0(instruction); @@ -8901,7 +8901,7 @@ std::string NMD::LI_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LI_48_(uint64 instruction, Dis_info *info) +static std::string LI_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -8923,7 +8923,7 @@ std::string NMD::LI_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LL(uint64 instruction, Dis_info *info) +static std::string LL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8947,7 +8947,7 @@ std::string NMD::LL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LLD(uint64 instruction, Dis_info *info) +static std::string LLD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8971,7 +8971,7 @@ std::string NMD::LLD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LLDP(uint64 instruction, Dis_info *info) +static std::string LLDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8995,7 +8995,7 @@ std::string NMD::LLDP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LLE(uint64 instruction, Dis_info *info) +static std::string LLE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9019,7 +9019,7 @@ std::string NMD::LLE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LLWP(uint64 instruction, Dis_info *info) +static std::string LLWP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9043,7 +9043,7 @@ std::string NMD::LLWP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LLWPE(uint64 instruction, Dis_info *info) +static std::string LLWPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9067,7 +9067,7 @@ std::string NMD::LLWPE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LSA(uint64 instruction, Dis_info *info) +static std::string LSA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9093,7 +9093,7 @@ std::string NMD::LSA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LUI(uint64 instruction, Dis_info *info) +static std::string LUI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); @@ -9115,7 +9115,7 @@ std::string NMD::LUI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LW_16_(uint64 instruction, Dis_info *info) +static std::string LW_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -9139,7 +9139,7 @@ std::string NMD::LW_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LW_4X4_(uint64 instruction, Dis_info *info) +static std::string LW_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -9163,7 +9163,7 @@ std::string NMD::LW_4X4_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LW_GP_(uint64 instruction, Dis_info *info) +static std::string LW_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -9185,7 +9185,7 @@ std::string NMD::LW_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LW_GP16_(uint64 instruction, Dis_info *info) +static std::string LW_GP16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); @@ -9207,7 +9207,7 @@ std::string NMD::LW_GP16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LW_S9_(uint64 instruction, Dis_info *info) +static std::string LW_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9231,7 +9231,7 @@ std::string NMD::LW_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LW_SP_(uint64 instruction, Dis_info *info) +static std::string LW_SP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); @@ -9253,7 +9253,7 @@ std::string NMD::LW_SP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LW_U12_(uint64 instruction, Dis_info *info) +static std::string LW_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9277,7 +9277,7 @@ std::string NMD::LW_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWC1_GP_(uint64 instruction, Dis_info *info) +static std::string LWC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -9299,7 +9299,7 @@ std::string NMD::LWC1_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWC1_S9_(uint64 instruction, Dis_info *info) +static std::string LWC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9323,7 +9323,7 @@ std::string NMD::LWC1_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWC1_U12_(uint64 instruction, Dis_info *info) +static std::string LWC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9347,7 +9347,7 @@ std::string NMD::LWC1_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWC1X(uint64 instruction, Dis_info *info) +static std::string LWC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9371,7 +9371,7 @@ std::string NMD::LWC1X(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWC1XS(uint64 instruction, Dis_info *info) +static std::string LWC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9395,7 +9395,7 @@ std::string NMD::LWC1XS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWC2(uint64 instruction, Dis_info *info) +static std::string LWC2(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9419,7 +9419,7 @@ std::string NMD::LWC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWE(uint64 instruction, Dis_info *info) +static std::string LWE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9443,7 +9443,7 @@ std::string NMD::LWE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWM(uint64 instruction, Dis_info *info) +static std::string LWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9469,7 +9469,7 @@ std::string NMD::LWM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWPC_48_(uint64 instruction, Dis_info *info) +static std::string LWPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -9491,7 +9491,7 @@ std::string NMD::LWPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWU_GP_(uint64 instruction, Dis_info *info) +static std::string LWU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -9513,7 +9513,7 @@ std::string NMD::LWU_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWU_S9_(uint64 instruction, Dis_info *info) +static std::string LWU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9537,7 +9537,7 @@ std::string NMD::LWU_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWU_U12_(uint64 instruction, Dis_info *info) +static std::string LWU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9561,7 +9561,7 @@ std::string NMD::LWU_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWUX(uint64 instruction, Dis_info *info) +static std::string LWUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9585,7 +9585,7 @@ std::string NMD::LWUX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWUXS(uint64 instruction, Dis_info *info) +static std::string LWUXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9609,7 +9609,7 @@ std::string NMD::LWUXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWX(uint64 instruction, Dis_info *info) +static std::string LWX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9633,7 +9633,7 @@ std::string NMD::LWX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWXS_16_(uint64 instruction, Dis_info *info) +static std::string LWXS_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -9657,7 +9657,7 @@ std::string NMD::LWXS_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::LWXS_32_(uint64 instruction, Dis_info *info) +static std::string LWXS_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9682,7 +9682,7 @@ std::string NMD::LWXS_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MADD_DSP_(uint64 instruction, Dis_info *info) +static std::string MADD_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9706,7 +9706,7 @@ std::string NMD::MADD_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MADDF_D(uint64 instruction, Dis_info *info) +static std::string MADDF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9730,7 +9730,7 @@ std::string NMD::MADDF_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MADDF_S(uint64 instruction, Dis_info *info) +static std::string MADDF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9755,7 +9755,7 @@ std::string NMD::MADDF_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MADDU_DSP_(uint64 instruction, Dis_info *info) +static std::string MADDU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9780,7 +9780,7 @@ std::string NMD::MADDU_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MAQ_S_W_PHL(uint64 instruction, Dis_info *info) +static std::string MAQ_S_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9805,7 +9805,7 @@ std::string NMD::MAQ_S_W_PHL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MAQ_S_W_PHR(uint64 instruction, Dis_info *info) +static std::string MAQ_S_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9830,7 +9830,7 @@ std::string NMD::MAQ_S_W_PHR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) +static std::string MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9855,7 +9855,7 @@ std::string NMD::MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) +static std::string MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9879,7 +9879,7 @@ std::string NMD::MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MAX_D(uint64 instruction, Dis_info *info) +static std::string MAX_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9903,7 +9903,7 @@ std::string NMD::MAX_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MAX_S(uint64 instruction, Dis_info *info) +static std::string MAX_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9927,7 +9927,7 @@ std::string NMD::MAX_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MAXA_D(uint64 instruction, Dis_info *info) +static std::string MAXA_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9951,7 +9951,7 @@ std::string NMD::MAXA_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MAXA_S(uint64 instruction, Dis_info *info) +static std::string MAXA_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9975,7 +9975,7 @@ std::string NMD::MAXA_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFC0(uint64 instruction, Dis_info *info) +static std::string MFC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -9999,7 +9999,7 @@ std::string NMD::MFC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFC1(uint64 instruction, Dis_info *info) +static std::string MFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10021,7 +10021,7 @@ std::string NMD::MFC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFC2(uint64 instruction, Dis_info *info) +static std::string MFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10043,7 +10043,7 @@ std::string NMD::MFC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFGC0(uint64 instruction, Dis_info *info) +static std::string MFGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10067,7 +10067,7 @@ std::string NMD::MFGC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFHC0(uint64 instruction, Dis_info *info) +static std::string MFHC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10091,7 +10091,7 @@ std::string NMD::MFHC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFHC1(uint64 instruction, Dis_info *info) +static std::string MFHC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10113,7 +10113,7 @@ std::string NMD::MFHC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFHC2(uint64 instruction, Dis_info *info) +static std::string MFHC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10135,7 +10135,7 @@ std::string NMD::MFHC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFHGC0(uint64 instruction, Dis_info *info) +static std::string MFHGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10158,7 +10158,7 @@ std::string NMD::MFHGC0(uint64 instruction, Dis_info *info) * rt ----- * ac -- */ -std::string NMD::MFHI_DSP_(uint64 instruction, Dis_info *info) +static std::string MFHI_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10180,7 +10180,7 @@ std::string NMD::MFHI_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFHTR(uint64 instruction, Dis_info *info) +static std::string MFHTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10205,7 +10205,7 @@ std::string NMD::MFHTR(uint64 instruction, Dis_info *info) * rt ----- * ac -- */ -std::string NMD::MFLO_DSP_(uint64 instruction, Dis_info *info) +static std::string MFLO_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10227,7 +10227,7 @@ std::string NMD::MFLO_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MFTR(uint64 instruction, Dis_info *info) +static std::string MFTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10253,7 +10253,7 @@ std::string NMD::MFTR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MIN_D(uint64 instruction, Dis_info *info) +static std::string MIN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10277,7 +10277,7 @@ std::string NMD::MIN_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MIN_S(uint64 instruction, Dis_info *info) +static std::string MIN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10301,7 +10301,7 @@ std::string NMD::MIN_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MINA_D(uint64 instruction, Dis_info *info) +static std::string MINA_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10325,7 +10325,7 @@ std::string NMD::MINA_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MINA_S(uint64 instruction, Dis_info *info) +static std::string MINA_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10349,7 +10349,7 @@ std::string NMD::MINA_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOD(uint64 instruction, Dis_info *info) +static std::string MOD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10373,7 +10373,7 @@ std::string NMD::MOD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MODSUB(uint64 instruction, Dis_info *info) +static std::string MODSUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10397,7 +10397,7 @@ std::string NMD::MODSUB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MODU(uint64 instruction, Dis_info *info) +static std::string MODU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10421,7 +10421,7 @@ std::string NMD::MODU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOV_D(uint64 instruction, Dis_info *info) +static std::string MOV_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10443,7 +10443,7 @@ std::string NMD::MOV_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOV_S(uint64 instruction, Dis_info *info) +static std::string MOV_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10465,7 +10465,7 @@ std::string NMD::MOV_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOVE_BALC(uint64 instruction, Dis_info *info) +static std::string MOVE_BALC(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_27_26_25_23_22_21(instruction); uint64 rd1_value = extract_rdl_25_24(instruction); @@ -10489,7 +10489,7 @@ std::string NMD::MOVE_BALC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOVEP(uint64 instruction, Dis_info *info) +static std::string MOVEP(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction); uint64 rd2_value = extract_rd2_3_8(instruction); @@ -10516,7 +10516,7 @@ std::string NMD::MOVEP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOVEP_REV_(uint64 instruction, Dis_info *info) +static std::string MOVEP_REV_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rd2_value = extract_rd2_3_8(instruction); @@ -10543,7 +10543,7 @@ std::string NMD::MOVEP_REV_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOVE(uint64 instruction, Dis_info *info) +static std::string MOVE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 rs_value = extract_rs_4_3_2_1_0(instruction); @@ -10565,7 +10565,7 @@ std::string NMD::MOVE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOVN(uint64 instruction, Dis_info *info) +static std::string MOVN(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10589,7 +10589,7 @@ std::string NMD::MOVN(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MOVZ(uint64 instruction, Dis_info *info) +static std::string MOVZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10613,7 +10613,7 @@ std::string NMD::MOVZ(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MSUB_DSP_(uint64 instruction, Dis_info *info) +static std::string MSUB_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10637,7 +10637,7 @@ std::string NMD::MSUB_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MSUBF_D(uint64 instruction, Dis_info *info) +static std::string MSUBF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10661,7 +10661,7 @@ std::string NMD::MSUBF_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MSUBF_S(uint64 instruction, Dis_info *info) +static std::string MSUBF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10685,7 +10685,7 @@ std::string NMD::MSUBF_S(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MSUBU_DSP_(uint64 instruction, Dis_info *info) +static std::string MSUBU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10709,7 +10709,7 @@ std::string NMD::MSUBU_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTC0(uint64 instruction, Dis_info *info) +static std::string MTC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10733,7 +10733,7 @@ std::string NMD::MTC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTC1(uint64 instruction, Dis_info *info) +static std::string MTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10755,7 +10755,7 @@ std::string NMD::MTC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTC2(uint64 instruction, Dis_info *info) +static std::string MTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10777,7 +10777,7 @@ std::string NMD::MTC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTGC0(uint64 instruction, Dis_info *info) +static std::string MTGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10801,7 +10801,7 @@ std::string NMD::MTGC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTHC0(uint64 instruction, Dis_info *info) +static std::string MTHC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10825,7 +10825,7 @@ std::string NMD::MTHC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTHC1(uint64 instruction, Dis_info *info) +static std::string MTHC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10847,7 +10847,7 @@ std::string NMD::MTHC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTHC2(uint64 instruction, Dis_info *info) +static std::string MTHC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10869,7 +10869,7 @@ std::string NMD::MTHC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTHGC0(uint64 instruction, Dis_info *info) +static std::string MTHGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10892,7 +10892,7 @@ std::string NMD::MTHGC0(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MTHI_DSP_(uint64 instruction, Dis_info *info) +static std::string MTHI_DSP_(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10913,7 +10913,7 @@ std::string NMD::MTHI_DSP_(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MTHLIP(uint64 instruction, Dis_info *info) +static std::string MTHLIP(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10935,7 +10935,7 @@ std::string NMD::MTHLIP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTHTR(uint64 instruction, Dis_info *info) +static std::string MTHTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10960,7 +10960,7 @@ std::string NMD::MTHTR(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MTLO_DSP_(uint64 instruction, Dis_info *info) +static std::string MTLO_DSP_(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10982,7 +10982,7 @@ std::string NMD::MTLO_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MTTR(uint64 instruction, Dis_info *info) +static std::string MTTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -11008,7 +11008,7 @@ std::string NMD::MTTR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MUH(uint64 instruction, Dis_info *info) +static std::string MUH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11032,7 +11032,7 @@ std::string NMD::MUH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MUHU(uint64 instruction, Dis_info *info) +static std::string MUHU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11056,7 +11056,7 @@ std::string NMD::MUHU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MUL_32_(uint64 instruction, Dis_info *info) +static std::string MUL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11080,7 +11080,7 @@ std::string NMD::MUL_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MUL_4X4_(uint64 instruction, Dis_info *info) +static std::string MUL_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -11102,7 +11102,7 @@ std::string NMD::MUL_4X4_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MUL_D(uint64 instruction, Dis_info *info) +static std::string MUL_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11127,7 +11127,7 @@ std::string NMD::MUL_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MUL_PH(uint64 instruction, Dis_info *info) +static std::string MUL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11152,7 +11152,7 @@ std::string NMD::MUL_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MUL_S_PH(uint64 instruction, Dis_info *info) +static std::string MUL_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11176,7 +11176,7 @@ std::string NMD::MUL_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MUL_S(uint64 instruction, Dis_info *info) +static std::string MUL_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11201,7 +11201,7 @@ std::string NMD::MUL_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) +static std::string MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11226,7 +11226,7 @@ std::string NMD::MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) +static std::string MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11251,7 +11251,7 @@ std::string NMD::MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) +static std::string MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11276,7 +11276,7 @@ std::string NMD::MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) +static std::string MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11301,7 +11301,7 @@ std::string NMD::MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULQ_RS_PH(uint64 instruction, Dis_info *info) +static std::string MULQ_RS_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11326,7 +11326,7 @@ std::string NMD::MULQ_RS_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULQ_RS_W(uint64 instruction, Dis_info *info) +static std::string MULQ_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11351,7 +11351,7 @@ std::string NMD::MULQ_RS_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULQ_S_PH(uint64 instruction, Dis_info *info) +static std::string MULQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11376,7 +11376,7 @@ std::string NMD::MULQ_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULQ_S_W(uint64 instruction, Dis_info *info) +static std::string MULQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11401,7 +11401,7 @@ std::string NMD::MULQ_S_W(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MULSA_W_PH(uint64 instruction, Dis_info *info) +static std::string MULSA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11426,7 +11426,7 @@ std::string NMD::MULSA_W_PH(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) +static std::string MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11450,7 +11450,7 @@ std::string NMD::MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MULT_DSP_(uint64 instruction, Dis_info *info) +static std::string MULT_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11474,7 +11474,7 @@ std::string NMD::MULT_DSP_(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::MULTU_DSP_(uint64 instruction, Dis_info *info) +static std::string MULTU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11498,7 +11498,7 @@ std::string NMD::MULTU_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::MULU(uint64 instruction, Dis_info *info) +static std::string MULU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11522,7 +11522,7 @@ std::string NMD::MULU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::NEG_D(uint64 instruction, Dis_info *info) +static std::string NEG_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11544,7 +11544,7 @@ std::string NMD::NEG_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::NEG_S(uint64 instruction, Dis_info *info) +static std::string NEG_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11566,7 +11566,7 @@ std::string NMD::NEG_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::NOP_16_(uint64 instruction, Dis_info *info) +static std::string NOP_16_(uint64 instruction, Dis_info *info) { (void)instruction; @@ -11584,7 +11584,7 @@ std::string NMD::NOP_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::NOP_32_(uint64 instruction, Dis_info *info) +static std::string NOP_32_(uint64 instruction, Dis_info *info) { (void)instruction; @@ -11602,7 +11602,7 @@ std::string NMD::NOP_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::NOR(uint64 instruction, Dis_info *info) +static std::string NOR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11626,7 +11626,7 @@ std::string NMD::NOR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::NOT_16_(uint64 instruction, Dis_info *info) +static std::string NOT_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -11648,7 +11648,7 @@ std::string NMD::NOT_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::OR_16_(uint64 instruction, Dis_info *info) +static std::string OR_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -11670,7 +11670,7 @@ std::string NMD::OR_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::OR_32_(uint64 instruction, Dis_info *info) +static std::string OR_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11694,7 +11694,7 @@ std::string NMD::OR_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ORI(uint64 instruction, Dis_info *info) +static std::string ORI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11719,7 +11719,7 @@ std::string NMD::ORI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PACKRL_PH(uint64 instruction, Dis_info *info) +static std::string PACKRL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11743,7 +11743,7 @@ std::string NMD::PACKRL_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PAUSE(uint64 instruction, Dis_info *info) +static std::string PAUSE(uint64 instruction, Dis_info *info) { (void)instruction; @@ -11762,7 +11762,7 @@ std::string NMD::PAUSE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PICK_PH(uint64 instruction, Dis_info *info) +static std::string PICK_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11787,7 +11787,7 @@ std::string NMD::PICK_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PICK_QB(uint64 instruction, Dis_info *info) +static std::string PICK_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11812,7 +11812,7 @@ std::string NMD::PICK_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEQ_W_PHL(uint64 instruction, Dis_info *info) +static std::string PRECEQ_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11835,7 +11835,7 @@ std::string NMD::PRECEQ_W_PHL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEQ_W_PHR(uint64 instruction, Dis_info *info) +static std::string PRECEQ_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11858,7 +11858,7 @@ std::string NMD::PRECEQ_W_PHR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) +static std::string PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11881,7 +11881,7 @@ std::string NMD::PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) +static std::string PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11904,7 +11904,7 @@ std::string NMD::PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) +static std::string PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11927,7 +11927,7 @@ std::string NMD::PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) +static std::string PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11951,7 +11951,7 @@ std::string NMD::PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) +static std::string PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11974,7 +11974,7 @@ std::string NMD::PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBL(uint64 instruction, Dis_info *info) +static std::string PRECEU_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11998,7 +11998,7 @@ std::string NMD::PRECEU_PH_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) +static std::string PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12021,7 +12021,7 @@ std::string NMD::PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBR(uint64 instruction, Dis_info *info) +static std::string PRECEU_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12044,7 +12044,7 @@ std::string NMD::PRECEU_PH_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECR_QB_PH(uint64 instruction, Dis_info *info) +static std::string PRECR_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12069,7 +12069,7 @@ std::string NMD::PRECR_QB_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) +static std::string PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12094,7 +12094,7 @@ std::string NMD::PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) +static std::string PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12119,7 +12119,7 @@ std::string NMD::PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_PH_W(uint64 instruction, Dis_info *info) +static std::string PRECRQ_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12144,7 +12144,7 @@ std::string NMD::PRECRQ_PH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_QB_PH(uint64 instruction, Dis_info *info) +static std::string PRECRQ_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12169,7 +12169,7 @@ std::string NMD::PRECRQ_QB_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) +static std::string PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12194,7 +12194,7 @@ std::string NMD::PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) +static std::string PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12218,7 +12218,7 @@ std::string NMD::PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PREF_S9_(uint64 instruction, Dis_info *info) +static std::string PREF_S9_(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12242,7 +12242,7 @@ std::string NMD::PREF_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PREF_U12_(uint64 instruction, Dis_info *info) +static std::string PREF_U12_(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12266,7 +12266,7 @@ std::string NMD::PREF_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PREFE(uint64 instruction, Dis_info *info) +static std::string PREFE(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12290,7 +12290,7 @@ std::string NMD::PREFE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::PREPEND(uint64 instruction, Dis_info *info) +static std::string PREPEND(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12313,7 +12313,7 @@ std::string NMD::PREPEND(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::RADDU_W_QB(uint64 instruction, Dis_info *info) +static std::string RADDU_W_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12334,7 +12334,7 @@ std::string NMD::RADDU_W_QB(uint64 instruction, Dis_info *info) * rt ----- * mask ------- */ -std::string NMD::RDDSP(uint64 instruction, Dis_info *info) +static std::string RDDSP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); @@ -12356,7 +12356,7 @@ std::string NMD::RDDSP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RDHWR(uint64 instruction, Dis_info *info) +static std::string RDHWR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 hs_value = extract_hs_20_19_18_17_16(instruction); @@ -12380,7 +12380,7 @@ std::string NMD::RDHWR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RDPGPR(uint64 instruction, Dis_info *info) +static std::string RDPGPR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12402,7 +12402,7 @@ std::string NMD::RDPGPR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RECIP_D(uint64 instruction, Dis_info *info) +static std::string RECIP_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12424,7 +12424,7 @@ std::string NMD::RECIP_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RECIP_S(uint64 instruction, Dis_info *info) +static std::string RECIP_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12446,7 +12446,7 @@ std::string NMD::RECIP_S(uint64 instruction, Dis_info *info) * rt ----- * s ---------- */ -std::string NMD::REPL_PH(uint64 instruction, Dis_info *info) +static std::string REPL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se9_20_19_18_17_16_15_14_13_12_11(instruction); @@ -12468,7 +12468,7 @@ std::string NMD::REPL_PH(uint64 instruction, Dis_info *info) * rt ----- * u -------- */ -std::string NMD::REPL_QB(uint64 instruction, Dis_info *info) +static std::string REPL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_19_18_17_16_15_14_13(instruction); @@ -12490,7 +12490,7 @@ std::string NMD::REPL_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::REPLV_PH(uint64 instruction, Dis_info *info) +static std::string REPLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12511,7 +12511,7 @@ std::string NMD::REPLV_PH(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::REPLV_QB(uint64 instruction, Dis_info *info) +static std::string REPLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12533,7 +12533,7 @@ std::string NMD::REPLV_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RESTORE_32_(uint64 instruction, Dis_info *info) +static std::string RESTORE_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 count_value = extract_count_19_18_17_16(instruction); @@ -12556,7 +12556,7 @@ std::string NMD::RESTORE_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RESTORE_JRC_16_(uint64 instruction, Dis_info *info) +static std::string RESTORE_JRC_16_(uint64 instruction, Dis_info *info) { uint64 rt1_value = extract_rtl_11(instruction); uint64 u_value = extract_u_7_6_5_4__s4(instruction); @@ -12578,7 +12578,7 @@ std::string NMD::RESTORE_JRC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RESTORE_JRC_32_(uint64 instruction, Dis_info *info) +static std::string RESTORE_JRC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 count_value = extract_count_19_18_17_16(instruction); @@ -12601,7 +12601,7 @@ std::string NMD::RESTORE_JRC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RESTOREF(uint64 instruction, Dis_info *info) +static std::string RESTOREF(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); @@ -12623,7 +12623,7 @@ std::string NMD::RESTOREF(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RINT_D(uint64 instruction, Dis_info *info) +static std::string RINT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12645,7 +12645,7 @@ std::string NMD::RINT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RINT_S(uint64 instruction, Dis_info *info) +static std::string RINT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12667,7 +12667,7 @@ std::string NMD::RINT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ROTR(uint64 instruction, Dis_info *info) +static std::string ROTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12691,7 +12691,7 @@ std::string NMD::ROTR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ROTRV(uint64 instruction, Dis_info *info) +static std::string ROTRV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12715,7 +12715,7 @@ std::string NMD::ROTRV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ROTX(uint64 instruction, Dis_info *info) +static std::string ROTX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12744,7 +12744,7 @@ std::string NMD::ROTX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ROUND_L_D(uint64 instruction, Dis_info *info) +static std::string ROUND_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12766,7 +12766,7 @@ std::string NMD::ROUND_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ROUND_L_S(uint64 instruction, Dis_info *info) +static std::string ROUND_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12788,7 +12788,7 @@ std::string NMD::ROUND_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ROUND_W_D(uint64 instruction, Dis_info *info) +static std::string ROUND_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12810,7 +12810,7 @@ std::string NMD::ROUND_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::ROUND_W_S(uint64 instruction, Dis_info *info) +static std::string ROUND_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12832,7 +12832,7 @@ std::string NMD::ROUND_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RSQRT_D(uint64 instruction, Dis_info *info) +static std::string RSQRT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12854,7 +12854,7 @@ std::string NMD::RSQRT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::RSQRT_S(uint64 instruction, Dis_info *info) +static std::string RSQRT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12876,7 +12876,7 @@ std::string NMD::RSQRT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SAVE_16_(uint64 instruction, Dis_info *info) +static std::string SAVE_16_(uint64 instruction, Dis_info *info) { uint64 rt1_value = extract_rtl_11(instruction); uint64 u_value = extract_u_7_6_5_4__s4(instruction); @@ -12898,7 +12898,7 @@ std::string NMD::SAVE_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SAVE_32_(uint64 instruction, Dis_info *info) +static std::string SAVE_32_(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -12921,7 +12921,7 @@ std::string NMD::SAVE_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SAVEF(uint64 instruction, Dis_info *info) +static std::string SAVEF(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); @@ -12943,7 +12943,7 @@ std::string NMD::SAVEF(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SB_16_(uint64 instruction, Dis_info *info) +static std::string SB_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -12967,7 +12967,7 @@ std::string NMD::SB_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SB_GP_(uint64 instruction, Dis_info *info) +static std::string SB_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -12989,7 +12989,7 @@ std::string NMD::SB_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SB_S9_(uint64 instruction, Dis_info *info) +static std::string SB_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13013,7 +13013,7 @@ std::string NMD::SB_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SB_U12_(uint64 instruction, Dis_info *info) +static std::string SB_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13037,7 +13037,7 @@ std::string NMD::SB_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SBE(uint64 instruction, Dis_info *info) +static std::string SBE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13061,7 +13061,7 @@ std::string NMD::SBE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SBX(uint64 instruction, Dis_info *info) +static std::string SBX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13085,7 +13085,7 @@ std::string NMD::SBX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SC(uint64 instruction, Dis_info *info) +static std::string SC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13109,7 +13109,7 @@ std::string NMD::SC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SCD(uint64 instruction, Dis_info *info) +static std::string SCD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13133,7 +13133,7 @@ std::string NMD::SCD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SCDP(uint64 instruction, Dis_info *info) +static std::string SCDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13157,7 +13157,7 @@ std::string NMD::SCDP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SCE(uint64 instruction, Dis_info *info) +static std::string SCE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13181,7 +13181,7 @@ std::string NMD::SCE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SCWP(uint64 instruction, Dis_info *info) +static std::string SCWP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13205,7 +13205,7 @@ std::string NMD::SCWP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SCWPE(uint64 instruction, Dis_info *info) +static std::string SCWPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13229,7 +13229,7 @@ std::string NMD::SCWPE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SD_GP_(uint64 instruction, Dis_info *info) +static std::string SD_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); @@ -13251,7 +13251,7 @@ std::string NMD::SD_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SD_S9_(uint64 instruction, Dis_info *info) +static std::string SD_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13275,7 +13275,7 @@ std::string NMD::SD_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SD_U12_(uint64 instruction, Dis_info *info) +static std::string SD_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13299,7 +13299,7 @@ std::string NMD::SD_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDBBP_16_(uint64 instruction, Dis_info *info) +static std::string SDBBP_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); @@ -13319,7 +13319,7 @@ std::string NMD::SDBBP_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDBBP_32_(uint64 instruction, Dis_info *info) +static std::string SDBBP_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); @@ -13339,7 +13339,7 @@ std::string NMD::SDBBP_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDC1_GP_(uint64 instruction, Dis_info *info) +static std::string SDC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -13361,7 +13361,7 @@ std::string NMD::SDC1_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDC1_S9_(uint64 instruction, Dis_info *info) +static std::string SDC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13385,7 +13385,7 @@ std::string NMD::SDC1_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDC1_U12_(uint64 instruction, Dis_info *info) +static std::string SDC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13409,7 +13409,7 @@ std::string NMD::SDC1_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDC1X(uint64 instruction, Dis_info *info) +static std::string SDC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13433,7 +13433,7 @@ std::string NMD::SDC1X(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDC1XS(uint64 instruction, Dis_info *info) +static std::string SDC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13457,7 +13457,7 @@ std::string NMD::SDC1XS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDC2(uint64 instruction, Dis_info *info) +static std::string SDC2(uint64 instruction, Dis_info *info) { uint64 cs_value = extract_cs_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13481,7 +13481,7 @@ std::string NMD::SDC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDM(uint64 instruction, Dis_info *info) +static std::string SDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13507,7 +13507,7 @@ std::string NMD::SDM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDPC_48_(uint64 instruction, Dis_info *info) +static std::string SDPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -13529,7 +13529,7 @@ std::string NMD::SDPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDXS(uint64 instruction, Dis_info *info) +static std::string SDXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13553,7 +13553,7 @@ std::string NMD::SDXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SDX(uint64 instruction, Dis_info *info) +static std::string SDX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13577,7 +13577,7 @@ std::string NMD::SDX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SEB(uint64 instruction, Dis_info *info) +static std::string SEB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13599,7 +13599,7 @@ std::string NMD::SEB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SEH(uint64 instruction, Dis_info *info) +static std::string SEH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13621,7 +13621,7 @@ std::string NMD::SEH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SEL_D(uint64 instruction, Dis_info *info) +static std::string SEL_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13645,7 +13645,7 @@ std::string NMD::SEL_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SEL_S(uint64 instruction, Dis_info *info) +static std::string SEL_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13669,7 +13669,7 @@ std::string NMD::SEL_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SELEQZ_D(uint64 instruction, Dis_info *info) +static std::string SELEQZ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13693,7 +13693,7 @@ std::string NMD::SELEQZ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SELEQZ_S(uint64 instruction, Dis_info *info) +static std::string SELEQZ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13717,7 +13717,7 @@ std::string NMD::SELEQZ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SELNEZ_D(uint64 instruction, Dis_info *info) +static std::string SELNEZ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13741,7 +13741,7 @@ std::string NMD::SELNEZ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SELNEZ_S(uint64 instruction, Dis_info *info) +static std::string SELNEZ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13765,7 +13765,7 @@ std::string NMD::SELNEZ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SEQI(uint64 instruction, Dis_info *info) +static std::string SEQI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13789,7 +13789,7 @@ std::string NMD::SEQI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SH_16_(uint64 instruction, Dis_info *info) +static std::string SH_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -13813,7 +13813,7 @@ std::string NMD::SH_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SH_GP_(uint64 instruction, Dis_info *info) +static std::string SH_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -13835,7 +13835,7 @@ std::string NMD::SH_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SH_S9_(uint64 instruction, Dis_info *info) +static std::string SH_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13859,7 +13859,7 @@ std::string NMD::SH_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SH_U12_(uint64 instruction, Dis_info *info) +static std::string SH_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13883,7 +13883,7 @@ std::string NMD::SH_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHE(uint64 instruction, Dis_info *info) +static std::string SHE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13907,7 +13907,7 @@ std::string NMD::SHE(uint64 instruction, Dis_info *info) * shift ------ * ac -- */ -std::string NMD::SHILO(uint64 instruction, Dis_info *info) +static std::string SHILO(uint64 instruction, Dis_info *info) { int64 shift_value = extract_shift__se5_21_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -13929,7 +13929,7 @@ std::string NMD::SHILO(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -std::string NMD::SHILOV(uint64 instruction, Dis_info *info) +static std::string SHILOV(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -13951,7 +13951,7 @@ std::string NMD::SHILOV(uint64 instruction, Dis_info *info) * rs ----- * sa ---- */ -std::string NMD::SHLL_PH(uint64 instruction, Dis_info *info) +static std::string SHLL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13975,7 +13975,7 @@ std::string NMD::SHLL_PH(uint64 instruction, Dis_info *info) * rs ----- * sa --- */ -std::string NMD::SHLL_QB(uint64 instruction, Dis_info *info) +static std::string SHLL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14000,7 +14000,7 @@ std::string NMD::SHLL_QB(uint64 instruction, Dis_info *info) * rs ----- * sa ---- */ -std::string NMD::SHLL_S_PH(uint64 instruction, Dis_info *info) +static std::string SHLL_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14024,7 +14024,7 @@ std::string NMD::SHLL_S_PH(uint64 instruction, Dis_info *info) * rs ----- * sa ----- */ -std::string NMD::SHLL_S_W(uint64 instruction, Dis_info *info) +static std::string SHLL_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14049,7 +14049,7 @@ std::string NMD::SHLL_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHLLV_PH(uint64 instruction, Dis_info *info) +static std::string SHLLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14073,7 +14073,7 @@ std::string NMD::SHLLV_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHLLV_QB(uint64 instruction, Dis_info *info) +static std::string SHLLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14098,7 +14098,7 @@ std::string NMD::SHLLV_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHLLV_S_PH(uint64 instruction, Dis_info *info) +static std::string SHLLV_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14122,7 +14122,7 @@ std::string NMD::SHLLV_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHLLV_S_W(uint64 instruction, Dis_info *info) +static std::string SHLLV_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14146,7 +14146,7 @@ std::string NMD::SHLLV_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRA_PH(uint64 instruction, Dis_info *info) +static std::string SHRA_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14170,7 +14170,7 @@ std::string NMD::SHRA_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRA_QB(uint64 instruction, Dis_info *info) +static std::string SHRA_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14194,7 +14194,7 @@ std::string NMD::SHRA_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_PH(uint64 instruction, Dis_info *info) +static std::string SHRA_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14218,7 +14218,7 @@ std::string NMD::SHRA_R_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_QB(uint64 instruction, Dis_info *info) +static std::string SHRA_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14242,7 +14242,7 @@ std::string NMD::SHRA_R_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_W(uint64 instruction, Dis_info *info) +static std::string SHRA_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14266,7 +14266,7 @@ std::string NMD::SHRA_R_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRAV_PH(uint64 instruction, Dis_info *info) +static std::string SHRAV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14290,7 +14290,7 @@ std::string NMD::SHRAV_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRAV_QB(uint64 instruction, Dis_info *info) +static std::string SHRAV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14314,7 +14314,7 @@ std::string NMD::SHRAV_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_PH(uint64 instruction, Dis_info *info) +static std::string SHRAV_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14338,7 +14338,7 @@ std::string NMD::SHRAV_R_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_QB(uint64 instruction, Dis_info *info) +static std::string SHRAV_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14362,7 +14362,7 @@ std::string NMD::SHRAV_R_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_W(uint64 instruction, Dis_info *info) +static std::string SHRAV_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14386,7 +14386,7 @@ std::string NMD::SHRAV_R_W(uint64 instruction, Dis_info *info) * rs ----- * sa ---- */ -std::string NMD::SHRL_PH(uint64 instruction, Dis_info *info) +static std::string SHRL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14410,7 +14410,7 @@ std::string NMD::SHRL_PH(uint64 instruction, Dis_info *info) * rs ----- * sa --- */ -std::string NMD::SHRL_QB(uint64 instruction, Dis_info *info) +static std::string SHRL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14435,7 +14435,7 @@ std::string NMD::SHRL_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRLV_PH(uint64 instruction, Dis_info *info) +static std::string SHRLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14459,7 +14459,7 @@ std::string NMD::SHRLV_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHRLV_QB(uint64 instruction, Dis_info *info) +static std::string SHRLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14483,7 +14483,7 @@ std::string NMD::SHRLV_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHX(uint64 instruction, Dis_info *info) +static std::string SHX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14507,7 +14507,7 @@ std::string NMD::SHX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SHXS(uint64 instruction, Dis_info *info) +static std::string SHXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14531,7 +14531,7 @@ std::string NMD::SHXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SIGRIE(uint64 instruction, Dis_info *info) +static std::string SIGRIE(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); @@ -14551,7 +14551,7 @@ std::string NMD::SIGRIE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SLL_16_(uint64 instruction, Dis_info *info) +static std::string SLL_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -14575,7 +14575,7 @@ std::string NMD::SLL_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SLL_32_(uint64 instruction, Dis_info *info) +static std::string SLL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14599,7 +14599,7 @@ std::string NMD::SLL_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SLLV(uint64 instruction, Dis_info *info) +static std::string SLLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14623,7 +14623,7 @@ std::string NMD::SLLV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SLT(uint64 instruction, Dis_info *info) +static std::string SLT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14647,7 +14647,7 @@ std::string NMD::SLT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SLTI(uint64 instruction, Dis_info *info) +static std::string SLTI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14671,7 +14671,7 @@ std::string NMD::SLTI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SLTIU(uint64 instruction, Dis_info *info) +static std::string SLTIU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14695,7 +14695,7 @@ std::string NMD::SLTIU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SLTU(uint64 instruction, Dis_info *info) +static std::string SLTU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14719,7 +14719,7 @@ std::string NMD::SLTU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SOV(uint64 instruction, Dis_info *info) +static std::string SOV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14743,7 +14743,7 @@ std::string NMD::SOV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SPECIAL2(uint64 instruction, Dis_info *info) +static std::string SPECIAL2(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); @@ -14763,7 +14763,7 @@ std::string NMD::SPECIAL2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SQRT_D(uint64 instruction, Dis_info *info) +static std::string SQRT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14785,7 +14785,7 @@ std::string NMD::SQRT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SQRT_S(uint64 instruction, Dis_info *info) +static std::string SQRT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14807,7 +14807,7 @@ std::string NMD::SQRT_S(uint64 instruction, Dis_info *info) * rd ----- * sa ----- */ -std::string NMD::SRA(uint64 instruction, Dis_info *info) +static std::string SRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14831,7 +14831,7 @@ std::string NMD::SRA(uint64 instruction, Dis_info *info) * rt ----- * rd ----- */ -std::string NMD::SRAV(uint64 instruction, Dis_info *info) +static std::string SRAV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14855,7 +14855,7 @@ std::string NMD::SRAV(uint64 instruction, Dis_info *info) * rt ----- * rd ----- */ -std::string NMD::SRL_16_(uint64 instruction, Dis_info *info) +static std::string SRL_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -14879,7 +14879,7 @@ std::string NMD::SRL_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SRL_32_(uint64 instruction, Dis_info *info) +static std::string SRL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14903,7 +14903,7 @@ std::string NMD::SRL_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SRLV(uint64 instruction, Dis_info *info) +static std::string SRLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14927,7 +14927,7 @@ std::string NMD::SRLV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUB(uint64 instruction, Dis_info *info) +static std::string SUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14951,7 +14951,7 @@ std::string NMD::SUB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUB_D(uint64 instruction, Dis_info *info) +static std::string SUB_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14975,7 +14975,7 @@ std::string NMD::SUB_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUB_S(uint64 instruction, Dis_info *info) +static std::string SUB_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14999,7 +14999,7 @@ std::string NMD::SUB_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBQ_PH(uint64 instruction, Dis_info *info) +static std::string SUBQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15024,7 +15024,7 @@ std::string NMD::SUBQ_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBQ_S_PH(uint64 instruction, Dis_info *info) +static std::string SUBQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15049,7 +15049,7 @@ std::string NMD::SUBQ_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBQ_S_W(uint64 instruction, Dis_info *info) +static std::string SUBQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15074,7 +15074,7 @@ std::string NMD::SUBQ_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBQH_PH(uint64 instruction, Dis_info *info) +static std::string SUBQH_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15099,7 +15099,7 @@ std::string NMD::SUBQH_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBQH_R_PH(uint64 instruction, Dis_info *info) +static std::string SUBQH_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15124,7 +15124,7 @@ std::string NMD::SUBQH_R_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBQH_R_W(uint64 instruction, Dis_info *info) +static std::string SUBQH_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15149,7 +15149,7 @@ std::string NMD::SUBQH_R_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBQH_W(uint64 instruction, Dis_info *info) +static std::string SUBQH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15173,7 +15173,7 @@ std::string NMD::SUBQH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBU_16_(uint64 instruction, Dis_info *info) +static std::string SUBU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -15197,7 +15197,7 @@ std::string NMD::SUBU_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBU_32_(uint64 instruction, Dis_info *info) +static std::string SUBU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15221,7 +15221,7 @@ std::string NMD::SUBU_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBU_PH(uint64 instruction, Dis_info *info) +static std::string SUBU_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15245,7 +15245,7 @@ std::string NMD::SUBU_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBU_QB(uint64 instruction, Dis_info *info) +static std::string SUBU_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15270,7 +15270,7 @@ std::string NMD::SUBU_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBU_S_PH(uint64 instruction, Dis_info *info) +static std::string SUBU_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15295,7 +15295,7 @@ std::string NMD::SUBU_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBU_S_QB(uint64 instruction, Dis_info *info) +static std::string SUBU_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15320,7 +15320,7 @@ std::string NMD::SUBU_S_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBUH_QB(uint64 instruction, Dis_info *info) +static std::string SUBUH_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15345,7 +15345,7 @@ std::string NMD::SUBUH_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SUBUH_R_QB(uint64 instruction, Dis_info *info) +static std::string SUBUH_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15369,7 +15369,7 @@ std::string NMD::SUBUH_R_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SW_16_(uint64 instruction, Dis_info *info) +static std::string SW_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -15393,7 +15393,7 @@ std::string NMD::SW_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SW_4X4_(uint64 instruction, Dis_info *info) +static std::string SW_4X4_(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -15417,7 +15417,7 @@ std::string NMD::SW_4X4_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SW_GP16_(uint64 instruction, Dis_info *info) +static std::string SW_GP16_(uint64 instruction, Dis_info *info) { uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); uint64 rtz3_value = extract_rtz3_9_8_7(instruction); @@ -15439,7 +15439,7 @@ std::string NMD::SW_GP16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SW_GP_(uint64 instruction, Dis_info *info) +static std::string SW_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -15461,7 +15461,7 @@ std::string NMD::SW_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SW_S9_(uint64 instruction, Dis_info *info) +static std::string SW_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); @@ -15485,7 +15485,7 @@ std::string NMD::SW_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SW_SP_(uint64 instruction, Dis_info *info) +static std::string SW_SP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); @@ -15507,7 +15507,7 @@ std::string NMD::SW_SP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SW_U12_(uint64 instruction, Dis_info *info) +static std::string SW_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15531,7 +15531,7 @@ std::string NMD::SW_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWC1_GP_(uint64 instruction, Dis_info *info) +static std::string SWC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -15553,7 +15553,7 @@ std::string NMD::SWC1_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWC1_S9_(uint64 instruction, Dis_info *info) +static std::string SWC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15577,7 +15577,7 @@ std::string NMD::SWC1_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWC1_U12_(uint64 instruction, Dis_info *info) +static std::string SWC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15601,7 +15601,7 @@ std::string NMD::SWC1_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWC1X(uint64 instruction, Dis_info *info) +static std::string SWC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15625,7 +15625,7 @@ std::string NMD::SWC1X(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWC1XS(uint64 instruction, Dis_info *info) +static std::string SWC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15649,7 +15649,7 @@ std::string NMD::SWC1XS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWC2(uint64 instruction, Dis_info *info) +static std::string SWC2(uint64 instruction, Dis_info *info) { uint64 cs_value = extract_cs_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15673,7 +15673,7 @@ std::string NMD::SWC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWE(uint64 instruction, Dis_info *info) +static std::string SWE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15697,7 +15697,7 @@ std::string NMD::SWE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWM(uint64 instruction, Dis_info *info) +static std::string SWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15723,7 +15723,7 @@ std::string NMD::SWM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWPC_48_(uint64 instruction, Dis_info *info) +static std::string SWPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -15745,7 +15745,7 @@ std::string NMD::SWPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWX(uint64 instruction, Dis_info *info) +static std::string SWX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15769,7 +15769,7 @@ std::string NMD::SWX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SWXS(uint64 instruction, Dis_info *info) +static std::string SWXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15793,7 +15793,7 @@ std::string NMD::SWXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SYNC(uint64 instruction, Dis_info *info) +static std::string SYNC(uint64 instruction, Dis_info *info) { uint64 stype_value = extract_stype_20_19_18_17_16(instruction); @@ -15813,7 +15813,7 @@ std::string NMD::SYNC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SYNCI(uint64 instruction, Dis_info *info) +static std::string SYNCI(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); @@ -15835,7 +15835,7 @@ std::string NMD::SYNCI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SYNCIE(uint64 instruction, Dis_info *info) +static std::string SYNCIE(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); @@ -15857,7 +15857,7 @@ std::string NMD::SYNCIE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::SYSCALL_16_(uint64 instruction, Dis_info *info) +static std::string SYSCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); @@ -15875,7 +15875,7 @@ std::string NMD::SYSCALL_16_(uint64 instruction, Dis_info *info) * 00000000000010 * code ------------------ */ -std::string NMD::SYSCALL_32_(uint64 instruction, Dis_info *info) +static std::string SYSCALL_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); @@ -15895,7 +15895,7 @@ std::string NMD::SYSCALL_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TEQ(uint64 instruction, Dis_info *info) +static std::string TEQ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15917,7 +15917,7 @@ std::string NMD::TEQ(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBGINV(uint64 instruction, Dis_info *info) +static std::string TLBGINV(uint64 instruction, Dis_info *info) { (void)instruction; @@ -15935,7 +15935,7 @@ std::string NMD::TLBGINV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBGINVF(uint64 instruction, Dis_info *info) +static std::string TLBGINVF(uint64 instruction, Dis_info *info) { (void)instruction; @@ -15953,7 +15953,7 @@ std::string NMD::TLBGINVF(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBGP(uint64 instruction, Dis_info *info) +static std::string TLBGP(uint64 instruction, Dis_info *info) { (void)instruction; @@ -15971,7 +15971,7 @@ std::string NMD::TLBGP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBGR(uint64 instruction, Dis_info *info) +static std::string TLBGR(uint64 instruction, Dis_info *info) { (void)instruction; @@ -15989,7 +15989,7 @@ std::string NMD::TLBGR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBGWI(uint64 instruction, Dis_info *info) +static std::string TLBGWI(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16007,7 +16007,7 @@ std::string NMD::TLBGWI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBGWR(uint64 instruction, Dis_info *info) +static std::string TLBGWR(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16025,7 +16025,7 @@ std::string NMD::TLBGWR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBINV(uint64 instruction, Dis_info *info) +static std::string TLBINV(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16043,7 +16043,7 @@ std::string NMD::TLBINV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBINVF(uint64 instruction, Dis_info *info) +static std::string TLBINVF(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16061,7 +16061,7 @@ std::string NMD::TLBINVF(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBP(uint64 instruction, Dis_info *info) +static std::string TLBP(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16079,7 +16079,7 @@ std::string NMD::TLBP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBR(uint64 instruction, Dis_info *info) +static std::string TLBR(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16097,7 +16097,7 @@ std::string NMD::TLBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBWI(uint64 instruction, Dis_info *info) +static std::string TLBWI(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16115,7 +16115,7 @@ std::string NMD::TLBWI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TLBWR(uint64 instruction, Dis_info *info) +static std::string TLBWR(uint64 instruction, Dis_info *info) { (void)instruction; @@ -16133,7 +16133,7 @@ std::string NMD::TLBWR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TNE(uint64 instruction, Dis_info *info) +static std::string TNE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16155,7 +16155,7 @@ std::string NMD::TNE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TRUNC_L_D(uint64 instruction, Dis_info *info) +static std::string TRUNC_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16177,7 +16177,7 @@ std::string NMD::TRUNC_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TRUNC_L_S(uint64 instruction, Dis_info *info) +static std::string TRUNC_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16199,7 +16199,7 @@ std::string NMD::TRUNC_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TRUNC_W_D(uint64 instruction, Dis_info *info) +static std::string TRUNC_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16221,7 +16221,7 @@ std::string NMD::TRUNC_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::TRUNC_W_S(uint64 instruction, Dis_info *info) +static std::string TRUNC_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16243,7 +16243,7 @@ std::string NMD::TRUNC_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::UALDM(uint64 instruction, Dis_info *info) +static std::string UALDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16269,7 +16269,7 @@ std::string NMD::UALDM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::UALH(uint64 instruction, Dis_info *info) +static std::string UALH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16293,7 +16293,7 @@ std::string NMD::UALH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::UALWM(uint64 instruction, Dis_info *info) +static std::string UALWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16319,7 +16319,7 @@ std::string NMD::UALWM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::UASDM(uint64 instruction, Dis_info *info) +static std::string UASDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16345,7 +16345,7 @@ std::string NMD::UASDM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::UASH(uint64 instruction, Dis_info *info) +static std::string UASH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16369,7 +16369,7 @@ std::string NMD::UASH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::UASWM(uint64 instruction, Dis_info *info) +static std::string UASWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16395,7 +16395,7 @@ std::string NMD::UASWM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::UDI(uint64 instruction, Dis_info *info) +static std::string UDI(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); @@ -16413,7 +16413,7 @@ std::string NMD::UDI(uint64 instruction, Dis_info *info) * 001000 1100001101111111 * code ---------- */ -std::string NMD::WAIT(uint64 instruction, Dis_info *info) +static std::string WAIT(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_25_24_23_22_21_20_19_18_17_16(instruction); @@ -16433,7 +16433,7 @@ std::string NMD::WAIT(uint64 instruction, Dis_info *info) * rt ----- * mask ------- */ -std::string NMD::WRDSP(uint64 instruction, Dis_info *info) +static std::string WRDSP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); @@ -16455,7 +16455,7 @@ std::string NMD::WRDSP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::WRPGPR(uint64 instruction, Dis_info *info) +static std::string WRPGPR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16477,7 +16477,7 @@ std::string NMD::WRPGPR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::XOR_16_(uint64 instruction, Dis_info *info) +static std::string XOR_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -16499,7 +16499,7 @@ std::string NMD::XOR_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::XOR_32_(uint64 instruction, Dis_info *info) +static std::string XOR_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16523,7 +16523,7 @@ std::string NMD::XOR_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -std::string NMD::XORI(uint64 instruction, Dis_info *info) +static std::string XORI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16546,7 +16546,7 @@ std::string NMD::XORI(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -std::string NMD::YIELD(uint64 instruction, Dis_info *info) +static std::string YIELD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16663,26 +16663,26 @@ std::string NMD::YIELD(uint64 instruction, Dis_info *info) NMD::Pool NMD::P_SYSCALL[2] = { { instruction , 0 , 0 , 32, - 0xfffc0000, 0x00080000, &NMD::SYSCALL_32_ , 0, + 0xfffc0000, 0x00080000, &SYSCALL_32_ , 0, 0x0 }, /* SYSCALL[32] */ { instruction , 0 , 0 , 32, - 0xfffc0000, 0x000c0000, &NMD::HYPCALL , 0, + 0xfffc0000, 0x000c0000, &HYPCALL , 0, CP0_ | VZ_ }, /* HYPCALL */ }; NMD::Pool NMD::P_RI[4] = { { instruction , 0 , 0 , 32, - 0xfff80000, 0x00000000, &NMD::SIGRIE , 0, + 0xfff80000, 0x00000000, &SIGRIE , 0, 0x0 }, /* SIGRIE */ { pool , P_SYSCALL , 2 , 32, 0xfff80000, 0x00080000, 0 , 0, 0x0 }, /* P.SYSCALL */ { instruction , 0 , 0 , 32, - 0xfff80000, 0x00100000, &NMD::BREAK_32_ , 0, + 0xfff80000, 0x00100000, &BREAK_32_ , 0, 0x0 }, /* BREAK[32] */ { instruction , 0 , 0 , 32, - 0xfff80000, 0x00180000, &NMD::SDBBP_32_ , 0, + 0xfff80000, 0x00180000, &SDBBP_32_ , 0, EJTAG_ }, /* SDBBP[32] */ }; @@ -16692,47 +16692,47 @@ NMD::Pool NMD::P_ADDIU[2] = { 0xffe00000, 0x00000000, 0 , 0, 0x0 }, /* P.RI */ { instruction , 0 , 0 , 32, - 0xfc000000, 0x00000000, &NMD::ADDIU_32_ , &ADDIU_32__cond , + 0xfc000000, 0x00000000, &ADDIU_32_ , &ADDIU_32__cond , 0x0 }, /* ADDIU[32] */ }; NMD::Pool NMD::P_TRAP[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000000, &NMD::TEQ , 0, + 0xfc0007ff, 0x20000000, &TEQ , 0, XMMS_ }, /* TEQ */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000400, &NMD::TNE , 0, + 0xfc0007ff, 0x20000400, &TNE , 0, XMMS_ }, /* TNE */ }; NMD::Pool NMD::P_CMOVE[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000210, &NMD::MOVZ , 0, + 0xfc0007ff, 0x20000210, &MOVZ , 0, 0x0 }, /* MOVZ */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000610, &NMD::MOVN , 0, + 0xfc0007ff, 0x20000610, &MOVN , 0, 0x0 }, /* MOVN */ }; NMD::Pool NMD::P_D_MT_VPE[2] = { { instruction , 0 , 0 , 32, - 0xfc1f3fff, 0x20010ab0, &NMD::DMT , 0, + 0xfc1f3fff, 0x20010ab0, &DMT , 0, MT_ }, /* DMT */ { instruction , 0 , 0 , 32, - 0xfc1f3fff, 0x20000ab0, &NMD::DVPE , 0, + 0xfc1f3fff, 0x20000ab0, &DVPE , 0, MT_ }, /* DVPE */ }; NMD::Pool NMD::P_E_MT_VPE[2] = { { instruction , 0 , 0 , 32, - 0xfc1f3fff, 0x20010eb0, &NMD::EMT , 0, + 0xfc1f3fff, 0x20010eb0, &EMT , 0, MT_ }, /* EMT */ { instruction , 0 , 0 , 32, - 0xfc1f3fff, 0x20000eb0, &NMD::EVPE , 0, + 0xfc1f3fff, 0x20000eb0, &EVPE , 0, MT_ }, /* EVPE */ }; @@ -16777,10 +16777,10 @@ NMD::Pool NMD::P_MT_VPE[8] = { NMD::Pool NMD::P_DVP[2] = { { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20000390, &NMD::DVP , 0, + 0xfc00ffff, 0x20000390, &DVP , 0, 0x0 }, /* DVP */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20000790, &NMD::EVP , 0, + 0xfc00ffff, 0x20000790, &EVP , 0, 0x0 }, /* EVP */ }; @@ -16790,7 +16790,7 @@ NMD::Pool NMD::P_SLTU[2] = { 0xfc00fbff, 0x20000390, 0 , 0, 0x0 }, /* P.DVP */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000390, &NMD::SLTU , &SLTU_cond , + 0xfc0003ff, 0x20000390, &SLTU , &SLTU_cond , 0x0 }, /* SLTU */ }; @@ -16800,13 +16800,13 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000000, 0 , 0, 0x0 }, /* P.TRAP */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000008, &NMD::SEB , 0, + 0xfc0003ff, 0x20000008, &SEB , 0, XMMS_ }, /* SEB */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000010, &NMD::SLLV , 0, + 0xfc0003ff, 0x20000010, &SLLV , 0, 0x0 }, /* SLLV */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000018, &NMD::MUL_32_ , 0, + 0xfc0003ff, 0x20000018, &MUL_32_ , 0, 0x0 }, /* MUL[32] */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000020, 0 , 0, @@ -16815,22 +16815,22 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000028, 0 , 0, 0x0 }, /* _POOL32A0~*(5) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000030, &NMD::MFC0 , 0, + 0xfc0003ff, 0x20000030, &MFC0 , 0, 0x0 }, /* MFC0 */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000038, &NMD::MFHC0 , 0, + 0xfc0003ff, 0x20000038, &MFHC0 , 0, CP0_ | MVH_ }, /* MFHC0 */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000040, 0 , 0, 0x0 }, /* _POOL32A0~*(8) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000048, &NMD::SEH , 0, + 0xfc0003ff, 0x20000048, &SEH , 0, 0x0 }, /* SEH */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000050, &NMD::SRLV , 0, + 0xfc0003ff, 0x20000050, &SRLV , 0, 0x0 }, /* SRLV */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000058, &NMD::MUH , 0, + 0xfc0003ff, 0x20000058, &MUH , 0, 0x0 }, /* MUH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000060, 0 , 0, @@ -16839,10 +16839,10 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000068, 0 , 0, 0x0 }, /* _POOL32A0~*(13) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000070, &NMD::MTC0 , 0, + 0xfc0003ff, 0x20000070, &MTC0 , 0, CP0_ }, /* MTC0 */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000078, &NMD::MTHC0 , 0, + 0xfc0003ff, 0x20000078, &MTHC0 , 0, CP0_ | MVH_ }, /* MTHC0 */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000080, 0 , 0, @@ -16851,10 +16851,10 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000088, 0 , 0, 0x0 }, /* _POOL32A0~*(17) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000090, &NMD::SRAV , 0, + 0xfc0003ff, 0x20000090, &SRAV , 0, 0x0 }, /* SRAV */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000098, &NMD::MULU , 0, + 0xfc0003ff, 0x20000098, &MULU , 0, 0x0 }, /* MULU */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200000a0, 0 , 0, @@ -16863,10 +16863,10 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x200000a8, 0 , 0, 0x0 }, /* _POOL32A0~*(21) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000b0, &NMD::MFGC0 , 0, + 0xfc0003ff, 0x200000b0, &MFGC0 , 0, CP0_ | VZ_ }, /* MFGC0 */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000b8, &NMD::MFHGC0 , 0, + 0xfc0003ff, 0x200000b8, &MFHGC0 , 0, CP0_ | VZ_ | MVH_ }, /* MFHGC0 */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200000c0, 0 , 0, @@ -16875,10 +16875,10 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x200000c8, 0 , 0, 0x0 }, /* _POOL32A0~*(25) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000d0, &NMD::ROTRV , 0, + 0xfc0003ff, 0x200000d0, &ROTRV , 0, 0x0 }, /* ROTRV */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000d8, &NMD::MUHU , 0, + 0xfc0003ff, 0x200000d8, &MUHU , 0, 0x0 }, /* MUHU */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200000e0, 0 , 0, @@ -16887,10 +16887,10 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x200000e8, 0 , 0, 0x0 }, /* _POOL32A0~*(29) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000f0, &NMD::MTGC0 , 0, + 0xfc0003ff, 0x200000f0, &MTGC0 , 0, CP0_ | VZ_ }, /* MTGC0 */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000f8, &NMD::MTHGC0 , 0, + 0xfc0003ff, 0x200000f8, &MTHGC0 , 0, CP0_ | VZ_ | MVH_ }, /* MTHGC0 */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000100, 0 , 0, @@ -16899,10 +16899,10 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000108, 0 , 0, 0x0 }, /* _POOL32A0~*(33) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000110, &NMD::ADD , 0, + 0xfc0003ff, 0x20000110, &ADD , 0, XMMS_ }, /* ADD */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000118, &NMD::DIV , 0, + 0xfc0003ff, 0x20000118, &DIV , 0, 0x0 }, /* DIV */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000120, 0 , 0, @@ -16911,7 +16911,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000128, 0 , 0, 0x0 }, /* _POOL32A0~*(37) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000130, &NMD::DMFC0 , 0, + 0xfc0003ff, 0x20000130, &DMFC0 , 0, CP0_ | MIPS64_ }, /* DMFC0 */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000138, 0 , 0, @@ -16923,10 +16923,10 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000148, 0 , 0, 0x0 }, /* _POOL32A0~*(41) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000150, &NMD::ADDU_32_ , 0, + 0xfc0003ff, 0x20000150, &ADDU_32_ , 0, 0x0 }, /* ADDU[32] */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000158, &NMD::MOD , 0, + 0xfc0003ff, 0x20000158, &MOD , 0, 0x0 }, /* MOD */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000160, 0 , 0, @@ -16935,7 +16935,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000168, 0 , 0, 0x0 }, /* _POOL32A0~*(45) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000170, &NMD::DMTC0 , 0, + 0xfc0003ff, 0x20000170, &DMTC0 , 0, CP0_ | MIPS64_ }, /* DMTC0 */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000178, 0 , 0, @@ -16947,10 +16947,10 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000188, 0 , 0, 0x0 }, /* _POOL32A0~*(49) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000190, &NMD::SUB , 0, + 0xfc0003ff, 0x20000190, &SUB , 0, XMMS_ }, /* SUB */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000198, &NMD::DIVU , 0, + 0xfc0003ff, 0x20000198, &DIVU , 0, 0x0 }, /* DIVU */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200001a0, 0 , 0, @@ -16959,22 +16959,22 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x200001a8, 0 , 0, 0x0 }, /* _POOL32A0~*(53) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001b0, &NMD::DMFGC0 , 0, + 0xfc0003ff, 0x200001b0, &DMFGC0 , 0, CP0_ | MIPS64_ | VZ_}, /* DMFGC0 */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200001b8, 0 , 0, 0x0 }, /* _POOL32A0~*(55) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001c0, &NMD::RDHWR , 0, + 0xfc0003ff, 0x200001c0, &RDHWR , 0, XMMS_ }, /* RDHWR */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200001c8, 0 , 0, 0x0 }, /* _POOL32A0~*(57) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001d0, &NMD::SUBU_32_ , 0, + 0xfc0003ff, 0x200001d0, &SUBU_32_ , 0, 0x0 }, /* SUBU[32] */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001d8, &NMD::MODU , 0, + 0xfc0003ff, 0x200001d8, &MODU , 0, 0x0 }, /* MODU */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200001e0, 0 , 0, @@ -16983,7 +16983,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x200001e8, 0 , 0, 0x0 }, /* _POOL32A0~*(61) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001f0, &NMD::DMTGC0 , 0, + 0xfc0003ff, 0x200001f0, &DMTGC0 , 0, CP0_ | MIPS64_ | VZ_}, /* DMTGC0 */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200001f8, 0 , 0, @@ -17004,13 +17004,13 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000220, 0 , 0, 0x0 }, /* _POOL32A0~*(68) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000228, &NMD::FORK , 0, + 0xfc0003ff, 0x20000228, &FORK , 0, MT_ }, /* FORK */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000230, &NMD::MFTR , 0, + 0xfc0003ff, 0x20000230, &MFTR , 0, MT_ }, /* MFTR */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000238, &NMD::MFHTR , 0, + 0xfc0003ff, 0x20000238, &MFHTR , 0, MT_ }, /* MFHTR */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000240, 0 , 0, @@ -17019,7 +17019,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000248, 0 , 0, 0x0 }, /* _POOL32A0~*(73) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000250, &NMD::AND_32_ , 0, + 0xfc0003ff, 0x20000250, &AND_32_ , 0, 0x0 }, /* AND[32] */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000258, 0 , 0, @@ -17028,13 +17028,13 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000260, 0 , 0, 0x0 }, /* _POOL32A0~*(76) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000268, &NMD::YIELD , 0, + 0xfc0003ff, 0x20000268, &YIELD , 0, MT_ }, /* YIELD */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000270, &NMD::MTTR , 0, + 0xfc0003ff, 0x20000270, &MTTR , 0, MT_ }, /* MTTR */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000278, &NMD::MTHTR , 0, + 0xfc0003ff, 0x20000278, &MTHTR , 0, MT_ }, /* MTHTR */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000280, 0 , 0, @@ -17043,7 +17043,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000288, 0 , 0, 0x0 }, /* _POOL32A0~*(81) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000290, &NMD::OR_32_ , 0, + 0xfc0003ff, 0x20000290, &OR_32_ , 0, 0x0 }, /* OR[32] */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000298, 0 , 0, @@ -17067,7 +17067,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x200002c8, 0 , 0, 0x0 }, /* _POOL32A0~*(89) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200002d0, &NMD::NOR , 0, + 0xfc0003ff, 0x200002d0, &NOR , 0, 0x0 }, /* NOR */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200002d8, 0 , 0, @@ -17091,7 +17091,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000308, 0 , 0, 0x0 }, /* _POOL32A0~*(97) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000310, &NMD::XOR_32_ , 0, + 0xfc0003ff, 0x20000310, &XOR_32_ , 0, 0x0 }, /* XOR[32] */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000318, 0 , 0, @@ -17115,7 +17115,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x20000348, 0 , 0, 0x0 }, /* _POOL32A0~*(105) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000350, &NMD::SLT , 0, + 0xfc0003ff, 0x20000350, &SLT , 0, 0x0 }, /* SLT */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000358, 0 , 0, @@ -17163,7 +17163,7 @@ NMD::Pool NMD::_POOL32A0[128] = { 0xfc0003ff, 0x200003c8, 0 , 0, 0x0 }, /* _POOL32A0~*(121) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200003d0, &NMD::SOV , 0, + 0xfc0003ff, 0x200003d0, &SOV , 0, 0x0 }, /* SOV */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200003d8, 0 , 0, @@ -17185,183 +17185,183 @@ NMD::Pool NMD::_POOL32A0[128] = { NMD::Pool NMD::ADDQ__S__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000000d, &NMD::ADDQ_PH , 0, + 0xfc0007ff, 0x2000000d, &ADDQ_PH , 0, DSP_ }, /* ADDQ.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000040d, &NMD::ADDQ_S_PH , 0, + 0xfc0007ff, 0x2000040d, &ADDQ_S_PH , 0, DSP_ }, /* ADDQ_S.PH */ }; NMD::Pool NMD::MUL__S__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000002d, &NMD::MUL_PH , 0, + 0xfc0007ff, 0x2000002d, &MUL_PH , 0, DSP_ }, /* MUL.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000042d, &NMD::MUL_S_PH , 0, + 0xfc0007ff, 0x2000042d, &MUL_S_PH , 0, DSP_ }, /* MUL_S.PH */ }; NMD::Pool NMD::ADDQH__R__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000004d, &NMD::ADDQH_PH , 0, + 0xfc0007ff, 0x2000004d, &ADDQH_PH , 0, DSP_ }, /* ADDQH.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000044d, &NMD::ADDQH_R_PH , 0, + 0xfc0007ff, 0x2000044d, &ADDQH_R_PH , 0, DSP_ }, /* ADDQH_R.PH */ }; NMD::Pool NMD::ADDQH__R__W[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000008d, &NMD::ADDQH_W , 0, + 0xfc0007ff, 0x2000008d, &ADDQH_W , 0, DSP_ }, /* ADDQH.W */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000048d, &NMD::ADDQH_R_W , 0, + 0xfc0007ff, 0x2000048d, &ADDQH_R_W , 0, DSP_ }, /* ADDQH_R.W */ }; NMD::Pool NMD::ADDU__S__QB[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200000cd, &NMD::ADDU_QB , 0, + 0xfc0007ff, 0x200000cd, &ADDU_QB , 0, DSP_ }, /* ADDU.QB */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200004cd, &NMD::ADDU_S_QB , 0, + 0xfc0007ff, 0x200004cd, &ADDU_S_QB , 0, DSP_ }, /* ADDU_S.QB */ }; NMD::Pool NMD::ADDU__S__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000010d, &NMD::ADDU_PH , 0, + 0xfc0007ff, 0x2000010d, &ADDU_PH , 0, DSP_ }, /* ADDU.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000050d, &NMD::ADDU_S_PH , 0, + 0xfc0007ff, 0x2000050d, &ADDU_S_PH , 0, DSP_ }, /* ADDU_S.PH */ }; NMD::Pool NMD::ADDUH__R__QB[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000014d, &NMD::ADDUH_QB , 0, + 0xfc0007ff, 0x2000014d, &ADDUH_QB , 0, DSP_ }, /* ADDUH.QB */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000054d, &NMD::ADDUH_R_QB , 0, + 0xfc0007ff, 0x2000054d, &ADDUH_R_QB , 0, DSP_ }, /* ADDUH_R.QB */ }; NMD::Pool NMD::SHRAV__R__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000018d, &NMD::SHRAV_PH , 0, + 0xfc0007ff, 0x2000018d, &SHRAV_PH , 0, DSP_ }, /* SHRAV.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000058d, &NMD::SHRAV_R_PH , 0, + 0xfc0007ff, 0x2000058d, &SHRAV_R_PH , 0, DSP_ }, /* SHRAV_R.PH */ }; NMD::Pool NMD::SHRAV__R__QB[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200001cd, &NMD::SHRAV_QB , 0, + 0xfc0007ff, 0x200001cd, &SHRAV_QB , 0, DSP_ }, /* SHRAV.QB */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200005cd, &NMD::SHRAV_R_QB , 0, + 0xfc0007ff, 0x200005cd, &SHRAV_R_QB , 0, DSP_ }, /* SHRAV_R.QB */ }; NMD::Pool NMD::SUBQ__S__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000020d, &NMD::SUBQ_PH , 0, + 0xfc0007ff, 0x2000020d, &SUBQ_PH , 0, DSP_ }, /* SUBQ.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000060d, &NMD::SUBQ_S_PH , 0, + 0xfc0007ff, 0x2000060d, &SUBQ_S_PH , 0, DSP_ }, /* SUBQ_S.PH */ }; NMD::Pool NMD::SUBQH__R__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000024d, &NMD::SUBQH_PH , 0, + 0xfc0007ff, 0x2000024d, &SUBQH_PH , 0, DSP_ }, /* SUBQH.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000064d, &NMD::SUBQH_R_PH , 0, + 0xfc0007ff, 0x2000064d, &SUBQH_R_PH , 0, DSP_ }, /* SUBQH_R.PH */ }; NMD::Pool NMD::SUBQH__R__W[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000028d, &NMD::SUBQH_W , 0, + 0xfc0007ff, 0x2000028d, &SUBQH_W , 0, DSP_ }, /* SUBQH.W */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000068d, &NMD::SUBQH_R_W , 0, + 0xfc0007ff, 0x2000068d, &SUBQH_R_W , 0, DSP_ }, /* SUBQH_R.W */ }; NMD::Pool NMD::SUBU__S__QB[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200002cd, &NMD::SUBU_QB , 0, + 0xfc0007ff, 0x200002cd, &SUBU_QB , 0, DSP_ }, /* SUBU.QB */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200006cd, &NMD::SUBU_S_QB , 0, + 0xfc0007ff, 0x200006cd, &SUBU_S_QB , 0, DSP_ }, /* SUBU_S.QB */ }; NMD::Pool NMD::SUBU__S__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000030d, &NMD::SUBU_PH , 0, + 0xfc0007ff, 0x2000030d, &SUBU_PH , 0, DSP_ }, /* SUBU.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000070d, &NMD::SUBU_S_PH , 0, + 0xfc0007ff, 0x2000070d, &SUBU_S_PH , 0, DSP_ }, /* SUBU_S.PH */ }; NMD::Pool NMD::SHRA__R__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000335, &NMD::SHRA_PH , 0, + 0xfc0007ff, 0x20000335, &SHRA_PH , 0, DSP_ }, /* SHRA.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000735, &NMD::SHRA_R_PH , 0, + 0xfc0007ff, 0x20000735, &SHRA_R_PH , 0, DSP_ }, /* SHRA_R.PH */ }; NMD::Pool NMD::SUBUH__R__QB[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000034d, &NMD::SUBUH_QB , 0, + 0xfc0007ff, 0x2000034d, &SUBUH_QB , 0, DSP_ }, /* SUBUH.QB */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000074d, &NMD::SUBUH_R_QB , 0, + 0xfc0007ff, 0x2000074d, &SUBUH_R_QB , 0, DSP_ }, /* SUBUH_R.QB */ }; NMD::Pool NMD::SHLLV__S__PH[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000038d, &NMD::SHLLV_PH , 0, + 0xfc0007ff, 0x2000038d, &SHLLV_PH , 0, DSP_ }, /* SHLLV.PH */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x2000078d, &NMD::SHLLV_S_PH , 0, + 0xfc0007ff, 0x2000078d, &SHLLV_S_PH , 0, DSP_ }, /* SHLLV_S.PH */ }; NMD::Pool NMD::SHLL__S__PH[4] = { { instruction , 0 , 0 , 32, - 0xfc000fff, 0x200003b5, &NMD::SHLL_PH , 0, + 0xfc000fff, 0x200003b5, &SHLL_PH , 0, DSP_ }, /* SHLL.PH */ { reserved_block , 0 , 0 , 32, 0xfc000fff, 0x200007b5, 0 , 0, 0x0 }, /* SHLL[_S].PH~*(1) */ { instruction , 0 , 0 , 32, - 0xfc000fff, 0x20000bb5, &NMD::SHLL_S_PH , 0, + 0xfc000fff, 0x20000bb5, &SHLL_S_PH , 0, DSP_ }, /* SHLL_S.PH */ { reserved_block , 0 , 0 , 32, 0xfc000fff, 0x20000fb5, 0 , 0, @@ -17371,17 +17371,17 @@ NMD::Pool NMD::SHLL__S__PH[4] = { NMD::Pool NMD::PRECR_SRA__R__PH_W[2] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200003cd, &NMD::PRECR_SRA_PH_W , 0, + 0xfc0007ff, 0x200003cd, &PRECR_SRA_PH_W , 0, DSP_ }, /* PRECR_SRA.PH.W */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200007cd, &NMD::PRECR_SRA_R_PH_W , 0, + 0xfc0007ff, 0x200007cd, &PRECR_SRA_R_PH_W , 0, DSP_ }, /* PRECR_SRA_R.PH.W */ }; NMD::Pool NMD::_POOL32A5[128] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000005, &NMD::CMP_EQ_PH , 0, + 0xfc0003ff, 0x20000005, &CMP_EQ_PH , 0, DSP_ }, /* CMP.EQ.PH */ { pool , ADDQ__S__PH , 2 , 32, 0xfc0003ff, 0x2000000d, 0 , 0, @@ -17390,10 +17390,10 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x20000015, 0 , 0, 0x0 }, /* _POOL32A5~*(2) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x2000001d, &NMD::SHILO , 0, + 0xfc0003ff, 0x2000001d, &SHILO , 0, DSP_ }, /* SHILO */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000025, &NMD::MULEQ_S_W_PHL , 0, + 0xfc0003ff, 0x20000025, &MULEQ_S_W_PHL , 0, DSP_ }, /* MULEQ_S.W.PHL */ { pool , MUL__S__PH , 2 , 32, 0xfc0003ff, 0x2000002d, 0 , 0, @@ -17402,10 +17402,10 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x20000035, 0 , 0, 0x0 }, /* _POOL32A5~*(6) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x2000003d, &NMD::REPL_PH , 0, + 0xfc0003ff, 0x2000003d, &REPL_PH , 0, DSP_ }, /* REPL.PH */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000045, &NMD::CMP_LT_PH , 0, + 0xfc0003ff, 0x20000045, &CMP_LT_PH , 0, DSP_ }, /* CMP.LT.PH */ { pool , ADDQH__R__PH , 2 , 32, 0xfc0003ff, 0x2000004d, 0 , 0, @@ -17417,10 +17417,10 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x2000005d, 0 , 0, 0x0 }, /* _POOL32A5~*(11) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000065, &NMD::MULEQ_S_W_PHR , 0, + 0xfc0003ff, 0x20000065, &MULEQ_S_W_PHR , 0, DSP_ }, /* MULEQ_S.W.PHR */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x2000006d, &NMD::PRECR_QB_PH , 0, + 0xfc0003ff, 0x2000006d, &PRECR_QB_PH , 0, DSP_ }, /* PRECR.QB.PH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000075, 0 , 0, @@ -17429,13 +17429,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x2000007d, 0 , 0, 0x0 }, /* _POOL32A5~*(15) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000085, &NMD::CMP_LE_PH , 0, + 0xfc0003ff, 0x20000085, &CMP_LE_PH , 0, DSP_ }, /* CMP.LE.PH */ { pool , ADDQH__R__W , 2 , 32, 0xfc0003ff, 0x2000008d, 0 , 0, 0x0 }, /* ADDQH[_R].W */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000095, &NMD::MULEU_S_PH_QBL , 0, + 0xfc0003ff, 0x20000095, &MULEU_S_PH_QBL , 0, DSP_ }, /* MULEU_S.PH.QBL */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000009d, 0 , 0, @@ -17444,7 +17444,7 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200000a5, 0 , 0, 0x0 }, /* _POOL32A5~*(20) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000ad, &NMD::PRECRQ_QB_PH , 0, + 0xfc0003ff, 0x200000ad, &PRECRQ_QB_PH , 0, DSP_ }, /* PRECRQ.QB.PH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200000b5, 0 , 0, @@ -17453,13 +17453,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200000bd, 0 , 0, 0x0 }, /* _POOL32A5~*(23) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000c5, &NMD::CMPGU_EQ_QB , 0, + 0xfc0003ff, 0x200000c5, &CMPGU_EQ_QB , 0, DSP_ }, /* CMPGU.EQ.QB */ { pool , ADDU__S__QB , 2 , 32, 0xfc0003ff, 0x200000cd, 0 , 0, 0x0 }, /* ADDU[_S].QB */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000d5, &NMD::MULEU_S_PH_QBR , 0, + 0xfc0003ff, 0x200000d5, &MULEU_S_PH_QBR , 0, DSP_ }, /* MULEU_S.PH.QBR */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200000dd, 0 , 0, @@ -17468,7 +17468,7 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200000e5, 0 , 0, 0x0 }, /* _POOL32A5~*(28) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200000ed, &NMD::PRECRQ_PH_W , 0, + 0xfc0003ff, 0x200000ed, &PRECRQ_PH_W , 0, DSP_ }, /* PRECRQ.PH.W */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200000f5, 0 , 0, @@ -17477,13 +17477,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200000fd, 0 , 0, 0x0 }, /* _POOL32A5~*(31) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000105, &NMD::CMPGU_LT_QB , 0, + 0xfc0003ff, 0x20000105, &CMPGU_LT_QB , 0, DSP_ }, /* CMPGU.LT.QB */ { pool , ADDU__S__PH , 2 , 32, 0xfc0003ff, 0x2000010d, 0 , 0, 0x0 }, /* ADDU[_S].PH */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000115, &NMD::MULQ_RS_PH , 0, + 0xfc0003ff, 0x20000115, &MULQ_RS_PH , 0, DSP_ }, /* MULQ_RS.PH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000011d, 0 , 0, @@ -17492,7 +17492,7 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x20000125, 0 , 0, 0x0 }, /* _POOL32A5~*(36) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x2000012d, &NMD::PRECRQ_RS_PH_W , 0, + 0xfc0003ff, 0x2000012d, &PRECRQ_RS_PH_W , 0, DSP_ }, /* PRECRQ_RS.PH.W */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000135, 0 , 0, @@ -17501,13 +17501,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x2000013d, 0 , 0, 0x0 }, /* _POOL32A5~*(39) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000145, &NMD::CMPGU_LE_QB , 0, + 0xfc0003ff, 0x20000145, &CMPGU_LE_QB , 0, DSP_ }, /* CMPGU.LE.QB */ { pool , ADDUH__R__QB , 2 , 32, 0xfc0003ff, 0x2000014d, 0 , 0, 0x0 }, /* ADDUH[_R].QB */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000155, &NMD::MULQ_S_PH , 0, + 0xfc0003ff, 0x20000155, &MULQ_S_PH , 0, DSP_ }, /* MULQ_S.PH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000015d, 0 , 0, @@ -17516,7 +17516,7 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x20000165, 0 , 0, 0x0 }, /* _POOL32A5~*(44) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x2000016d, &NMD::PRECRQU_S_QB_PH , 0, + 0xfc0003ff, 0x2000016d, &PRECRQU_S_QB_PH , 0, DSP_ }, /* PRECRQU_S.QB.PH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000175, 0 , 0, @@ -17525,13 +17525,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x2000017d, 0 , 0, 0x0 }, /* _POOL32A5~*(47) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000185, &NMD::CMPGDU_EQ_QB , 0, + 0xfc0003ff, 0x20000185, &CMPGDU_EQ_QB , 0, DSP_ }, /* CMPGDU.EQ.QB */ { pool , SHRAV__R__PH , 2 , 32, 0xfc0003ff, 0x2000018d, 0 , 0, 0x0 }, /* SHRAV[_R].PH */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000195, &NMD::MULQ_RS_W , 0, + 0xfc0003ff, 0x20000195, &MULQ_RS_W , 0, DSP_ }, /* MULQ_RS.W */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000019d, 0 , 0, @@ -17540,7 +17540,7 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200001a5, 0 , 0, 0x0 }, /* _POOL32A5~*(52) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001ad, &NMD::PACKRL_PH , 0, + 0xfc0003ff, 0x200001ad, &PACKRL_PH , 0, DSP_ }, /* PACKRL.PH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200001b5, 0 , 0, @@ -17549,13 +17549,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200001bd, 0 , 0, 0x0 }, /* _POOL32A5~*(55) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001c5, &NMD::CMPGDU_LT_QB , 0, + 0xfc0003ff, 0x200001c5, &CMPGDU_LT_QB , 0, DSP_ }, /* CMPGDU.LT.QB */ { pool , SHRAV__R__QB , 2 , 32, 0xfc0003ff, 0x200001cd, 0 , 0, 0x0 }, /* SHRAV[_R].QB */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001d5, &NMD::MULQ_S_W , 0, + 0xfc0003ff, 0x200001d5, &MULQ_S_W , 0, DSP_ }, /* MULQ_S.W */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200001dd, 0 , 0, @@ -17564,7 +17564,7 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200001e5, 0 , 0, 0x0 }, /* _POOL32A5~*(60) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200001ed, &NMD::PICK_QB , 0, + 0xfc0003ff, 0x200001ed, &PICK_QB , 0, DSP_ }, /* PICK.QB */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200001f5, 0 , 0, @@ -17573,13 +17573,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200001fd, 0 , 0, 0x0 }, /* _POOL32A5~*(63) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000205, &NMD::CMPGDU_LE_QB , 0, + 0xfc0003ff, 0x20000205, &CMPGDU_LE_QB , 0, DSP_ }, /* CMPGDU.LE.QB */ { pool , SUBQ__S__PH , 2 , 32, 0xfc0003ff, 0x2000020d, 0 , 0, 0x0 }, /* SUBQ[_S].PH */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000215, &NMD::APPEND , 0, + 0xfc0003ff, 0x20000215, &APPEND , 0, DSP_ }, /* APPEND */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000021d, 0 , 0, @@ -17588,7 +17588,7 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x20000225, 0 , 0, 0x0 }, /* _POOL32A5~*(68) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x2000022d, &NMD::PICK_PH , 0, + 0xfc0003ff, 0x2000022d, &PICK_PH , 0, DSP_ }, /* PICK.PH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x20000235, 0 , 0, @@ -17597,13 +17597,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x2000023d, 0 , 0, 0x0 }, /* _POOL32A5~*(71) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000245, &NMD::CMPU_EQ_QB , 0, + 0xfc0003ff, 0x20000245, &CMPU_EQ_QB , 0, DSP_ }, /* CMPU.EQ.QB */ { pool , SUBQH__R__PH , 2 , 32, 0xfc0003ff, 0x2000024d, 0 , 0, 0x0 }, /* SUBQH[_R].PH */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000255, &NMD::PREPEND , 0, + 0xfc0003ff, 0x20000255, &PREPEND , 0, DSP_ }, /* PREPEND */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000025d, 0 , 0, @@ -17621,13 +17621,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x2000027d, 0 , 0, 0x0 }, /* _POOL32A5~*(79) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000285, &NMD::CMPU_LT_QB , 0, + 0xfc0003ff, 0x20000285, &CMPU_LT_QB , 0, DSP_ }, /* CMPU.LT.QB */ { pool , SUBQH__R__W , 2 , 32, 0xfc0003ff, 0x2000028d, 0 , 0, 0x0 }, /* SUBQH[_R].W */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000295, &NMD::MODSUB , 0, + 0xfc0003ff, 0x20000295, &MODSUB , 0, DSP_ }, /* MODSUB */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000029d, 0 , 0, @@ -17645,13 +17645,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200002bd, 0 , 0, 0x0 }, /* _POOL32A5~*(87) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200002c5, &NMD::CMPU_LE_QB , 0, + 0xfc0003ff, 0x200002c5, &CMPU_LE_QB , 0, DSP_ }, /* CMPU.LE.QB */ { pool , SUBU__S__QB , 2 , 32, 0xfc0003ff, 0x200002cd, 0 , 0, 0x0 }, /* SUBU[_S].QB */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200002d5, &NMD::SHRAV_R_W , 0, + 0xfc0003ff, 0x200002d5, &SHRAV_R_W , 0, DSP_ }, /* SHRAV_R.W */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200002dd, 0 , 0, @@ -17663,19 +17663,19 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200002ed, 0 , 0, 0x0 }, /* _POOL32A5~*(93) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200002f5, &NMD::SHRA_R_W , 0, + 0xfc0003ff, 0x200002f5, &SHRA_R_W , 0, DSP_ }, /* SHRA_R.W */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200002fd, 0 , 0, 0x0 }, /* _POOL32A5~*(95) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000305, &NMD::ADDQ_S_W , 0, + 0xfc0003ff, 0x20000305, &ADDQ_S_W , 0, DSP_ }, /* ADDQ_S.W */ { pool , SUBU__S__PH , 2 , 32, 0xfc0003ff, 0x2000030d, 0 , 0, 0x0 }, /* SUBU[_S].PH */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000315, &NMD::SHRLV_PH , 0, + 0xfc0003ff, 0x20000315, &SHRLV_PH , 0, DSP_ }, /* SHRLV.PH */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000031d, 0 , 0, @@ -17693,13 +17693,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x2000033d, 0 , 0, 0x0 }, /* _POOL32A5~*(103) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000345, &NMD::SUBQ_S_W , 0, + 0xfc0003ff, 0x20000345, &SUBQ_S_W , 0, DSP_ }, /* SUBQ_S.W */ { pool , SUBUH__R__QB , 2 , 32, 0xfc0003ff, 0x2000034d, 0 , 0, 0x0 }, /* SUBUH[_R].QB */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000355, &NMD::SHRLV_QB , 0, + 0xfc0003ff, 0x20000355, &SHRLV_QB , 0, DSP_ }, /* SHRLV.QB */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000035d, 0 , 0, @@ -17717,13 +17717,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x2000037d, 0 , 0, 0x0 }, /* _POOL32A5~*(111) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000385, &NMD::ADDSC , 0, + 0xfc0003ff, 0x20000385, &ADDSC , 0, DSP_ }, /* ADDSC */ { pool , SHLLV__S__PH , 2 , 32, 0xfc0003ff, 0x2000038d, 0 , 0, 0x0 }, /* SHLLV[_S].PH */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x20000395, &NMD::SHLLV_QB , 0, + 0xfc0003ff, 0x20000395, &SHLLV_QB , 0, DSP_ }, /* SHLLV.QB */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x2000039d, 0 , 0, @@ -17741,13 +17741,13 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200003bd, 0 , 0, 0x0 }, /* _POOL32A5~*(119) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200003c5, &NMD::ADDWC , 0, + 0xfc0003ff, 0x200003c5, &ADDWC , 0, DSP_ }, /* ADDWC */ { pool , PRECR_SRA__R__PH_W , 2 , 32, 0xfc0003ff, 0x200003cd, 0 , 0, 0x0 }, /* PRECR_SRA[_R].PH.W */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200003d5, &NMD::SHLLV_S_W , 0, + 0xfc0003ff, 0x200003d5, &SHLLV_S_W , 0, DSP_ }, /* SHLLV_S.W */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200003dd, 0 , 0, @@ -17759,7 +17759,7 @@ NMD::Pool NMD::_POOL32A5[128] = { 0xfc0003ff, 0x200003ed, 0 , 0, 0x0 }, /* _POOL32A5~*(125) */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0x200003f5, &NMD::SHLL_S_W , 0, + 0xfc0003ff, 0x200003f5, &SHLL_S_W , 0, DSP_ }, /* SHLL_S.W */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0x200003fd, 0 , 0, @@ -17769,52 +17769,52 @@ NMD::Pool NMD::_POOL32A5[128] = { NMD::Pool NMD::PP_LSX[16] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000007, &NMD::LBX , 0, + 0xfc0007ff, 0x20000007, &LBX , 0, 0x0 }, /* LBX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000087, &NMD::SBX , 0, + 0xfc0007ff, 0x20000087, &SBX , 0, XMMS_ }, /* SBX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000107, &NMD::LBUX , 0, + 0xfc0007ff, 0x20000107, &LBUX , 0, 0x0 }, /* LBUX */ { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0x20000187, 0 , 0, 0x0 }, /* PP.LSX~*(3) */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000207, &NMD::LHX , 0, + 0xfc0007ff, 0x20000207, &LHX , 0, 0x0 }, /* LHX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000287, &NMD::SHX , 0, + 0xfc0007ff, 0x20000287, &SHX , 0, XMMS_ }, /* SHX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000307, &NMD::LHUX , 0, + 0xfc0007ff, 0x20000307, &LHUX , 0, 0x0 }, /* LHUX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000387, &NMD::LWUX , 0, + 0xfc0007ff, 0x20000387, &LWUX , 0, MIPS64_ }, /* LWUX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000407, &NMD::LWX , 0, + 0xfc0007ff, 0x20000407, &LWX , 0, 0x0 }, /* LWX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000487, &NMD::SWX , 0, + 0xfc0007ff, 0x20000487, &SWX , 0, XMMS_ }, /* SWX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000507, &NMD::LWC1X , 0, + 0xfc0007ff, 0x20000507, &LWC1X , 0, CP1_ }, /* LWC1X */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000587, &NMD::SWC1X , 0, + 0xfc0007ff, 0x20000587, &SWC1X , 0, CP1_ }, /* SWC1X */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000607, &NMD::LDX , 0, + 0xfc0007ff, 0x20000607, &LDX , 0, MIPS64_ }, /* LDX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000687, &NMD::SDX , 0, + 0xfc0007ff, 0x20000687, &SDX , 0, MIPS64_ }, /* SDX */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000707, &NMD::LDC1X , 0, + 0xfc0007ff, 0x20000707, &LDC1X , 0, CP1_ }, /* LDC1X */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000787, &NMD::SDC1X , 0, + 0xfc0007ff, 0x20000787, &SDC1X , 0, CP1_ }, /* SDC1X */ }; @@ -17833,40 +17833,40 @@ NMD::Pool NMD::PP_LSXS[16] = { 0xfc0007ff, 0x200001c7, 0 , 0, 0x0 }, /* PP.LSXS~*(3) */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000247, &NMD::LHXS , 0, + 0xfc0007ff, 0x20000247, &LHXS , 0, 0x0 }, /* LHXS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200002c7, &NMD::SHXS , 0, + 0xfc0007ff, 0x200002c7, &SHXS , 0, XMMS_ }, /* SHXS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000347, &NMD::LHUXS , 0, + 0xfc0007ff, 0x20000347, &LHUXS , 0, 0x0 }, /* LHUXS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200003c7, &NMD::LWUXS , 0, + 0xfc0007ff, 0x200003c7, &LWUXS , 0, MIPS64_ }, /* LWUXS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000447, &NMD::LWXS_32_ , 0, + 0xfc0007ff, 0x20000447, &LWXS_32_ , 0, 0x0 }, /* LWXS[32] */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200004c7, &NMD::SWXS , 0, + 0xfc0007ff, 0x200004c7, &SWXS , 0, XMMS_ }, /* SWXS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000547, &NMD::LWC1XS , 0, + 0xfc0007ff, 0x20000547, &LWC1XS , 0, CP1_ }, /* LWC1XS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200005c7, &NMD::SWC1XS , 0, + 0xfc0007ff, 0x200005c7, &SWC1XS , 0, CP1_ }, /* SWC1XS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000647, &NMD::LDXS , 0, + 0xfc0007ff, 0x20000647, &LDXS , 0, MIPS64_ }, /* LDXS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200006c7, &NMD::SDXS , 0, + 0xfc0007ff, 0x200006c7, &SDXS , 0, MIPS64_ }, /* SDXS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x20000747, &NMD::LDC1XS , 0, + 0xfc0007ff, 0x20000747, &LDC1XS , 0, CP1_ }, /* LDC1XS */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0x200007c7, &NMD::SDC1XS , 0, + 0xfc0007ff, 0x200007c7, &SDC1XS , 0, CP1_ }, /* SDC1XS */ }; @@ -17883,26 +17883,26 @@ NMD::Pool NMD::P_LSX[2] = { NMD::Pool NMD::POOL32Axf_1_0[4] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000007f, &NMD::MFHI_DSP_ , 0, + 0xfc003fff, 0x2000007f, &MFHI_DSP_ , 0, DSP_ }, /* MFHI[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000107f, &NMD::MFLO_DSP_ , 0, + 0xfc003fff, 0x2000107f, &MFLO_DSP_ , 0, DSP_ }, /* MFLO[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000207f, &NMD::MTHI_DSP_ , 0, + 0xfc003fff, 0x2000207f, &MTHI_DSP_ , 0, DSP_ }, /* MTHI[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000307f, &NMD::MTLO_DSP_ , 0, + 0xfc003fff, 0x2000307f, &MTLO_DSP_ , 0, DSP_ }, /* MTLO[DSP] */ }; NMD::Pool NMD::POOL32Axf_1_1[4] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000027f, &NMD::MTHLIP , 0, + 0xfc003fff, 0x2000027f, &MTHLIP , 0, DSP_ }, /* MTHLIP */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000127f, &NMD::SHILOV , 0, + 0xfc003fff, 0x2000127f, &SHILOV , 0, DSP_ }, /* SHILOV */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0x2000227f, 0 , 0, @@ -17915,46 +17915,46 @@ NMD::Pool NMD::POOL32Axf_1_1[4] = { NMD::Pool NMD::POOL32Axf_1_3[4] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000067f, &NMD::RDDSP , 0, + 0xfc003fff, 0x2000067f, &RDDSP , 0, DSP_ }, /* RDDSP */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000167f, &NMD::WRDSP , 0, + 0xfc003fff, 0x2000167f, &WRDSP , 0, DSP_ }, /* WRDSP */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000267f, &NMD::EXTP , 0, + 0xfc003fff, 0x2000267f, &EXTP , 0, DSP_ }, /* EXTP */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x2000367f, &NMD::EXTPDP , 0, + 0xfc003fff, 0x2000367f, &EXTPDP , 0, DSP_ }, /* EXTPDP */ }; NMD::Pool NMD::POOL32Axf_1_4[2] = { { instruction , 0 , 0 , 32, - 0xfc001fff, 0x2000087f, &NMD::SHLL_QB , 0, + 0xfc001fff, 0x2000087f, &SHLL_QB , 0, DSP_ }, /* SHLL.QB */ { instruction , 0 , 0 , 32, - 0xfc001fff, 0x2000187f, &NMD::SHRL_QB , 0, + 0xfc001fff, 0x2000187f, &SHRL_QB , 0, DSP_ }, /* SHRL.QB */ }; NMD::Pool NMD::MAQ_S_A__W_PHR[2] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20000a7f, &NMD::MAQ_S_W_PHR , 0, + 0xfc003fff, 0x20000a7f, &MAQ_S_W_PHR , 0, DSP_ }, /* MAQ_S.W.PHR */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20002a7f, &NMD::MAQ_SA_W_PHR , 0, + 0xfc003fff, 0x20002a7f, &MAQ_SA_W_PHR , 0, DSP_ }, /* MAQ_SA.W.PHR */ }; NMD::Pool NMD::MAQ_S_A__W_PHL[2] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20001a7f, &NMD::MAQ_S_W_PHL , 0, + 0xfc003fff, 0x20001a7f, &MAQ_S_W_PHL , 0, DSP_ }, /* MAQ_S.W.PHL */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20003a7f, &NMD::MAQ_SA_W_PHL , 0, + 0xfc003fff, 0x20003a7f, &MAQ_SA_W_PHL , 0, DSP_ }, /* MAQ_SA.W.PHL */ }; @@ -17971,16 +17971,16 @@ NMD::Pool NMD::POOL32Axf_1_5[2] = { NMD::Pool NMD::POOL32Axf_1_7[4] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20000e7f, &NMD::EXTR_W , 0, + 0xfc003fff, 0x20000e7f, &EXTR_W , 0, DSP_ }, /* EXTR.W */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20001e7f, &NMD::EXTR_R_W , 0, + 0xfc003fff, 0x20001e7f, &EXTR_R_W , 0, DSP_ }, /* EXTR_R.W */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20002e7f, &NMD::EXTR_RS_W , 0, + 0xfc003fff, 0x20002e7f, &EXTR_RS_W , 0, DSP_ }, /* EXTR_RS.W */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20003e7f, &NMD::EXTR_S_H , 0, + 0xfc003fff, 0x20003e7f, &EXTR_S_H , 0, DSP_ }, /* EXTR_S.H */ }; @@ -18015,112 +18015,112 @@ NMD::Pool NMD::POOL32Axf_1[8] = { NMD::Pool NMD::POOL32Axf_2_DSP__0_7[8] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200000bf, &NMD::DPA_W_PH , 0, + 0xfc003fff, 0x200000bf, &DPA_W_PH , 0, DSP_ }, /* DPA.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200002bf, &NMD::DPAQ_S_W_PH , 0, + 0xfc003fff, 0x200002bf, &DPAQ_S_W_PH , 0, DSP_ }, /* DPAQ_S.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200004bf, &NMD::DPS_W_PH , 0, + 0xfc003fff, 0x200004bf, &DPS_W_PH , 0, DSP_ }, /* DPS.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200006bf, &NMD::DPSQ_S_W_PH , 0, + 0xfc003fff, 0x200006bf, &DPSQ_S_W_PH , 0, DSP_ }, /* DPSQ_S.W.PH */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0x200008bf, 0 , 0, 0x0 }, /* POOL32Axf_2(DSP)_0_7~*(4) */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20000abf, &NMD::MADD_DSP_ , 0, + 0xfc003fff, 0x20000abf, &MADD_DSP_ , 0, DSP_ }, /* MADD[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20000cbf, &NMD::MULT_DSP_ , 0, + 0xfc003fff, 0x20000cbf, &MULT_DSP_ , 0, DSP_ }, /* MULT[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20000ebf, &NMD::EXTRV_W , 0, + 0xfc003fff, 0x20000ebf, &EXTRV_W , 0, DSP_ }, /* EXTRV.W */ }; NMD::Pool NMD::POOL32Axf_2_DSP__8_15[8] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200010bf, &NMD::DPAX_W_PH , 0, + 0xfc003fff, 0x200010bf, &DPAX_W_PH , 0, DSP_ }, /* DPAX.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200012bf, &NMD::DPAQ_SA_L_W , 0, + 0xfc003fff, 0x200012bf, &DPAQ_SA_L_W , 0, DSP_ }, /* DPAQ_SA.L.W */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200014bf, &NMD::DPSX_W_PH , 0, + 0xfc003fff, 0x200014bf, &DPSX_W_PH , 0, DSP_ }, /* DPSX.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200016bf, &NMD::DPSQ_SA_L_W , 0, + 0xfc003fff, 0x200016bf, &DPSQ_SA_L_W , 0, DSP_ }, /* DPSQ_SA.L.W */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0x200018bf, 0 , 0, 0x0 }, /* POOL32Axf_2(DSP)_8_15~*(4) */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20001abf, &NMD::MADDU_DSP_ , 0, + 0xfc003fff, 0x20001abf, &MADDU_DSP_ , 0, DSP_ }, /* MADDU[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20001cbf, &NMD::MULTU_DSP_ , 0, + 0xfc003fff, 0x20001cbf, &MULTU_DSP_ , 0, DSP_ }, /* MULTU[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20001ebf, &NMD::EXTRV_R_W , 0, + 0xfc003fff, 0x20001ebf, &EXTRV_R_W , 0, DSP_ }, /* EXTRV_R.W */ }; NMD::Pool NMD::POOL32Axf_2_DSP__16_23[8] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200020bf, &NMD::DPAU_H_QBL , 0, + 0xfc003fff, 0x200020bf, &DPAU_H_QBL , 0, DSP_ }, /* DPAU.H.QBL */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200022bf, &NMD::DPAQX_S_W_PH , 0, + 0xfc003fff, 0x200022bf, &DPAQX_S_W_PH , 0, DSP_ }, /* DPAQX_S.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200024bf, &NMD::DPSU_H_QBL , 0, + 0xfc003fff, 0x200024bf, &DPSU_H_QBL , 0, DSP_ }, /* DPSU.H.QBL */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200026bf, &NMD::DPSQX_S_W_PH , 0, + 0xfc003fff, 0x200026bf, &DPSQX_S_W_PH , 0, DSP_ }, /* DPSQX_S.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200028bf, &NMD::EXTPV , 0, + 0xfc003fff, 0x200028bf, &EXTPV , 0, DSP_ }, /* EXTPV */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20002abf, &NMD::MSUB_DSP_ , 0, + 0xfc003fff, 0x20002abf, &MSUB_DSP_ , 0, DSP_ }, /* MSUB[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20002cbf, &NMD::MULSA_W_PH , 0, + 0xfc003fff, 0x20002cbf, &MULSA_W_PH , 0, DSP_ }, /* MULSA.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20002ebf, &NMD::EXTRV_RS_W , 0, + 0xfc003fff, 0x20002ebf, &EXTRV_RS_W , 0, DSP_ }, /* EXTRV_RS.W */ }; NMD::Pool NMD::POOL32Axf_2_DSP__24_31[8] = { { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200030bf, &NMD::DPAU_H_QBR , 0, + 0xfc003fff, 0x200030bf, &DPAU_H_QBR , 0, DSP_ }, /* DPAU.H.QBR */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200032bf, &NMD::DPAQX_SA_W_PH , 0, + 0xfc003fff, 0x200032bf, &DPAQX_SA_W_PH , 0, DSP_ }, /* DPAQX_SA.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200034bf, &NMD::DPSU_H_QBR , 0, + 0xfc003fff, 0x200034bf, &DPSU_H_QBR , 0, DSP_ }, /* DPSU.H.QBR */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200036bf, &NMD::DPSQX_SA_W_PH , 0, + 0xfc003fff, 0x200036bf, &DPSQX_SA_W_PH , 0, DSP_ }, /* DPSQX_SA.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x200038bf, &NMD::EXTPDPV , 0, + 0xfc003fff, 0x200038bf, &EXTPDPV , 0, DSP_ }, /* EXTPDPV */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20003abf, &NMD::MSUBU_DSP_ , 0, + 0xfc003fff, 0x20003abf, &MSUBU_DSP_ , 0, DSP_ }, /* MSUBU[DSP] */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20003cbf, &NMD::MULSAQ_S_W_PH , 0, + 0xfc003fff, 0x20003cbf, &MULSAQ_S_W_PH , 0, DSP_ }, /* MULSAQ_S.W.PH */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0x20003ebf, &NMD::EXTRV_S_H , 0, + 0xfc003fff, 0x20003ebf, &EXTRV_S_H , 0, DSP_ }, /* EXTRV_S.H */ }; @@ -18143,10 +18143,10 @@ NMD::Pool NMD::POOL32Axf_2[4] = { NMD::Pool NMD::POOL32Axf_4[128] = { { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000013f, &NMD::ABSQ_S_QB , 0, + 0xfc00ffff, 0x2000013f, &ABSQ_S_QB , 0, DSP_ }, /* ABSQ_S.QB */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000033f, &NMD::REPLV_PH , 0, + 0xfc00ffff, 0x2000033f, &REPLV_PH , 0, DSP_ }, /* REPLV.PH */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000053f, 0 , 0, @@ -18167,10 +18167,10 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x20000f3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(7) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000113f, &NMD::ABSQ_S_PH , 0, + 0xfc00ffff, 0x2000113f, &ABSQ_S_PH , 0, DSP_ }, /* ABSQ_S.PH */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000133f, &NMD::REPLV_QB , 0, + 0xfc00ffff, 0x2000133f, &REPLV_QB , 0, DSP_ }, /* REPLV.QB */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000153f, 0 , 0, @@ -18191,7 +18191,7 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x20001f3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(15) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000213f, &NMD::ABSQ_S_W , 0, + 0xfc00ffff, 0x2000213f, &ABSQ_S_W , 0, DSP_ }, /* ABSQ_S.W */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000233f, 0 , 0, @@ -18239,7 +18239,7 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x20003f3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(31) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000413f, &NMD::INSV , 0, + 0xfc00ffff, 0x2000413f, &INSV , 0, DSP_ }, /* INSV */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000433f, 0 , 0, @@ -18254,16 +18254,16 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x2000493f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(36) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20004b3f, &NMD::CLO , 0, + 0xfc00ffff, 0x20004b3f, &CLO , 0, XMMS_ }, /* CLO */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20004d3f, &NMD::MFC2 , 0, + 0xfc00ffff, 0x20004d3f, &MFC2 , 0, CP2_ }, /* MFC2 */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x20004f3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(39) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000513f, &NMD::PRECEQ_W_PHL , 0, + 0xfc00ffff, 0x2000513f, &PRECEQ_W_PHL , 0, DSP_ }, /* PRECEQ.W.PHL */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000533f, 0 , 0, @@ -18278,16 +18278,16 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x2000593f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(44) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20005b3f, &NMD::CLZ , 0, + 0xfc00ffff, 0x20005b3f, &CLZ , 0, XMMS_ }, /* CLZ */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20005d3f, &NMD::MTC2 , 0, + 0xfc00ffff, 0x20005d3f, &MTC2 , 0, CP2_ }, /* MTC2 */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x20005f3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(47) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000613f, &NMD::PRECEQ_W_PHR , 0, + 0xfc00ffff, 0x2000613f, &PRECEQ_W_PHR , 0, DSP_ }, /* PRECEQ.W.PHR */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000633f, 0 , 0, @@ -18305,16 +18305,16 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x20006b3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(53) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20006d3f, &NMD::DMFC2 , 0, + 0xfc00ffff, 0x20006d3f, &DMFC2 , 0, CP2_ }, /* DMFC2 */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x20006f3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(55) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000713f, &NMD::PRECEQU_PH_QBL , 0, + 0xfc00ffff, 0x2000713f, &PRECEQU_PH_QBL , 0, DSP_ }, /* PRECEQU.PH.QBL */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000733f, &NMD::PRECEQU_PH_QBLA , 0, + 0xfc00ffff, 0x2000733f, &PRECEQU_PH_QBLA , 0, DSP_ }, /* PRECEQU.PH.QBLA */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000753f, 0 , 0, @@ -18329,7 +18329,7 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x20007b3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(61) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20007d3f, &NMD::DMTC2 , 0, + 0xfc00ffff, 0x20007d3f, &DMTC2 , 0, CP2_ }, /* DMTC2 */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x20007f3f, 0 , 0, @@ -18353,16 +18353,16 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x20008b3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(69) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20008d3f, &NMD::MFHC2 , 0, + 0xfc00ffff, 0x20008d3f, &MFHC2 , 0, CP2_ }, /* MFHC2 */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x20008f3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(71) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000913f, &NMD::PRECEQU_PH_QBR , 0, + 0xfc00ffff, 0x2000913f, &PRECEQU_PH_QBR , 0, DSP_ }, /* PRECEQU.PH.QBR */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000933f, &NMD::PRECEQU_PH_QBRA , 0, + 0xfc00ffff, 0x2000933f, &PRECEQU_PH_QBRA , 0, DSP_ }, /* PRECEQU.PH.QBRA */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000953f, 0 , 0, @@ -18377,7 +18377,7 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x20009b3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(77) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x20009d3f, &NMD::MTHC2 , 0, + 0xfc00ffff, 0x20009d3f, &MTHC2 , 0, CP2_ }, /* MTHC2 */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x20009f3f, 0 , 0, @@ -18407,10 +18407,10 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x2000af3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(87) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000b13f, &NMD::PRECEU_PH_QBL , 0, + 0xfc00ffff, 0x2000b13f, &PRECEU_PH_QBL , 0, DSP_ }, /* PRECEU.PH.QBL */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000b33f, &NMD::PRECEU_PH_QBLA , 0, + 0xfc00ffff, 0x2000b33f, &PRECEU_PH_QBLA , 0, DSP_ }, /* PRECEU.PH.QBLA */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000b53f, 0 , 0, @@ -18449,16 +18449,16 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x2000cb3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(101) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000cd3f, &NMD::CFC2 , 0, + 0xfc00ffff, 0x2000cd3f, &CFC2 , 0, CP2_ }, /* CFC2 */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000cf3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(103) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000d13f, &NMD::PRECEU_PH_QBR , 0, + 0xfc00ffff, 0x2000d13f, &PRECEU_PH_QBR , 0, DSP_ }, /* PRECEU.PH.QBR */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000d33f, &NMD::PRECEU_PH_QBRA , 0, + 0xfc00ffff, 0x2000d33f, &PRECEU_PH_QBRA , 0, DSP_ }, /* PRECEU.PH.QBRA */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000d53f, 0 , 0, @@ -18473,7 +18473,7 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x2000db3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(109) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000dd3f, &NMD::CTC2 , 0, + 0xfc00ffff, 0x2000dd3f, &CTC2 , 0, CP2_ }, /* CTC2 */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000df3f, 0 , 0, @@ -18503,7 +18503,7 @@ NMD::Pool NMD::POOL32Axf_4[128] = { 0xfc00ffff, 0x2000ef3f, 0 , 0, 0x0 }, /* POOL32Axf_4~*(119) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000f13f, &NMD::RADDU_W_QB , 0, + 0xfc00ffff, 0x2000f13f, &RADDU_W_QB , 0, DSP_ }, /* RADDU.W.QB */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000f33f, 0 , 0, @@ -18531,16 +18531,16 @@ NMD::Pool NMD::POOL32Axf_4[128] = { NMD::Pool NMD::POOL32Axf_5_group0[32] = { { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000017f, &NMD::TLBGP , 0, + 0xfc00ffff, 0x2000017f, &TLBGP , 0, CP0_ | VZ_ | TLB_ }, /* TLBGP */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000037f, &NMD::TLBP , 0, + 0xfc00ffff, 0x2000037f, &TLBP , 0, CP0_ | TLB_ }, /* TLBP */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000057f, &NMD::TLBGINV , 0, + 0xfc00ffff, 0x2000057f, &TLBGINV , 0, CP0_ | VZ_ | TLB_ | TLBINV_}, /* TLBGINV */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000077f, &NMD::TLBINV , 0, + 0xfc00ffff, 0x2000077f, &TLBINV , 0, CP0_ | TLB_ | TLBINV_}, /* TLBINV */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000097f, 0 , 0, @@ -18555,16 +18555,16 @@ NMD::Pool NMD::POOL32Axf_5_group0[32] = { 0xfc00ffff, 0x20000f7f, 0 , 0, 0x0 }, /* POOL32Axf_5_group0~*(7) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000117f, &NMD::TLBGR , 0, + 0xfc00ffff, 0x2000117f, &TLBGR , 0, CP0_ | VZ_ | TLB_ }, /* TLBGR */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000137f, &NMD::TLBR , 0, + 0xfc00ffff, 0x2000137f, &TLBR , 0, CP0_ | TLB_ }, /* TLBR */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000157f, &NMD::TLBGINVF , 0, + 0xfc00ffff, 0x2000157f, &TLBGINVF , 0, CP0_ | VZ_ | TLB_ | TLBINV_}, /* TLBGINVF */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000177f, &NMD::TLBINVF , 0, + 0xfc00ffff, 0x2000177f, &TLBINVF , 0, CP0_ | TLB_ | TLBINV_}, /* TLBINVF */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000197f, 0 , 0, @@ -18579,10 +18579,10 @@ NMD::Pool NMD::POOL32Axf_5_group0[32] = { 0xfc00ffff, 0x20001f7f, 0 , 0, 0x0 }, /* POOL32Axf_5_group0~*(15) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000217f, &NMD::TLBGWI , 0, + 0xfc00ffff, 0x2000217f, &TLBGWI , 0, CP0_ | VZ_ | TLB_ }, /* TLBGWI */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000237f, &NMD::TLBWI , 0, + 0xfc00ffff, 0x2000237f, &TLBWI , 0, CP0_ | TLB_ }, /* TLBWI */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000257f, 0 , 0, @@ -18603,10 +18603,10 @@ NMD::Pool NMD::POOL32Axf_5_group0[32] = { 0xfc00ffff, 0x20002f7f, 0 , 0, 0x0 }, /* POOL32Axf_5_group0~*(23) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000317f, &NMD::TLBGWR , 0, + 0xfc00ffff, 0x2000317f, &TLBGWR , 0, CP0_ | VZ_ | TLB_ }, /* TLBGWR */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000337f, &NMD::TLBWR , 0, + 0xfc00ffff, 0x2000337f, &TLBWR , 0, CP0_ | TLB_ }, /* TLBWR */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000357f, 0 , 0, @@ -18640,7 +18640,7 @@ NMD::Pool NMD::POOL32Axf_5_group1[32] = { 0xfc00ffff, 0x2000457f, 0 , 0, 0x0 }, /* POOL32Axf_5_group1~*(2) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000477f, &NMD::DI , 0, + 0xfc00ffff, 0x2000477f, &DI , 0, 0x0 }, /* DI */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000497f, 0 , 0, @@ -18664,7 +18664,7 @@ NMD::Pool NMD::POOL32Axf_5_group1[32] = { 0xfc00ffff, 0x2000557f, 0 , 0, 0x0 }, /* POOL32Axf_5_group1~*(10) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000577f, &NMD::EI , 0, + 0xfc00ffff, 0x2000577f, &EI , 0, 0x0 }, /* EI */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000597f, 0 , 0, @@ -18731,10 +18731,10 @@ NMD::Pool NMD::POOL32Axf_5_group1[32] = { NMD::Pool NMD::ERETx[2] = { { instruction , 0 , 0 , 32, - 0xfc01ffff, 0x2000f37f, &NMD::ERET , 0, + 0xfc01ffff, 0x2000f37f, &ERET , 0, 0x0 }, /* ERET */ { instruction , 0 , 0 , 32, - 0xfc01ffff, 0x2001f37f, &NMD::ERETNC , 0, + 0xfc01ffff, 0x2001f37f, &ERETNC , 0, 0x0 }, /* ERETNC */ }; @@ -18744,7 +18744,7 @@ NMD::Pool NMD::POOL32Axf_5_group3[32] = { 0xfc00ffff, 0x2000c17f, 0 , 0, 0x0 }, /* POOL32Axf_5_group3~*(0) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000c37f, &NMD::WAIT , 0, + 0xfc00ffff, 0x2000c37f, &WAIT , 0, 0x0 }, /* WAIT */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000c57f, 0 , 0, @@ -18768,7 +18768,7 @@ NMD::Pool NMD::POOL32Axf_5_group3[32] = { 0xfc00ffff, 0x2000d17f, 0 , 0, 0x0 }, /* POOL32Axf_5_group3~*(8) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000d37f, &NMD::IRET , 0, + 0xfc00ffff, 0x2000d37f, &IRET , 0, MCU_ }, /* IRET */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000d57f, 0 , 0, @@ -18789,10 +18789,10 @@ NMD::Pool NMD::POOL32Axf_5_group3[32] = { 0xfc00ffff, 0x2000df7f, 0 , 0, 0x0 }, /* POOL32Axf_5_group3~*(15) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000e17f, &NMD::RDPGPR , 0, + 0xfc00ffff, 0x2000e17f, &RDPGPR , 0, CP0_ }, /* RDPGPR */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000e37f, &NMD::DERET , 0, + 0xfc00ffff, 0x2000e37f, &DERET , 0, EJTAG_ }, /* DERET */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000e57f, 0 , 0, @@ -18813,7 +18813,7 @@ NMD::Pool NMD::POOL32Axf_5_group3[32] = { 0xfc00ffff, 0x2000ef7f, 0 , 0, 0x0 }, /* POOL32Axf_5_group3~*(23) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0x2000f17f, &NMD::WRPGPR , 0, + 0xfc00ffff, 0x2000f17f, &WRPGPR , 0, CP0_ }, /* WRPGPR */ { pool , ERETx , 2 , 32, 0xfc00ffff, 0x2000f37f, 0 , 0, @@ -18857,10 +18857,10 @@ NMD::Pool NMD::POOL32Axf_5[4] = { NMD::Pool NMD::SHRA__R__QB[2] = { { instruction , 0 , 0 , 32, - 0xfc001fff, 0x200001ff, &NMD::SHRA_QB , 0, + 0xfc001fff, 0x200001ff, &SHRA_QB , 0, DSP_ }, /* SHRA.QB */ { instruction , 0 , 0 , 32, - 0xfc001fff, 0x200011ff, &NMD::SHRA_R_QB , 0, + 0xfc001fff, 0x200011ff, &SHRA_R_QB , 0, DSP_ }, /* SHRA_R.QB */ }; @@ -18870,10 +18870,10 @@ NMD::Pool NMD::POOL32Axf_7[8] = { 0xfc000fff, 0x200001ff, 0 , 0, 0x0 }, /* SHRA[_R].QB */ { instruction , 0 , 0 , 32, - 0xfc000fff, 0x200003ff, &NMD::SHRL_PH , 0, + 0xfc000fff, 0x200003ff, &SHRL_PH , 0, DSP_ }, /* SHRL.PH */ { instruction , 0 , 0 , 32, - 0xfc000fff, 0x200005ff, &NMD::REPL_QB , 0, + 0xfc000fff, 0x200005ff, &REPL_QB , 0, DSP_ }, /* REPL.QB */ { reserved_block , 0 , 0 , 32, 0xfc000fff, 0x200007ff, 0 , 0, @@ -18926,13 +18926,13 @@ NMD::Pool NMD::_POOL32A7[8] = { 0xfc00003f, 0x20000007, 0 , 0, 0x0 }, /* P.LSX */ { instruction , 0 , 0 , 32, - 0xfc00003f, 0x2000000f, &NMD::LSA , 0, + 0xfc00003f, 0x2000000f, &LSA , 0, 0x0 }, /* LSA */ { reserved_block , 0 , 0 , 32, 0xfc00003f, 0x20000017, 0 , 0, 0x0 }, /* _POOL32A7~*(2) */ { instruction , 0 , 0 , 32, - 0xfc00003f, 0x2000001f, &NMD::EXTW , 0, + 0xfc00003f, 0x2000001f, &EXTW , 0, 0x0 }, /* EXTW */ { reserved_block , 0 , 0 , 32, 0xfc00003f, 0x20000027, 0 , 0, @@ -18954,13 +18954,13 @@ NMD::Pool NMD::P32A[8] = { 0xfc000007, 0x20000000, 0 , 0, 0x0 }, /* _POOL32A0 */ { instruction , 0 , 0 , 32, - 0xfc000007, 0x20000001, &NMD::SPECIAL2 , 0, + 0xfc000007, 0x20000001, &SPECIAL2 , 0, UDI_ }, /* SPECIAL2 */ { instruction , 0 , 0 , 32, - 0xfc000007, 0x20000002, &NMD::COP2_1 , 0, + 0xfc000007, 0x20000002, &COP2_1 , 0, CP2_ }, /* COP2_1 */ { instruction , 0 , 0 , 32, - 0xfc000007, 0x20000003, &NMD::UDI , 0, + 0xfc000007, 0x20000003, &UDI , 0, UDI_ }, /* UDI */ { reserved_block , 0 , 0 , 32, 0xfc000007, 0x20000004, 0 , 0, @@ -18979,42 +18979,42 @@ NMD::Pool NMD::P32A[8] = { NMD::Pool NMD::P_GP_D[2] = { { instruction , 0 , 0 , 32, - 0xfc000007, 0x40000001, &NMD::LD_GP_ , 0, + 0xfc000007, 0x40000001, &LD_GP_ , 0, MIPS64_ }, /* LD[GP] */ { instruction , 0 , 0 , 32, - 0xfc000007, 0x40000005, &NMD::SD_GP_ , 0, + 0xfc000007, 0x40000005, &SD_GP_ , 0, MIPS64_ }, /* SD[GP] */ }; NMD::Pool NMD::P_GP_W[4] = { { instruction , 0 , 0 , 32, - 0xfc000003, 0x40000000, &NMD::ADDIU_GP_W_ , 0, + 0xfc000003, 0x40000000, &ADDIU_GP_W_ , 0, 0x0 }, /* ADDIU[GP.W] */ { pool , P_GP_D , 2 , 32, 0xfc000003, 0x40000001, 0 , 0, 0x0 }, /* P.GP.D */ { instruction , 0 , 0 , 32, - 0xfc000003, 0x40000002, &NMD::LW_GP_ , 0, + 0xfc000003, 0x40000002, &LW_GP_ , 0, 0x0 }, /* LW[GP] */ { instruction , 0 , 0 , 32, - 0xfc000003, 0x40000003, &NMD::SW_GP_ , 0, + 0xfc000003, 0x40000003, &SW_GP_ , 0, 0x0 }, /* SW[GP] */ }; NMD::Pool NMD::POOL48I[32] = { { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x600000000000ull, &NMD::LI_48_ , 0, + 0xfc1f00000000ull, 0x600000000000ull, &LI_48_ , 0, XMMS_ }, /* LI[48] */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x600100000000ull, &NMD::ADDIU_48_ , 0, + 0xfc1f00000000ull, 0x600100000000ull, &ADDIU_48_ , 0, XMMS_ }, /* ADDIU[48] */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x600200000000ull, &NMD::ADDIU_GP48_ , 0, + 0xfc1f00000000ull, 0x600200000000ull, &ADDIU_GP48_ , 0, XMMS_ }, /* ADDIU[GP48] */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x600300000000ull, &NMD::ADDIUPC_48_ , 0, + 0xfc1f00000000ull, 0x600300000000ull, &ADDIUPC_48_ , 0, XMMS_ }, /* ADDIUPC[48] */ { reserved_block , 0 , 0 , 48, 0xfc1f00000000ull, 0x600400000000ull, 0 , 0, @@ -19038,7 +19038,7 @@ NMD::Pool NMD::POOL48I[32] = { 0xfc1f00000000ull, 0x600a00000000ull, 0 , 0, 0x0 }, /* POOL48I~*(10) */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x600b00000000ull, &NMD::LWPC_48_ , 0, + 0xfc1f00000000ull, 0x600b00000000ull, &LWPC_48_ , 0, XMMS_ }, /* LWPC[48] */ { reserved_block , 0 , 0 , 48, 0xfc1f00000000ull, 0x600c00000000ull, 0 , 0, @@ -19050,13 +19050,13 @@ NMD::Pool NMD::POOL48I[32] = { 0xfc1f00000000ull, 0x600e00000000ull, 0 , 0, 0x0 }, /* POOL48I~*(14) */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x600f00000000ull, &NMD::SWPC_48_ , 0, + 0xfc1f00000000ull, 0x600f00000000ull, &SWPC_48_ , 0, XMMS_ }, /* SWPC[48] */ { reserved_block , 0 , 0 , 48, 0xfc1f00000000ull, 0x601000000000ull, 0 , 0, 0x0 }, /* POOL48I~*(16) */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x601100000000ull, &NMD::DADDIU_48_ , 0, + 0xfc1f00000000ull, 0x601100000000ull, &DADDIU_48_ , 0, MIPS64_ }, /* DADDIU[48] */ { reserved_block , 0 , 0 , 48, 0xfc1f00000000ull, 0x601200000000ull, 0 , 0, @@ -19065,7 +19065,7 @@ NMD::Pool NMD::POOL48I[32] = { 0xfc1f00000000ull, 0x601300000000ull, 0 , 0, 0x0 }, /* POOL48I~*(19) */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x601400000000ull, &NMD::DLUI_48_ , 0, + 0xfc1f00000000ull, 0x601400000000ull, &DLUI_48_ , 0, MIPS64_ }, /* DLUI[48] */ { reserved_block , 0 , 0 , 48, 0xfc1f00000000ull, 0x601500000000ull, 0 , 0, @@ -19086,7 +19086,7 @@ NMD::Pool NMD::POOL48I[32] = { 0xfc1f00000000ull, 0x601a00000000ull, 0 , 0, 0x0 }, /* POOL48I~*(26) */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x601b00000000ull, &NMD::LDPC_48_ , 0, + 0xfc1f00000000ull, 0x601b00000000ull, &LDPC_48_ , 0, MIPS64_ }, /* LDPC[48] */ { reserved_block , 0 , 0 , 48, 0xfc1f00000000ull, 0x601c00000000ull, 0 , 0, @@ -19098,33 +19098,33 @@ NMD::Pool NMD::POOL48I[32] = { 0xfc1f00000000ull, 0x601e00000000ull, 0 , 0, 0x0 }, /* POOL48I~*(30) */ { instruction , 0 , 0 , 48, - 0xfc1f00000000ull, 0x601f00000000ull, &NMD::SDPC_48_ , 0, + 0xfc1f00000000ull, 0x601f00000000ull, &SDPC_48_ , 0, MIPS64_ }, /* SDPC[48] */ }; NMD::Pool NMD::PP_SR[4] = { { instruction , 0 , 0 , 32, - 0xfc10f003, 0x80003000, &NMD::SAVE_32_ , 0, + 0xfc10f003, 0x80003000, &SAVE_32_ , 0, 0x0 }, /* SAVE[32] */ { reserved_block , 0 , 0 , 32, 0xfc10f003, 0x80003001, 0 , 0, 0x0 }, /* PP.SR~*(1) */ { instruction , 0 , 0 , 32, - 0xfc10f003, 0x80003002, &NMD::RESTORE_32_ , 0, + 0xfc10f003, 0x80003002, &RESTORE_32_ , 0, 0x0 }, /* RESTORE[32] */ { return_instruction , 0 , 0 , 32, - 0xfc10f003, 0x80003003, &NMD::RESTORE_JRC_32_ , 0, + 0xfc10f003, 0x80003003, &RESTORE_JRC_32_ , 0, 0x0 }, /* RESTORE.JRC[32] */ }; NMD::Pool NMD::P_SR_F[8] = { { instruction , 0 , 0 , 32, - 0xfc10f007, 0x80103000, &NMD::SAVEF , 0, + 0xfc10f007, 0x80103000, &SAVEF , 0, CP1_ }, /* SAVEF */ { instruction , 0 , 0 , 32, - 0xfc10f007, 0x80103001, &NMD::RESTOREF , 0, + 0xfc10f007, 0x80103001, &RESTOREF , 0, CP1_ }, /* RESTOREF */ { reserved_block , 0 , 0 , 32, 0xfc10f007, 0x80103002, 0 , 0, @@ -19159,19 +19159,19 @@ NMD::Pool NMD::P_SR[2] = { NMD::Pool NMD::P_SLL[5] = { { instruction , 0 , 0 , 32, - 0xffe0f1ff, 0x8000c000, &NMD::NOP_32_ , 0, + 0xffe0f1ff, 0x8000c000, &NOP_32_ , 0, 0x0 }, /* NOP[32] */ { instruction , 0 , 0 , 32, - 0xffe0f1ff, 0x8000c003, &NMD::EHB , 0, + 0xffe0f1ff, 0x8000c003, &EHB , 0, 0x0 }, /* EHB */ { instruction , 0 , 0 , 32, - 0xffe0f1ff, 0x8000c005, &NMD::PAUSE , 0, + 0xffe0f1ff, 0x8000c005, &PAUSE , 0, 0x0 }, /* PAUSE */ { instruction , 0 , 0 , 32, - 0xffe0f1ff, 0x8000c006, &NMD::SYNC , 0, + 0xffe0f1ff, 0x8000c006, &SYNC , 0, 0x0 }, /* SYNC */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c000, &NMD::SLL_32_ , 0, + 0xfc00f1e0, 0x8000c000, &SLL_32_ , 0, 0x0 }, /* SLL[32] */ }; @@ -19184,53 +19184,53 @@ NMD::Pool NMD::P_SHIFT[16] = { 0xfc00f1e0, 0x8000c020, 0 , 0, 0x0 }, /* P.SHIFT~*(1) */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c040, &NMD::SRL_32_ , 0, + 0xfc00f1e0, 0x8000c040, &SRL_32_ , 0, 0x0 }, /* SRL[32] */ { reserved_block , 0 , 0 , 32, 0xfc00f1e0, 0x8000c060, 0 , 0, 0x0 }, /* P.SHIFT~*(3) */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c080, &NMD::SRA , 0, + 0xfc00f1e0, 0x8000c080, &SRA , 0, 0x0 }, /* SRA */ { reserved_block , 0 , 0 , 32, 0xfc00f1e0, 0x8000c0a0, 0 , 0, 0x0 }, /* P.SHIFT~*(5) */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c0c0, &NMD::ROTR , 0, + 0xfc00f1e0, 0x8000c0c0, &ROTR , 0, 0x0 }, /* ROTR */ { reserved_block , 0 , 0 , 32, 0xfc00f1e0, 0x8000c0e0, 0 , 0, 0x0 }, /* P.SHIFT~*(7) */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c100, &NMD::DSLL , 0, + 0xfc00f1e0, 0x8000c100, &DSLL , 0, MIPS64_ }, /* DSLL */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c120, &NMD::DSLL32 , 0, + 0xfc00f1e0, 0x8000c120, &DSLL32 , 0, MIPS64_ }, /* DSLL32 */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c140, &NMD::DSRL , 0, + 0xfc00f1e0, 0x8000c140, &DSRL , 0, MIPS64_ }, /* DSRL */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c160, &NMD::DSRL32 , 0, + 0xfc00f1e0, 0x8000c160, &DSRL32 , 0, MIPS64_ }, /* DSRL32 */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c180, &NMD::DSRA , 0, + 0xfc00f1e0, 0x8000c180, &DSRA , 0, MIPS64_ }, /* DSRA */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c1a0, &NMD::DSRA32 , 0, + 0xfc00f1e0, 0x8000c1a0, &DSRA32 , 0, MIPS64_ }, /* DSRA32 */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c1c0, &NMD::DROTR , 0, + 0xfc00f1e0, 0x8000c1c0, &DROTR , 0, MIPS64_ }, /* DROTR */ { instruction , 0 , 0 , 32, - 0xfc00f1e0, 0x8000c1e0, &NMD::DROTR32 , 0, + 0xfc00f1e0, 0x8000c1e0, &DROTR32 , 0, MIPS64_ }, /* DROTR32 */ }; NMD::Pool NMD::P_ROTX[4] = { { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000d000, &NMD::ROTX , 0, + 0xfc00f820, 0x8000d000, &ROTX , 0, XMMS_ }, /* ROTX */ { reserved_block , 0 , 0 , 32, 0xfc00f820, 0x8000d020, 0 , 0, @@ -19246,72 +19246,72 @@ NMD::Pool NMD::P_ROTX[4] = { NMD::Pool NMD::P_INS[4] = { { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000e000, &NMD::INS , 0, + 0xfc00f820, 0x8000e000, &INS , 0, XMMS_ }, /* INS */ { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000e020, &NMD::DINSU , 0, + 0xfc00f820, 0x8000e020, &DINSU , 0, MIPS64_ }, /* DINSU */ { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000e800, &NMD::DINSM , 0, + 0xfc00f820, 0x8000e800, &DINSM , 0, MIPS64_ }, /* DINSM */ { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000e820, &NMD::DINS , 0, + 0xfc00f820, 0x8000e820, &DINS , 0, MIPS64_ }, /* DINS */ }; NMD::Pool NMD::P_EXT[4] = { { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000f000, &NMD::EXT , 0, + 0xfc00f820, 0x8000f000, &EXT , 0, XMMS_ }, /* EXT */ { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000f020, &NMD::DEXTU , 0, + 0xfc00f820, 0x8000f020, &DEXTU , 0, MIPS64_ }, /* DEXTU */ { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000f800, &NMD::DEXTM , 0, + 0xfc00f820, 0x8000f800, &DEXTM , 0, MIPS64_ }, /* DEXTM */ { instruction , 0 , 0 , 32, - 0xfc00f820, 0x8000f820, &NMD::DEXT , 0, + 0xfc00f820, 0x8000f820, &DEXT , 0, MIPS64_ }, /* DEXT */ }; NMD::Pool NMD::P_U12[16] = { { instruction , 0 , 0 , 32, - 0xfc00f000, 0x80000000, &NMD::ORI , 0, + 0xfc00f000, 0x80000000, &ORI , 0, 0x0 }, /* ORI */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x80001000, &NMD::XORI , 0, + 0xfc00f000, 0x80001000, &XORI , 0, 0x0 }, /* XORI */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x80002000, &NMD::ANDI_32_ , 0, + 0xfc00f000, 0x80002000, &ANDI_32_ , 0, 0x0 }, /* ANDI[32] */ { pool , P_SR , 2 , 32, 0xfc00f000, 0x80003000, 0 , 0, 0x0 }, /* P.SR */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x80004000, &NMD::SLTI , 0, + 0xfc00f000, 0x80004000, &SLTI , 0, 0x0 }, /* SLTI */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x80005000, &NMD::SLTIU , 0, + 0xfc00f000, 0x80005000, &SLTIU , 0, 0x0 }, /* SLTIU */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x80006000, &NMD::SEQI , 0, + 0xfc00f000, 0x80006000, &SEQI , 0, 0x0 }, /* SEQI */ { reserved_block , 0 , 0 , 32, 0xfc00f000, 0x80007000, 0 , 0, 0x0 }, /* P.U12~*(7) */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x80008000, &NMD::ADDIU_NEG_ , 0, + 0xfc00f000, 0x80008000, &ADDIU_NEG_ , 0, 0x0 }, /* ADDIU[NEG] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x80009000, &NMD::DADDIU_U12_ , 0, + 0xfc00f000, 0x80009000, &DADDIU_U12_ , 0, MIPS64_ }, /* DADDIU[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x8000a000, &NMD::DADDIU_NEG_ , 0, + 0xfc00f000, 0x8000a000, &DADDIU_NEG_ , 0, MIPS64_ }, /* DADDIU[NEG] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x8000b000, &NMD::DROTX , 0, + 0xfc00f000, 0x8000b000, &DROTX , 0, MIPS64_ }, /* DROTX */ { pool , P_SHIFT , 16 , 32, 0xfc00f000, 0x8000c000, 0 , 0, @@ -19330,17 +19330,17 @@ NMD::Pool NMD::P_U12[16] = { NMD::Pool NMD::RINT_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000020, &NMD::RINT_S , 0, + 0xfc0003ff, 0xa0000020, &RINT_S , 0, CP1_ }, /* RINT.S */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000220, &NMD::RINT_D , 0, + 0xfc0003ff, 0xa0000220, &RINT_D , 0, CP1_ }, /* RINT.D */ }; NMD::Pool NMD::ADD_fmt0[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000030, &NMD::ADD_S , 0, + 0xfc0003ff, 0xa0000030, &ADD_S , 0, CP1_ }, /* ADD.S */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0xa0000230, 0 , 0, @@ -19350,27 +19350,27 @@ NMD::Pool NMD::ADD_fmt0[2] = { NMD::Pool NMD::SELEQZ_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000038, &NMD::SELEQZ_S , 0, + 0xfc0003ff, 0xa0000038, &SELEQZ_S , 0, CP1_ }, /* SELEQZ.S */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000238, &NMD::SELEQZ_D , 0, + 0xfc0003ff, 0xa0000238, &SELEQZ_D , 0, CP1_ }, /* SELEQZ.D */ }; NMD::Pool NMD::CLASS_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000060, &NMD::CLASS_S , 0, + 0xfc0003ff, 0xa0000060, &CLASS_S , 0, CP1_ }, /* CLASS.S */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000260, &NMD::CLASS_D , 0, + 0xfc0003ff, 0xa0000260, &CLASS_D , 0, CP1_ }, /* CLASS.D */ }; NMD::Pool NMD::SUB_fmt0[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000070, &NMD::SUB_S , 0, + 0xfc0003ff, 0xa0000070, &SUB_S , 0, CP1_ }, /* SUB.S */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0xa0000270, 0 , 0, @@ -19380,17 +19380,17 @@ NMD::Pool NMD::SUB_fmt0[2] = { NMD::Pool NMD::SELNEZ_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000078, &NMD::SELNEZ_S , 0, + 0xfc0003ff, 0xa0000078, &SELNEZ_S , 0, CP1_ }, /* SELNEZ.S */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000278, &NMD::SELNEZ_D , 0, + 0xfc0003ff, 0xa0000278, &SELNEZ_D , 0, CP1_ }, /* SELNEZ.D */ }; NMD::Pool NMD::MUL_fmt0[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00000b0, &NMD::MUL_S , 0, + 0xfc0003ff, 0xa00000b0, &MUL_S , 0, CP1_ }, /* MUL.S */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0xa00002b0, 0 , 0, @@ -19400,17 +19400,17 @@ NMD::Pool NMD::MUL_fmt0[2] = { NMD::Pool NMD::SEL_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00000b8, &NMD::SEL_S , 0, + 0xfc0003ff, 0xa00000b8, &SEL_S , 0, CP1_ }, /* SEL.S */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00002b8, &NMD::SEL_D , 0, + 0xfc0003ff, 0xa00002b8, &SEL_D , 0, CP1_ }, /* SEL.D */ }; NMD::Pool NMD::DIV_fmt0[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00000f0, &NMD::DIV_S , 0, + 0xfc0003ff, 0xa00000f0, &DIV_S , 0, CP1_ }, /* DIV.S */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0xa00002f0, 0 , 0, @@ -19420,7 +19420,7 @@ NMD::Pool NMD::DIV_fmt0[2] = { NMD::Pool NMD::ADD_fmt1[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000130, &NMD::ADD_D , 0, + 0xfc0003ff, 0xa0000130, &ADD_D , 0, CP1_ }, /* ADD.D */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0xa0000330, 0 , 0, @@ -19430,7 +19430,7 @@ NMD::Pool NMD::ADD_fmt1[2] = { NMD::Pool NMD::SUB_fmt1[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa0000170, &NMD::SUB_D , 0, + 0xfc0003ff, 0xa0000170, &SUB_D , 0, CP1_ }, /* SUB.D */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0xa0000370, 0 , 0, @@ -19440,7 +19440,7 @@ NMD::Pool NMD::SUB_fmt1[2] = { NMD::Pool NMD::MUL_fmt1[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00001b0, &NMD::MUL_D , 0, + 0xfc0003ff, 0xa00001b0, &MUL_D , 0, CP1_ }, /* MUL.D */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0xa00003b0, 0 , 0, @@ -19450,17 +19450,17 @@ NMD::Pool NMD::MUL_fmt1[2] = { NMD::Pool NMD::MADDF_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00001b8, &NMD::MADDF_S , 0, + 0xfc0003ff, 0xa00001b8, &MADDF_S , 0, CP1_ }, /* MADDF.S */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00003b8, &NMD::MADDF_D , 0, + 0xfc0003ff, 0xa00003b8, &MADDF_D , 0, CP1_ }, /* MADDF.D */ }; NMD::Pool NMD::DIV_fmt1[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00001f0, &NMD::DIV_D , 0, + 0xfc0003ff, 0xa00001f0, &DIV_D , 0, CP1_ }, /* DIV.D */ { reserved_block , 0 , 0 , 32, 0xfc0003ff, 0xa00003f0, 0 , 0, @@ -19470,10 +19470,10 @@ NMD::Pool NMD::DIV_fmt1[2] = { NMD::Pool NMD::MSUBF_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00001f8, &NMD::MSUBF_S , 0, + 0xfc0003ff, 0xa00001f8, &MSUBF_S , 0, CP1_ }, /* MSUBF.S */ { instruction , 0 , 0 , 32, - 0xfc0003ff, 0xa00003f8, &NMD::MSUBF_D , 0, + 0xfc0003ff, 0xa00003f8, &MSUBF_D , 0, CP1_ }, /* MSUBF.D */ }; @@ -19676,170 +19676,170 @@ NMD::Pool NMD::POOL32F_0[64] = { NMD::Pool NMD::MIN_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc00023f, 0xa0000003, &NMD::MIN_S , 0, + 0xfc00023f, 0xa0000003, &MIN_S , 0, CP1_ }, /* MIN.S */ { instruction , 0 , 0 , 32, - 0xfc00023f, 0xa0000203, &NMD::MIN_D , 0, + 0xfc00023f, 0xa0000203, &MIN_D , 0, CP1_ }, /* MIN.D */ }; NMD::Pool NMD::MAX_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc00023f, 0xa000000b, &NMD::MAX_S , 0, + 0xfc00023f, 0xa000000b, &MAX_S , 0, CP1_ }, /* MAX.S */ { instruction , 0 , 0 , 32, - 0xfc00023f, 0xa000020b, &NMD::MAX_D , 0, + 0xfc00023f, 0xa000020b, &MAX_D , 0, CP1_ }, /* MAX.D */ }; NMD::Pool NMD::MINA_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc00023f, 0xa0000023, &NMD::MINA_S , 0, + 0xfc00023f, 0xa0000023, &MINA_S , 0, CP1_ }, /* MINA.S */ { instruction , 0 , 0 , 32, - 0xfc00023f, 0xa0000223, &NMD::MINA_D , 0, + 0xfc00023f, 0xa0000223, &MINA_D , 0, CP1_ }, /* MINA.D */ }; NMD::Pool NMD::MAXA_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc00023f, 0xa000002b, &NMD::MAXA_S , 0, + 0xfc00023f, 0xa000002b, &MAXA_S , 0, CP1_ }, /* MAXA.S */ { instruction , 0 , 0 , 32, - 0xfc00023f, 0xa000022b, &NMD::MAXA_D , 0, + 0xfc00023f, 0xa000022b, &MAXA_D , 0, CP1_ }, /* MAXA.D */ }; NMD::Pool NMD::CVT_L_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000013b, &NMD::CVT_L_S , 0, + 0xfc007fff, 0xa000013b, &CVT_L_S , 0, CP1_ }, /* CVT.L.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000413b, &NMD::CVT_L_D , 0, + 0xfc007fff, 0xa000413b, &CVT_L_D , 0, CP1_ }, /* CVT.L.D */ }; NMD::Pool NMD::RSQRT_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000023b, &NMD::RSQRT_S , 0, + 0xfc007fff, 0xa000023b, &RSQRT_S , 0, CP1_ }, /* RSQRT.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000423b, &NMD::RSQRT_D , 0, + 0xfc007fff, 0xa000423b, &RSQRT_D , 0, CP1_ }, /* RSQRT.D */ }; NMD::Pool NMD::FLOOR_L_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000033b, &NMD::FLOOR_L_S , 0, + 0xfc007fff, 0xa000033b, &FLOOR_L_S , 0, CP1_ }, /* FLOOR.L.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000433b, &NMD::FLOOR_L_D , 0, + 0xfc007fff, 0xa000433b, &FLOOR_L_D , 0, CP1_ }, /* FLOOR.L.D */ }; NMD::Pool NMD::CVT_W_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000093b, &NMD::CVT_W_S , 0, + 0xfc007fff, 0xa000093b, &CVT_W_S , 0, CP1_ }, /* CVT.W.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000493b, &NMD::CVT_W_D , 0, + 0xfc007fff, 0xa000493b, &CVT_W_D , 0, CP1_ }, /* CVT.W.D */ }; NMD::Pool NMD::SQRT_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0000a3b, &NMD::SQRT_S , 0, + 0xfc007fff, 0xa0000a3b, &SQRT_S , 0, CP1_ }, /* SQRT.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0004a3b, &NMD::SQRT_D , 0, + 0xfc007fff, 0xa0004a3b, &SQRT_D , 0, CP1_ }, /* SQRT.D */ }; NMD::Pool NMD::FLOOR_W_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0000b3b, &NMD::FLOOR_W_S , 0, + 0xfc007fff, 0xa0000b3b, &FLOOR_W_S , 0, CP1_ }, /* FLOOR.W.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0004b3b, &NMD::FLOOR_W_D , 0, + 0xfc007fff, 0xa0004b3b, &FLOOR_W_D , 0, CP1_ }, /* FLOOR.W.D */ }; NMD::Pool NMD::RECIP_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000123b, &NMD::RECIP_S , 0, + 0xfc007fff, 0xa000123b, &RECIP_S , 0, CP1_ }, /* RECIP.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000523b, &NMD::RECIP_D , 0, + 0xfc007fff, 0xa000523b, &RECIP_D , 0, CP1_ }, /* RECIP.D */ }; NMD::Pool NMD::CEIL_L_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000133b, &NMD::CEIL_L_S , 0, + 0xfc007fff, 0xa000133b, &CEIL_L_S , 0, CP1_ }, /* CEIL.L.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000533b, &NMD::CEIL_L_D , 0, + 0xfc007fff, 0xa000533b, &CEIL_L_D , 0, CP1_ }, /* CEIL.L.D */ }; NMD::Pool NMD::CEIL_W_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0001b3b, &NMD::CEIL_W_S , 0, + 0xfc007fff, 0xa0001b3b, &CEIL_W_S , 0, CP1_ }, /* CEIL.W.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0005b3b, &NMD::CEIL_W_D , 0, + 0xfc007fff, 0xa0005b3b, &CEIL_W_D , 0, CP1_ }, /* CEIL.W.D */ }; NMD::Pool NMD::TRUNC_L_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000233b, &NMD::TRUNC_L_S , 0, + 0xfc007fff, 0xa000233b, &TRUNC_L_S , 0, CP1_ }, /* TRUNC.L.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000633b, &NMD::TRUNC_L_D , 0, + 0xfc007fff, 0xa000633b, &TRUNC_L_D , 0, CP1_ }, /* TRUNC.L.D */ }; NMD::Pool NMD::TRUNC_W_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0002b3b, &NMD::TRUNC_W_S , 0, + 0xfc007fff, 0xa0002b3b, &TRUNC_W_S , 0, CP1_ }, /* TRUNC.W.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0006b3b, &NMD::TRUNC_W_D , 0, + 0xfc007fff, 0xa0006b3b, &TRUNC_W_D , 0, CP1_ }, /* TRUNC.W.D */ }; NMD::Pool NMD::ROUND_L_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000333b, &NMD::ROUND_L_S , 0, + 0xfc007fff, 0xa000333b, &ROUND_L_S , 0, CP1_ }, /* ROUND.L.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000733b, &NMD::ROUND_L_D , 0, + 0xfc007fff, 0xa000733b, &ROUND_L_D , 0, CP1_ }, /* ROUND.L.D */ }; NMD::Pool NMD::ROUND_W_fmt[2] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0003b3b, &NMD::ROUND_W_S , 0, + 0xfc007fff, 0xa0003b3b, &ROUND_W_S , 0, CP1_ }, /* ROUND.W.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0007b3b, &NMD::ROUND_W_D , 0, + 0xfc007fff, 0xa0007b3b, &ROUND_W_D , 0, CP1_ }, /* ROUND.W.D */ }; @@ -19894,7 +19894,7 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { 0xfc003fff, 0xa0000f3b, 0 , 0, CP1_ }, /* POOL32Fxf_0~*(15) */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000103b, &NMD::CFC1 , 0, + 0xfc003fff, 0xa000103b, &CFC1 , 0, CP1_ }, /* CFC1 */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa000113b, 0 , 0, @@ -19918,7 +19918,7 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { 0xfc003fff, 0xa000173b, 0 , 0, CP1_ }, /* POOL32Fxf_0~*(23) */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000183b, &NMD::CTC1 , 0, + 0xfc003fff, 0xa000183b, &CTC1 , 0, CP1_ }, /* CTC1 */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa000193b, 0 , 0, @@ -19942,10 +19942,10 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { 0xfc003fff, 0xa0001f3b, 0 , 0, CP1_ }, /* POOL32Fxf_0~*(31) */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000203b, &NMD::MFC1 , 0, + 0xfc003fff, 0xa000203b, &MFC1 , 0, CP1_ }, /* MFC1 */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000213b, &NMD::CVT_S_PL , 0, + 0xfc003fff, 0xa000213b, &CVT_S_PL , 0, CP1_ }, /* CVT.S.PL */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa000223b, 0 , 0, @@ -19954,7 +19954,7 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { 0xfc003fff, 0xa000233b, 0 , 0, CP1_ }, /* TRUNC.L.fmt */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000243b, &NMD::DMFC1 , 0, + 0xfc003fff, 0xa000243b, &DMFC1 , 0, CP1_ | MIPS64_ }, /* DMFC1 */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa000253b, 0 , 0, @@ -19966,10 +19966,10 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { 0xfc003fff, 0xa000273b, 0 , 0, CP1_ }, /* POOL32Fxf_0~*(39) */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000283b, &NMD::MTC1 , 0, + 0xfc003fff, 0xa000283b, &MTC1 , 0, CP1_ }, /* MTC1 */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000293b, &NMD::CVT_S_PU , 0, + 0xfc003fff, 0xa000293b, &CVT_S_PU , 0, CP1_ }, /* CVT.S.PU */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa0002a3b, 0 , 0, @@ -19978,7 +19978,7 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { 0xfc003fff, 0xa0002b3b, 0 , 0, CP1_ }, /* TRUNC.W.fmt */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa0002c3b, &NMD::DMTC1 , 0, + 0xfc003fff, 0xa0002c3b, &DMTC1 , 0, CP1_ | MIPS64_ }, /* DMTC1 */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa0002d3b, 0 , 0, @@ -19990,7 +19990,7 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { 0xfc003fff, 0xa0002f3b, 0 , 0, CP1_ }, /* POOL32Fxf_0~*(47) */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000303b, &NMD::MFHC1 , 0, + 0xfc003fff, 0xa000303b, &MFHC1 , 0, CP1_ }, /* MFHC1 */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa000313b, 0 , 0, @@ -20014,7 +20014,7 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { 0xfc003fff, 0xa000373b, 0 , 0, CP1_ }, /* POOL32Fxf_0~*(55) */ { instruction , 0 , 0 , 32, - 0xfc003fff, 0xa000383b, &NMD::MTHC1 , 0, + 0xfc003fff, 0xa000383b, &MTHC1 , 0, CP1_ }, /* MTHC1 */ { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa000393b, 0 , 0, @@ -20042,10 +20042,10 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { NMD::Pool NMD::MOV_fmt[4] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000007b, &NMD::MOV_S , 0, + 0xfc007fff, 0xa000007b, &MOV_S , 0, CP1_ }, /* MOV.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000207b, &NMD::MOV_D , 0, + 0xfc007fff, 0xa000207b, &MOV_D , 0, CP1_ }, /* MOV.D */ { reserved_block , 0 , 0 , 32, 0xfc007fff, 0xa000407b, 0 , 0, @@ -20058,10 +20058,10 @@ NMD::Pool NMD::MOV_fmt[4] = { NMD::Pool NMD::ABS_fmt[4] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000037b, &NMD::ABS_S , 0, + 0xfc007fff, 0xa000037b, &ABS_S , 0, CP1_ }, /* ABS.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000237b, &NMD::ABS_D , 0, + 0xfc007fff, 0xa000237b, &ABS_D , 0, CP1_ }, /* ABS.D */ { reserved_block , 0 , 0 , 32, 0xfc007fff, 0xa000437b, 0 , 0, @@ -20074,10 +20074,10 @@ NMD::Pool NMD::ABS_fmt[4] = { NMD::Pool NMD::NEG_fmt[4] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0000b7b, &NMD::NEG_S , 0, + 0xfc007fff, 0xa0000b7b, &NEG_S , 0, CP1_ }, /* NEG.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0002b7b, &NMD::NEG_D , 0, + 0xfc007fff, 0xa0002b7b, &NEG_D , 0, CP1_ }, /* NEG.D */ { reserved_block , 0 , 0 , 32, 0xfc007fff, 0xa0004b7b, 0 , 0, @@ -20090,13 +20090,13 @@ NMD::Pool NMD::NEG_fmt[4] = { NMD::Pool NMD::CVT_D_fmt[4] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000137b, &NMD::CVT_D_S , 0, + 0xfc007fff, 0xa000137b, &CVT_D_S , 0, CP1_ }, /* CVT.D.S */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000337b, &NMD::CVT_D_W , 0, + 0xfc007fff, 0xa000337b, &CVT_D_W , 0, CP1_ }, /* CVT.D.W */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa000537b, &NMD::CVT_D_L , 0, + 0xfc007fff, 0xa000537b, &CVT_D_L , 0, CP1_ }, /* CVT.D.L */ { reserved_block , 0 , 0 , 32, 0xfc007fff, 0xa000737b, 0 , 0, @@ -20106,13 +20106,13 @@ NMD::Pool NMD::CVT_D_fmt[4] = { NMD::Pool NMD::CVT_S_fmt[4] = { { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0001b7b, &NMD::CVT_S_D , 0, + 0xfc007fff, 0xa0001b7b, &CVT_S_D , 0, CP1_ }, /* CVT.S.D */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0003b7b, &NMD::CVT_S_W , 0, + 0xfc007fff, 0xa0003b7b, &CVT_S_W , 0, CP1_ }, /* CVT.S.W */ { instruction , 0 , 0 , 32, - 0xfc007fff, 0xa0005b7b, &NMD::CVT_S_L , 0, + 0xfc007fff, 0xa0005b7b, &CVT_S_L , 0, CP1_ }, /* CVT.S.L */ { reserved_block , 0 , 0 , 32, 0xfc007fff, 0xa0007b7b, 0 , 0, @@ -20266,64 +20266,64 @@ NMD::Pool NMD::POOL32F_3[8] = { NMD::Pool NMD::CMP_condn_S[32] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000005, &NMD::CMP_AF_S , 0, + 0xfc0007ff, 0xa0000005, &CMP_AF_S , 0, CP1_ }, /* CMP.AF.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000045, &NMD::CMP_UN_S , 0, + 0xfc0007ff, 0xa0000045, &CMP_UN_S , 0, CP1_ }, /* CMP.UN.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000085, &NMD::CMP_EQ_S , 0, + 0xfc0007ff, 0xa0000085, &CMP_EQ_S , 0, CP1_ }, /* CMP.EQ.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00000c5, &NMD::CMP_UEQ_S , 0, + 0xfc0007ff, 0xa00000c5, &CMP_UEQ_S , 0, CP1_ }, /* CMP.UEQ.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000105, &NMD::CMP_LT_S , 0, + 0xfc0007ff, 0xa0000105, &CMP_LT_S , 0, CP1_ }, /* CMP.LT.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000145, &NMD::CMP_ULT_S , 0, + 0xfc0007ff, 0xa0000145, &CMP_ULT_S , 0, CP1_ }, /* CMP.ULT.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000185, &NMD::CMP_LE_S , 0, + 0xfc0007ff, 0xa0000185, &CMP_LE_S , 0, CP1_ }, /* CMP.LE.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00001c5, &NMD::CMP_ULE_S , 0, + 0xfc0007ff, 0xa00001c5, &CMP_ULE_S , 0, CP1_ }, /* CMP.ULE.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000205, &NMD::CMP_SAF_S , 0, + 0xfc0007ff, 0xa0000205, &CMP_SAF_S , 0, CP1_ }, /* CMP.SAF.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000245, &NMD::CMP_SUN_S , 0, + 0xfc0007ff, 0xa0000245, &CMP_SUN_S , 0, CP1_ }, /* CMP.SUN.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000285, &NMD::CMP_SEQ_S , 0, + 0xfc0007ff, 0xa0000285, &CMP_SEQ_S , 0, CP1_ }, /* CMP.SEQ.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00002c5, &NMD::CMP_SUEQ_S , 0, + 0xfc0007ff, 0xa00002c5, &CMP_SUEQ_S , 0, CP1_ }, /* CMP.SUEQ.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000305, &NMD::CMP_SLT_S , 0, + 0xfc0007ff, 0xa0000305, &CMP_SLT_S , 0, CP1_ }, /* CMP.SLT.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000345, &NMD::CMP_SULT_S , 0, + 0xfc0007ff, 0xa0000345, &CMP_SULT_S , 0, CP1_ }, /* CMP.SULT.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000385, &NMD::CMP_SLE_S , 0, + 0xfc0007ff, 0xa0000385, &CMP_SLE_S , 0, CP1_ }, /* CMP.SLE.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00003c5, &NMD::CMP_SULE_S , 0, + 0xfc0007ff, 0xa00003c5, &CMP_SULE_S , 0, CP1_ }, /* CMP.SULE.S */ { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0xa0000405, 0 , 0, CP1_ }, /* CMP.condn.S~*(16) */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000445, &NMD::CMP_OR_S , 0, + 0xfc0007ff, 0xa0000445, &CMP_OR_S , 0, CP1_ }, /* CMP.OR.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000485, &NMD::CMP_UNE_S , 0, + 0xfc0007ff, 0xa0000485, &CMP_UNE_S , 0, CP1_ }, /* CMP.UNE.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00004c5, &NMD::CMP_NE_S , 0, + 0xfc0007ff, 0xa00004c5, &CMP_NE_S , 0, CP1_ }, /* CMP.NE.S */ { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0xa0000505, 0 , 0, @@ -20341,13 +20341,13 @@ NMD::Pool NMD::CMP_condn_S[32] = { 0xfc0007ff, 0xa0000605, 0 , 0, CP1_ }, /* CMP.condn.S~*(24) */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000645, &NMD::CMP_SOR_S , 0, + 0xfc0007ff, 0xa0000645, &CMP_SOR_S , 0, CP1_ }, /* CMP.SOR.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000685, &NMD::CMP_SUNE_S , 0, + 0xfc0007ff, 0xa0000685, &CMP_SUNE_S , 0, CP1_ }, /* CMP.SUNE.S */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00006c5, &NMD::CMP_SNE_S , 0, + 0xfc0007ff, 0xa00006c5, &CMP_SNE_S , 0, CP1_ }, /* CMP.SNE.S */ { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0xa0000705, 0 , 0, @@ -20366,64 +20366,64 @@ NMD::Pool NMD::CMP_condn_S[32] = { NMD::Pool NMD::CMP_condn_D[32] = { { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000015, &NMD::CMP_AF_D , 0, + 0xfc0007ff, 0xa0000015, &CMP_AF_D , 0, CP1_ }, /* CMP.AF.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000055, &NMD::CMP_UN_D , 0, + 0xfc0007ff, 0xa0000055, &CMP_UN_D , 0, CP1_ }, /* CMP.UN.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000095, &NMD::CMP_EQ_D , 0, + 0xfc0007ff, 0xa0000095, &CMP_EQ_D , 0, CP1_ }, /* CMP.EQ.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00000d5, &NMD::CMP_UEQ_D , 0, + 0xfc0007ff, 0xa00000d5, &CMP_UEQ_D , 0, CP1_ }, /* CMP.UEQ.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000115, &NMD::CMP_LT_D , 0, + 0xfc0007ff, 0xa0000115, &CMP_LT_D , 0, CP1_ }, /* CMP.LT.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000155, &NMD::CMP_ULT_D , 0, + 0xfc0007ff, 0xa0000155, &CMP_ULT_D , 0, CP1_ }, /* CMP.ULT.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000195, &NMD::CMP_LE_D , 0, + 0xfc0007ff, 0xa0000195, &CMP_LE_D , 0, CP1_ }, /* CMP.LE.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00001d5, &NMD::CMP_ULE_D , 0, + 0xfc0007ff, 0xa00001d5, &CMP_ULE_D , 0, CP1_ }, /* CMP.ULE.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000215, &NMD::CMP_SAF_D , 0, + 0xfc0007ff, 0xa0000215, &CMP_SAF_D , 0, CP1_ }, /* CMP.SAF.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000255, &NMD::CMP_SUN_D , 0, + 0xfc0007ff, 0xa0000255, &CMP_SUN_D , 0, CP1_ }, /* CMP.SUN.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000295, &NMD::CMP_SEQ_D , 0, + 0xfc0007ff, 0xa0000295, &CMP_SEQ_D , 0, CP1_ }, /* CMP.SEQ.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00002d5, &NMD::CMP_SUEQ_D , 0, + 0xfc0007ff, 0xa00002d5, &CMP_SUEQ_D , 0, CP1_ }, /* CMP.SUEQ.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000315, &NMD::CMP_SLT_D , 0, + 0xfc0007ff, 0xa0000315, &CMP_SLT_D , 0, CP1_ }, /* CMP.SLT.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000355, &NMD::CMP_SULT_D , 0, + 0xfc0007ff, 0xa0000355, &CMP_SULT_D , 0, CP1_ }, /* CMP.SULT.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000395, &NMD::CMP_SLE_D , 0, + 0xfc0007ff, 0xa0000395, &CMP_SLE_D , 0, CP1_ }, /* CMP.SLE.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00003d5, &NMD::CMP_SULE_D , 0, + 0xfc0007ff, 0xa00003d5, &CMP_SULE_D , 0, CP1_ }, /* CMP.SULE.D */ { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0xa0000415, 0 , 0, CP1_ }, /* CMP.condn.D~*(16) */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000455, &NMD::CMP_OR_D , 0, + 0xfc0007ff, 0xa0000455, &CMP_OR_D , 0, CP1_ }, /* CMP.OR.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000495, &NMD::CMP_UNE_D , 0, + 0xfc0007ff, 0xa0000495, &CMP_UNE_D , 0, CP1_ }, /* CMP.UNE.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00004d5, &NMD::CMP_NE_D , 0, + 0xfc0007ff, 0xa00004d5, &CMP_NE_D , 0, CP1_ }, /* CMP.NE.D */ { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0xa0000515, 0 , 0, @@ -20441,13 +20441,13 @@ NMD::Pool NMD::CMP_condn_D[32] = { 0xfc0007ff, 0xa0000615, 0 , 0, CP1_ }, /* CMP.condn.D~*(24) */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000655, &NMD::CMP_SOR_D , 0, + 0xfc0007ff, 0xa0000655, &CMP_SOR_D , 0, CP1_ }, /* CMP.SOR.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa0000695, &NMD::CMP_SUNE_D , 0, + 0xfc0007ff, 0xa0000695, &CMP_SUNE_D , 0, CP1_ }, /* CMP.SUNE.D */ { instruction , 0 , 0 , 32, - 0xfc0007ff, 0xa00006d5, &NMD::CMP_SNE_D , 0, + 0xfc0007ff, 0xa00006d5, &CMP_SNE_D , 0, CP1_ }, /* CMP.SNE.D */ { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0xa0000715, 0 , 0, @@ -20525,13 +20525,13 @@ NMD::Pool NMD::POOL32S_0[64] = { 0xfc0001ff, 0xc0000000, 0 , 0, 0x0 }, /* POOL32S_0~*(0) */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000008, &NMD::DLSA , 0, + 0xfc0001ff, 0xc0000008, &DLSA , 0, MIPS64_ }, /* DLSA */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000010, &NMD::DSLLV , 0, + 0xfc0001ff, 0xc0000010, &DSLLV , 0, MIPS64_ }, /* DSLLV */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000018, &NMD::DMUL , 0, + 0xfc0001ff, 0xc0000018, &DMUL , 0, MIPS64_ }, /* DMUL */ { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc0000020, 0 , 0, @@ -20552,10 +20552,10 @@ NMD::Pool NMD::POOL32S_0[64] = { 0xfc0001ff, 0xc0000048, 0 , 0, 0x0 }, /* POOL32S_0~*(9) */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000050, &NMD::DSRLV , 0, + 0xfc0001ff, 0xc0000050, &DSRLV , 0, MIPS64_ }, /* DSRLV */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000058, &NMD::DMUH , 0, + 0xfc0001ff, 0xc0000058, &DMUH , 0, MIPS64_ }, /* DMUH */ { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc0000060, 0 , 0, @@ -20576,10 +20576,10 @@ NMD::Pool NMD::POOL32S_0[64] = { 0xfc0001ff, 0xc0000088, 0 , 0, 0x0 }, /* POOL32S_0~*(17) */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000090, &NMD::DSRAV , 0, + 0xfc0001ff, 0xc0000090, &DSRAV , 0, MIPS64_ }, /* DSRAV */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000098, &NMD::DMULU , 0, + 0xfc0001ff, 0xc0000098, &DMULU , 0, MIPS64_ }, /* DMULU */ { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc00000a0, 0 , 0, @@ -20600,10 +20600,10 @@ NMD::Pool NMD::POOL32S_0[64] = { 0xfc0001ff, 0xc00000c8, 0 , 0, 0x0 }, /* POOL32S_0~*(25) */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc00000d0, &NMD::DROTRV , 0, + 0xfc0001ff, 0xc00000d0, &DROTRV , 0, MIPS64_ }, /* DROTRV */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc00000d8, &NMD::DMUHU , 0, + 0xfc0001ff, 0xc00000d8, &DMUHU , 0, MIPS64_ }, /* DMUHU */ { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc00000e0, 0 , 0, @@ -20624,10 +20624,10 @@ NMD::Pool NMD::POOL32S_0[64] = { 0xfc0001ff, 0xc0000108, 0 , 0, 0x0 }, /* POOL32S_0~*(33) */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000110, &NMD::DADD , 0, + 0xfc0001ff, 0xc0000110, &DADD , 0, MIPS64_ }, /* DADD */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000118, &NMD::DDIV , 0, + 0xfc0001ff, 0xc0000118, &DDIV , 0, MIPS64_ }, /* DDIV */ { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc0000120, 0 , 0, @@ -20648,10 +20648,10 @@ NMD::Pool NMD::POOL32S_0[64] = { 0xfc0001ff, 0xc0000148, 0 , 0, 0x0 }, /* POOL32S_0~*(41) */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000150, &NMD::DADDU , 0, + 0xfc0001ff, 0xc0000150, &DADDU , 0, MIPS64_ }, /* DADDU */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000158, &NMD::DMOD , 0, + 0xfc0001ff, 0xc0000158, &DMOD , 0, MIPS64_ }, /* DMOD */ { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc0000160, 0 , 0, @@ -20672,10 +20672,10 @@ NMD::Pool NMD::POOL32S_0[64] = { 0xfc0001ff, 0xc0000188, 0 , 0, 0x0 }, /* POOL32S_0~*(49) */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000190, &NMD::DSUB , 0, + 0xfc0001ff, 0xc0000190, &DSUB , 0, MIPS64_ }, /* DSUB */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc0000198, &NMD::DDIVU , 0, + 0xfc0001ff, 0xc0000198, &DDIVU , 0, MIPS64_ }, /* DDIVU */ { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc00001a0, 0 , 0, @@ -20696,10 +20696,10 @@ NMD::Pool NMD::POOL32S_0[64] = { 0xfc0001ff, 0xc00001c8, 0 , 0, 0x0 }, /* POOL32S_0~*(57) */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc00001d0, &NMD::DSUBU , 0, + 0xfc0001ff, 0xc00001d0, &DSUBU , 0, MIPS64_ }, /* DSUBU */ { instruction , 0 , 0 , 32, - 0xfc0001ff, 0xc00001d8, &NMD::DMODU , 0, + 0xfc0001ff, 0xc00001d8, &DMODU , 0, MIPS64_ }, /* DMODU */ { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc00001e0, 0 , 0, @@ -20829,7 +20829,7 @@ NMD::Pool NMD::POOL32Sxf_4[128] = { 0xfc00ffff, 0xc000493c, 0 , 0, 0x0 }, /* POOL32Sxf_4~*(36) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0xc0004b3c, &NMD::DCLO , 0, + 0xfc00ffff, 0xc0004b3c, &DCLO , 0, MIPS64_ }, /* DCLO */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0xc0004d3c, 0 , 0, @@ -20853,7 +20853,7 @@ NMD::Pool NMD::POOL32Sxf_4[128] = { 0xfc00ffff, 0xc000593c, 0 , 0, 0x0 }, /* POOL32Sxf_4~*(44) */ { instruction , 0 , 0 , 32, - 0xfc00ffff, 0xc0005b3c, &NMD::DCLZ , 0, + 0xfc00ffff, 0xc0005b3c, &DCLZ , 0, MIPS64_ }, /* DCLZ */ { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0xc0005d3c, 0 , 0, @@ -21134,10 +21134,10 @@ NMD::Pool NMD::POOL32Sxf[8] = { NMD::Pool NMD::POOL32S_4[8] = { { instruction , 0 , 0 , 32, - 0xfc00003f, 0xc0000004, &NMD::EXTD , 0, + 0xfc00003f, 0xc0000004, &EXTD , 0, MIPS64_ }, /* EXTD */ { instruction , 0 , 0 , 32, - 0xfc00003f, 0xc000000c, &NMD::EXTD32 , 0, + 0xfc00003f, 0xc000000c, &EXTD32 , 0, MIPS64_ }, /* EXTD32 */ { reserved_block , 0 , 0 , 32, 0xfc00003f, 0xc0000014, 0 , 0, @@ -21190,27 +21190,27 @@ NMD::Pool NMD::POOL32S[8] = { NMD::Pool NMD::P_LUI[2] = { { instruction , 0 , 0 , 32, - 0xfc000002, 0xe0000000, &NMD::LUI , 0, + 0xfc000002, 0xe0000000, &LUI , 0, 0x0 }, /* LUI */ { instruction , 0 , 0 , 32, - 0xfc000002, 0xe0000002, &NMD::ALUIPC , 0, + 0xfc000002, 0xe0000002, &ALUIPC , 0, 0x0 }, /* ALUIPC */ }; NMD::Pool NMD::P_GP_LH[2] = { { instruction , 0 , 0 , 32, - 0xfc1c0001, 0x44100000, &NMD::LH_GP_ , 0, + 0xfc1c0001, 0x44100000, &LH_GP_ , 0, 0x0 }, /* LH[GP] */ { instruction , 0 , 0 , 32, - 0xfc1c0001, 0x44100001, &NMD::LHU_GP_ , 0, + 0xfc1c0001, 0x44100001, &LHU_GP_ , 0, 0x0 }, /* LHU[GP] */ }; NMD::Pool NMD::P_GP_SH[2] = { { instruction , 0 , 0 , 32, - 0xfc1c0001, 0x44140000, &NMD::SH_GP_ , 0, + 0xfc1c0001, 0x44140000, &SH_GP_ , 0, 0x0 }, /* SH[GP] */ { reserved_block , 0 , 0 , 32, 0xfc1c0001, 0x44140001, 0 , 0, @@ -21220,23 +21220,23 @@ NMD::Pool NMD::P_GP_SH[2] = { NMD::Pool NMD::P_GP_CP1[4] = { { instruction , 0 , 0 , 32, - 0xfc1c0003, 0x44180000, &NMD::LWC1_GP_ , 0, + 0xfc1c0003, 0x44180000, &LWC1_GP_ , 0, CP1_ }, /* LWC1[GP] */ { instruction , 0 , 0 , 32, - 0xfc1c0003, 0x44180001, &NMD::SWC1_GP_ , 0, + 0xfc1c0003, 0x44180001, &SWC1_GP_ , 0, CP1_ }, /* SWC1[GP] */ { instruction , 0 , 0 , 32, - 0xfc1c0003, 0x44180002, &NMD::LDC1_GP_ , 0, + 0xfc1c0003, 0x44180002, &LDC1_GP_ , 0, CP1_ }, /* LDC1[GP] */ { instruction , 0 , 0 , 32, - 0xfc1c0003, 0x44180003, &NMD::SDC1_GP_ , 0, + 0xfc1c0003, 0x44180003, &SDC1_GP_ , 0, CP1_ }, /* SDC1[GP] */ }; NMD::Pool NMD::P_GP_M64[4] = { { instruction , 0 , 0 , 32, - 0xfc1c0003, 0x441c0000, &NMD::LWU_GP_ , 0, + 0xfc1c0003, 0x441c0000, &LWU_GP_ , 0, MIPS64_ }, /* LWU[GP] */ { reserved_block , 0 , 0 , 32, 0xfc1c0003, 0x441c0001, 0 , 0, @@ -21252,16 +21252,16 @@ NMD::Pool NMD::P_GP_M64[4] = { NMD::Pool NMD::P_GP_BH[8] = { { instruction , 0 , 0 , 32, - 0xfc1c0000, 0x44000000, &NMD::LB_GP_ , 0, + 0xfc1c0000, 0x44000000, &LB_GP_ , 0, 0x0 }, /* LB[GP] */ { instruction , 0 , 0 , 32, - 0xfc1c0000, 0x44040000, &NMD::SB_GP_ , 0, + 0xfc1c0000, 0x44040000, &SB_GP_ , 0, 0x0 }, /* SB[GP] */ { instruction , 0 , 0 , 32, - 0xfc1c0000, 0x44080000, &NMD::LBU_GP_ , 0, + 0xfc1c0000, 0x44080000, &LBU_GP_ , 0, 0x0 }, /* LBU[GP] */ { instruction , 0 , 0 , 32, - 0xfc1c0000, 0x440c0000, &NMD::ADDIU_GP_B_ , 0, + 0xfc1c0000, 0x440c0000, &ADDIU_GP_B_ , 0, 0x0 }, /* ADDIU[GP.B] */ { pool , P_GP_LH , 2 , 32, 0xfc1c0000, 0x44100000, 0 , 0, @@ -21280,134 +21280,134 @@ NMD::Pool NMD::P_GP_BH[8] = { NMD::Pool NMD::P_LS_U12[16] = { { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84000000, &NMD::LB_U12_ , 0, + 0xfc00f000, 0x84000000, &LB_U12_ , 0, 0x0 }, /* LB[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84001000, &NMD::SB_U12_ , 0, + 0xfc00f000, 0x84001000, &SB_U12_ , 0, 0x0 }, /* SB[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84002000, &NMD::LBU_U12_ , 0, + 0xfc00f000, 0x84002000, &LBU_U12_ , 0, 0x0 }, /* LBU[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84003000, &NMD::PREF_U12_ , 0, + 0xfc00f000, 0x84003000, &PREF_U12_ , 0, 0x0 }, /* PREF[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84004000, &NMD::LH_U12_ , 0, + 0xfc00f000, 0x84004000, &LH_U12_ , 0, 0x0 }, /* LH[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84005000, &NMD::SH_U12_ , 0, + 0xfc00f000, 0x84005000, &SH_U12_ , 0, 0x0 }, /* SH[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84006000, &NMD::LHU_U12_ , 0, + 0xfc00f000, 0x84006000, &LHU_U12_ , 0, 0x0 }, /* LHU[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84007000, &NMD::LWU_U12_ , 0, + 0xfc00f000, 0x84007000, &LWU_U12_ , 0, MIPS64_ }, /* LWU[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84008000, &NMD::LW_U12_ , 0, + 0xfc00f000, 0x84008000, &LW_U12_ , 0, 0x0 }, /* LW[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x84009000, &NMD::SW_U12_ , 0, + 0xfc00f000, 0x84009000, &SW_U12_ , 0, 0x0 }, /* SW[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x8400a000, &NMD::LWC1_U12_ , 0, + 0xfc00f000, 0x8400a000, &LWC1_U12_ , 0, CP1_ }, /* LWC1[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x8400b000, &NMD::SWC1_U12_ , 0, + 0xfc00f000, 0x8400b000, &SWC1_U12_ , 0, CP1_ }, /* SWC1[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x8400c000, &NMD::LD_U12_ , 0, + 0xfc00f000, 0x8400c000, &LD_U12_ , 0, MIPS64_ }, /* LD[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x8400d000, &NMD::SD_U12_ , 0, + 0xfc00f000, 0x8400d000, &SD_U12_ , 0, MIPS64_ }, /* SD[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x8400e000, &NMD::LDC1_U12_ , 0, + 0xfc00f000, 0x8400e000, &LDC1_U12_ , 0, CP1_ }, /* LDC1[U12] */ { instruction , 0 , 0 , 32, - 0xfc00f000, 0x8400f000, &NMD::SDC1_U12_ , 0, + 0xfc00f000, 0x8400f000, &SDC1_U12_ , 0, CP1_ }, /* SDC1[U12] */ }; NMD::Pool NMD::P_PREF_S9_[2] = { { instruction , 0 , 0 , 32, - 0xffe07f00, 0xa7e01800, &NMD::SYNCI , 0, + 0xffe07f00, 0xa7e01800, &SYNCI , 0, 0x0 }, /* SYNCI */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4001800, &NMD::PREF_S9_ , &PREF_S9__cond , + 0xfc007f00, 0xa4001800, &PREF_S9_ , &PREF_S9__cond , 0x0 }, /* PREF[S9] */ }; NMD::Pool NMD::P_LS_S0[16] = { { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4000000, &NMD::LB_S9_ , 0, + 0xfc007f00, 0xa4000000, &LB_S9_ , 0, 0x0 }, /* LB[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4000800, &NMD::SB_S9_ , 0, + 0xfc007f00, 0xa4000800, &SB_S9_ , 0, 0x0 }, /* SB[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4001000, &NMD::LBU_S9_ , 0, + 0xfc007f00, 0xa4001000, &LBU_S9_ , 0, 0x0 }, /* LBU[S9] */ { pool , P_PREF_S9_ , 2 , 32, 0xfc007f00, 0xa4001800, 0 , 0, 0x0 }, /* P.PREF[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4002000, &NMD::LH_S9_ , 0, + 0xfc007f00, 0xa4002000, &LH_S9_ , 0, 0x0 }, /* LH[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4002800, &NMD::SH_S9_ , 0, + 0xfc007f00, 0xa4002800, &SH_S9_ , 0, 0x0 }, /* SH[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4003000, &NMD::LHU_S9_ , 0, + 0xfc007f00, 0xa4003000, &LHU_S9_ , 0, 0x0 }, /* LHU[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4003800, &NMD::LWU_S9_ , 0, + 0xfc007f00, 0xa4003800, &LWU_S9_ , 0, MIPS64_ }, /* LWU[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4004000, &NMD::LW_S9_ , 0, + 0xfc007f00, 0xa4004000, &LW_S9_ , 0, 0x0 }, /* LW[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4004800, &NMD::SW_S9_ , 0, + 0xfc007f00, 0xa4004800, &SW_S9_ , 0, 0x0 }, /* SW[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4005000, &NMD::LWC1_S9_ , 0, + 0xfc007f00, 0xa4005000, &LWC1_S9_ , 0, CP1_ }, /* LWC1[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4005800, &NMD::SWC1_S9_ , 0, + 0xfc007f00, 0xa4005800, &SWC1_S9_ , 0, CP1_ }, /* SWC1[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4006000, &NMD::LD_S9_ , 0, + 0xfc007f00, 0xa4006000, &LD_S9_ , 0, MIPS64_ }, /* LD[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4006800, &NMD::SD_S9_ , 0, + 0xfc007f00, 0xa4006800, &SD_S9_ , 0, MIPS64_ }, /* SD[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4007000, &NMD::LDC1_S9_ , 0, + 0xfc007f00, 0xa4007000, &LDC1_S9_ , 0, CP1_ }, /* LDC1[S9] */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4007800, &NMD::SDC1_S9_ , 0, + 0xfc007f00, 0xa4007800, &SDC1_S9_ , 0, CP1_ }, /* SDC1[S9] */ }; NMD::Pool NMD::ASET_ACLR[2] = { { instruction , 0 , 0 , 32, - 0xfe007f00, 0xa4001100, &NMD::ASET , 0, + 0xfe007f00, 0xa4001100, &ASET , 0, MCU_ }, /* ASET */ { instruction , 0 , 0 , 32, - 0xfe007f00, 0xa6001100, &NMD::ACLR , 0, + 0xfe007f00, 0xa6001100, &ACLR , 0, MCU_ }, /* ACLR */ }; NMD::Pool NMD::P_LL[4] = { { instruction , 0 , 0 , 32, - 0xfc007f03, 0xa4005100, &NMD::LL , 0, + 0xfc007f03, 0xa4005100, &LL , 0, 0x0 }, /* LL */ { instruction , 0 , 0 , 32, - 0xfc007f03, 0xa4005101, &NMD::LLWP , 0, + 0xfc007f03, 0xa4005101, &LLWP , 0, XNP_ }, /* LLWP */ { reserved_block , 0 , 0 , 32, 0xfc007f03, 0xa4005102, 0 , 0, @@ -21420,10 +21420,10 @@ NMD::Pool NMD::P_LL[4] = { NMD::Pool NMD::P_SC[4] = { { instruction , 0 , 0 , 32, - 0xfc007f03, 0xa4005900, &NMD::SC , 0, + 0xfc007f03, 0xa4005900, &SC , 0, 0x0 }, /* SC */ { instruction , 0 , 0 , 32, - 0xfc007f03, 0xa4005901, &NMD::SCWP , 0, + 0xfc007f03, 0xa4005901, &SCWP , 0, XNP_ }, /* SCWP */ { reserved_block , 0 , 0 , 32, 0xfc007f03, 0xa4005902, 0 , 0, @@ -21436,10 +21436,10 @@ NMD::Pool NMD::P_SC[4] = { NMD::Pool NMD::P_LLD[8] = { { instruction , 0 , 0 , 32, - 0xfc007f07, 0xa4007100, &NMD::LLD , 0, + 0xfc007f07, 0xa4007100, &LLD , 0, MIPS64_ }, /* LLD */ { instruction , 0 , 0 , 32, - 0xfc007f07, 0xa4007101, &NMD::LLDP , 0, + 0xfc007f07, 0xa4007101, &LLDP , 0, MIPS64_ }, /* LLDP */ { reserved_block , 0 , 0 , 32, 0xfc007f07, 0xa4007102, 0 , 0, @@ -21464,10 +21464,10 @@ NMD::Pool NMD::P_LLD[8] = { NMD::Pool NMD::P_SCD[8] = { { instruction , 0 , 0 , 32, - 0xfc007f07, 0xa4007900, &NMD::SCD , 0, + 0xfc007f07, 0xa4007900, &SCD , 0, MIPS64_ }, /* SCD */ { instruction , 0 , 0 , 32, - 0xfc007f07, 0xa4007901, &NMD::SCDP , 0, + 0xfc007f07, 0xa4007901, &SCDP , 0, MIPS64_ }, /* SCDP */ { reserved_block , 0 , 0 , 32, 0xfc007f07, 0xa4007902, 0 , 0, @@ -21504,22 +21504,22 @@ NMD::Pool NMD::P_LS_S1[16] = { 0xfc007f00, 0xa4001900, 0 , 0, 0x0 }, /* P.LS.S1~*(3) */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4002100, &NMD::UALH , 0, + 0xfc007f00, 0xa4002100, &UALH , 0, XMMS_ }, /* UALH */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4002900, &NMD::UASH , 0, + 0xfc007f00, 0xa4002900, &UASH , 0, XMMS_ }, /* UASH */ { reserved_block , 0 , 0 , 32, 0xfc007f00, 0xa4003100, 0 , 0, 0x0 }, /* P.LS.S1~*(6) */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4003900, &NMD::CACHE , 0, + 0xfc007f00, 0xa4003900, &CACHE , 0, CP0_ }, /* CACHE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4004100, &NMD::LWC2 , 0, + 0xfc007f00, 0xa4004100, &LWC2 , 0, CP2_ }, /* LWC2 */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4004900, &NMD::SWC2 , 0, + 0xfc007f00, 0xa4004900, &SWC2 , 0, CP2_ }, /* SWC2 */ { pool , P_LL , 4 , 32, 0xfc007f00, 0xa4005100, 0 , 0, @@ -21528,10 +21528,10 @@ NMD::Pool NMD::P_LS_S1[16] = { 0xfc007f00, 0xa4005900, 0 , 0, 0x0 }, /* P.SC */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4006100, &NMD::LDC2 , 0, + 0xfc007f00, 0xa4006100, &LDC2 , 0, CP2_ }, /* LDC2 */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4006900, &NMD::SDC2 , 0, + 0xfc007f00, 0xa4006900, &SDC2 , 0, CP2_ }, /* SDC2 */ { pool , P_LLD , 8 , 32, 0xfc007f00, 0xa4007100, 0 , 0, @@ -21544,20 +21544,20 @@ NMD::Pool NMD::P_LS_S1[16] = { NMD::Pool NMD::P_PREFE[2] = { { instruction , 0 , 0 , 32, - 0xffe07f00, 0xa7e01a00, &NMD::SYNCIE , 0, + 0xffe07f00, 0xa7e01a00, &SYNCIE , 0, CP0_ | EVA_ }, /* SYNCIE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4001a00, &NMD::PREFE , &PREFE_cond , + 0xfc007f00, 0xa4001a00, &PREFE , &PREFE_cond , CP0_ | EVA_ }, /* PREFE */ }; NMD::Pool NMD::P_LLE[4] = { { instruction , 0 , 0 , 32, - 0xfc007f03, 0xa4005200, &NMD::LLE , 0, + 0xfc007f03, 0xa4005200, &LLE , 0, CP0_ | EVA_ }, /* LLE */ { instruction , 0 , 0 , 32, - 0xfc007f03, 0xa4005201, &NMD::LLWPE , 0, + 0xfc007f03, 0xa4005201, &LLWPE , 0, CP0_ | EVA_ }, /* LLWPE */ { reserved_block , 0 , 0 , 32, 0xfc007f03, 0xa4005202, 0 , 0, @@ -21570,10 +21570,10 @@ NMD::Pool NMD::P_LLE[4] = { NMD::Pool NMD::P_SCE[4] = { { instruction , 0 , 0 , 32, - 0xfc007f03, 0xa4005a00, &NMD::SCE , 0, + 0xfc007f03, 0xa4005a00, &SCE , 0, CP0_ | EVA_ }, /* SCE */ { instruction , 0 , 0 , 32, - 0xfc007f03, 0xa4005a01, &NMD::SCWPE , 0, + 0xfc007f03, 0xa4005a01, &SCWPE , 0, CP0_ | EVA_ }, /* SCWPE */ { reserved_block , 0 , 0 , 32, 0xfc007f03, 0xa4005a02, 0 , 0, @@ -21586,34 +21586,34 @@ NMD::Pool NMD::P_SCE[4] = { NMD::Pool NMD::P_LS_E0[16] = { { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4000200, &NMD::LBE , 0, + 0xfc007f00, 0xa4000200, &LBE , 0, CP0_ | EVA_ }, /* LBE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4000a00, &NMD::SBE , 0, + 0xfc007f00, 0xa4000a00, &SBE , 0, CP0_ | EVA_ }, /* SBE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4001200, &NMD::LBUE , 0, + 0xfc007f00, 0xa4001200, &LBUE , 0, CP0_ | EVA_ }, /* LBUE */ { pool , P_PREFE , 2 , 32, 0xfc007f00, 0xa4001a00, 0 , 0, 0x0 }, /* P.PREFE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4002200, &NMD::LHE , 0, + 0xfc007f00, 0xa4002200, &LHE , 0, CP0_ | EVA_ }, /* LHE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4002a00, &NMD::SHE , 0, + 0xfc007f00, 0xa4002a00, &SHE , 0, CP0_ | EVA_ }, /* SHE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4003200, &NMD::LHUE , 0, + 0xfc007f00, 0xa4003200, &LHUE , 0, CP0_ | EVA_ }, /* LHUE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4003a00, &NMD::CACHEE , 0, + 0xfc007f00, 0xa4003a00, &CACHEE , 0, CP0_ | EVA_ }, /* CACHEE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4004200, &NMD::LWE , 0, + 0xfc007f00, 0xa4004200, &LWE , 0, CP0_ | EVA_ }, /* LWE */ { instruction , 0 , 0 , 32, - 0xfc007f00, 0xa4004a00, &NMD::SWE , 0, + 0xfc007f00, 0xa4004a00, &SWE , 0, CP0_ | EVA_ }, /* SWE */ { pool , P_LLE , 4 , 32, 0xfc007f00, 0xa4005200, 0 , 0, @@ -21638,40 +21638,40 @@ NMD::Pool NMD::P_LS_E0[16] = { NMD::Pool NMD::P_LS_WM[2] = { { instruction , 0 , 0 , 32, - 0xfc000f00, 0xa4000400, &NMD::LWM , 0, + 0xfc000f00, 0xa4000400, &LWM , 0, XMMS_ }, /* LWM */ { instruction , 0 , 0 , 32, - 0xfc000f00, 0xa4000c00, &NMD::SWM , 0, + 0xfc000f00, 0xa4000c00, &SWM , 0, XMMS_ }, /* SWM */ }; NMD::Pool NMD::P_LS_UAWM[2] = { { instruction , 0 , 0 , 32, - 0xfc000f00, 0xa4000500, &NMD::UALWM , 0, + 0xfc000f00, 0xa4000500, &UALWM , 0, XMMS_ }, /* UALWM */ { instruction , 0 , 0 , 32, - 0xfc000f00, 0xa4000d00, &NMD::UASWM , 0, + 0xfc000f00, 0xa4000d00, &UASWM , 0, XMMS_ }, /* UASWM */ }; NMD::Pool NMD::P_LS_DM[2] = { { instruction , 0 , 0 , 32, - 0xfc000f00, 0xa4000600, &NMD::LDM , 0, + 0xfc000f00, 0xa4000600, &LDM , 0, MIPS64_ }, /* LDM */ { instruction , 0 , 0 , 32, - 0xfc000f00, 0xa4000e00, &NMD::SDM , 0, + 0xfc000f00, 0xa4000e00, &SDM , 0, MIPS64_ }, /* SDM */ }; NMD::Pool NMD::P_LS_UADM[2] = { { instruction , 0 , 0 , 32, - 0xfc000f00, 0xa4000700, &NMD::UALDM , 0, + 0xfc000f00, 0xa4000700, &UALDM , 0, MIPS64_ }, /* UALDM */ { instruction , 0 , 0 , 32, - 0xfc000f00, 0xa4000f00, &NMD::UASDM , 0, + 0xfc000f00, 0xa4000f00, &UASDM , 0, MIPS64_ }, /* UASDM */ }; @@ -21706,30 +21706,30 @@ NMD::Pool NMD::P_LS_S9[8] = { NMD::Pool NMD::P_BAL[2] = { { branch_instruction , 0 , 0 , 32, - 0xfe000000, 0x28000000, &NMD::BC_32_ , 0, + 0xfe000000, 0x28000000, &BC_32_ , 0, 0x0 }, /* BC[32] */ { call_instruction , 0 , 0 , 32, - 0xfe000000, 0x2a000000, &NMD::BALC_32_ , 0, + 0xfe000000, 0x2a000000, &BALC_32_ , 0, 0x0 }, /* BALC[32] */ }; NMD::Pool NMD::P_BALRSC[2] = { { branch_instruction , 0 , 0 , 32, - 0xffe0f000, 0x48008000, &NMD::BRSC , 0, + 0xffe0f000, 0x48008000, &BRSC , 0, 0x0 }, /* BRSC */ { call_instruction , 0 , 0 , 32, - 0xfc00f000, 0x48008000, &NMD::BALRSC , &BALRSC_cond , + 0xfc00f000, 0x48008000, &BALRSC , &BALRSC_cond , 0x0 }, /* BALRSC */ }; NMD::Pool NMD::P_J[16] = { { call_instruction , 0 , 0 , 32, - 0xfc00f000, 0x48000000, &NMD::JALRC_32_ , 0, + 0xfc00f000, 0x48000000, &JALRC_32_ , 0, 0x0 }, /* JALRC[32] */ { call_instruction , 0 , 0 , 32, - 0xfc00f000, 0x48001000, &NMD::JALRC_HB , 0, + 0xfc00f000, 0x48001000, &JALRC_HB , 0, 0x0 }, /* JALRC.HB */ { reserved_block , 0 , 0 , 32, 0xfc00f000, 0x48002000, 0 , 0, @@ -21778,19 +21778,19 @@ NMD::Pool NMD::P_J[16] = { NMD::Pool NMD::P_BR3A[32] = { { branch_instruction , 0 , 0 , 32, - 0xfc1fc000, 0x88004000, &NMD::BC1EQZC , 0, + 0xfc1fc000, 0x88004000, &BC1EQZC , 0, CP1_ }, /* BC1EQZC */ { branch_instruction , 0 , 0 , 32, - 0xfc1fc000, 0x88014000, &NMD::BC1NEZC , 0, + 0xfc1fc000, 0x88014000, &BC1NEZC , 0, CP1_ }, /* BC1NEZC */ { branch_instruction , 0 , 0 , 32, - 0xfc1fc000, 0x88024000, &NMD::BC2EQZC , 0, + 0xfc1fc000, 0x88024000, &BC2EQZC , 0, CP2_ }, /* BC2EQZC */ { branch_instruction , 0 , 0 , 32, - 0xfc1fc000, 0x88034000, &NMD::BC2NEZC , 0, + 0xfc1fc000, 0x88034000, &BC2NEZC , 0, CP2_ }, /* BC2NEZC */ { branch_instruction , 0 , 0 , 32, - 0xfc1fc000, 0x88044000, &NMD::BPOSGE32C , 0, + 0xfc1fc000, 0x88044000, &BPOSGE32C , 0, DSP_ }, /* BPOSGE32C */ { reserved_block , 0 , 0 , 32, 0xfc1fc000, 0x88054000, 0 , 0, @@ -21878,60 +21878,60 @@ NMD::Pool NMD::P_BR3A[32] = { NMD::Pool NMD::P_BR1[4] = { { branch_instruction , 0 , 0 , 32, - 0xfc00c000, 0x88000000, &NMD::BEQC_32_ , 0, + 0xfc00c000, 0x88000000, &BEQC_32_ , 0, 0x0 }, /* BEQC[32] */ { pool , P_BR3A , 32 , 32, 0xfc00c000, 0x88004000, 0 , 0, 0x0 }, /* P.BR3A */ { branch_instruction , 0 , 0 , 32, - 0xfc00c000, 0x88008000, &NMD::BGEC , 0, + 0xfc00c000, 0x88008000, &BGEC , 0, 0x0 }, /* BGEC */ { branch_instruction , 0 , 0 , 32, - 0xfc00c000, 0x8800c000, &NMD::BGEUC , 0, + 0xfc00c000, 0x8800c000, &BGEUC , 0, 0x0 }, /* BGEUC */ }; NMD::Pool NMD::P_BR2[4] = { { branch_instruction , 0 , 0 , 32, - 0xfc00c000, 0xa8000000, &NMD::BNEC_32_ , 0, + 0xfc00c000, 0xa8000000, &BNEC_32_ , 0, 0x0 }, /* BNEC[32] */ { reserved_block , 0 , 0 , 32, 0xfc00c000, 0xa8004000, 0 , 0, 0x0 }, /* P.BR2~*(1) */ { branch_instruction , 0 , 0 , 32, - 0xfc00c000, 0xa8008000, &NMD::BLTC , 0, + 0xfc00c000, 0xa8008000, &BLTC , 0, 0x0 }, /* BLTC */ { branch_instruction , 0 , 0 , 32, - 0xfc00c000, 0xa800c000, &NMD::BLTUC , 0, + 0xfc00c000, 0xa800c000, &BLTUC , 0, 0x0 }, /* BLTUC */ }; NMD::Pool NMD::P_BRI[8] = { { branch_instruction , 0 , 0 , 32, - 0xfc1c0000, 0xc8000000, &NMD::BEQIC , 0, + 0xfc1c0000, 0xc8000000, &BEQIC , 0, 0x0 }, /* BEQIC */ { branch_instruction , 0 , 0 , 32, - 0xfc1c0000, 0xc8040000, &NMD::BBEQZC , 0, + 0xfc1c0000, 0xc8040000, &BBEQZC , 0, XMMS_ }, /* BBEQZC */ { branch_instruction , 0 , 0 , 32, - 0xfc1c0000, 0xc8080000, &NMD::BGEIC , 0, + 0xfc1c0000, 0xc8080000, &BGEIC , 0, 0x0 }, /* BGEIC */ { branch_instruction , 0 , 0 , 32, - 0xfc1c0000, 0xc80c0000, &NMD::BGEIUC , 0, + 0xfc1c0000, 0xc80c0000, &BGEIUC , 0, 0x0 }, /* BGEIUC */ { branch_instruction , 0 , 0 , 32, - 0xfc1c0000, 0xc8100000, &NMD::BNEIC , 0, + 0xfc1c0000, 0xc8100000, &BNEIC , 0, 0x0 }, /* BNEIC */ { branch_instruction , 0 , 0 , 32, - 0xfc1c0000, 0xc8140000, &NMD::BBNEZC , 0, + 0xfc1c0000, 0xc8140000, &BBNEZC , 0, XMMS_ }, /* BBNEZC */ { branch_instruction , 0 , 0 , 32, - 0xfc1c0000, 0xc8180000, &NMD::BLTIC , 0, + 0xfc1c0000, 0xc8180000, &BLTIC , 0, 0x0 }, /* BLTIC */ { branch_instruction , 0 , 0 , 32, - 0xfc1c0000, 0xc81c0000, &NMD::BLTIUC , 0, + 0xfc1c0000, 0xc81c0000, &BLTIUC , 0, 0x0 }, /* BLTIUC */ }; @@ -21962,7 +21962,7 @@ NMD::Pool NMD::P32[32] = { 0xfc000000, 0xe0000000, 0 , 0, 0x0 }, /* P.LUI */ { instruction , 0 , 0 , 32, - 0xfc000000, 0x04000000, &NMD::ADDIUPC_32_ , 0, + 0xfc000000, 0x04000000, &ADDIUPC_32_ , 0, 0x0 }, /* ADDIUPC[32] */ { reserved_block , 0 , 0 , 32, 0xfc000000, 0x24000000, 0 , 0, @@ -21986,7 +21986,7 @@ NMD::Pool NMD::P32[32] = { 0xfc000000, 0xe4000000, 0 , 0, 0x0 }, /* P32~*(29) */ { call_instruction , 0 , 0 , 32, - 0xfc000000, 0x08000000, &NMD::MOVE_BALC , 0, + 0xfc000000, 0x08000000, &MOVE_BALC , 0, XMMS_ }, /* MOVE.BALC */ { pool , P_BAL , 2 , 32, 0xfc000000, 0x28000000, 0 , 0, @@ -22038,10 +22038,10 @@ NMD::Pool NMD::P32[32] = { NMD::Pool NMD::P16_SYSCALL[2] = { { instruction , 0 , 0 , 16, - 0xfffc , 0x1008 , &NMD::SYSCALL_16_ , 0, + 0xfffc , 0x1008 , &SYSCALL_16_ , 0, 0x0 }, /* SYSCALL[16] */ { instruction , 0 , 0 , 16, - 0xfffc , 0x100c , &NMD::HYPCALL_16_ , 0, + 0xfffc , 0x100c , &HYPCALL_16_ , 0, CP0_ | VZ_ }, /* HYPCALL[16] */ }; @@ -22054,10 +22054,10 @@ NMD::Pool NMD::P16_RI[4] = { 0xfff8 , 0x1008 , 0 , 0, 0x0 }, /* P16.SYSCALL */ { instruction , 0 , 0 , 16, - 0xfff8 , 0x1010 , &NMD::BREAK_16_ , 0, + 0xfff8 , 0x1010 , &BREAK_16_ , 0, 0x0 }, /* BREAK[16] */ { instruction , 0 , 0 , 16, - 0xfff8 , 0x1018 , &NMD::SDBBP_16_ , 0, + 0xfff8 , 0x1018 , &SDBBP_16_ , 0, EJTAG_ }, /* SDBBP[16] */ }; @@ -22067,33 +22067,33 @@ NMD::Pool NMD::P16_MV[2] = { 0xffe0 , 0x1000 , 0 , 0, 0x0 }, /* P16.RI */ { instruction , 0 , 0 , 16, - 0xfc00 , 0x1000 , &NMD::MOVE , &MOVE_cond , + 0xfc00 , 0x1000 , &MOVE , &MOVE_cond , 0x0 }, /* MOVE */ }; NMD::Pool NMD::P16_SHIFT[2] = { { instruction , 0 , 0 , 16, - 0xfc08 , 0x3000 , &NMD::SLL_16_ , 0, + 0xfc08 , 0x3000 , &SLL_16_ , 0, 0x0 }, /* SLL[16] */ { instruction , 0 , 0 , 16, - 0xfc08 , 0x3008 , &NMD::SRL_16_ , 0, + 0xfc08 , 0x3008 , &SRL_16_ , 0, 0x0 }, /* SRL[16] */ }; NMD::Pool NMD::POOL16C_00[4] = { { instruction , 0 , 0 , 16, - 0xfc0f , 0x5000 , &NMD::NOT_16_ , 0, + 0xfc0f , 0x5000 , &NOT_16_ , 0, 0x0 }, /* NOT[16] */ { instruction , 0 , 0 , 16, - 0xfc0f , 0x5004 , &NMD::XOR_16_ , 0, + 0xfc0f , 0x5004 , &XOR_16_ , 0, 0x0 }, /* XOR[16] */ { instruction , 0 , 0 , 16, - 0xfc0f , 0x5008 , &NMD::AND_16_ , 0, + 0xfc0f , 0x5008 , &AND_16_ , 0, 0x0 }, /* AND[16] */ { instruction , 0 , 0 , 16, - 0xfc0f , 0x500c , &NMD::OR_16_ , 0, + 0xfc0f , 0x500c , &OR_16_ , 0, 0x0 }, /* OR[16] */ }; @@ -22113,7 +22113,7 @@ NMD::Pool NMD::P16C[2] = { 0xfc01 , 0x5000 , 0 , 0, 0x0 }, /* POOL16C_0 */ { instruction , 0 , 0 , 16, - 0xfc01 , 0x5001 , &NMD::LWXS_16_ , 0, + 0xfc01 , 0x5001 , &LWXS_16_ , 0, 0x0 }, /* LWXS[16] */ }; @@ -22123,24 +22123,24 @@ NMD::Pool NMD::P16_A1[2] = { 0xfc40 , 0x7000 , 0 , 0, 0x0 }, /* P16.A1~*(0) */ { instruction , 0 , 0 , 16, - 0xfc40 , 0x7040 , &NMD::ADDIU_R1_SP_ , 0, + 0xfc40 , 0x7040 , &ADDIU_R1_SP_ , 0, 0x0 }, /* ADDIU[R1.SP] */ }; NMD::Pool NMD::P_ADDIU_RS5_[2] = { { instruction , 0 , 0 , 16, - 0xffe8 , 0x9008 , &NMD::NOP_16_ , 0, + 0xffe8 , 0x9008 , &NOP_16_ , 0, 0x0 }, /* NOP[16] */ { instruction , 0 , 0 , 16, - 0xfc08 , 0x9008 , &NMD::ADDIU_RS5_ , &ADDIU_RS5__cond , + 0xfc08 , 0x9008 , &ADDIU_RS5_ , &ADDIU_RS5__cond , 0x0 }, /* ADDIU[RS5] */ }; NMD::Pool NMD::P16_A2[2] = { { instruction , 0 , 0 , 16, - 0xfc08 , 0x9000 , &NMD::ADDIU_R2_ , 0, + 0xfc08 , 0x9000 , &ADDIU_R2_ , 0, 0x0 }, /* ADDIU[R2] */ { pool , P_ADDIU_RS5_ , 2 , 16, 0xfc08 , 0x9008 , 0 , 0, @@ -22150,30 +22150,30 @@ NMD::Pool NMD::P16_A2[2] = { NMD::Pool NMD::P16_ADDU[2] = { { instruction , 0 , 0 , 16, - 0xfc01 , 0xb000 , &NMD::ADDU_16_ , 0, + 0xfc01 , 0xb000 , &ADDU_16_ , 0, 0x0 }, /* ADDU[16] */ { instruction , 0 , 0 , 16, - 0xfc01 , 0xb001 , &NMD::SUBU_16_ , 0, + 0xfc01 , 0xb001 , &SUBU_16_ , 0, 0x0 }, /* SUBU[16] */ }; NMD::Pool NMD::P16_JRC[2] = { { branch_instruction , 0 , 0 , 16, - 0xfc1f , 0xd800 , &NMD::JRC , 0, + 0xfc1f , 0xd800 , &JRC , 0, 0x0 }, /* JRC */ { call_instruction , 0 , 0 , 16, - 0xfc1f , 0xd810 , &NMD::JALRC_16_ , 0, + 0xfc1f , 0xd810 , &JALRC_16_ , 0, 0x0 }, /* JALRC[16] */ }; NMD::Pool NMD::P16_BR1[2] = { { branch_instruction , 0 , 0 , 16, - 0xfc00 , 0xd800 , &NMD::BEQC_16_ , &BEQC_16__cond , + 0xfc00 , 0xd800 , &BEQC_16_ , &BEQC_16__cond , XMMS_ }, /* BEQC[16] */ { branch_instruction , 0 , 0 , 16, - 0xfc00 , 0xd800 , &NMD::BNEC_16_ , &BNEC_16__cond , + 0xfc00 , 0xd800 , &BNEC_16_ , &BNEC_16__cond , XMMS_ }, /* BNEC[16] */ }; @@ -22190,20 +22190,20 @@ NMD::Pool NMD::P16_BR[2] = { NMD::Pool NMD::P16_SR[2] = { { instruction , 0 , 0 , 16, - 0xfd00 , 0x1c00 , &NMD::SAVE_16_ , 0, + 0xfd00 , 0x1c00 , &SAVE_16_ , 0, 0x0 }, /* SAVE[16] */ { return_instruction , 0 , 0 , 16, - 0xfd00 , 0x1d00 , &NMD::RESTORE_JRC_16_ , 0, + 0xfd00 , 0x1d00 , &RESTORE_JRC_16_ , 0, 0x0 }, /* RESTORE.JRC[16] */ }; NMD::Pool NMD::P16_4X4[4] = { { instruction , 0 , 0 , 16, - 0xfd08 , 0x3c00 , &NMD::ADDU_4X4_ , 0, + 0xfd08 , 0x3c00 , &ADDU_4X4_ , 0, XMMS_ }, /* ADDU[4X4] */ { instruction , 0 , 0 , 16, - 0xfd08 , 0x3c08 , &NMD::MUL_4X4_ , 0, + 0xfd08 , 0x3c08 , &MUL_4X4_ , 0, XMMS_ }, /* MUL[4X4] */ { reserved_block , 0 , 0 , 16, 0xfd08 , 0x3d00 , 0 , 0, @@ -22216,13 +22216,13 @@ NMD::Pool NMD::P16_4X4[4] = { NMD::Pool NMD::P16_LB[4] = { { instruction , 0 , 0 , 16, - 0xfc0c , 0x5c00 , &NMD::LB_16_ , 0, + 0xfc0c , 0x5c00 , &LB_16_ , 0, 0x0 }, /* LB[16] */ { instruction , 0 , 0 , 16, - 0xfc0c , 0x5c04 , &NMD::SB_16_ , 0, + 0xfc0c , 0x5c04 , &SB_16_ , 0, 0x0 }, /* SB[16] */ { instruction , 0 , 0 , 16, - 0xfc0c , 0x5c08 , &NMD::LBU_16_ , 0, + 0xfc0c , 0x5c08 , &LBU_16_ , 0, 0x0 }, /* LBU[16] */ { reserved_block , 0 , 0 , 16, 0xfc0c , 0x5c0c , 0 , 0, @@ -22232,13 +22232,13 @@ NMD::Pool NMD::P16_LB[4] = { NMD::Pool NMD::P16_LH[4] = { { instruction , 0 , 0 , 16, - 0xfc09 , 0x7c00 , &NMD::LH_16_ , 0, + 0xfc09 , 0x7c00 , &LH_16_ , 0, 0x0 }, /* LH[16] */ { instruction , 0 , 0 , 16, - 0xfc09 , 0x7c01 , &NMD::SH_16_ , 0, + 0xfc09 , 0x7c01 , &SH_16_ , 0, 0x0 }, /* SH[16] */ { instruction , 0 , 0 , 16, - 0xfc09 , 0x7c08 , &NMD::LHU_16_ , 0, + 0xfc09 , 0x7c08 , &LHU_16_ , 0, 0x0 }, /* LHU[16] */ { reserved_block , 0 , 0 , 16, 0xfc09 , 0x7c09 , 0 , 0, @@ -22266,40 +22266,40 @@ NMD::Pool NMD::P16[32] = { 0xfc00 , 0xb000 , 0 , 0, 0x0 }, /* P16.ADDU */ { instruction , 0 , 0 , 16, - 0xfc00 , 0xd000 , &NMD::LI_16_ , 0, + 0xfc00 , 0xd000 , &LI_16_ , 0, 0x0 }, /* LI[16] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0xf000 , &NMD::ANDI_16_ , 0, + 0xfc00 , 0xf000 , &ANDI_16_ , 0, 0x0 }, /* ANDI[16] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0x1400 , &NMD::LW_16_ , 0, + 0xfc00 , 0x1400 , &LW_16_ , 0, 0x0 }, /* LW[16] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0x3400 , &NMD::LW_SP_ , 0, + 0xfc00 , 0x3400 , &LW_SP_ , 0, 0x0 }, /* LW[SP] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0x5400 , &NMD::LW_GP16_ , 0, + 0xfc00 , 0x5400 , &LW_GP16_ , 0, 0x0 }, /* LW[GP16] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0x7400 , &NMD::LW_4X4_ , 0, + 0xfc00 , 0x7400 , &LW_4X4_ , 0, XMMS_ }, /* LW[4X4] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0x9400 , &NMD::SW_16_ , 0, + 0xfc00 , 0x9400 , &SW_16_ , 0, 0x0 }, /* SW[16] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0xb400 , &NMD::SW_SP_ , 0, + 0xfc00 , 0xb400 , &SW_SP_ , 0, 0x0 }, /* SW[SP] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0xd400 , &NMD::SW_GP16_ , 0, + 0xfc00 , 0xd400 , &SW_GP16_ , 0, 0x0 }, /* SW[GP16] */ { instruction , 0 , 0 , 16, - 0xfc00 , 0xf400 , &NMD::SW_4X4_ , 0, + 0xfc00 , 0xf400 , &SW_4X4_ , 0, XMMS_ }, /* SW[4X4] */ { branch_instruction , 0 , 0 , 16, - 0xfc00 , 0x1800 , &NMD::BC_16_ , 0, + 0xfc00 , 0x1800 , &BC_16_ , 0, 0x0 }, /* BC[16] */ { call_instruction , 0 , 0 , 16, - 0xfc00 , 0x3800 , &NMD::BALC_16_ , 0, + 0xfc00 , 0x3800 , &BALC_16_ , 0, 0x0 }, /* BALC[16] */ { reserved_block , 0 , 0 , 16, 0xfc00 , 0x5800 , 0 , 0, @@ -22308,10 +22308,10 @@ NMD::Pool NMD::P16[32] = { 0xfc00 , 0x7800 , 0 , 0, 0x0 }, /* P16~*(14) */ { branch_instruction , 0 , 0 , 16, - 0xfc00 , 0x9800 , &NMD::BEQZC_16_ , 0, + 0xfc00 , 0x9800 , &BEQZC_16_ , 0, 0x0 }, /* BEQZC[16] */ { branch_instruction , 0 , 0 , 16, - 0xfc00 , 0xb800 , &NMD::BNEZC_16_ , 0, + 0xfc00 , 0xb800 , &BNEZC_16_ , 0, 0x0 }, /* BNEZC[16] */ { pool , P16_BR , 2 , 16, 0xfc00 , 0xd800 , 0 , 0, @@ -22335,13 +22335,13 @@ NMD::Pool NMD::P16[32] = { 0xfc00 , 0x9c00 , 0 , 0, 0x0 }, /* P16~*(19) */ { instruction , 0 , 0 , 16, - 0xfc00 , 0xbc00 , &NMD::MOVEP , 0, + 0xfc00 , 0xbc00 , &MOVEP , 0, XMMS_ }, /* MOVEP */ { reserved_block , 0 , 0 , 16, 0xfc00 , 0xdc00 , 0 , 0, 0x0 }, /* P16~*(27) */ { instruction , 0 , 0 , 16, - 0xfc00 , 0xfc00 , &NMD::MOVEP_REV_ , 0, + 0xfc00 , 0xfc00 , &MOVEP_REV_ , 0, XMMS_ }, /* MOVEP[REV] */ }; diff --git a/disas/nanomips.h b/disas/nanomips.h index af803f4cc0..7036e589f4 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -65,6 +65,8 @@ typedef struct Dis_info { } Dis_info; typedef bool (*conditional_function)(uint64 instruction); +typedef std::string (*disassembly_function)(uint64 instruction, + Dis_info *info); class NMD { @@ -75,9 +77,6 @@ public: private: - typedef std::string(NMD:: *disassembly_function)(uint64 instruction, - Dis_info *info); - struct Pool { TABLE_ENTRY_TYPE type; struct Pool *next_table; @@ -95,643 +94,6 @@ private: TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, Dis_info *info); - std::string ABS_D(uint64 instruction, Dis_info *info); - std::string ABS_S(uint64 instruction, Dis_info *info); - std::string ABSQ_S_PH(uint64 instruction, Dis_info *info); - std::string ABSQ_S_QB(uint64 instruction, Dis_info *info); - std::string ABSQ_S_W(uint64 instruction, Dis_info *info); - std::string ACLR(uint64 instruction, Dis_info *info); - std::string ADD(uint64 instruction, Dis_info *info); - std::string ADD_D(uint64 instruction, Dis_info *info); - std::string ADD_S(uint64 instruction, Dis_info *info); - std::string ADDIU_32_(uint64 instruction, Dis_info *info); - std::string ADDIU_48_(uint64 instruction, Dis_info *info); - std::string ADDIU_GP48_(uint64 instruction, Dis_info *info); - std::string ADDIU_GP_B_(uint64 instruction, Dis_info *info); - std::string ADDIU_GP_W_(uint64 instruction, Dis_info *info); - std::string ADDIU_NEG_(uint64 instruction, Dis_info *info); - std::string ADDIU_R1_SP_(uint64 instruction, Dis_info *info); - std::string ADDIU_R2_(uint64 instruction, Dis_info *info); - std::string ADDIU_RS5_(uint64 instruction, Dis_info *info); - std::string ADDIUPC_32_(uint64 instruction, Dis_info *info); - std::string ADDIUPC_48_(uint64 instruction, Dis_info *info); - std::string ADDQ_PH(uint64 instruction, Dis_info *info); - std::string ADDQ_S_PH(uint64 instruction, Dis_info *info); - std::string ADDQ_S_W(uint64 instruction, Dis_info *info); - std::string ADDQH_PH(uint64 instruction, Dis_info *info); - std::string ADDQH_R_PH(uint64 instruction, Dis_info *info); - std::string ADDQH_R_W(uint64 instruction, Dis_info *info); - std::string ADDQH_W(uint64 instruction, Dis_info *info); - std::string ADDSC(uint64 instruction, Dis_info *info); - std::string ADDU_16_(uint64 instruction, Dis_info *info); - std::string ADDU_32_(uint64 instruction, Dis_info *info); - std::string ADDU_4X4_(uint64 instruction, Dis_info *info); - std::string ADDU_PH(uint64 instruction, Dis_info *info); - std::string ADDU_QB(uint64 instruction, Dis_info *info); - std::string ADDU_S_PH(uint64 instruction, Dis_info *info); - std::string ADDU_S_QB(uint64 instruction, Dis_info *info); - std::string ADDUH_QB(uint64 instruction, Dis_info *info); - std::string ADDUH_R_QB(uint64 instruction, Dis_info *info); - std::string ADDWC(uint64 instruction, Dis_info *info); - std::string ALUIPC(uint64 instruction, Dis_info *info); - std::string AND_16_(uint64 instruction, Dis_info *info); - std::string AND_32_(uint64 instruction, Dis_info *info); - std::string ANDI_16_(uint64 instruction, Dis_info *info); - std::string ANDI_32_(uint64 instruction, Dis_info *info); - std::string APPEND(uint64 instruction, Dis_info *info); - std::string ASET(uint64 instruction, Dis_info *info); - std::string BALC_16_(uint64 instruction, Dis_info *info); - std::string BALC_32_(uint64 instruction, Dis_info *info); - std::string BALRSC(uint64 instruction, Dis_info *info); - std::string BBEQZC(uint64 instruction, Dis_info *info); - std::string BBNEZC(uint64 instruction, Dis_info *info); - std::string BC_16_(uint64 instruction, Dis_info *info); - std::string BC_32_(uint64 instruction, Dis_info *info); - std::string BC1EQZC(uint64 instruction, Dis_info *info); - std::string BC1NEZC(uint64 instruction, Dis_info *info); - std::string BC2EQZC(uint64 instruction, Dis_info *info); - std::string BC2NEZC(uint64 instruction, Dis_info *info); - std::string BEQC_16_(uint64 instruction, Dis_info *info); - std::string BEQC_32_(uint64 instruction, Dis_info *info); - std::string BEQIC(uint64 instruction, Dis_info *info); - std::string BEQZC_16_(uint64 instruction, Dis_info *info); - std::string BGEC(uint64 instruction, Dis_info *info); - std::string BGEIC(uint64 instruction, Dis_info *info); - std::string BGEIUC(uint64 instruction, Dis_info *info); - std::string BGEUC(uint64 instruction, Dis_info *info); - std::string BLTC(uint64 instruction, Dis_info *info); - std::string BLTIC(uint64 instruction, Dis_info *info); - std::string BLTIUC(uint64 instruction, Dis_info *info); - std::string BLTUC(uint64 instruction, Dis_info *info); - std::string BNEC_16_(uint64 instruction, Dis_info *info); - std::string BNEC_32_(uint64 instruction, Dis_info *info); - std::string BNEIC(uint64 instruction, Dis_info *info); - std::string BNEZC_16_(uint64 instruction, Dis_info *info); - std::string BPOSGE32C(uint64 instruction, Dis_info *info); - std::string BREAK_16_(uint64 instruction, Dis_info *info); - std::string BREAK_32_(uint64 instruction, Dis_info *info); - std::string BRSC(uint64 instruction, Dis_info *info); - std::string CACHE(uint64 instruction, Dis_info *info); - std::string CACHEE(uint64 instruction, Dis_info *info); - std::string CEIL_L_D(uint64 instruction, Dis_info *info); - std::string CEIL_L_S(uint64 instruction, Dis_info *info); - std::string CEIL_W_D(uint64 instruction, Dis_info *info); - std::string CEIL_W_S(uint64 instruction, Dis_info *info); - std::string CFC1(uint64 instruction, Dis_info *info); - std::string CFC2(uint64 instruction, Dis_info *info); - std::string CLASS_D(uint64 instruction, Dis_info *info); - std::string CLASS_S(uint64 instruction, Dis_info *info); - std::string CLO(uint64 instruction, Dis_info *info); - std::string CLZ(uint64 instruction, Dis_info *info); - std::string CMP_AF_D(uint64 instruction, Dis_info *info); - std::string CMP_AF_S(uint64 instruction, Dis_info *info); - std::string CMP_EQ_D(uint64 instruction, Dis_info *info); - std::string CMP_EQ_PH(uint64 instruction, Dis_info *info); - std::string CMP_EQ_S(uint64 instruction, Dis_info *info); - std::string CMP_LE_D(uint64 instruction, Dis_info *info); - std::string CMP_LE_PH(uint64 instruction, Dis_info *info); - std::string CMP_LE_S(uint64 instruction, Dis_info *info); - std::string CMP_LT_D(uint64 instruction, Dis_info *info); - std::string CMP_LT_PH(uint64 instruction, Dis_info *info); - std::string CMP_LT_S(uint64 instruction, Dis_info *info); - std::string CMP_NE_D(uint64 instruction, Dis_info *info); - std::string CMP_NE_S(uint64 instruction, Dis_info *info); - std::string CMP_OR_D(uint64 instruction, Dis_info *info); - std::string CMP_OR_S(uint64 instruction, Dis_info *info); - std::string CMP_SAF_D(uint64 instruction, Dis_info *info); - std::string CMP_SAF_S(uint64 instruction, Dis_info *info); - std::string CMP_SEQ_D(uint64 instruction, Dis_info *info); - std::string CMP_SEQ_S(uint64 instruction, Dis_info *info); - std::string CMP_SLE_D(uint64 instruction, Dis_info *info); - std::string CMP_SLE_S(uint64 instruction, Dis_info *info); - std::string CMP_SLT_D(uint64 instruction, Dis_info *info); - std::string CMP_SLT_S(uint64 instruction, Dis_info *info); - std::string CMP_SNE_D(uint64 instruction, Dis_info *info); - std::string CMP_SNE_S(uint64 instruction, Dis_info *info); - std::string CMP_SOR_D(uint64 instruction, Dis_info *info); - std::string CMP_SOR_S(uint64 instruction, Dis_info *info); - std::string CMP_SUEQ_D(uint64 instruction, Dis_info *info); - std::string CMP_SUEQ_S(uint64 instruction, Dis_info *info); - std::string CMP_SULE_D(uint64 instruction, Dis_info *info); - std::string CMP_SULE_S(uint64 instruction, Dis_info *info); - std::string CMP_SULT_D(uint64 instruction, Dis_info *info); - std::string CMP_SULT_S(uint64 instruction, Dis_info *info); - std::string CMP_SUN_D(uint64 instruction, Dis_info *info); - std::string CMP_SUN_S(uint64 instruction, Dis_info *info); - std::string CMP_SUNE_D(uint64 instruction, Dis_info *info); - std::string CMP_SUNE_S(uint64 instruction, Dis_info *info); - std::string CMP_UEQ_D(uint64 instruction, Dis_info *info); - std::string CMP_UEQ_S(uint64 instruction, Dis_info *info); - std::string CMP_ULE_D(uint64 instruction, Dis_info *info); - std::string CMP_ULE_S(uint64 instruction, Dis_info *info); - std::string CMP_ULT_D(uint64 instruction, Dis_info *info); - std::string CMP_ULT_S(uint64 instruction, Dis_info *info); - std::string CMP_UN_D(uint64 instruction, Dis_info *info); - std::string CMP_UN_S(uint64 instruction, Dis_info *info); - std::string CMP_UNE_D(uint64 instruction, Dis_info *info); - std::string CMP_UNE_S(uint64 instruction, Dis_info *info); - std::string CMPGDU_EQ_QB(uint64 instruction, Dis_info *info); - std::string CMPGDU_LE_QB(uint64 instruction, Dis_info *info); - std::string CMPGDU_LT_QB(uint64 instruction, Dis_info *info); - std::string CMPGU_EQ_QB(uint64 instruction, Dis_info *info); - std::string CMPGU_LE_QB(uint64 instruction, Dis_info *info); - std::string CMPGU_LT_QB(uint64 instruction, Dis_info *info); - std::string CMPU_EQ_QB(uint64 instruction, Dis_info *info); - std::string CMPU_LE_QB(uint64 instruction, Dis_info *info); - std::string CMPU_LT_QB(uint64 instruction, Dis_info *info); - std::string COP2_1(uint64 instruction, Dis_info *info); - std::string CTC1(uint64 instruction, Dis_info *info); - std::string CTC2(uint64 instruction, Dis_info *info); - std::string CVT_D_L(uint64 instruction, Dis_info *info); - std::string CVT_D_S(uint64 instruction, Dis_info *info); - std::string CVT_D_W(uint64 instruction, Dis_info *info); - std::string CVT_L_D(uint64 instruction, Dis_info *info); - std::string CVT_L_S(uint64 instruction, Dis_info *info); - std::string CVT_S_D(uint64 instruction, Dis_info *info); - std::string CVT_S_L(uint64 instruction, Dis_info *info); - std::string CVT_S_PL(uint64 instruction, Dis_info *info); - std::string CVT_S_PU(uint64 instruction, Dis_info *info); - std::string CVT_S_W(uint64 instruction, Dis_info *info); - std::string CVT_W_D(uint64 instruction, Dis_info *info); - std::string CVT_W_S(uint64 instruction, Dis_info *info); - std::string DADDIU_48_(uint64 instruction, Dis_info *info); - std::string DADDIU_NEG_(uint64 instruction, Dis_info *info); - std::string DADDIU_U12_(uint64 instruction, Dis_info *info); - std::string DADD(uint64 instruction, Dis_info *info); - std::string DADDU(uint64 instruction, Dis_info *info); - std::string DCLO(uint64 instruction, Dis_info *info); - std::string DCLZ(uint64 instruction, Dis_info *info); - std::string DDIV(uint64 instruction, Dis_info *info); - std::string DDIVU(uint64 instruction, Dis_info *info); - std::string DERET(uint64 instruction, Dis_info *info); - std::string DEXTM(uint64 instruction, Dis_info *info); - std::string DEXT(uint64 instruction, Dis_info *info); - std::string DEXTU(uint64 instruction, Dis_info *info); - std::string DINSM(uint64 instruction, Dis_info *info); - std::string DINS(uint64 instruction, Dis_info *info); - std::string DINSU(uint64 instruction, Dis_info *info); - std::string DI(uint64 instruction, Dis_info *info); - std::string DIV(uint64 instruction, Dis_info *info); - std::string DIV_D(uint64 instruction, Dis_info *info); - std::string DIV_S(uint64 instruction, Dis_info *info); - std::string DIVU(uint64 instruction, Dis_info *info); - std::string DLSA(uint64 instruction, Dis_info *info); - std::string DLUI_48_(uint64 instruction, Dis_info *info); - std::string DMFC0(uint64 instruction, Dis_info *info); - std::string DMFC1(uint64 instruction, Dis_info *info); - std::string DMFC2(uint64 instruction, Dis_info *info); - std::string DMFGC0(uint64 instruction, Dis_info *info); - std::string DMOD(uint64 instruction, Dis_info *info); - std::string DMODU(uint64 instruction, Dis_info *info); - std::string DMTC0(uint64 instruction, Dis_info *info); - std::string DMTC1(uint64 instruction, Dis_info *info); - std::string DMTC2(uint64 instruction, Dis_info *info); - std::string DMTGC0(uint64 instruction, Dis_info *info); - std::string DMT(uint64 instruction, Dis_info *info); - std::string DMUH(uint64 instruction, Dis_info *info); - std::string DMUHU(uint64 instruction, Dis_info *info); - std::string DMUL(uint64 instruction, Dis_info *info); - std::string DMULU(uint64 instruction, Dis_info *info); - std::string DPAQ_S_W_PH(uint64 instruction, Dis_info *info); - std::string DPAQ_SA_L_W(uint64 instruction, Dis_info *info); - std::string DPAQX_S_W_PH(uint64 instruction, Dis_info *info); - std::string DPAQX_SA_W_PH(uint64 instruction, Dis_info *info); - std::string DPAU_H_QBL(uint64 instruction, Dis_info *info); - std::string DPAU_H_QBR(uint64 instruction, Dis_info *info); - std::string DPA_W_PH(uint64 instruction, Dis_info *info); - std::string DPAX_W_PH(uint64 instruction, Dis_info *info); - std::string DPS_W_PH(uint64 instruction, Dis_info *info); - std::string DPSQ_SA_L_W(uint64 instruction, Dis_info *info); - std::string DPSQ_S_W_PH(uint64 instruction, Dis_info *info); - std::string DPSQX_SA_W_PH(uint64 instruction, Dis_info *info); - std::string DPSQX_S_W_PH(uint64 instruction, Dis_info *info); - std::string DPSU_H_QBL(uint64 instruction, Dis_info *info); - std::string DPSU_H_QBR(uint64 instruction, Dis_info *info); - std::string DPSX_W_PH(uint64 instruction, Dis_info *info); - std::string DROTR(uint64 instruction, Dis_info *info); - std::string DROTR32(uint64 instruction, Dis_info *info); - std::string DROTRV(uint64 instruction, Dis_info *info); - std::string DROTX(uint64 instruction, Dis_info *info); - std::string DSLL(uint64 instruction, Dis_info *info); - std::string DSLL32(uint64 instruction, Dis_info *info); - std::string DSLLV(uint64 instruction, Dis_info *info); - std::string DSRA(uint64 instruction, Dis_info *info); - std::string DSRA32(uint64 instruction, Dis_info *info); - std::string DSRAV(uint64 instruction, Dis_info *info); - std::string DSRL32(uint64 instruction, Dis_info *info); - std::string DSRL(uint64 instruction, Dis_info *info); - std::string DSRLV(uint64 instruction, Dis_info *info); - std::string DSUB(uint64 instruction, Dis_info *info); - std::string DSUBU(uint64 instruction, Dis_info *info); - std::string DVP(uint64 instruction, Dis_info *info); - std::string DVPE(uint64 instruction, Dis_info *info); - std::string EHB(uint64 instruction, Dis_info *info); - std::string EI(uint64 instruction, Dis_info *info); - std::string EMT(uint64 instruction, Dis_info *info); - std::string ERET(uint64 instruction, Dis_info *info); - std::string ERETNC(uint64 instruction, Dis_info *info); - std::string EVP(uint64 instruction, Dis_info *info); - std::string EVPE(uint64 instruction, Dis_info *info); - std::string EXT(uint64 instruction, Dis_info *info); - std::string EXTD(uint64 instruction, Dis_info *info); - std::string EXTD32(uint64 instruction, Dis_info *info); - std::string EXTP(uint64 instruction, Dis_info *info); - std::string EXTPDP(uint64 instruction, Dis_info *info); - std::string EXTPDPV(uint64 instruction, Dis_info *info); - std::string EXTPV(uint64 instruction, Dis_info *info); - std::string EXTR_RS_W(uint64 instruction, Dis_info *info); - std::string EXTR_R_W(uint64 instruction, Dis_info *info); - std::string EXTR_S_H(uint64 instruction, Dis_info *info); - std::string EXTR_W(uint64 instruction, Dis_info *info); - std::string EXTRV_R_W(uint64 instruction, Dis_info *info); - std::string EXTRV_RS_W(uint64 instruction, Dis_info *info); - std::string EXTRV_S_H(uint64 instruction, Dis_info *info); - std::string EXTRV_W(uint64 instruction, Dis_info *info); - std::string EXTW(uint64 instruction, Dis_info *info); - std::string FLOOR_L_D(uint64 instruction, Dis_info *info); - std::string FLOOR_L_S(uint64 instruction, Dis_info *info); - std::string FLOOR_W_D(uint64 instruction, Dis_info *info); - std::string FLOOR_W_S(uint64 instruction, Dis_info *info); - std::string FORK(uint64 instruction, Dis_info *info); - std::string HYPCALL(uint64 instruction, Dis_info *info); - std::string HYPCALL_16_(uint64 instruction, Dis_info *info); - std::string INS(uint64 instruction, Dis_info *info); - std::string INSV(uint64 instruction, Dis_info *info); - std::string IRET(uint64 instruction, Dis_info *info); - std::string JALRC_16_(uint64 instruction, Dis_info *info); - std::string JALRC_32_(uint64 instruction, Dis_info *info); - std::string JALRC_HB(uint64 instruction, Dis_info *info); - std::string JRC(uint64 instruction, Dis_info *info); - std::string LB_16_(uint64 instruction, Dis_info *info); - std::string LB_GP_(uint64 instruction, Dis_info *info); - std::string LB_S9_(uint64 instruction, Dis_info *info); - std::string LB_U12_(uint64 instruction, Dis_info *info); - std::string LBE(uint64 instruction, Dis_info *info); - std::string LBU_16_(uint64 instruction, Dis_info *info); - std::string LBU_GP_(uint64 instruction, Dis_info *info); - std::string LBU_S9_(uint64 instruction, Dis_info *info); - std::string LBU_U12_(uint64 instruction, Dis_info *info); - std::string LBUE(uint64 instruction, Dis_info *info); - std::string LBUX(uint64 instruction, Dis_info *info); - std::string LBX(uint64 instruction, Dis_info *info); - std::string LD_GP_(uint64 instruction, Dis_info *info); - std::string LD_S9_(uint64 instruction, Dis_info *info); - std::string LD_U12_(uint64 instruction, Dis_info *info); - std::string LDC1_GP_(uint64 instruction, Dis_info *info); - std::string LDC1_S9_(uint64 instruction, Dis_info *info); - std::string LDC1_U12_(uint64 instruction, Dis_info *info); - std::string LDC1X(uint64 instruction, Dis_info *info); - std::string LDC1XS(uint64 instruction, Dis_info *info); - std::string LDC2(uint64 instruction, Dis_info *info); - std::string LDM(uint64 instruction, Dis_info *info); - std::string LDPC_48_(uint64 instruction, Dis_info *info); - std::string LDX(uint64 instruction, Dis_info *info); - std::string LDXS(uint64 instruction, Dis_info *info); - std::string LH_16_(uint64 instruction, Dis_info *info); - std::string LH_GP_(uint64 instruction, Dis_info *info); - std::string LH_S9_(uint64 instruction, Dis_info *info); - std::string LH_U12_(uint64 instruction, Dis_info *info); - std::string LHE(uint64 instruction, Dis_info *info); - std::string LHU_16_(uint64 instruction, Dis_info *info); - std::string LHU_GP_(uint64 instruction, Dis_info *info); - std::string LHU_S9_(uint64 instruction, Dis_info *info); - std::string LHU_U12_(uint64 instruction, Dis_info *info); - std::string LHUE(uint64 instruction, Dis_info *info); - std::string LHUX(uint64 instruction, Dis_info *info); - std::string LHUXS(uint64 instruction, Dis_info *info); - std::string LHX(uint64 instruction, Dis_info *info); - std::string LHXS(uint64 instruction, Dis_info *info); - std::string LI_16_(uint64 instruction, Dis_info *info); - std::string LI_48_(uint64 instruction, Dis_info *info); - std::string LL(uint64 instruction, Dis_info *info); - std::string LLD(uint64 instruction, Dis_info *info); - std::string LLDP(uint64 instruction, Dis_info *info); - std::string LLE(uint64 instruction, Dis_info *info); - std::string LLWP(uint64 instruction, Dis_info *info); - std::string LLWPE(uint64 instruction, Dis_info *info); - std::string LSA(uint64 instruction, Dis_info *info); - std::string LUI(uint64 instruction, Dis_info *info); - std::string LW_16_(uint64 instruction, Dis_info *info); - std::string LW_4X4_(uint64 instruction, Dis_info *info); - std::string LWC1_GP_(uint64 instruction, Dis_info *info); - std::string LWC1_S9_(uint64 instruction, Dis_info *info); - std::string LWC1_U12_(uint64 instruction, Dis_info *info); - std::string LWC1X(uint64 instruction, Dis_info *info); - std::string LWC1XS(uint64 instruction, Dis_info *info); - std::string LWC2(uint64 instruction, Dis_info *info); - std::string LWE(uint64 instruction, Dis_info *info); - std::string LW_GP_(uint64 instruction, Dis_info *info); - std::string LW_GP16_(uint64 instruction, Dis_info *info); - std::string LWM(uint64 instruction, Dis_info *info); - std::string LWPC_48_(uint64 instruction, Dis_info *info); - std::string LW_S9_(uint64 instruction, Dis_info *info); - std::string LW_SP_(uint64 instruction, Dis_info *info); - std::string LW_U12_(uint64 instruction, Dis_info *info); - std::string LWU_GP_(uint64 instruction, Dis_info *info); - std::string LWU_S9_(uint64 instruction, Dis_info *info); - std::string LWU_U12_(uint64 instruction, Dis_info *info); - std::string LWUX(uint64 instruction, Dis_info *info); - std::string LWUXS(uint64 instruction, Dis_info *info); - std::string LWX(uint64 instruction, Dis_info *info); - std::string LWXS_16_(uint64 instruction, Dis_info *info); - std::string LWXS_32_(uint64 instruction, Dis_info *info); - std::string MADD_DSP_(uint64 instruction, Dis_info *info); - std::string MADDF_D(uint64 instruction, Dis_info *info); - std::string MADDF_S(uint64 instruction, Dis_info *info); - std::string MADDU_DSP_(uint64 instruction, Dis_info *info); - std::string MAQ_S_W_PHL(uint64 instruction, Dis_info *info); - std::string MAQ_S_W_PHR(uint64 instruction, Dis_info *info); - std::string MAQ_SA_W_PHL(uint64 instruction, Dis_info *info); - std::string MAQ_SA_W_PHR(uint64 instruction, Dis_info *info); - std::string MAX_D(uint64 instruction, Dis_info *info); - std::string MAX_S(uint64 instruction, Dis_info *info); - std::string MAXA_D(uint64 instruction, Dis_info *info); - std::string MAXA_S(uint64 instruction, Dis_info *info); - std::string MFC0(uint64 instruction, Dis_info *info); - std::string MFC1(uint64 instruction, Dis_info *info); - std::string MFC2(uint64 instruction, Dis_info *info); - std::string MFGC0(uint64 instruction, Dis_info *info); - std::string MFHC0(uint64 instruction, Dis_info *info); - std::string MFHC1(uint64 instruction, Dis_info *info); - std::string MFHC2(uint64 instruction, Dis_info *info); - std::string MFHGC0(uint64 instruction, Dis_info *info); - std::string MFHI_DSP_(uint64 instruction, Dis_info *info); - std::string MFHTR(uint64 instruction, Dis_info *info); - std::string MFLO_DSP_(uint64 instruction, Dis_info *info); - std::string MFTR(uint64 instruction, Dis_info *info); - std::string MIN_D(uint64 instruction, Dis_info *info); - std::string MIN_S(uint64 instruction, Dis_info *info); - std::string MINA_D(uint64 instruction, Dis_info *info); - std::string MINA_S(uint64 instruction, Dis_info *info); - std::string MOD(uint64 instruction, Dis_info *info); - std::string MODSUB(uint64 instruction, Dis_info *info); - std::string MODU(uint64 instruction, Dis_info *info); - std::string MOV_D(uint64 instruction, Dis_info *info); - std::string MOV_S(uint64 instruction, Dis_info *info); - std::string MOVE_BALC(uint64 instruction, Dis_info *info); - std::string MOVEP(uint64 instruction, Dis_info *info); - std::string MOVEP_REV_(uint64 instruction, Dis_info *info); - std::string MOVE(uint64 instruction, Dis_info *info); - std::string MOVN(uint64 instruction, Dis_info *info); - std::string MOVZ(uint64 instruction, Dis_info *info); - std::string MSUB_DSP_(uint64 instruction, Dis_info *info); - std::string MSUBF_D(uint64 instruction, Dis_info *info); - std::string MSUBF_S(uint64 instruction, Dis_info *info); - std::string MSUBU_DSP_(uint64 instruction, Dis_info *info); - std::string MTC0(uint64 instruction, Dis_info *info); - std::string MTC1(uint64 instruction, Dis_info *info); - std::string MTC2(uint64 instruction, Dis_info *info); - std::string MTGC0(uint64 instruction, Dis_info *info); - std::string MTHC0(uint64 instruction, Dis_info *info); - std::string MTHC1(uint64 instruction, Dis_info *info); - std::string MTHC2(uint64 instruction, Dis_info *info); - std::string MTHGC0(uint64 instruction, Dis_info *info); - std::string MTHI_DSP_(uint64 instruction, Dis_info *info); - std::string MTHLIP(uint64 instruction, Dis_info *info); - std::string MTHTR(uint64 instruction, Dis_info *info); - std::string MTLO_DSP_(uint64 instruction, Dis_info *info); - std::string MTTR(uint64 instruction, Dis_info *info); - std::string MUH(uint64 instruction, Dis_info *info); - std::string MUHU(uint64 instruction, Dis_info *info); - std::string MUL_32_(uint64 instruction, Dis_info *info); - std::string MUL_4X4_(uint64 instruction, Dis_info *info); - std::string MUL_D(uint64 instruction, Dis_info *info); - std::string MUL_PH(uint64 instruction, Dis_info *info); - std::string MUL_S(uint64 instruction, Dis_info *info); - std::string MUL_S_PH(uint64 instruction, Dis_info *info); - std::string MULEQ_S_W_PHL(uint64 instruction, Dis_info *info); - std::string MULEQ_S_W_PHR(uint64 instruction, Dis_info *info); - std::string MULEU_S_PH_QBL(uint64 instruction, Dis_info *info); - std::string MULEU_S_PH_QBR(uint64 instruction, Dis_info *info); - std::string MULQ_RS_PH(uint64 instruction, Dis_info *info); - std::string MULQ_RS_W(uint64 instruction, Dis_info *info); - std::string MULQ_S_PH(uint64 instruction, Dis_info *info); - std::string MULQ_S_W(uint64 instruction, Dis_info *info); - std::string MULSA_W_PH(uint64 instruction, Dis_info *info); - std::string MULSAQ_S_W_PH(uint64 instruction, Dis_info *info); - std::string MULT_DSP_(uint64 instruction, Dis_info *info); - std::string MULTU_DSP_(uint64 instruction, Dis_info *info); - std::string MULU(uint64 instruction, Dis_info *info); - std::string NEG_D(uint64 instruction, Dis_info *info); - std::string NEG_S(uint64 instruction, Dis_info *info); - std::string NOP_16_(uint64 instruction, Dis_info *info); - std::string NOP_32_(uint64 instruction, Dis_info *info); - std::string NOR(uint64 instruction, Dis_info *info); - std::string NOT_16_(uint64 instruction, Dis_info *info); - std::string OR_16_(uint64 instruction, Dis_info *info); - std::string OR_32_(uint64 instruction, Dis_info *info); - std::string ORI(uint64 instruction, Dis_info *info); - std::string PACKRL_PH(uint64 instruction, Dis_info *info); - std::string PAUSE(uint64 instruction, Dis_info *info); - std::string PICK_PH(uint64 instruction, Dis_info *info); - std::string PICK_QB(uint64 instruction, Dis_info *info); - std::string PRECEQ_W_PHL(uint64 instruction, Dis_info *info); - std::string PRECEQ_W_PHR(uint64 instruction, Dis_info *info); - std::string PRECEQU_PH_QBL(uint64 instruction, Dis_info *info); - std::string PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info); - std::string PRECEQU_PH_QBR(uint64 instruction, Dis_info *info); - std::string PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info); - std::string PRECEU_PH_QBL(uint64 instruction, Dis_info *info); - std::string PRECEU_PH_QBLA(uint64 instruction, Dis_info *info); - std::string PRECEU_PH_QBR(uint64 instruction, Dis_info *info); - std::string PRECEU_PH_QBRA(uint64 instruction, Dis_info *info); - std::string PRECR_QB_PH(uint64 instruction, Dis_info *info); - std::string PRECR_SRA_PH_W(uint64 instruction, Dis_info *info); - std::string PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info); - std::string PRECRQ_PH_W(uint64 instruction, Dis_info *info); - std::string PRECRQ_QB_PH(uint64 instruction, Dis_info *info); - std::string PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info); - std::string PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info); - std::string PREF_S9_(uint64 instruction, Dis_info *info); - std::string PREF_U12_(uint64 instruction, Dis_info *info); - std::string PREFE(uint64 instruction, Dis_info *info); - std::string PREPEND(uint64 instruction, Dis_info *info); - std::string RADDU_W_QB(uint64 instruction, Dis_info *info); - std::string RDDSP(uint64 instruction, Dis_info *info); - std::string RDHWR(uint64 instruction, Dis_info *info); - std::string RDPGPR(uint64 instruction, Dis_info *info); - std::string RECIP_D(uint64 instruction, Dis_info *info); - std::string RECIP_S(uint64 instruction, Dis_info *info); - std::string REPL_PH(uint64 instruction, Dis_info *info); - std::string REPL_QB(uint64 instruction, Dis_info *info); - std::string REPLV_PH(uint64 instruction, Dis_info *info); - std::string REPLV_QB(uint64 instruction, Dis_info *info); - std::string RESTORE_32_(uint64 instruction, Dis_info *info); - std::string RESTORE_JRC_16_(uint64 instruction, Dis_info *info); - std::string RESTORE_JRC_32_(uint64 instruction, Dis_info *info); - std::string RESTOREF(uint64 instruction, Dis_info *info); - std::string RINT_D(uint64 instruction, Dis_info *info); - std::string RINT_S(uint64 instruction, Dis_info *info); - std::string ROTR(uint64 instruction, Dis_info *info); - std::string ROTRV(uint64 instruction, Dis_info *info); - std::string ROTX(uint64 instruction, Dis_info *info); - std::string ROUND_L_D(uint64 instruction, Dis_info *info); - std::string ROUND_L_S(uint64 instruction, Dis_info *info); - std::string ROUND_W_D(uint64 instruction, Dis_info *info); - std::string ROUND_W_S(uint64 instruction, Dis_info *info); - std::string RSQRT_D(uint64 instruction, Dis_info *info); - std::string RSQRT_S(uint64 instruction, Dis_info *info); - std::string SAVE_16_(uint64 instruction, Dis_info *info); - std::string SAVE_32_(uint64 instruction, Dis_info *info); - std::string SAVEF(uint64 instruction, Dis_info *info); - std::string SB_16_(uint64 instruction, Dis_info *info); - std::string SB_GP_(uint64 instruction, Dis_info *info); - std::string SB_S9_(uint64 instruction, Dis_info *info); - std::string SB_U12_(uint64 instruction, Dis_info *info); - std::string SBE(uint64 instruction, Dis_info *info); - std::string SBX(uint64 instruction, Dis_info *info); - std::string SC(uint64 instruction, Dis_info *info); - std::string SCD(uint64 instruction, Dis_info *info); - std::string SCDP(uint64 instruction, Dis_info *info); - std::string SCE(uint64 instruction, Dis_info *info); - std::string SCWP(uint64 instruction, Dis_info *info); - std::string SCWPE(uint64 instruction, Dis_info *info); - std::string SD_GP_(uint64 instruction, Dis_info *info); - std::string SD_S9_(uint64 instruction, Dis_info *info); - std::string SD_U12_(uint64 instruction, Dis_info *info); - std::string SDBBP_16_(uint64 instruction, Dis_info *info); - std::string SDBBP_32_(uint64 instruction, Dis_info *info); - std::string SDC1_GP_(uint64 instruction, Dis_info *info); - std::string SDC1_S9_(uint64 instruction, Dis_info *info); - std::string SDC1_U12_(uint64 instruction, Dis_info *info); - std::string SDC1X(uint64 instruction, Dis_info *info); - std::string SDC1XS(uint64 instruction, Dis_info *info); - std::string SDC2(uint64 instruction, Dis_info *info); - std::string SDM(uint64 instruction, Dis_info *info); - std::string SDPC_48_(uint64 instruction, Dis_info *info); - std::string SDX(uint64 instruction, Dis_info *info); - std::string SDXS(uint64 instruction, Dis_info *info); - std::string SEB(uint64 instruction, Dis_info *info); - std::string SEH(uint64 instruction, Dis_info *info); - std::string SEL_D(uint64 instruction, Dis_info *info); - std::string SEL_S(uint64 instruction, Dis_info *info); - std::string SELEQZ_D(uint64 instruction, Dis_info *info); - std::string SELEQZ_S(uint64 instruction, Dis_info *info); - std::string SELNEZ_D(uint64 instruction, Dis_info *info); - std::string SELNEZ_S(uint64 instruction, Dis_info *info); - std::string SEQI(uint64 instruction, Dis_info *info); - std::string SH_16_(uint64 instruction, Dis_info *info); - std::string SH_GP_(uint64 instruction, Dis_info *info); - std::string SH_S9_(uint64 instruction, Dis_info *info); - std::string SH_U12_(uint64 instruction, Dis_info *info); - std::string SHE(uint64 instruction, Dis_info *info); - std::string SHILO(uint64 instruction, Dis_info *info); - std::string SHILOV(uint64 instruction, Dis_info *info); - std::string SHLL_PH(uint64 instruction, Dis_info *info); - std::string SHLL_QB(uint64 instruction, Dis_info *info); - std::string SHLL_S_PH(uint64 instruction, Dis_info *info); - std::string SHLL_S_W(uint64 instruction, Dis_info *info); - std::string SHLLV_PH(uint64 instruction, Dis_info *info); - std::string SHLLV_QB(uint64 instruction, Dis_info *info); - std::string SHLLV_S_PH(uint64 instruction, Dis_info *info); - std::string SHLLV_S_W(uint64 instruction, Dis_info *info); - std::string SHRA_PH(uint64 instruction, Dis_info *info); - std::string SHRA_QB(uint64 instruction, Dis_info *info); - std::string SHRA_R_PH(uint64 instruction, Dis_info *info); - std::string SHRA_R_QB(uint64 instruction, Dis_info *info); - std::string SHRA_R_W(uint64 instruction, Dis_info *info); - std::string SHRAV_PH(uint64 instruction, Dis_info *info); - std::string SHRAV_QB(uint64 instruction, Dis_info *info); - std::string SHRAV_R_PH(uint64 instruction, Dis_info *info); - std::string SHRAV_R_QB(uint64 instruction, Dis_info *info); - std::string SHRAV_R_W(uint64 instruction, Dis_info *info); - std::string SHRL_PH(uint64 instruction, Dis_info *info); - std::string SHRL_QB(uint64 instruction, Dis_info *info); - std::string SHRLV_PH(uint64 instruction, Dis_info *info); - std::string SHRLV_QB(uint64 instruction, Dis_info *info); - std::string SHX(uint64 instruction, Dis_info *info); - std::string SHXS(uint64 instruction, Dis_info *info); - std::string SIGRIE(uint64 instruction, Dis_info *info); - std::string SLL_16_(uint64 instruction, Dis_info *info); - std::string SLL_32_(uint64 instruction, Dis_info *info); - std::string SLLV(uint64 instruction, Dis_info *info); - std::string SLT(uint64 instruction, Dis_info *info); - std::string SLTI(uint64 instruction, Dis_info *info); - std::string SLTIU(uint64 instruction, Dis_info *info); - std::string SLTU(uint64 instruction, Dis_info *info); - std::string SOV(uint64 instruction, Dis_info *info); - std::string SPECIAL2(uint64 instruction, Dis_info *info); - std::string SQRT_D(uint64 instruction, Dis_info *info); - std::string SQRT_S(uint64 instruction, Dis_info *info); - std::string SRA(uint64 instruction, Dis_info *info); - std::string SRAV(uint64 instruction, Dis_info *info); - std::string SRL_16_(uint64 instruction, Dis_info *info); - std::string SRL_32_(uint64 instruction, Dis_info *info); - std::string SRLV(uint64 instruction, Dis_info *info); - std::string SUB(uint64 instruction, Dis_info *info); - std::string SUB_D(uint64 instruction, Dis_info *info); - std::string SUB_S(uint64 instruction, Dis_info *info); - std::string SUBQ_PH(uint64 instruction, Dis_info *info); - std::string SUBQ_S_PH(uint64 instruction, Dis_info *info); - std::string SUBQ_S_W(uint64 instruction, Dis_info *info); - std::string SUBQH_PH(uint64 instruction, Dis_info *info); - std::string SUBQH_R_PH(uint64 instruction, Dis_info *info); - std::string SUBQH_R_W(uint64 instruction, Dis_info *info); - std::string SUBQH_W(uint64 instruction, Dis_info *info); - std::string SUBU_16_(uint64 instruction, Dis_info *info); - std::string SUBU_32_(uint64 instruction, Dis_info *info); - std::string SUBU_PH(uint64 instruction, Dis_info *info); - std::string SUBU_QB(uint64 instruction, Dis_info *info); - std::string SUBU_S_PH(uint64 instruction, Dis_info *info); - std::string SUBU_S_QB(uint64 instruction, Dis_info *info); - std::string SUBUH_QB(uint64 instruction, Dis_info *info); - std::string SUBUH_R_QB(uint64 instruction, Dis_info *info); - std::string SW_16_(uint64 instruction, Dis_info *info); - std::string SW_4X4_(uint64 instruction, Dis_info *info); - std::string SW_GP16_(uint64 instruction, Dis_info *info); - std::string SW_GP_(uint64 instruction, Dis_info *info); - std::string SW_S9_(uint64 instruction, Dis_info *info); - std::string SW_SP_(uint64 instruction, Dis_info *info); - std::string SW_U12_(uint64 instruction, Dis_info *info); - std::string SWC1_GP_(uint64 instruction, Dis_info *info); - std::string SWC1_S9_(uint64 instruction, Dis_info *info); - std::string SWC1_U12_(uint64 instruction, Dis_info *info); - std::string SWC1X(uint64 instruction, Dis_info *info); - std::string SWC1XS(uint64 instruction, Dis_info *info); - std::string SWC2(uint64 instruction, Dis_info *info); - std::string SWE(uint64 instruction, Dis_info *info); - std::string SWM(uint64 instruction, Dis_info *info); - std::string SWPC_48_(uint64 instruction, Dis_info *info); - std::string SWX(uint64 instruction, Dis_info *info); - std::string SWXS(uint64 instruction, Dis_info *info); - std::string SYNC(uint64 instruction, Dis_info *info); - std::string SYNCI(uint64 instruction, Dis_info *info); - std::string SYNCIE(uint64 instruction, Dis_info *info); - std::string SYSCALL_16_(uint64 instruction, Dis_info *info); - std::string SYSCALL_32_(uint64 instruction, Dis_info *info); - std::string TEQ(uint64 instruction, Dis_info *info); - std::string TLBGINV(uint64 instruction, Dis_info *info); - std::string TLBGINVF(uint64 instruction, Dis_info *info); - std::string TLBGP(uint64 instruction, Dis_info *info); - std::string TLBGR(uint64 instruction, Dis_info *info); - std::string TLBGWI(uint64 instruction, Dis_info *info); - std::string TLBGWR(uint64 instruction, Dis_info *info); - std::string TLBINV(uint64 instruction, Dis_info *info); - std::string TLBINVF(uint64 instruction, Dis_info *info); - std::string TLBP(uint64 instruction, Dis_info *info); - std::string TLBR(uint64 instruction, Dis_info *info); - std::string TLBWI(uint64 instruction, Dis_info *info); - std::string TLBWR(uint64 instruction, Dis_info *info); - std::string TNE(uint64 instruction, Dis_info *info); - std::string TRUNC_L_D(uint64 instruction, Dis_info *info); - std::string TRUNC_L_S(uint64 instruction, Dis_info *info); - std::string TRUNC_W_D(uint64 instruction, Dis_info *info); - std::string TRUNC_W_S(uint64 instruction, Dis_info *info); - std::string UALDM(uint64 instruction, Dis_info *info); - std::string UALH(uint64 instruction, Dis_info *info); - std::string UALWM(uint64 instruction, Dis_info *info); - std::string UASDM(uint64 instruction, Dis_info *info); - std::string UASH(uint64 instruction, Dis_info *info); - std::string UASWM(uint64 instruction, Dis_info *info); - std::string UDI(uint64 instruction, Dis_info *info); - std::string WAIT(uint64 instruction, Dis_info *info); - std::string WRDSP(uint64 instruction, Dis_info *info); - std::string WRPGPR(uint64 instruction, Dis_info *info); - std::string XOR_16_(uint64 instruction, Dis_info *info); - std::string XOR_32_(uint64 instruction, Dis_info *info); - std::string XORI(uint64 instruction, Dis_info *info); - std::string YIELD(uint64 instruction, Dis_info *info); - static Pool P_SYSCALL[2]; static Pool P_RI[4]; static Pool P_ADDIU[2]; From patchwork Mon Sep 12 12:26:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E3F4C6FA83 for ; Mon, 12 Sep 2022 12:44:58 +0000 (UTC) Received: from localhost ([::1]:44192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXio1-0002oW-7F for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:44:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZ3-0004S7-5g for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:25 -0400 Received: from mail-eopbgr70131.outbound.protection.outlook.com ([40.107.7.131]:5091 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiYy-0005rg-ML for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f7fNd6DjwcUSQK04ShiQCTheDBdiU70PRZHyJyQmV62F05HQR8stzYDvfSbmpiwkE9n6VOcMtO08ZTu+Qn/K9f/HxHWr8BJ+UsmE2+mjZgF++XN/5s+E9s2lNm5dVhyQqnKy3IDYUiL0Cv9VDYMSufEEwKFGRbSZkF1XKArA9DqRqj1ht1Z3CfWn3IXOk24RK468Sbv6g6hLMq8ZYKcxsMXIr4g2x5odjeTMn6Foh072Rckw6FTtTzu9yRKznoBDRS8K0Uz8j0wuRoGKO2Vjrb373o7gx6p479xQ50EtX/h757pkVKK1UEu3SPIPK/V+pz/YHQODGSgKWjyqwddXzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bXkFbpTU3VyTa6eGKkrZH3kb9jT76JJ0F5Os/gQ3+3w=; b=a1rzDBAjRtcYdWxbHKl2H3vbqEAQLgSZ64mkl9uB/6DKzp6K8X97HZdBGK0dKGv/QjsTMLNSeN7xQaBq0C1P/zPvg/A+A22+JLx5HaL0SHHQAAIS9jq+rQ6/5butUJ6U3IwSyarc544At5UvrsQRF6II7pXoQq7LPB6+DMYok5gIVEkcOs/0On3vXCH9zQvoiiPsNxwYaCdPH+UO9LbmS8u1yyvkn53Uc2Is7KHKXzlvA0zvHMkAoSkdQMVAPvyQ6IoGe/KYHNDmXA9qZfHwMw4TP+g53kjUy/N9cm0RZ8Qk31UBjRDZv8eV/+kv1NeRt4b6fU16ABFy58R78A5JqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bXkFbpTU3VyTa6eGKkrZH3kb9jT76JJ0F5Os/gQ3+3w=; b=uvcR0Q7YUs0jVC9uq3gGCSUc/qC5rJ6gZ0KEqnLbUpoAFC/WY+4dDhB55znJwFrcsmjcw/d+8dTtH4aCOkaIBdjnLKIhpbW2mBudO74Rvqhi5a9lLrpMj8n2YuQB8bDY1gxZYo7Xb6vZ3x6EG5eS9FlQj5tZc97sZVR3FImYJAM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:29:11 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:29:11 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [PATCH v3 08/24] disas/nanomips: Remove Pool tables from the class Date: Mon, 12 Sep 2022 14:26:19 +0200 Message-Id: <20220912122635.74032-9-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 20bb38c1-694c-4b19-fa43-08da94ba65a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Niq0mschArTdCYCgIF/lKvN8zOrpXbOO0KlH2J387uqVC/DSONJEuwYs7DBY3c1g5tmvRW60LYRtuHoAiSkvDYaJ+bv/wdZ8SYDgaXSs1w/43XscNxTlBGEraXny+0k6VQoSRPiOVh1VntnRl9eJgEKm+jMzuZo2Mf8R6Zf0s74o77fl3MWMccSxD7WA+q6hSZeB1pgTQgNdLcycLXvMgACt+M6UQQE+EHM3UBw4JKUkIdUoKsEoFdaTOkQ/G8C4a/KBlG0HNGwvxzUjOFpUWUdfBmzhO49+KDQX/drTmaRI7QIcWbVHat7kT4/K9c9L6yoIq5goLASxu3PuBFaU1hXG8+9uGKkg9RLN2s2JbrXuPEaHOOWHv7JJpogSd4CJNeJZ/IBPmrVKKXb2TGNXlPFk4KHPo7wDsBYvswd2Jsv937761TswOFIQ5hQjtFnrCAVL1EUSIKC4msqf8IH1gPKWzO4MvRzbr369KkF8i0DEK388bQ/3Pppbz2+YdYLs0gerGMH30RrKs0jTrujcZ/yKDWejTKALNlKR4B5qcaC3soI/HCz5qaqRFtj18aHq7IyN4G7cLWa+u5qJpfk9EI7B586H7ygIH6Cy4zKevkJZKIo1GUfl5bFMZYqzLtYrDR2X8JkGiNCcxpNtpzUjiYXK3gwsJUkH8AppX6R3ROQbLkxCs24IC7E3IBJT9UouwHFCyBMIIRnNi8wOXuvgG5/vv97mIyvbLYw3IS6CznQnB4p8bI+b+TiaJh0XiFiW X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(30864003)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(54906003)(5660300002)(7416002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?d12O2tdljVgs68Z2OrF0dXh/KARH?= =?utf-8?q?icwI6Hc0/hZnFv/Bb/JBE812iVeYhsl79d3qyGigXhHi23TUQ8JpkQ3gzwb5NXiqx?= =?utf-8?q?dbee9VM3YRlRz81snXKpEd5cbXma9RQjA/nsaA0RqDJimtC2+ExXnjdwWo1/koqBU?= =?utf-8?q?i/x210Jm/wPNrjKVSxrukGbpRHLHScz2DNp4cQbw+Y3fzjXM6LfBFYlMBQiTRRHpV?= =?utf-8?q?mbqL0z7oMHMIdZU3uhjKZlvx8yGRrh6F5vRGpVvxLSHpsUuslrEivwRtWih7RkQB4?= =?utf-8?q?eXQJWp03wJS7UJ9fVWNctmh643Mu6L9xJB/uSKRdbEVk1ocKKuPFhuxeAGcXoKCwn?= =?utf-8?q?scrR+qsSDgXnf0VKZ0lZMQEZ31/cOl3vPy7cn4n4FDVvxxDfTEiFOWkVq6EcbH0Ey?= =?utf-8?q?YUDJxLZGqekshvkOFg0na/LwpAmU9ET7+TudXp3xIcNRDWqPdtcvI/eh47/NYBZvn?= =?utf-8?q?6WmkBcjTG22XzlnGFCm9c+tDIVXvlUoq991F405tOGm/ixjeb0XfXrSpTQnQxacKH?= =?utf-8?q?0qEBHrdlnr7uDRCDWFh/1l65xkmAEdMTwrRGfyfwyuCpm6nimvJYJxARx3qsxN6t0?= =?utf-8?q?BMXFOchtZRclZYRLj447fZBM6NhBQ1KF247RVuswfL9xo/HKfz1AiBBM+bdDDubJP?= =?utf-8?q?ww0bNMsFxYAyXqykt4Qc2E5EgFuRfCO/FbY+7v+F+UWf0odIG7+nCOfzXjhLN9Zys?= =?utf-8?q?/SV5oTSyGmYop4Dulp5dWvmioPGCmFj5cfuypYPhqYPcTPFfkKlF9CGj6ojWb7n9l?= =?utf-8?q?Q2l2KaHTLFKa/QASSSfsngoubS4lYu32uQB6BgYdPuSSxIslOdnRw3mMNwWBTPOo7?= =?utf-8?q?V6P9U6Usu6FqGHwrVA+w62UVwBRr0/0lS+IQuMMwedM7AOedzvSsoBsJZa7j6ptcU?= =?utf-8?q?lP2Ek2FTJzaG+50YTxk6+XexjFWpXJnTIHZ/hiwetOHDh8MRdlDwvueSGBh33xsBk?= =?utf-8?q?9F890zVitHKnLMOVdNo4AXSLSm1Ymd+kAuNlNvNASv3t0/vL8Gv8bedS3XApJYLIA?= =?utf-8?q?rSpZbjnpmHdrTtUDitruBfyeQ8eVhGAGMdXIyuB7ZCTWoVZraH/3MXNN6cf7spYLh?= =?utf-8?q?UY2ZekESlhiv1aOEwOfi8P6/s7l4FUD7oS8Pk/PMyciv5D/EYzX5Zm8ZGs/DZdfqy?= =?utf-8?q?kSRekEIS5dBTVwEv4zA8coRfe8AgY7qrbl1z1GvAC1ooFKCja1FJGqBxHzPIDrSOA?= =?utf-8?q?4Y/fD3sHkka+j8Fp0ny6NIYdemt0ELbL2XdJW8x9oLjpjO1DaNP2fSVqr9SaXtBG8?= =?utf-8?q?yGlKG3PPZeU3COKnk0LoV0FGE48mT+EcNAPL0h6VEI+XRGGSaiLk6636zxKSNMZXt?= =?utf-8?q?2/H9s4Hhrm2qihYn3b1ceQMU32n3mHaMxPP64rj6z5bDUps79Fk+vhwaluEMSFKdM?= =?utf-8?q?7rRjjjE6GK5NerHMkGkb7eUaWOmxsMfoxdiaKlPUIwb0XBA11xDuHTH02siEBJGiF?= =?utf-8?q?jcx5u8oBUmjccxIAN3GEHcU5kAxHLdaq2BjNEqqF89d8mmPjDh3ux/j8soi3sJo0B?= =?utf-8?q?avvpwN4Nl01ah2nH7kGiBzUJBXCF43l5Nw=3D=3D?= X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20bb38c1-694c-4b19-fa43-08da94ba65a0 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:29:11.8566 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: P2cLARaT3yBy3Z626dHhETf6awxqsYoD8LWpwfgaKqOzF8j3++F/kb/ydY0CwJiiWjJBdB2Z2aMen6o7DDTItmo88Wwv5dosEoOu8SV8v80= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.131; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Pool tables are no longer declared as static fields of the NMD class but as global static const variables. Pool struct is defined outside of the class. The NMD::Disassemble method is using the MAJOR Pool table variable, so its implementation is moved to the end of the nanomips.cpp file, right after the initialization of the MAJOR Pool table. Signed-off-by: Milica Lazarevic Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 363 ++++++++++++++++++++++----------------------- disas/nanomips.h | 201 ++----------------------- 2 files changed, 193 insertions(+), 371 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 5482284206..fa2cf2204a 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -754,13 +754,6 @@ uint64 NMD::extract_op_code_value(const uint16 * data, int size) } -int NMD::Disassemble(const uint16 * data, std::string & dis, - TABLE_ENTRY_TYPE & type, Dis_info *info) -{ - return Disassemble(data, dis, type, MAJOR, 2, info); -} - - /* * Recurse through tables until the instruction is found then return * the string and size @@ -16661,7 +16654,7 @@ static std::string YIELD(uint64 instruction, Dis_info *info) * */ -NMD::Pool NMD::P_SYSCALL[2] = { +static const Pool P_SYSCALL[2] = { { instruction , 0 , 0 , 32, 0xfffc0000, 0x00080000, &SYSCALL_32_ , 0, 0x0 }, /* SYSCALL[32] */ @@ -16671,7 +16664,7 @@ NMD::Pool NMD::P_SYSCALL[2] = { }; -NMD::Pool NMD::P_RI[4] = { +static const Pool P_RI[4] = { { instruction , 0 , 0 , 32, 0xfff80000, 0x00000000, &SIGRIE , 0, 0x0 }, /* SIGRIE */ @@ -16687,7 +16680,7 @@ NMD::Pool NMD::P_RI[4] = { }; -NMD::Pool NMD::P_ADDIU[2] = { +static const Pool P_ADDIU[2] = { { pool , P_RI , 4 , 32, 0xffe00000, 0x00000000, 0 , 0, 0x0 }, /* P.RI */ @@ -16697,7 +16690,7 @@ NMD::Pool NMD::P_ADDIU[2] = { }; -NMD::Pool NMD::P_TRAP[2] = { +static const Pool P_TRAP[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x20000000, &TEQ , 0, XMMS_ }, /* TEQ */ @@ -16707,7 +16700,7 @@ NMD::Pool NMD::P_TRAP[2] = { }; -NMD::Pool NMD::P_CMOVE[2] = { +static const Pool P_CMOVE[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x20000210, &MOVZ , 0, 0x0 }, /* MOVZ */ @@ -16717,7 +16710,7 @@ NMD::Pool NMD::P_CMOVE[2] = { }; -NMD::Pool NMD::P_D_MT_VPE[2] = { +static const Pool P_D_MT_VPE[2] = { { instruction , 0 , 0 , 32, 0xfc1f3fff, 0x20010ab0, &DMT , 0, MT_ }, /* DMT */ @@ -16727,7 +16720,7 @@ NMD::Pool NMD::P_D_MT_VPE[2] = { }; -NMD::Pool NMD::P_E_MT_VPE[2] = { +static const Pool P_E_MT_VPE[2] = { { instruction , 0 , 0 , 32, 0xfc1f3fff, 0x20010eb0, &EMT , 0, MT_ }, /* EMT */ @@ -16737,7 +16730,7 @@ NMD::Pool NMD::P_E_MT_VPE[2] = { }; -NMD::Pool NMD::_P_MT_VPE[2] = { +static const Pool _P_MT_VPE[2] = { { pool , P_D_MT_VPE , 2 , 32, 0xfc003fff, 0x20000ab0, 0 , 0, 0x0 }, /* P.D_MT_VPE */ @@ -16747,7 +16740,7 @@ NMD::Pool NMD::_P_MT_VPE[2] = { }; -NMD::Pool NMD::P_MT_VPE[8] = { +static const Pool P_MT_VPE[8] = { { reserved_block , 0 , 0 , 32, 0xfc003bff, 0x200002b0, 0 , 0, 0x0 }, /* P.MT_VPE~*(0) */ @@ -16775,7 +16768,7 @@ NMD::Pool NMD::P_MT_VPE[8] = { }; -NMD::Pool NMD::P_DVP[2] = { +static const Pool P_DVP[2] = { { instruction , 0 , 0 , 32, 0xfc00ffff, 0x20000390, &DVP , 0, 0x0 }, /* DVP */ @@ -16785,7 +16778,7 @@ NMD::Pool NMD::P_DVP[2] = { }; -NMD::Pool NMD::P_SLTU[2] = { +static const Pool P_SLTU[2] = { { pool , P_DVP , 2 , 32, 0xfc00fbff, 0x20000390, 0 , 0, 0x0 }, /* P.DVP */ @@ -16795,7 +16788,7 @@ NMD::Pool NMD::P_SLTU[2] = { }; -NMD::Pool NMD::_POOL32A0[128] = { +static const Pool _POOL32A0[128] = { { pool , P_TRAP , 2 , 32, 0xfc0003ff, 0x20000000, 0 , 0, 0x0 }, /* P.TRAP */ @@ -17183,7 +17176,7 @@ NMD::Pool NMD::_POOL32A0[128] = { }; -NMD::Pool NMD::ADDQ__S__PH[2] = { +static const Pool ADDQ__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000000d, &ADDQ_PH , 0, DSP_ }, /* ADDQ.PH */ @@ -17193,7 +17186,7 @@ NMD::Pool NMD::ADDQ__S__PH[2] = { }; -NMD::Pool NMD::MUL__S__PH[2] = { +static const Pool MUL__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000002d, &MUL_PH , 0, DSP_ }, /* MUL.PH */ @@ -17203,7 +17196,7 @@ NMD::Pool NMD::MUL__S__PH[2] = { }; -NMD::Pool NMD::ADDQH__R__PH[2] = { +static const Pool ADDQH__R__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000004d, &ADDQH_PH , 0, DSP_ }, /* ADDQH.PH */ @@ -17213,7 +17206,7 @@ NMD::Pool NMD::ADDQH__R__PH[2] = { }; -NMD::Pool NMD::ADDQH__R__W[2] = { +static const Pool ADDQH__R__W[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000008d, &ADDQH_W , 0, DSP_ }, /* ADDQH.W */ @@ -17223,7 +17216,7 @@ NMD::Pool NMD::ADDQH__R__W[2] = { }; -NMD::Pool NMD::ADDU__S__QB[2] = { +static const Pool ADDU__S__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x200000cd, &ADDU_QB , 0, DSP_ }, /* ADDU.QB */ @@ -17233,7 +17226,7 @@ NMD::Pool NMD::ADDU__S__QB[2] = { }; -NMD::Pool NMD::ADDU__S__PH[2] = { +static const Pool ADDU__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000010d, &ADDU_PH , 0, DSP_ }, /* ADDU.PH */ @@ -17243,7 +17236,7 @@ NMD::Pool NMD::ADDU__S__PH[2] = { }; -NMD::Pool NMD::ADDUH__R__QB[2] = { +static const Pool ADDUH__R__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000014d, &ADDUH_QB , 0, DSP_ }, /* ADDUH.QB */ @@ -17253,7 +17246,7 @@ NMD::Pool NMD::ADDUH__R__QB[2] = { }; -NMD::Pool NMD::SHRAV__R__PH[2] = { +static const Pool SHRAV__R__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000018d, &SHRAV_PH , 0, DSP_ }, /* SHRAV.PH */ @@ -17263,7 +17256,7 @@ NMD::Pool NMD::SHRAV__R__PH[2] = { }; -NMD::Pool NMD::SHRAV__R__QB[2] = { +static const Pool SHRAV__R__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x200001cd, &SHRAV_QB , 0, DSP_ }, /* SHRAV.QB */ @@ -17273,7 +17266,7 @@ NMD::Pool NMD::SHRAV__R__QB[2] = { }; -NMD::Pool NMD::SUBQ__S__PH[2] = { +static const Pool SUBQ__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000020d, &SUBQ_PH , 0, DSP_ }, /* SUBQ.PH */ @@ -17283,7 +17276,7 @@ NMD::Pool NMD::SUBQ__S__PH[2] = { }; -NMD::Pool NMD::SUBQH__R__PH[2] = { +static const Pool SUBQH__R__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000024d, &SUBQH_PH , 0, DSP_ }, /* SUBQH.PH */ @@ -17293,7 +17286,7 @@ NMD::Pool NMD::SUBQH__R__PH[2] = { }; -NMD::Pool NMD::SUBQH__R__W[2] = { +static const Pool SUBQH__R__W[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000028d, &SUBQH_W , 0, DSP_ }, /* SUBQH.W */ @@ -17303,7 +17296,7 @@ NMD::Pool NMD::SUBQH__R__W[2] = { }; -NMD::Pool NMD::SUBU__S__QB[2] = { +static const Pool SUBU__S__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x200002cd, &SUBU_QB , 0, DSP_ }, /* SUBU.QB */ @@ -17313,7 +17306,7 @@ NMD::Pool NMD::SUBU__S__QB[2] = { }; -NMD::Pool NMD::SUBU__S__PH[2] = { +static const Pool SUBU__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000030d, &SUBU_PH , 0, DSP_ }, /* SUBU.PH */ @@ -17323,7 +17316,7 @@ NMD::Pool NMD::SUBU__S__PH[2] = { }; -NMD::Pool NMD::SHRA__R__PH[2] = { +static const Pool SHRA__R__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x20000335, &SHRA_PH , 0, DSP_ }, /* SHRA.PH */ @@ -17333,7 +17326,7 @@ NMD::Pool NMD::SHRA__R__PH[2] = { }; -NMD::Pool NMD::SUBUH__R__QB[2] = { +static const Pool SUBUH__R__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000034d, &SUBUH_QB , 0, DSP_ }, /* SUBUH.QB */ @@ -17343,7 +17336,7 @@ NMD::Pool NMD::SUBUH__R__QB[2] = { }; -NMD::Pool NMD::SHLLV__S__PH[2] = { +static const Pool SHLLV__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000038d, &SHLLV_PH , 0, DSP_ }, /* SHLLV.PH */ @@ -17353,7 +17346,7 @@ NMD::Pool NMD::SHLLV__S__PH[2] = { }; -NMD::Pool NMD::SHLL__S__PH[4] = { +static const Pool SHLL__S__PH[4] = { { instruction , 0 , 0 , 32, 0xfc000fff, 0x200003b5, &SHLL_PH , 0, DSP_ }, /* SHLL.PH */ @@ -17369,7 +17362,7 @@ NMD::Pool NMD::SHLL__S__PH[4] = { }; -NMD::Pool NMD::PRECR_SRA__R__PH_W[2] = { +static const Pool PRECR_SRA__R__PH_W[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x200003cd, &PRECR_SRA_PH_W , 0, DSP_ }, /* PRECR_SRA.PH.W */ @@ -17379,7 +17372,7 @@ NMD::Pool NMD::PRECR_SRA__R__PH_W[2] = { }; -NMD::Pool NMD::_POOL32A5[128] = { +static const Pool _POOL32A5[128] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0x20000005, &CMP_EQ_PH , 0, DSP_ }, /* CMP.EQ.PH */ @@ -17767,7 +17760,7 @@ NMD::Pool NMD::_POOL32A5[128] = { }; -NMD::Pool NMD::PP_LSX[16] = { +static const Pool PP_LSX[16] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x20000007, &LBX , 0, 0x0 }, /* LBX */ @@ -17819,7 +17812,7 @@ NMD::Pool NMD::PP_LSX[16] = { }; -NMD::Pool NMD::PP_LSXS[16] = { +static const Pool PP_LSXS[16] = { { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0x20000047, 0 , 0, 0x0 }, /* PP.LSXS~*(0) */ @@ -17871,7 +17864,7 @@ NMD::Pool NMD::PP_LSXS[16] = { }; -NMD::Pool NMD::P_LSX[2] = { +static const Pool P_LSX[2] = { { pool , PP_LSX , 16 , 32, 0xfc00007f, 0x20000007, 0 , 0, 0x0 }, /* PP.LSX */ @@ -17881,7 +17874,7 @@ NMD::Pool NMD::P_LSX[2] = { }; -NMD::Pool NMD::POOL32Axf_1_0[4] = { +static const Pool POOL32Axf_1_0[4] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x2000007f, &MFHI_DSP_ , 0, DSP_ }, /* MFHI[DSP] */ @@ -17897,7 +17890,7 @@ NMD::Pool NMD::POOL32Axf_1_0[4] = { }; -NMD::Pool NMD::POOL32Axf_1_1[4] = { +static const Pool POOL32Axf_1_1[4] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x2000027f, &MTHLIP , 0, DSP_ }, /* MTHLIP */ @@ -17913,7 +17906,7 @@ NMD::Pool NMD::POOL32Axf_1_1[4] = { }; -NMD::Pool NMD::POOL32Axf_1_3[4] = { +static const Pool POOL32Axf_1_3[4] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x2000067f, &RDDSP , 0, DSP_ }, /* RDDSP */ @@ -17929,7 +17922,7 @@ NMD::Pool NMD::POOL32Axf_1_3[4] = { }; -NMD::Pool NMD::POOL32Axf_1_4[2] = { +static const Pool POOL32Axf_1_4[2] = { { instruction , 0 , 0 , 32, 0xfc001fff, 0x2000087f, &SHLL_QB , 0, DSP_ }, /* SHLL.QB */ @@ -17939,7 +17932,7 @@ NMD::Pool NMD::POOL32Axf_1_4[2] = { }; -NMD::Pool NMD::MAQ_S_A__W_PHR[2] = { +static const Pool MAQ_S_A__W_PHR[2] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x20000a7f, &MAQ_S_W_PHR , 0, DSP_ }, /* MAQ_S.W.PHR */ @@ -17949,7 +17942,7 @@ NMD::Pool NMD::MAQ_S_A__W_PHR[2] = { }; -NMD::Pool NMD::MAQ_S_A__W_PHL[2] = { +static const Pool MAQ_S_A__W_PHL[2] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x20001a7f, &MAQ_S_W_PHL , 0, DSP_ }, /* MAQ_S.W.PHL */ @@ -17959,7 +17952,7 @@ NMD::Pool NMD::MAQ_S_A__W_PHL[2] = { }; -NMD::Pool NMD::POOL32Axf_1_5[2] = { +static const Pool POOL32Axf_1_5[2] = { { pool , MAQ_S_A__W_PHR , 2 , 32, 0xfc001fff, 0x20000a7f, 0 , 0, 0x0 }, /* MAQ_S[A].W.PHR */ @@ -17969,7 +17962,7 @@ NMD::Pool NMD::POOL32Axf_1_5[2] = { }; -NMD::Pool NMD::POOL32Axf_1_7[4] = { +static const Pool POOL32Axf_1_7[4] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x20000e7f, &EXTR_W , 0, DSP_ }, /* EXTR.W */ @@ -17985,7 +17978,7 @@ NMD::Pool NMD::POOL32Axf_1_7[4] = { }; -NMD::Pool NMD::POOL32Axf_1[8] = { +static const Pool POOL32Axf_1[8] = { { pool , POOL32Axf_1_0 , 4 , 32, 0xfc000fff, 0x2000007f, 0 , 0, 0x0 }, /* POOL32Axf_1_0 */ @@ -18013,7 +18006,7 @@ NMD::Pool NMD::POOL32Axf_1[8] = { }; -NMD::Pool NMD::POOL32Axf_2_DSP__0_7[8] = { +static const Pool POOL32Axf_2_DSP__0_7[8] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x200000bf, &DPA_W_PH , 0, DSP_ }, /* DPA.W.PH */ @@ -18041,7 +18034,7 @@ NMD::Pool NMD::POOL32Axf_2_DSP__0_7[8] = { }; -NMD::Pool NMD::POOL32Axf_2_DSP__8_15[8] = { +static const Pool POOL32Axf_2_DSP__8_15[8] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x200010bf, &DPAX_W_PH , 0, DSP_ }, /* DPAX.W.PH */ @@ -18069,7 +18062,7 @@ NMD::Pool NMD::POOL32Axf_2_DSP__8_15[8] = { }; -NMD::Pool NMD::POOL32Axf_2_DSP__16_23[8] = { +static const Pool POOL32Axf_2_DSP__16_23[8] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x200020bf, &DPAU_H_QBL , 0, DSP_ }, /* DPAU.H.QBL */ @@ -18097,7 +18090,7 @@ NMD::Pool NMD::POOL32Axf_2_DSP__16_23[8] = { }; -NMD::Pool NMD::POOL32Axf_2_DSP__24_31[8] = { +static const Pool POOL32Axf_2_DSP__24_31[8] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x200030bf, &DPAU_H_QBR , 0, DSP_ }, /* DPAU.H.QBR */ @@ -18125,7 +18118,7 @@ NMD::Pool NMD::POOL32Axf_2_DSP__24_31[8] = { }; -NMD::Pool NMD::POOL32Axf_2[4] = { +static const Pool POOL32Axf_2[4] = { { pool , POOL32Axf_2_DSP__0_7, 8 , 32, 0xfc0031ff, 0x200000bf, 0 , 0, 0x0 }, /* POOL32Axf_2(DSP)_0_7 */ @@ -18141,7 +18134,7 @@ NMD::Pool NMD::POOL32Axf_2[4] = { }; -NMD::Pool NMD::POOL32Axf_4[128] = { +static const Pool POOL32Axf_4[128] = { { instruction , 0 , 0 , 32, 0xfc00ffff, 0x2000013f, &ABSQ_S_QB , 0, DSP_ }, /* ABSQ_S.QB */ @@ -18529,7 +18522,7 @@ NMD::Pool NMD::POOL32Axf_4[128] = { }; -NMD::Pool NMD::POOL32Axf_5_group0[32] = { +static const Pool POOL32Axf_5_group0[32] = { { instruction , 0 , 0 , 32, 0xfc00ffff, 0x2000017f, &TLBGP , 0, CP0_ | VZ_ | TLB_ }, /* TLBGP */ @@ -18629,7 +18622,7 @@ NMD::Pool NMD::POOL32Axf_5_group0[32] = { }; -NMD::Pool NMD::POOL32Axf_5_group1[32] = { +static const Pool POOL32Axf_5_group1[32] = { { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000417f, 0 , 0, 0x0 }, /* POOL32Axf_5_group1~*(0) */ @@ -18729,7 +18722,7 @@ NMD::Pool NMD::POOL32Axf_5_group1[32] = { }; -NMD::Pool NMD::ERETx[2] = { +static const Pool ERETx[2] = { { instruction , 0 , 0 , 32, 0xfc01ffff, 0x2000f37f, &ERET , 0, 0x0 }, /* ERET */ @@ -18739,7 +18732,7 @@ NMD::Pool NMD::ERETx[2] = { }; -NMD::Pool NMD::POOL32Axf_5_group3[32] = { +static const Pool POOL32Axf_5_group3[32] = { { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000c17f, 0 , 0, 0x0 }, /* POOL32Axf_5_group3~*(0) */ @@ -18839,7 +18832,7 @@ NMD::Pool NMD::POOL32Axf_5_group3[32] = { }; -NMD::Pool NMD::POOL32Axf_5[4] = { +static const Pool POOL32Axf_5[4] = { { pool , POOL32Axf_5_group0 , 32 , 32, 0xfc00c1ff, 0x2000017f, 0 , 0, 0x0 }, /* POOL32Axf_5_group0 */ @@ -18855,7 +18848,7 @@ NMD::Pool NMD::POOL32Axf_5[4] = { }; -NMD::Pool NMD::SHRA__R__QB[2] = { +static const Pool SHRA__R__QB[2] = { { instruction , 0 , 0 , 32, 0xfc001fff, 0x200001ff, &SHRA_QB , 0, DSP_ }, /* SHRA.QB */ @@ -18865,7 +18858,7 @@ NMD::Pool NMD::SHRA__R__QB[2] = { }; -NMD::Pool NMD::POOL32Axf_7[8] = { +static const Pool POOL32Axf_7[8] = { { pool , SHRA__R__QB , 2 , 32, 0xfc000fff, 0x200001ff, 0 , 0, 0x0 }, /* SHRA[_R].QB */ @@ -18893,7 +18886,7 @@ NMD::Pool NMD::POOL32Axf_7[8] = { }; -NMD::Pool NMD::POOL32Axf[8] = { +static const Pool POOL32Axf[8] = { { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0x2000003f, 0 , 0, 0x0 }, /* POOL32Axf~*(0) */ @@ -18921,7 +18914,7 @@ NMD::Pool NMD::POOL32Axf[8] = { }; -NMD::Pool NMD::_POOL32A7[8] = { +static const Pool _POOL32A7[8] = { { pool , P_LSX , 2 , 32, 0xfc00003f, 0x20000007, 0 , 0, 0x0 }, /* P.LSX */ @@ -18949,7 +18942,7 @@ NMD::Pool NMD::_POOL32A7[8] = { }; -NMD::Pool NMD::P32A[8] = { +static const Pool P32A[8] = { { pool , _POOL32A0 , 128 , 32, 0xfc000007, 0x20000000, 0 , 0, 0x0 }, /* _POOL32A0 */ @@ -18977,7 +18970,7 @@ NMD::Pool NMD::P32A[8] = { }; -NMD::Pool NMD::P_GP_D[2] = { +static const Pool P_GP_D[2] = { { instruction , 0 , 0 , 32, 0xfc000007, 0x40000001, &LD_GP_ , 0, MIPS64_ }, /* LD[GP] */ @@ -18987,7 +18980,7 @@ NMD::Pool NMD::P_GP_D[2] = { }; -NMD::Pool NMD::P_GP_W[4] = { +static const Pool P_GP_W[4] = { { instruction , 0 , 0 , 32, 0xfc000003, 0x40000000, &ADDIU_GP_W_ , 0, 0x0 }, /* ADDIU[GP.W] */ @@ -19003,7 +18996,7 @@ NMD::Pool NMD::P_GP_W[4] = { }; -NMD::Pool NMD::POOL48I[32] = { +static const Pool POOL48I[32] = { { instruction , 0 , 0 , 48, 0xfc1f00000000ull, 0x600000000000ull, &LI_48_ , 0, XMMS_ }, /* LI[48] */ @@ -19103,7 +19096,7 @@ NMD::Pool NMD::POOL48I[32] = { }; -NMD::Pool NMD::PP_SR[4] = { +static const Pool PP_SR[4] = { { instruction , 0 , 0 , 32, 0xfc10f003, 0x80003000, &SAVE_32_ , 0, 0x0 }, /* SAVE[32] */ @@ -19119,7 +19112,7 @@ NMD::Pool NMD::PP_SR[4] = { }; -NMD::Pool NMD::P_SR_F[8] = { +static const Pool P_SR_F[8] = { { instruction , 0 , 0 , 32, 0xfc10f007, 0x80103000, &SAVEF , 0, CP1_ }, /* SAVEF */ @@ -19147,7 +19140,7 @@ NMD::Pool NMD::P_SR_F[8] = { }; -NMD::Pool NMD::P_SR[2] = { +static const Pool P_SR[2] = { { pool , PP_SR , 4 , 32, 0xfc10f000, 0x80003000, 0 , 0, 0x0 }, /* PP.SR */ @@ -19157,7 +19150,7 @@ NMD::Pool NMD::P_SR[2] = { }; -NMD::Pool NMD::P_SLL[5] = { +static const Pool P_SLL[5] = { { instruction , 0 , 0 , 32, 0xffe0f1ff, 0x8000c000, &NOP_32_ , 0, 0x0 }, /* NOP[32] */ @@ -19176,7 +19169,7 @@ NMD::Pool NMD::P_SLL[5] = { }; -NMD::Pool NMD::P_SHIFT[16] = { +static const Pool P_SHIFT[16] = { { pool , P_SLL , 5 , 32, 0xfc00f1e0, 0x8000c000, 0 , 0, 0x0 }, /* P.SLL */ @@ -19228,7 +19221,7 @@ NMD::Pool NMD::P_SHIFT[16] = { }; -NMD::Pool NMD::P_ROTX[4] = { +static const Pool P_ROTX[4] = { { instruction , 0 , 0 , 32, 0xfc00f820, 0x8000d000, &ROTX , 0, XMMS_ }, /* ROTX */ @@ -19244,7 +19237,7 @@ NMD::Pool NMD::P_ROTX[4] = { }; -NMD::Pool NMD::P_INS[4] = { +static const Pool P_INS[4] = { { instruction , 0 , 0 , 32, 0xfc00f820, 0x8000e000, &INS , 0, XMMS_ }, /* INS */ @@ -19260,7 +19253,7 @@ NMD::Pool NMD::P_INS[4] = { }; -NMD::Pool NMD::P_EXT[4] = { +static const Pool P_EXT[4] = { { instruction , 0 , 0 , 32, 0xfc00f820, 0x8000f000, &EXT , 0, XMMS_ }, /* EXT */ @@ -19276,7 +19269,7 @@ NMD::Pool NMD::P_EXT[4] = { }; -NMD::Pool NMD::P_U12[16] = { +static const Pool P_U12[16] = { { instruction , 0 , 0 , 32, 0xfc00f000, 0x80000000, &ORI , 0, 0x0 }, /* ORI */ @@ -19328,7 +19321,7 @@ NMD::Pool NMD::P_U12[16] = { }; -NMD::Pool NMD::RINT_fmt[2] = { +static const Pool RINT_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000020, &RINT_S , 0, CP1_ }, /* RINT.S */ @@ -19338,7 +19331,7 @@ NMD::Pool NMD::RINT_fmt[2] = { }; -NMD::Pool NMD::ADD_fmt0[2] = { +static const Pool ADD_fmt0[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000030, &ADD_S , 0, CP1_ }, /* ADD.S */ @@ -19348,7 +19341,7 @@ NMD::Pool NMD::ADD_fmt0[2] = { }; -NMD::Pool NMD::SELEQZ_fmt[2] = { +static const Pool SELEQZ_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000038, &SELEQZ_S , 0, CP1_ }, /* SELEQZ.S */ @@ -19358,7 +19351,7 @@ NMD::Pool NMD::SELEQZ_fmt[2] = { }; -NMD::Pool NMD::CLASS_fmt[2] = { +static const Pool CLASS_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000060, &CLASS_S , 0, CP1_ }, /* CLASS.S */ @@ -19368,7 +19361,7 @@ NMD::Pool NMD::CLASS_fmt[2] = { }; -NMD::Pool NMD::SUB_fmt0[2] = { +static const Pool SUB_fmt0[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000070, &SUB_S , 0, CP1_ }, /* SUB.S */ @@ -19378,7 +19371,7 @@ NMD::Pool NMD::SUB_fmt0[2] = { }; -NMD::Pool NMD::SELNEZ_fmt[2] = { +static const Pool SELNEZ_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000078, &SELNEZ_S , 0, CP1_ }, /* SELNEZ.S */ @@ -19388,7 +19381,7 @@ NMD::Pool NMD::SELNEZ_fmt[2] = { }; -NMD::Pool NMD::MUL_fmt0[2] = { +static const Pool MUL_fmt0[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00000b0, &MUL_S , 0, CP1_ }, /* MUL.S */ @@ -19398,7 +19391,7 @@ NMD::Pool NMD::MUL_fmt0[2] = { }; -NMD::Pool NMD::SEL_fmt[2] = { +static const Pool SEL_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00000b8, &SEL_S , 0, CP1_ }, /* SEL.S */ @@ -19408,7 +19401,7 @@ NMD::Pool NMD::SEL_fmt[2] = { }; -NMD::Pool NMD::DIV_fmt0[2] = { +static const Pool DIV_fmt0[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00000f0, &DIV_S , 0, CP1_ }, /* DIV.S */ @@ -19418,7 +19411,7 @@ NMD::Pool NMD::DIV_fmt0[2] = { }; -NMD::Pool NMD::ADD_fmt1[2] = { +static const Pool ADD_fmt1[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000130, &ADD_D , 0, CP1_ }, /* ADD.D */ @@ -19428,7 +19421,7 @@ NMD::Pool NMD::ADD_fmt1[2] = { }; -NMD::Pool NMD::SUB_fmt1[2] = { +static const Pool SUB_fmt1[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000170, &SUB_D , 0, CP1_ }, /* SUB.D */ @@ -19438,7 +19431,7 @@ NMD::Pool NMD::SUB_fmt1[2] = { }; -NMD::Pool NMD::MUL_fmt1[2] = { +static const Pool MUL_fmt1[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00001b0, &MUL_D , 0, CP1_ }, /* MUL.D */ @@ -19448,7 +19441,7 @@ NMD::Pool NMD::MUL_fmt1[2] = { }; -NMD::Pool NMD::MADDF_fmt[2] = { +static const Pool MADDF_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00001b8, &MADDF_S , 0, CP1_ }, /* MADDF.S */ @@ -19458,7 +19451,7 @@ NMD::Pool NMD::MADDF_fmt[2] = { }; -NMD::Pool NMD::DIV_fmt1[2] = { +static const Pool DIV_fmt1[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00001f0, &DIV_D , 0, CP1_ }, /* DIV.D */ @@ -19468,7 +19461,7 @@ NMD::Pool NMD::DIV_fmt1[2] = { }; -NMD::Pool NMD::MSUBF_fmt[2] = { +static const Pool MSUBF_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00001f8, &MSUBF_S , 0, CP1_ }, /* MSUBF.S */ @@ -19478,7 +19471,7 @@ NMD::Pool NMD::MSUBF_fmt[2] = { }; -NMD::Pool NMD::POOL32F_0[64] = { +static const Pool POOL32F_0[64] = { { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xa0000000, 0 , 0, CP1_ }, /* POOL32F_0~*(0) */ @@ -19674,7 +19667,7 @@ NMD::Pool NMD::POOL32F_0[64] = { }; -NMD::Pool NMD::MIN_fmt[2] = { +static const Pool MIN_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc00023f, 0xa0000003, &MIN_S , 0, CP1_ }, /* MIN.S */ @@ -19684,7 +19677,7 @@ NMD::Pool NMD::MIN_fmt[2] = { }; -NMD::Pool NMD::MAX_fmt[2] = { +static const Pool MAX_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc00023f, 0xa000000b, &MAX_S , 0, CP1_ }, /* MAX.S */ @@ -19694,7 +19687,7 @@ NMD::Pool NMD::MAX_fmt[2] = { }; -NMD::Pool NMD::MINA_fmt[2] = { +static const Pool MINA_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc00023f, 0xa0000023, &MINA_S , 0, CP1_ }, /* MINA.S */ @@ -19704,7 +19697,7 @@ NMD::Pool NMD::MINA_fmt[2] = { }; -NMD::Pool NMD::MAXA_fmt[2] = { +static const Pool MAXA_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc00023f, 0xa000002b, &MAXA_S , 0, CP1_ }, /* MAXA.S */ @@ -19714,7 +19707,7 @@ NMD::Pool NMD::MAXA_fmt[2] = { }; -NMD::Pool NMD::CVT_L_fmt[2] = { +static const Pool CVT_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000013b, &CVT_L_S , 0, CP1_ }, /* CVT.L.S */ @@ -19724,7 +19717,7 @@ NMD::Pool NMD::CVT_L_fmt[2] = { }; -NMD::Pool NMD::RSQRT_fmt[2] = { +static const Pool RSQRT_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000023b, &RSQRT_S , 0, CP1_ }, /* RSQRT.S */ @@ -19734,7 +19727,7 @@ NMD::Pool NMD::RSQRT_fmt[2] = { }; -NMD::Pool NMD::FLOOR_L_fmt[2] = { +static const Pool FLOOR_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000033b, &FLOOR_L_S , 0, CP1_ }, /* FLOOR.L.S */ @@ -19744,7 +19737,7 @@ NMD::Pool NMD::FLOOR_L_fmt[2] = { }; -NMD::Pool NMD::CVT_W_fmt[2] = { +static const Pool CVT_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000093b, &CVT_W_S , 0, CP1_ }, /* CVT.W.S */ @@ -19754,7 +19747,7 @@ NMD::Pool NMD::CVT_W_fmt[2] = { }; -NMD::Pool NMD::SQRT_fmt[2] = { +static const Pool SQRT_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0000a3b, &SQRT_S , 0, CP1_ }, /* SQRT.S */ @@ -19764,7 +19757,7 @@ NMD::Pool NMD::SQRT_fmt[2] = { }; -NMD::Pool NMD::FLOOR_W_fmt[2] = { +static const Pool FLOOR_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0000b3b, &FLOOR_W_S , 0, CP1_ }, /* FLOOR.W.S */ @@ -19774,7 +19767,7 @@ NMD::Pool NMD::FLOOR_W_fmt[2] = { }; -NMD::Pool NMD::RECIP_fmt[2] = { +static const Pool RECIP_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000123b, &RECIP_S , 0, CP1_ }, /* RECIP.S */ @@ -19784,7 +19777,7 @@ NMD::Pool NMD::RECIP_fmt[2] = { }; -NMD::Pool NMD::CEIL_L_fmt[2] = { +static const Pool CEIL_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000133b, &CEIL_L_S , 0, CP1_ }, /* CEIL.L.S */ @@ -19794,7 +19787,7 @@ NMD::Pool NMD::CEIL_L_fmt[2] = { }; -NMD::Pool NMD::CEIL_W_fmt[2] = { +static const Pool CEIL_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0001b3b, &CEIL_W_S , 0, CP1_ }, /* CEIL.W.S */ @@ -19804,7 +19797,7 @@ NMD::Pool NMD::CEIL_W_fmt[2] = { }; -NMD::Pool NMD::TRUNC_L_fmt[2] = { +static const Pool TRUNC_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000233b, &TRUNC_L_S , 0, CP1_ }, /* TRUNC.L.S */ @@ -19814,7 +19807,7 @@ NMD::Pool NMD::TRUNC_L_fmt[2] = { }; -NMD::Pool NMD::TRUNC_W_fmt[2] = { +static const Pool TRUNC_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0002b3b, &TRUNC_W_S , 0, CP1_ }, /* TRUNC.W.S */ @@ -19824,7 +19817,7 @@ NMD::Pool NMD::TRUNC_W_fmt[2] = { }; -NMD::Pool NMD::ROUND_L_fmt[2] = { +static const Pool ROUND_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000333b, &ROUND_L_S , 0, CP1_ }, /* ROUND.L.S */ @@ -19834,7 +19827,7 @@ NMD::Pool NMD::ROUND_L_fmt[2] = { }; -NMD::Pool NMD::ROUND_W_fmt[2] = { +static const Pool ROUND_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0003b3b, &ROUND_W_S , 0, CP1_ }, /* ROUND.W.S */ @@ -19844,7 +19837,7 @@ NMD::Pool NMD::ROUND_W_fmt[2] = { }; -NMD::Pool NMD::POOL32Fxf_0[64] = { +static const Pool POOL32Fxf_0[64] = { { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa000003b, 0 , 0, CP1_ }, /* POOL32Fxf_0~*(0) */ @@ -20040,7 +20033,7 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { }; -NMD::Pool NMD::MOV_fmt[4] = { +static const Pool MOV_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000007b, &MOV_S , 0, CP1_ }, /* MOV.S */ @@ -20056,7 +20049,7 @@ NMD::Pool NMD::MOV_fmt[4] = { }; -NMD::Pool NMD::ABS_fmt[4] = { +static const Pool ABS_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000037b, &ABS_S , 0, CP1_ }, /* ABS.S */ @@ -20072,7 +20065,7 @@ NMD::Pool NMD::ABS_fmt[4] = { }; -NMD::Pool NMD::NEG_fmt[4] = { +static const Pool NEG_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0000b7b, &NEG_S , 0, CP1_ }, /* NEG.S */ @@ -20088,7 +20081,7 @@ NMD::Pool NMD::NEG_fmt[4] = { }; -NMD::Pool NMD::CVT_D_fmt[4] = { +static const Pool CVT_D_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000137b, &CVT_D_S , 0, CP1_ }, /* CVT.D.S */ @@ -20104,7 +20097,7 @@ NMD::Pool NMD::CVT_D_fmt[4] = { }; -NMD::Pool NMD::CVT_S_fmt[4] = { +static const Pool CVT_S_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0001b7b, &CVT_S_D , 0, CP1_ }, /* CVT.S.D */ @@ -20120,7 +20113,7 @@ NMD::Pool NMD::CVT_S_fmt[4] = { }; -NMD::Pool NMD::POOL32Fxf_1[32] = { +static const Pool POOL32Fxf_1[32] = { { pool , MOV_fmt , 4 , 32, 0xfc001fff, 0xa000007b, 0 , 0, CP1_ }, /* MOV.fmt */ @@ -20220,7 +20213,7 @@ NMD::Pool NMD::POOL32Fxf_1[32] = { }; -NMD::Pool NMD::POOL32Fxf[4] = { +static const Pool POOL32Fxf[4] = { { pool , POOL32Fxf_0 , 64 , 32, 0xfc0000ff, 0xa000003b, 0 , 0, CP1_ }, /* POOL32Fxf_0 */ @@ -20236,7 +20229,7 @@ NMD::Pool NMD::POOL32Fxf[4] = { }; -NMD::Pool NMD::POOL32F_3[8] = { +static const Pool POOL32F_3[8] = { { pool , MIN_fmt , 2 , 32, 0xfc00003f, 0xa0000003, 0 , 0, CP1_ }, /* MIN.fmt */ @@ -20264,7 +20257,7 @@ NMD::Pool NMD::POOL32F_3[8] = { }; -NMD::Pool NMD::CMP_condn_S[32] = { +static const Pool CMP_condn_S[32] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0xa0000005, &CMP_AF_S , 0, CP1_ }, /* CMP.AF.S */ @@ -20364,7 +20357,7 @@ NMD::Pool NMD::CMP_condn_S[32] = { }; -NMD::Pool NMD::CMP_condn_D[32] = { +static const Pool CMP_condn_D[32] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0xa0000015, &CMP_AF_D , 0, CP1_ }, /* CMP.AF.D */ @@ -20464,7 +20457,7 @@ NMD::Pool NMD::CMP_condn_D[32] = { }; -NMD::Pool NMD::POOL32F_5[8] = { +static const Pool POOL32F_5[8] = { { pool , CMP_condn_S , 32 , 32, 0xfc00003f, 0xa0000005, 0 , 0, CP1_ }, /* CMP.condn.S */ @@ -20492,7 +20485,7 @@ NMD::Pool NMD::POOL32F_5[8] = { }; -NMD::Pool NMD::POOL32F[8] = { +static const Pool POOL32F[8] = { { pool , POOL32F_0 , 64 , 32, 0xfc000007, 0xa0000000, 0 , 0, CP1_ }, /* POOL32F_0 */ @@ -20520,7 +20513,7 @@ NMD::Pool NMD::POOL32F[8] = { }; -NMD::Pool NMD::POOL32S_0[64] = { +static const Pool POOL32S_0[64] = { { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc0000000, 0 , 0, 0x0 }, /* POOL32S_0~*(0) */ @@ -20716,7 +20709,7 @@ NMD::Pool NMD::POOL32S_0[64] = { }; -NMD::Pool NMD::POOL32Sxf_4[128] = { +static const Pool POOL32Sxf_4[128] = { { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0xc000013c, 0 , 0, 0x0 }, /* POOL32Sxf_4~*(0) */ @@ -21104,7 +21097,7 @@ NMD::Pool NMD::POOL32Sxf_4[128] = { }; -NMD::Pool NMD::POOL32Sxf[8] = { +static const Pool POOL32Sxf[8] = { { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc000003c, 0 , 0, 0x0 }, /* POOL32Sxf~*(0) */ @@ -21132,7 +21125,7 @@ NMD::Pool NMD::POOL32Sxf[8] = { }; -NMD::Pool NMD::POOL32S_4[8] = { +static const Pool POOL32S_4[8] = { { instruction , 0 , 0 , 32, 0xfc00003f, 0xc0000004, &EXTD , 0, MIPS64_ }, /* EXTD */ @@ -21160,7 +21153,7 @@ NMD::Pool NMD::POOL32S_4[8] = { }; -NMD::Pool NMD::POOL32S[8] = { +static const Pool POOL32S[8] = { { pool , POOL32S_0 , 64 , 32, 0xfc000007, 0xc0000000, 0 , 0, 0x0 }, /* POOL32S_0 */ @@ -21188,7 +21181,7 @@ NMD::Pool NMD::POOL32S[8] = { }; -NMD::Pool NMD::P_LUI[2] = { +static const Pool P_LUI[2] = { { instruction , 0 , 0 , 32, 0xfc000002, 0xe0000000, &LUI , 0, 0x0 }, /* LUI */ @@ -21198,7 +21191,7 @@ NMD::Pool NMD::P_LUI[2] = { }; -NMD::Pool NMD::P_GP_LH[2] = { +static const Pool P_GP_LH[2] = { { instruction , 0 , 0 , 32, 0xfc1c0001, 0x44100000, &LH_GP_ , 0, 0x0 }, /* LH[GP] */ @@ -21208,7 +21201,7 @@ NMD::Pool NMD::P_GP_LH[2] = { }; -NMD::Pool NMD::P_GP_SH[2] = { +static const Pool P_GP_SH[2] = { { instruction , 0 , 0 , 32, 0xfc1c0001, 0x44140000, &SH_GP_ , 0, 0x0 }, /* SH[GP] */ @@ -21218,7 +21211,7 @@ NMD::Pool NMD::P_GP_SH[2] = { }; -NMD::Pool NMD::P_GP_CP1[4] = { +static const Pool P_GP_CP1[4] = { { instruction , 0 , 0 , 32, 0xfc1c0003, 0x44180000, &LWC1_GP_ , 0, CP1_ }, /* LWC1[GP] */ @@ -21234,7 +21227,7 @@ NMD::Pool NMD::P_GP_CP1[4] = { }; -NMD::Pool NMD::P_GP_M64[4] = { +static const Pool P_GP_M64[4] = { { instruction , 0 , 0 , 32, 0xfc1c0003, 0x441c0000, &LWU_GP_ , 0, MIPS64_ }, /* LWU[GP] */ @@ -21250,7 +21243,7 @@ NMD::Pool NMD::P_GP_M64[4] = { }; -NMD::Pool NMD::P_GP_BH[8] = { +static const Pool P_GP_BH[8] = { { instruction , 0 , 0 , 32, 0xfc1c0000, 0x44000000, &LB_GP_ , 0, 0x0 }, /* LB[GP] */ @@ -21278,7 +21271,7 @@ NMD::Pool NMD::P_GP_BH[8] = { }; -NMD::Pool NMD::P_LS_U12[16] = { +static const Pool P_LS_U12[16] = { { instruction , 0 , 0 , 32, 0xfc00f000, 0x84000000, &LB_U12_ , 0, 0x0 }, /* LB[U12] */ @@ -21330,7 +21323,7 @@ NMD::Pool NMD::P_LS_U12[16] = { }; -NMD::Pool NMD::P_PREF_S9_[2] = { +static const Pool P_PREF_S9_[2] = { { instruction , 0 , 0 , 32, 0xffe07f00, 0xa7e01800, &SYNCI , 0, 0x0 }, /* SYNCI */ @@ -21340,7 +21333,7 @@ NMD::Pool NMD::P_PREF_S9_[2] = { }; -NMD::Pool NMD::P_LS_S0[16] = { +static const Pool P_LS_S0[16] = { { instruction , 0 , 0 , 32, 0xfc007f00, 0xa4000000, &LB_S9_ , 0, 0x0 }, /* LB[S9] */ @@ -21392,7 +21385,7 @@ NMD::Pool NMD::P_LS_S0[16] = { }; -NMD::Pool NMD::ASET_ACLR[2] = { +static const Pool ASET_ACLR[2] = { { instruction , 0 , 0 , 32, 0xfe007f00, 0xa4001100, &ASET , 0, MCU_ }, /* ASET */ @@ -21402,7 +21395,7 @@ NMD::Pool NMD::ASET_ACLR[2] = { }; -NMD::Pool NMD::P_LL[4] = { +static const Pool P_LL[4] = { { instruction , 0 , 0 , 32, 0xfc007f03, 0xa4005100, &LL , 0, 0x0 }, /* LL */ @@ -21418,7 +21411,7 @@ NMD::Pool NMD::P_LL[4] = { }; -NMD::Pool NMD::P_SC[4] = { +static const Pool P_SC[4] = { { instruction , 0 , 0 , 32, 0xfc007f03, 0xa4005900, &SC , 0, 0x0 }, /* SC */ @@ -21434,7 +21427,7 @@ NMD::Pool NMD::P_SC[4] = { }; -NMD::Pool NMD::P_LLD[8] = { +static const Pool P_LLD[8] = { { instruction , 0 , 0 , 32, 0xfc007f07, 0xa4007100, &LLD , 0, MIPS64_ }, /* LLD */ @@ -21462,7 +21455,7 @@ NMD::Pool NMD::P_LLD[8] = { }; -NMD::Pool NMD::P_SCD[8] = { +static const Pool P_SCD[8] = { { instruction , 0 , 0 , 32, 0xfc007f07, 0xa4007900, &SCD , 0, MIPS64_ }, /* SCD */ @@ -21490,7 +21483,7 @@ NMD::Pool NMD::P_SCD[8] = { }; -NMD::Pool NMD::P_LS_S1[16] = { +static const Pool P_LS_S1[16] = { { reserved_block , 0 , 0 , 32, 0xfc007f00, 0xa4000100, 0 , 0, 0x0 }, /* P.LS.S1~*(0) */ @@ -21542,7 +21535,7 @@ NMD::Pool NMD::P_LS_S1[16] = { }; -NMD::Pool NMD::P_PREFE[2] = { +static const Pool P_PREFE[2] = { { instruction , 0 , 0 , 32, 0xffe07f00, 0xa7e01a00, &SYNCIE , 0, CP0_ | EVA_ }, /* SYNCIE */ @@ -21552,7 +21545,7 @@ NMD::Pool NMD::P_PREFE[2] = { }; -NMD::Pool NMD::P_LLE[4] = { +static const Pool P_LLE[4] = { { instruction , 0 , 0 , 32, 0xfc007f03, 0xa4005200, &LLE , 0, CP0_ | EVA_ }, /* LLE */ @@ -21568,7 +21561,7 @@ NMD::Pool NMD::P_LLE[4] = { }; -NMD::Pool NMD::P_SCE[4] = { +static const Pool P_SCE[4] = { { instruction , 0 , 0 , 32, 0xfc007f03, 0xa4005a00, &SCE , 0, CP0_ | EVA_ }, /* SCE */ @@ -21584,7 +21577,7 @@ NMD::Pool NMD::P_SCE[4] = { }; -NMD::Pool NMD::P_LS_E0[16] = { +static const Pool P_LS_E0[16] = { { instruction , 0 , 0 , 32, 0xfc007f00, 0xa4000200, &LBE , 0, CP0_ | EVA_ }, /* LBE */ @@ -21636,7 +21629,7 @@ NMD::Pool NMD::P_LS_E0[16] = { }; -NMD::Pool NMD::P_LS_WM[2] = { +static const Pool P_LS_WM[2] = { { instruction , 0 , 0 , 32, 0xfc000f00, 0xa4000400, &LWM , 0, XMMS_ }, /* LWM */ @@ -21646,7 +21639,7 @@ NMD::Pool NMD::P_LS_WM[2] = { }; -NMD::Pool NMD::P_LS_UAWM[2] = { +static const Pool P_LS_UAWM[2] = { { instruction , 0 , 0 , 32, 0xfc000f00, 0xa4000500, &UALWM , 0, XMMS_ }, /* UALWM */ @@ -21656,7 +21649,7 @@ NMD::Pool NMD::P_LS_UAWM[2] = { }; -NMD::Pool NMD::P_LS_DM[2] = { +static const Pool P_LS_DM[2] = { { instruction , 0 , 0 , 32, 0xfc000f00, 0xa4000600, &LDM , 0, MIPS64_ }, /* LDM */ @@ -21666,7 +21659,7 @@ NMD::Pool NMD::P_LS_DM[2] = { }; -NMD::Pool NMD::P_LS_UADM[2] = { +static const Pool P_LS_UADM[2] = { { instruction , 0 , 0 , 32, 0xfc000f00, 0xa4000700, &UALDM , 0, MIPS64_ }, /* UALDM */ @@ -21676,7 +21669,7 @@ NMD::Pool NMD::P_LS_UADM[2] = { }; -NMD::Pool NMD::P_LS_S9[8] = { +static const Pool P_LS_S9[8] = { { pool , P_LS_S0 , 16 , 32, 0xfc000700, 0xa4000000, 0 , 0, 0x0 }, /* P.LS.S0 */ @@ -21704,7 +21697,7 @@ NMD::Pool NMD::P_LS_S9[8] = { }; -NMD::Pool NMD::P_BAL[2] = { +static const Pool P_BAL[2] = { { branch_instruction , 0 , 0 , 32, 0xfe000000, 0x28000000, &BC_32_ , 0, 0x0 }, /* BC[32] */ @@ -21714,7 +21707,7 @@ NMD::Pool NMD::P_BAL[2] = { }; -NMD::Pool NMD::P_BALRSC[2] = { +static const Pool P_BALRSC[2] = { { branch_instruction , 0 , 0 , 32, 0xffe0f000, 0x48008000, &BRSC , 0, 0x0 }, /* BRSC */ @@ -21724,7 +21717,7 @@ NMD::Pool NMD::P_BALRSC[2] = { }; -NMD::Pool NMD::P_J[16] = { +static const Pool P_J[16] = { { call_instruction , 0 , 0 , 32, 0xfc00f000, 0x48000000, &JALRC_32_ , 0, 0x0 }, /* JALRC[32] */ @@ -21776,7 +21769,7 @@ NMD::Pool NMD::P_J[16] = { }; -NMD::Pool NMD::P_BR3A[32] = { +static const Pool P_BR3A[32] = { { branch_instruction , 0 , 0 , 32, 0xfc1fc000, 0x88004000, &BC1EQZC , 0, CP1_ }, /* BC1EQZC */ @@ -21876,7 +21869,7 @@ NMD::Pool NMD::P_BR3A[32] = { }; -NMD::Pool NMD::P_BR1[4] = { +static const Pool P_BR1[4] = { { branch_instruction , 0 , 0 , 32, 0xfc00c000, 0x88000000, &BEQC_32_ , 0, 0x0 }, /* BEQC[32] */ @@ -21892,7 +21885,7 @@ NMD::Pool NMD::P_BR1[4] = { }; -NMD::Pool NMD::P_BR2[4] = { +static const Pool P_BR2[4] = { { branch_instruction , 0 , 0 , 32, 0xfc00c000, 0xa8000000, &BNEC_32_ , 0, 0x0 }, /* BNEC[32] */ @@ -21908,7 +21901,7 @@ NMD::Pool NMD::P_BR2[4] = { }; -NMD::Pool NMD::P_BRI[8] = { +static const Pool P_BRI[8] = { { branch_instruction , 0 , 0 , 32, 0xfc1c0000, 0xc8000000, &BEQIC , 0, 0x0 }, /* BEQIC */ @@ -21936,7 +21929,7 @@ NMD::Pool NMD::P_BRI[8] = { }; -NMD::Pool NMD::P32[32] = { +static const Pool P32[32] = { { pool , P_ADDIU , 2 , 32, 0xfc000000, 0x00000000, 0 , 0, 0x0 }, /* P.ADDIU */ @@ -22036,7 +22029,7 @@ NMD::Pool NMD::P32[32] = { }; -NMD::Pool NMD::P16_SYSCALL[2] = { +static const Pool P16_SYSCALL[2] = { { instruction , 0 , 0 , 16, 0xfffc , 0x1008 , &SYSCALL_16_ , 0, 0x0 }, /* SYSCALL[16] */ @@ -22046,7 +22039,7 @@ NMD::Pool NMD::P16_SYSCALL[2] = { }; -NMD::Pool NMD::P16_RI[4] = { +static const Pool P16_RI[4] = { { reserved_block , 0 , 0 , 16, 0xfff8 , 0x1000 , 0 , 0, 0x0 }, /* P16.RI~*(0) */ @@ -22062,7 +22055,7 @@ NMD::Pool NMD::P16_RI[4] = { }; -NMD::Pool NMD::P16_MV[2] = { +static const Pool P16_MV[2] = { { pool , P16_RI , 4 , 16, 0xffe0 , 0x1000 , 0 , 0, 0x0 }, /* P16.RI */ @@ -22072,7 +22065,7 @@ NMD::Pool NMD::P16_MV[2] = { }; -NMD::Pool NMD::P16_SHIFT[2] = { +static const Pool P16_SHIFT[2] = { { instruction , 0 , 0 , 16, 0xfc08 , 0x3000 , &SLL_16_ , 0, 0x0 }, /* SLL[16] */ @@ -22082,7 +22075,7 @@ NMD::Pool NMD::P16_SHIFT[2] = { }; -NMD::Pool NMD::POOL16C_00[4] = { +static const Pool POOL16C_00[4] = { { instruction , 0 , 0 , 16, 0xfc0f , 0x5000 , &NOT_16_ , 0, 0x0 }, /* NOT[16] */ @@ -22098,7 +22091,7 @@ NMD::Pool NMD::POOL16C_00[4] = { }; -NMD::Pool NMD::POOL16C_0[2] = { +static const Pool POOL16C_0[2] = { { pool , POOL16C_00 , 4 , 16, 0xfc03 , 0x5000 , 0 , 0, 0x0 }, /* POOL16C_00 */ @@ -22108,7 +22101,7 @@ NMD::Pool NMD::POOL16C_0[2] = { }; -NMD::Pool NMD::P16C[2] = { +static const Pool P16C[2] = { { pool , POOL16C_0 , 2 , 16, 0xfc01 , 0x5000 , 0 , 0, 0x0 }, /* POOL16C_0 */ @@ -22118,7 +22111,7 @@ NMD::Pool NMD::P16C[2] = { }; -NMD::Pool NMD::P16_A1[2] = { +static const Pool P16_A1[2] = { { reserved_block , 0 , 0 , 16, 0xfc40 , 0x7000 , 0 , 0, 0x0 }, /* P16.A1~*(0) */ @@ -22128,7 +22121,7 @@ NMD::Pool NMD::P16_A1[2] = { }; -NMD::Pool NMD::P_ADDIU_RS5_[2] = { +static const Pool P_ADDIU_RS5_[2] = { { instruction , 0 , 0 , 16, 0xffe8 , 0x9008 , &NOP_16_ , 0, 0x0 }, /* NOP[16] */ @@ -22138,7 +22131,7 @@ NMD::Pool NMD::P_ADDIU_RS5_[2] = { }; -NMD::Pool NMD::P16_A2[2] = { +static const Pool P16_A2[2] = { { instruction , 0 , 0 , 16, 0xfc08 , 0x9000 , &ADDIU_R2_ , 0, 0x0 }, /* ADDIU[R2] */ @@ -22148,7 +22141,7 @@ NMD::Pool NMD::P16_A2[2] = { }; -NMD::Pool NMD::P16_ADDU[2] = { +static const Pool P16_ADDU[2] = { { instruction , 0 , 0 , 16, 0xfc01 , 0xb000 , &ADDU_16_ , 0, 0x0 }, /* ADDU[16] */ @@ -22158,7 +22151,7 @@ NMD::Pool NMD::P16_ADDU[2] = { }; -NMD::Pool NMD::P16_JRC[2] = { +static const Pool P16_JRC[2] = { { branch_instruction , 0 , 0 , 16, 0xfc1f , 0xd800 , &JRC , 0, 0x0 }, /* JRC */ @@ -22168,7 +22161,7 @@ NMD::Pool NMD::P16_JRC[2] = { }; -NMD::Pool NMD::P16_BR1[2] = { +static const Pool P16_BR1[2] = { { branch_instruction , 0 , 0 , 16, 0xfc00 , 0xd800 , &BEQC_16_ , &BEQC_16__cond , XMMS_ }, /* BEQC[16] */ @@ -22178,7 +22171,7 @@ NMD::Pool NMD::P16_BR1[2] = { }; -NMD::Pool NMD::P16_BR[2] = { +static const Pool P16_BR[2] = { { pool , P16_JRC , 2 , 16, 0xfc0f , 0xd800 , 0 , 0, 0x0 }, /* P16.JRC */ @@ -22188,7 +22181,7 @@ NMD::Pool NMD::P16_BR[2] = { }; -NMD::Pool NMD::P16_SR[2] = { +static const Pool P16_SR[2] = { { instruction , 0 , 0 , 16, 0xfd00 , 0x1c00 , &SAVE_16_ , 0, 0x0 }, /* SAVE[16] */ @@ -22198,7 +22191,7 @@ NMD::Pool NMD::P16_SR[2] = { }; -NMD::Pool NMD::P16_4X4[4] = { +static const Pool P16_4X4[4] = { { instruction , 0 , 0 , 16, 0xfd08 , 0x3c00 , &ADDU_4X4_ , 0, XMMS_ }, /* ADDU[4X4] */ @@ -22214,7 +22207,7 @@ NMD::Pool NMD::P16_4X4[4] = { }; -NMD::Pool NMD::P16_LB[4] = { +static const Pool P16_LB[4] = { { instruction , 0 , 0 , 16, 0xfc0c , 0x5c00 , &LB_16_ , 0, 0x0 }, /* LB[16] */ @@ -22230,7 +22223,7 @@ NMD::Pool NMD::P16_LB[4] = { }; -NMD::Pool NMD::P16_LH[4] = { +static const Pool P16_LH[4] = { { instruction , 0 , 0 , 16, 0xfc09 , 0x7c00 , &LH_16_ , 0, 0x0 }, /* LH[16] */ @@ -22246,7 +22239,7 @@ NMD::Pool NMD::P16_LH[4] = { }; -NMD::Pool NMD::P16[32] = { +static const Pool P16[32] = { { pool , P16_MV , 2 , 16, 0xfc00 , 0x1000 , 0 , 0, 0x0 }, /* P16.MV */ @@ -22346,7 +22339,7 @@ NMD::Pool NMD::P16[32] = { }; -NMD::Pool NMD::MAJOR[2] = { +static const Pool MAJOR[2] = { { pool , P32 , 32 , 32, 0x10000000, 0x00000000, 0 , 0, 0x0 }, /* P32 */ @@ -22354,3 +22347,9 @@ NMD::Pool NMD::MAJOR[2] = { 0x1000 , 0x1000 , 0 , 0, 0x0 }, /* P16 */ }; + +int NMD::Disassemble(const uint16 * data, std::string & dis, + TABLE_ENTRY_TYPE & type, Dis_info *info) +{ + return Disassemble(data, dis, type, MAJOR, 2, info); +} diff --git a/disas/nanomips.h b/disas/nanomips.h index 7036e589f4..82deff1094 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -68,6 +68,18 @@ typedef bool (*conditional_function)(uint64 instruction); typedef std::string (*disassembly_function)(uint64 instruction, Dis_info *info); +typedef struct Pool { + TABLE_ENTRY_TYPE type; + const struct Pool *next_table; + int next_table_size; + int instructions_size; + uint64 mask; + uint64 value; + disassembly_function disassembly; + conditional_function condition; + uint64 attributes; +} Pool; + class NMD { public: @@ -77,199 +89,10 @@ public: private: - struct Pool { - TABLE_ENTRY_TYPE type; - struct Pool *next_table; - int next_table_size; - int instructions_size; - uint64 mask; - uint64 value; - disassembly_function disassembly; - conditional_function condition; - uint64 attributes; - }; - uint64 extract_op_code_value(const uint16 *data, int size); int Disassemble(const uint16 *data, std::string & dis, TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, Dis_info *info); - - static Pool P_SYSCALL[2]; - static Pool P_RI[4]; - static Pool P_ADDIU[2]; - static Pool P_TRAP[2]; - static Pool P_CMOVE[2]; - static Pool P_D_MT_VPE[2]; - static Pool P_E_MT_VPE[2]; - static Pool _P_MT_VPE[2]; - static Pool P_MT_VPE[8]; - static Pool P_DVP[2]; - static Pool P_SLTU[2]; - static Pool _POOL32A0[128]; - static Pool ADDQ__S__PH[2]; - static Pool MUL__S__PH[2]; - static Pool ADDQH__R__PH[2]; - static Pool ADDQH__R__W[2]; - static Pool ADDU__S__QB[2]; - static Pool ADDU__S__PH[2]; - static Pool ADDUH__R__QB[2]; - static Pool SHRAV__R__PH[2]; - static Pool SHRAV__R__QB[2]; - static Pool SUBQ__S__PH[2]; - static Pool SUBQH__R__PH[2]; - static Pool SUBQH__R__W[2]; - static Pool SUBU__S__QB[2]; - static Pool SUBU__S__PH[2]; - static Pool SHRA__R__PH[2]; - static Pool SUBUH__R__QB[2]; - static Pool SHLLV__S__PH[2]; - static Pool SHLL__S__PH[4]; - static Pool PRECR_SRA__R__PH_W[2]; - static Pool _POOL32A5[128]; - static Pool PP_LSX[16]; - static Pool PP_LSXS[16]; - static Pool P_LSX[2]; - static Pool POOL32Axf_1_0[4]; - static Pool POOL32Axf_1_1[4]; - static Pool POOL32Axf_1_3[4]; - static Pool POOL32Axf_1_4[2]; - static Pool MAQ_S_A__W_PHR[2]; - static Pool MAQ_S_A__W_PHL[2]; - static Pool POOL32Axf_1_5[2]; - static Pool POOL32Axf_1_7[4]; - static Pool POOL32Axf_1[8]; - static Pool POOL32Axf_2_DSP__0_7[8]; - static Pool POOL32Axf_2_DSP__8_15[8]; - static Pool POOL32Axf_2_DSP__16_23[8]; - static Pool POOL32Axf_2_DSP__24_31[8]; - static Pool POOL32Axf_2[4]; - static Pool POOL32Axf_4[128]; - static Pool POOL32Axf_5_group0[32]; - static Pool POOL32Axf_5_group1[32]; - static Pool ERETx[2]; - static Pool POOL32Axf_5_group3[32]; - static Pool POOL32Axf_5[4]; - static Pool SHRA__R__QB[2]; - static Pool POOL32Axf_7[8]; - static Pool POOL32Axf[8]; - static Pool _POOL32A7[8]; - static Pool P32A[8]; - static Pool P_GP_D[2]; - static Pool P_GP_W[4]; - static Pool POOL48I[32]; - static Pool PP_SR[4]; - static Pool P_SR_F[8]; - static Pool P_SR[2]; - static Pool P_SLL[5]; - static Pool P_SHIFT[16]; - static Pool P_ROTX[4]; - static Pool P_INS[4]; - static Pool P_EXT[4]; - static Pool P_U12[16]; - static Pool RINT_fmt[2]; - static Pool ADD_fmt0[2]; - static Pool SELEQZ_fmt[2]; - static Pool CLASS_fmt[2]; - static Pool SUB_fmt0[2]; - static Pool SELNEZ_fmt[2]; - static Pool MUL_fmt0[2]; - static Pool SEL_fmt[2]; - static Pool DIV_fmt0[2]; - static Pool ADD_fmt1[2]; - static Pool SUB_fmt1[2]; - static Pool MUL_fmt1[2]; - static Pool MADDF_fmt[2]; - static Pool DIV_fmt1[2]; - static Pool MSUBF_fmt[2]; - static Pool POOL32F_0[64]; - static Pool MIN_fmt[2]; - static Pool MAX_fmt[2]; - static Pool MINA_fmt[2]; - static Pool MAXA_fmt[2]; - static Pool CVT_L_fmt[2]; - static Pool RSQRT_fmt[2]; - static Pool FLOOR_L_fmt[2]; - static Pool CVT_W_fmt[2]; - static Pool SQRT_fmt[2]; - static Pool FLOOR_W_fmt[2]; - static Pool RECIP_fmt[2]; - static Pool CEIL_L_fmt[2]; - static Pool CEIL_W_fmt[2]; - static Pool TRUNC_L_fmt[2]; - static Pool TRUNC_W_fmt[2]; - static Pool ROUND_L_fmt[2]; - static Pool ROUND_W_fmt[2]; - static Pool POOL32Fxf_0[64]; - static Pool MOV_fmt[4]; - static Pool ABS_fmt[4]; - static Pool NEG_fmt[4]; - static Pool CVT_D_fmt[4]; - static Pool CVT_S_fmt[4]; - static Pool POOL32Fxf_1[32]; - static Pool POOL32Fxf[4]; - static Pool POOL32F_3[8]; - static Pool CMP_condn_S[32]; - static Pool CMP_condn_D[32]; - static Pool POOL32F_5[8]; - static Pool POOL32F[8]; - static Pool POOL32S_0[64]; - static Pool POOL32Sxf_4[128]; - static Pool POOL32Sxf[8]; - static Pool POOL32S_4[8]; - static Pool POOL32S[8]; - static Pool P_LUI[2]; - static Pool P_GP_LH[2]; - static Pool P_GP_SH[2]; - static Pool P_GP_CP1[4]; - static Pool P_GP_M64[4]; - static Pool P_GP_BH[8]; - static Pool P_LS_U12[16]; - static Pool P_PREF_S9_[2]; - static Pool P_LS_S0[16]; - static Pool ASET_ACLR[2]; - static Pool P_LL[4]; - static Pool P_SC[4]; - static Pool P_LLD[8]; - static Pool P_SCD[8]; - static Pool P_LS_S1[16]; - static Pool P_PREFE[2]; - static Pool P_LLE[4]; - static Pool P_SCE[4]; - static Pool P_LS_E0[16]; - static Pool P_LS_WM[2]; - static Pool P_LS_UAWM[2]; - static Pool P_LS_DM[2]; - static Pool P_LS_UADM[2]; - static Pool P_LS_S9[8]; - static Pool P_BAL[2]; - static Pool P_BALRSC[2]; - static Pool P_J[16]; - static Pool P_BR3A[32]; - static Pool P_BR1[4]; - static Pool P_BR2[4]; - static Pool P_BRI[8]; - static Pool P32[32]; - static Pool P16_SYSCALL[2]; - static Pool P16_RI[4]; - static Pool P16_MV[2]; - static Pool P16_SHIFT[2]; - static Pool POOL16C_00[4]; - static Pool POOL16C_0[2]; - static Pool P16C[2]; - static Pool P16_A1[2]; - static Pool P_ADDIU_RS5_[2]; - static Pool P16_A2[2]; - static Pool P16_ADDU[2]; - static Pool P16_JRC[2]; - static Pool P16_BR1[2]; - static Pool P16_BR[2]; - static Pool P16_SR[2]; - static Pool P16_4X4[4]; - static Pool P16_LB[4]; - static Pool P16_LH[4]; - static Pool P16[32]; - static Pool MAJOR[2]; - }; #endif From patchwork Mon Sep 12 12:26:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973656 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14B9CC6FA86 for ; Mon, 12 Sep 2022 12:59:43 +0000 (UTC) Received: from localhost ([::1]:45030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXj2M-0001ww-6e for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:59:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZ6-0004Y5-Os for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:28 -0400 Received: from mail-eopbgr70131.outbound.protection.outlook.com ([40.107.7.131]:5091 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZ4-0005rg-LD for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eJu+bxJp8XHZYhPjg1jZausYLJMdNJ6V6djWrOcLvfW+ytDVQOo+2KkSKDXSON/1USknwuppHoXhF/Xz/kHxGOAXp3M6GGvxGEGOu01m+rc8ieB329iGLrwoLoYLY6WrPhkrqiwRDYyg2zqpimI1bSPjEBzLeIWWZX8R3c2YpU24Y3jm+IojNTE89zNgkojdeEVjYh0L/7xyXgzXCLp3qn9reeHaj/v76shyYuMcaIrnyeF4t9WqrWQWNWV9MTIA99pwr2lvX6U7UEjEckQQmSyy29osRKx0ONOudxTqTe3ElqdoFt2BeqR6xdyJyrQGl1Cm8l7R3M8lNayI/W6Rtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=moOY51iitjJiSGB1MDVeS94q1BXF6fGFlyUDPV+NJGQ=; b=ctdEyk7M9J1PKXtARripcXWHev4rVuGHpuLTULaQpjutsKhVzNr7eFtVgnhfDw4ckE9lOp0VeEPwOQpkkpt+teoi2XSAazC1ewBejAnUHAFPZGG/3hk+Tu3Le2/6jmiAMS9cwqUX19dH5PGmEBRxUxnqYq86VWxAyjPPCDOGtCkjO4ar/qUBzcZYnmw9JcpjQMsbd+smCHdmA3ZgTkz93dQbPw4LuD3w7JbWju0a1Cl9wuO6gv1E8Wl2FwAb97z6F7xVGB89E1d+98b1GVxpP0BbzXWIrbAUEiYQ/X+1EmYTgIbu0j+zOpB8mrfr6tpNFPoh41HKcY5sOh1RvoqglA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=moOY51iitjJiSGB1MDVeS94q1BXF6fGFlyUDPV+NJGQ=; b=CjjBnleYuGQ6VTTV2cmQGuknNSichdNxUWQ0tildQqGvAs5SMBUrMviyuFznv0qp+4RWE1B0hWxIFu82o/l4lDPXAjeddwkdQ5xLIQVqkvp3HkKJ93zt9/M69VhmUa3FKmJpbsDJ2lumYQJkTMqPncu0iz8fe3fjXfi4FJI1XsM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:29:18 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:29:18 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 09/24] disas/nanomips: Remove NMD class Date: Mon, 12 Sep 2022 14:26:20 +0200 Message-Id: <20220912122635.74032-10-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 0aa0e3b2-c0b9-4db0-8259-08da94ba6966 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PGFLDhVqYWr2lM3cAdDYvtX9/fs7OJVwMDCIfOCwnLBGie5NZJiqaat9Dj5QFzjnLvX6LCgpn7dgl0dLYY6bxkAHqOpiRSX9OkoMW9G4NgPwL1OG/JG6isejiAOLnJMjCBDDCTO1p0+2HYvs+eVioaXgpyMiKks6GbSOIDDBpFLMwYJ2QYo38iy7X93sdqp8Gze5F4qQlRQOljAoxaPrTKKl2AVPg09S1OVi34PF9rS6OC2qmX9aOqvWMcwtryCOHHkHzB1bP/KUqCCu7o9LFHgKK6WVqnJse3uA2mxoen1Gigqojr+i0aPAcTtO7S/D/1ns5D4zVUPyoVD8KqPwNJor91LtcR9rYSb/MDuJ+cemcMosl32euAjmkqJ5QPGIRG223MYrkIhvK7UsYQgEy4ozPgiWcir8nw48DNlB7KAh/zZBj+O+DMoRlXTkzra8IG+6a+6/tOn0fSyi4SzblrBvFxkDUOrDguv12F0HhXhcnmsl47uV7PmElFh6HOmpE1suFES0Cm1mhfzDR21NCAAwkrEpgZuQvrUut+W+yODzIUNW+wC9hCIGLAmEyQ0bAXdavzRKMYLfcvj4lEdJ95C3ExMxplaTO7RWIDRzFvYBCq82VsuoFeYzCJICbSlBdbUTPeBoIFjEfqp3hERCmbEq6e8tZ2WblT93aiSk8+YAZg7MSNe5BPgR/nIm1wfoaMyPpn+KdLpWOZ2clKxAIqWkTNIEQA5EYqsfWYTzyfLIZ/dkWN35Jj/AwBq9gmJa X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(5660300002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(107886003)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: miESs8lCLnt+SxF3bmQcAXDS+qSECl9pskFmodZG1Td3JDIl46kRy1pDFzYCDfnZDhR3LYhqZcoYUd+iUMBjezLGI+fEVwbX+RgMpOYCLeXV9SFgbE03fx3PeZHbmGe7pulMlPwK55y/MI+5AK5jH+yYogqUCCGgp4BQbZfgxaO2fxz7fakAlQkncklBMdEcQVuUdMAnqG/awOlgTDf8m3RZGRmPlPeRepa+8RKO0kgFvgzg+Nh4P2/gSQYWfiFLumzpaBmm1RwxYgtwcoMyM+x5/Z7uv3Azal0UAeBVMop458nd+1NZtrwcPTnAohAyrhS8iM3EAmPePB7oPQ5VPoJhOGjXpcX1Q01FpHIBwb19g7dd42hT/79gEDv/n8YfgzYPsoO3QmNblcVpCcg60nax1jCb7SKUHlxx3FBDKmKvzBQLPJeYjnUoh1aughzyD4yAYgmf9u++SKJAORRFijkX76cLkl3XpoYsrKRzSIFHmfCF1xo5L68ute+efxH6/9OA7RUe2oXOpTk967lMhh52BZkimzXp3JoSTdUFHOAAIAtDOgw8MbbL2EhLZgdddOepTmRZ/T19XrBDIB3tO17g4Yv6g8+TdMLfvo0xVIZHkmiDFgGJFV7zmJA4UeRTVqFTqTrUW/dSLGDOnIgM9uiA/gqENx9YM1FYhEtsG/scRO7USymgY6ArbrRlZtGyq3UbXKa79qZI1aYj6nWZL4GzTEQIV3CHA6YHfmN/NzfO2rglnOorZvFE/efJSWZicAWO54Kig+G7x+6zl1DVBL4i32Um7SLhrgjuSlvAltgQpg32gsdc0isa1Aza2/r5hBMuZQ8x27qDXKBdlpbX71S531adnf7MazEwa5vcoOEJ9goLILzFtsWk/CvY2XZlarOVOzvQUbzwLh7UsnxTaEo8NU1xNzmwAUqb2CC9OdlDqYlkBJAb74eeAvVFtmq00b1BnHVUuu+mBGany2nNsinTtf5ZwlshNEw3SBUcNv5g3BopbU52QtmyAfhGH3BiOhddm10CRj/Pi0LFoh2gQ46VDQXp5a3qtvr8X3aqIOBM37JnJum/MDNDuoN/URFuuauxe3M4AvhnueLMtdRiN3jXydh1yb69Ksjjd9erfHbzEd7TQ1j9Mpybtqf8MG0QjcdiG0MQx4fqT1sUcLFcJi30XRI+yCeYP60yyQUd8q5xc0rkMEgwxr/hC1IBg3M9yC/x3J4TROrh6J4DnlYN29iMcazs8b9qBTrjj1pCIVXaX33jRFgvqRgAkp8nmHTWZ3+4t+qsq+5Szz7ncYjs2YeqWhNvMd8tzUzVyNfOtnsS4H9aMTz290HXH7yiWYOeH3CEWxBTjqtAJXpPV02CCUdknbUYfkUnnyPo6FEluzksKxdp6JJv74Cy6tUyqppL6AgNtH0zTrvavZuQPO2Be6w3iV++WMfzetkkEbix6r7IqLpeHlrlk0geRUnI/aBrDU7FkkYRv440htgktjXTyaTbzM8j2VslfCu031er3r0N0BpStfJXjG2meNmeS7+VrIVVUg4tMSB1FuTl76DJ7L4RLtpMom+Oh0nR2XDzvWEUu08VyMOJGrml/QM7HfjY8nz129mdk2zS1BdzcBNBRA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0aa0e3b2-c0b9-4db0-8259-08da94ba6966 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:29:18.0750 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kquOASpKXIwCVTx/dXQv9uGKuo386z/XFEHT7rq53UDVmBqW6UPeDFo/wHllKL2Qg/mak/pc+mYtN7o3eT4WDQjKr7kaF4u8DXz9Mw8c72I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.131; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" NMD class has been deleted. The following methods are now declared as static functions: - public NMD::Disassemble method - private NMD::Disassemble method - private NMD::extract_op_code_value helper method Also, the implementation of the print_insn_nanomips function and nanomips_dis function is moved to the end of the nanomips.cpp file, right after the implementation of the Disassemble function. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 202 ++++++++++++++++++++++----------------------- disas/nanomips.h | 15 ---- 2 files changed, 100 insertions(+), 117 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index fa2cf2204a..3b5e6d520f 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -41,105 +41,6 @@ #define IMGASSERTONCE(test) -static int nanomips_dis(char *buf, - Dis_info *info, - unsigned short one, - unsigned short two, - unsigned short three) -{ - std::string disasm; - uint16 bits[3] = {one, two, three}; - - TABLE_ENTRY_TYPE type; - NMD d; - int size = d.Disassemble(bits, disasm, type, info); - - strcpy(buf, disasm.c_str()); - return size; -} - -int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) -{ - int status; - bfd_byte buffer[2]; - uint16_t insn1 = 0, insn2 = 0, insn3 = 0; - char buf[200]; - - info->bytes_per_chunk = 2; - info->display_endian = info->endian; - info->insn_info_valid = 1; - info->branch_delay_insns = 0; - info->data_size = 0; - info->insn_type = dis_nonbranch; - info->target = 0; - info->target2 = 0; - - Dis_info disassm_info; - disassm_info.m_pc = memaddr; - - status = (*info->read_memory_func)(memaddr, buffer, 2, info); - if (status != 0) { - (*info->memory_error_func)(status, memaddr, info); - return -1; - } - - if (info->endian == BFD_ENDIAN_BIG) { - insn1 = bfd_getb16(buffer); - } else { - insn1 = bfd_getl16(buffer); - } - (*info->fprintf_func)(info->stream, "%04x ", insn1); - - /* Handle 32-bit opcodes. */ - if ((insn1 & 0x1000) == 0) { - status = (*info->read_memory_func)(memaddr + 2, buffer, 2, info); - if (status != 0) { - (*info->memory_error_func)(status, memaddr + 2, info); - return -1; - } - - if (info->endian == BFD_ENDIAN_BIG) { - insn2 = bfd_getb16(buffer); - } else { - insn2 = bfd_getl16(buffer); - } - (*info->fprintf_func)(info->stream, "%04x ", insn2); - } else { - (*info->fprintf_func)(info->stream, " "); - } - /* Handle 48-bit opcodes. */ - if ((insn1 >> 10) == 0x18) { - status = (*info->read_memory_func)(memaddr + 4, buffer, 2, info); - if (status != 0) { - (*info->memory_error_func)(status, memaddr + 4, info); - return -1; - } - - if (info->endian == BFD_ENDIAN_BIG) { - insn3 = bfd_getb16(buffer); - } else { - insn3 = bfd_getl16(buffer); - } - (*info->fprintf_func)(info->stream, "%04x ", insn3); - } else { - (*info->fprintf_func)(info->stream, " "); - } - - int length = nanomips_dis(buf, &disassm_info, insn1, insn2, insn3); - - /* FIXME: Should probably use a hash table on the major opcode here. */ - - (*info->fprintf_func) (info->stream, "%s", buf); - if (length > 0) { - return length / 8; - } - - info->insn_type = dis_noninsn; - - return insn3 ? 6 : insn2 ? 4 : 2; -} - - std::string img_format(const char *format, ...) { char buffer[256]; @@ -739,7 +640,7 @@ static std::string ADDRESS(uint64 value, int instruction_size, Dis_info *info) } -uint64 NMD::extract_op_code_value(const uint16 * data, int size) +static uint64 extract_op_code_value(const uint16 *data, int size) { switch (size) { case 16: @@ -765,7 +666,7 @@ uint64 NMD::extract_op_code_value(const uint16 * data, int size) * instruction size - negative is error * disassembly string - on error will constain error string */ -int NMD::Disassemble(const uint16 * data, std::string & dis, +static int Disassemble(const uint16 * data, std::string & dis, TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, Dis_info *info) { @@ -22348,8 +22249,105 @@ static const Pool MAJOR[2] = { 0x0 }, /* P16 */ }; -int NMD::Disassemble(const uint16 * data, std::string & dis, +static int Disassemble(const uint16 *data, std::string & dis, TABLE_ENTRY_TYPE & type, Dis_info *info) { return Disassemble(data, dis, type, MAJOR, 2, info); } + +static int nanomips_dis(char *buf, + Dis_info *info, + unsigned short one, + unsigned short two, + unsigned short three) +{ + std::string disasm; + uint16 bits[3] = {one, two, three}; + + TABLE_ENTRY_TYPE type; + int size = Disassemble(bits, disasm, type, info); + + strcpy(buf, disasm.c_str()); + return size; +} + +int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) +{ + int status; + bfd_byte buffer[2]; + uint16_t insn1 = 0, insn2 = 0, insn3 = 0; + char buf[200]; + + info->bytes_per_chunk = 2; + info->display_endian = info->endian; + info->insn_info_valid = 1; + info->branch_delay_insns = 0; + info->data_size = 0; + info->insn_type = dis_nonbranch; + info->target = 0; + info->target2 = 0; + + Dis_info disassm_info; + disassm_info.m_pc = memaddr; + + status = (*info->read_memory_func)(memaddr, buffer, 2, info); + if (status != 0) { + (*info->memory_error_func)(status, memaddr, info); + return -1; + } + + if (info->endian == BFD_ENDIAN_BIG) { + insn1 = bfd_getb16(buffer); + } else { + insn1 = bfd_getl16(buffer); + } + (*info->fprintf_func)(info->stream, "%04x ", insn1); + + /* Handle 32-bit opcodes. */ + if ((insn1 & 0x1000) == 0) { + status = (*info->read_memory_func)(memaddr + 2, buffer, 2, info); + if (status != 0) { + (*info->memory_error_func)(status, memaddr + 2, info); + return -1; + } + + if (info->endian == BFD_ENDIAN_BIG) { + insn2 = bfd_getb16(buffer); + } else { + insn2 = bfd_getl16(buffer); + } + (*info->fprintf_func)(info->stream, "%04x ", insn2); + } else { + (*info->fprintf_func)(info->stream, " "); + } + /* Handle 48-bit opcodes. */ + if ((insn1 >> 10) == 0x18) { + status = (*info->read_memory_func)(memaddr + 4, buffer, 2, info); + if (status != 0) { + (*info->memory_error_func)(status, memaddr + 4, info); + return -1; + } + + if (info->endian == BFD_ENDIAN_BIG) { + insn3 = bfd_getb16(buffer); + } else { + insn3 = bfd_getl16(buffer); + } + (*info->fprintf_func)(info->stream, "%04x ", insn3); + } else { + (*info->fprintf_func)(info->stream, " "); + } + + int length = nanomips_dis(buf, &disassm_info, insn1, insn2, insn3); + + /* FIXME: Should probably use a hash table on the major opcode here. */ + + (*info->fprintf_func) (info->stream, "%s", buf); + if (length > 0) { + return length / 8; + } + + info->insn_type = dis_noninsn; + + return insn3 ? 6 : insn2 ? 4 : 2; +} diff --git a/disas/nanomips.h b/disas/nanomips.h index 82deff1094..75abe03bba 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -80,19 +80,4 @@ typedef struct Pool { uint64 attributes; } Pool; -class NMD -{ -public: - - int Disassemble(const uint16 *data, std::string & dis, - TABLE_ENTRY_TYPE & type, Dis_info *info); - -private: - - uint64 extract_op_code_value(const uint16 *data, int size); - int Disassemble(const uint16 *data, std::string & dis, - TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, - Dis_info *info); -}; - #endif From patchwork Mon Sep 12 12:26:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973621 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 07767ECAAD5 for ; Mon, 12 Sep 2022 12:35:42 +0000 (UTC) Received: from localhost ([::1]:42436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXif7-0000FN-1x for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:35:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZ8-0004dO-Pr for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:30 -0400 Received: from mail-eopbgr70131.outbound.protection.outlook.com ([40.107.7.131]:5091 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZ7-0005rg-3B for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:30 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DeM8PK9hyU/OQ1LGjt/DzxaNavMT4uSrMObJQiis8WKlTTYozxjEO5hU7P/8+Esh5DNDIgWDPAlg3wWnN8yRhlaeKiMQsrlKbCiFLb/Q3BQXr/EoFHEUQvEWYupfwTJA2HuJwxOgDuplvDQ8Pws1YNy/ADHl7dfEnfQCMEAjLi3ZBpqCR4Y0NThzW7vrqkp8QpTbeGL9jjhEEZb9ndJp7MV/fnYZg49ukcPxzK1AN4+8B0EmBxk7GvCF98xwW8pNDFu6aV4I7rwTsd1dNJFUTCt1pkHxNqRpxptFtxx7Zo/PIgkgmf4EMuaa3Qe9p9sWMruXCQVC55+Cvr79LpLwLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WaF844un6Xw322CZ4MvVCkXLwjCShophUBJ/Hvg0r7I=; b=QeyLXEldpuEhv2+WAXdu+/PHE0i+CAOQpNNSHYYwyfUUYAmQ+Ft4/3I8IAVWuoaSQlTYflr2MIaV0F2Tn9gb6b1Ai8Gl72ylIYv8tycEfkvtJDtQOEjAB7NwFO8mdleIIDKpVNMUB4zLkrrsWnh1vwKrC6k6R4LaQJE8LaV0L4kOS4h4m+rEenW5Z+Gt7tbhYwyHv93VshNcZoez1MhTlvjhCzQqE0Aj9o4eoI+yHoXrrF/hUJY/BjZw0i6eLTkgp1qVpeY3zfhNo7Y22KeUoaPe9G6I+6zqnmib6qbPX1TKOQvbvvjcHoZmlEvmkrODRIuHHdQ6G+iTUtTK9f09GQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WaF844un6Xw322CZ4MvVCkXLwjCShophUBJ/Hvg0r7I=; b=e+jJMdut89hBGCsj04G2S8KHnQwE8DaP2PQNEDJZmkRisv7FCmfaYqQPR1SJXf9qVBYCDZH8T4rEvVZMFWSZhfJRme4xAJzcVsoCZdHbaBvEmLApzeV7542JzcdniBDqMfM+UoIGGvvyE8vPgV70uDtsgJ0lhk44eE/NhJtRtDM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:29:24 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:29:24 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [PATCH v3 10/24] disas/nanomips: Move typedefs etc to nanomips.cpp Date: Mon, 12 Sep 2022 14:26:21 +0200 Message-Id: <20220912122635.74032-11-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 917c2e5e-7bf1-44a1-f604-08da94ba6d37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OBXDQRF9ZCLTayHhXH58LYOzlCwoMEVcI1yet8D4istCGNtqp1hn7SxvsAz2P80d9q2BmJgNqVybN3n/TZ5ad+kGQCimfyGbSWkcfKxiYD5H2jw/y+03pH2CvU6C40QKSzKOR2YpcVFT9ohfCDTVFqfxR4E7qGlI2jZQjtBlqAQXGhpIsD0PqYlt1mDbDWdraxkW/ZOa7jE6BKd6iPTvmqBxYKT1T8MrwLhPrViwHu1YGvNTsMKu5ry5Z25uLIrzsw1TuW/zsoIO1sxY1MThHU1gxAKXd5tHIkQeVIN9w55vfVVDBnL+uHqeTi4fSviQ8cMfFKIAr0kIXQy3IBUviXaX8AC+2iYzVbJmGsr3c0yoZVgRO37YcARq6NpK/i2n8v0nzC+lpQjG5oLaZhxFHHKXAXpkB1n3dnUs61I3KM+nvlfqqg9B9agnlyEuJOreEkHHl7gm3AItaVyTwdQLo+KJw9uyXig11eM6u50mkKF/CMYKUc6rkVUrbmFQHihVq5yemzFgJrI7q263iQMys2oVdW5dGmYRAYSvnN/PhqAb++2O6AClOb/dUjXD/vdifoxmQvVHj0R3zhBIBJ4FNQzCGbvbCfl0CvnpdJfQjHyTijlJ7pqxFx0c5irigPYYK30G3Jftlpozy++BL9JRpiDgEmQurRoZuzQp9QdQn8tZnJxnCc/20ul31PPvRzcw0B+1S7TSEAyXdJKsG4D0uHVl7VQhkL6f5vRMPvEXNIiHPK8KKjrakDEWKq3sDxaR X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(54906003)(5660300002)(7416002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?794cpWCqCyxK5psdnvr1+gB12QUR?= =?utf-8?q?GOTzZneu+MSyr0+GYEmklHVKALifIxeqBm0HeSIUmKihLyul49/D9YXP5yRdnrviZ?= =?utf-8?q?bFWQzoO5zW/ghrxbFCIa1+J3iV+AV1zVmhN68loJPKItsY7K5a9ZPvlSEpIy07f4v?= =?utf-8?q?pa4FFXvDMpToXtc6qeMgt4Qjqf5abJunRtXsTguqfvmpEew+e/DrFPIbVUjcVsHdi?= =?utf-8?q?9Zw8J5APkCc2FBtp8mhI3LOLXkaV+19SiPIhQaAjjBV1Kqh299limSjwdX7njZemx?= =?utf-8?q?I7+B8ZCWr4L0lCpXNCCmLztdosZ4fz8A61Qiacq5urKlGmsDsmKT2161oStPEniWD?= =?utf-8?q?QtzfRBr4UE8DBhLPiuklltX+/UNZYk6Azn23x1242zdjrbjp/MrxsJfWF0TcTgaEt?= =?utf-8?q?nk5XleF56pVDuQSVh3fJ3Rv6obmkV1gnST/czG2iz5IXAvEhhhduFYjPpZa7zEK+B?= =?utf-8?q?n0we+rQAjAGZZTfN69eUApawQTh4VWhGwBbtzTqZE7i9kYb48MZOMbUUoJKcCrtDb?= =?utf-8?q?ntbQBiSzBEX8oSm0+uEdvaX7X5aVAZaMu2hwUnn0M+jPS1SnlSW8yFlZ/1Yp7nvK8?= =?utf-8?q?x9bzPViki9PdL2YPWJBH9ENHILWenHceeM7sq/yMoJdm4Hn1qx74Hh3Gl+8gTyF7o?= =?utf-8?q?JRHbJmWkk6BgtedtyCZMBQf3vxCxNZGXSSPUSegT2/vwcozEmkVyryAwIDb6ll9wM?= =?utf-8?q?PqZDZiD1PKJJO/tWdYRSY12MteRb2ZQgoW0/jv15wauFb+lCSWtWtw2gi9H7abNuf?= =?utf-8?q?XJGrpYAXGvO3m5gEocV4gJOoatKgibXTfKyZ6wUW9qMXdNBrA/i/IGjBAEOHPz6KX?= =?utf-8?q?6fOEy7p4Z3q+TrPIZlpJxLI0gfUQZeK18mIzbZKQR1sA6H2d6fc5b+D/qF7cF4gOj?= =?utf-8?q?D0RU65dIIeirxCXEN2iN7psUmpYl8M5PB9aJ0Oo9rBODsr9KOn5FbJ4ywYNhGtyma?= =?utf-8?q?gyMHwq2Fch+XVpCxkp4Ng6IoPZ0TX0IaThmS6L2/I2XVYdXbUSNpkaJ6BJPAbcTsX?= =?utf-8?q?Xo3z+WsMWC44QBNZhA7cXdaXszOzKlu6H2C6wVcg78pzAJa/4zuAsCFXdZkBs7iPe?= =?utf-8?q?NohLU0oorGQICaETPJpFZC/PmMwoEmz9bKXG0uOw+DTU1/U7LIOHCEK5XH12nZQno?= =?utf-8?q?ANRzXSjN4ByPUUvHEtK+JCQ+Zvq0qamKQf5Dq1BsqyEsaLNXJf2WtLwxvnvlv+3Xw?= =?utf-8?q?fwadOqUQIpYsvHn1DEL4yG7EXVuV7opFY6Ul7FeFgbGpR39AUcI8S3ESsd5TJYKYh?= =?utf-8?q?M6Ri3KhXE82is2Wp4n0OeKbAF8DyMJYTa2OwPx5cxITO7EbtEbTxdXV1ldC9TXFGq?= =?utf-8?q?DESw5nlWUrJJKRMA9GWZ9kAUHRyGAcqg4NrYFTn6Hc46+ytHWcnMkfenAURDa+fxZ?= =?utf-8?q?Rkg4vCtPqD2gkPBFyTDBsV85WS1014y7S4lvxKnEBxbxW8Z4ey/DloYKzIYxz6Dl9?= =?utf-8?q?vo9sZS5H5RGXmyP83usaiTPEhBdx1FS6hDBZcFtqm19/IkH6MxWyNCKqDev4Ggz/u?= =?utf-8?q?hjUPQfreK649u+lRph9g7dEa8fcSpYc1Iw=3D=3D?= X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 917c2e5e-7bf1-44a1-f604-08da94ba6d37 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:29:24.4964 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TavzGshXNEE0NoXdsYDihRrbdGyQW+VJbGrGo0YqPdg/tLTaraDPd/XcOAHRAhWWLBFqyKAFHViWK74RbkBYadJV4Fb/4tPD/C5gEY2F6/g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.131; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The following is moved from the nanomips.h to nanomips.cpp file: - #include line - typedefs - enums - definition of the Pool struct. Header file nanomips.h will be deleted to be consistent with the rest of the disas/ code. Signed-off-by: Milica Lazarevic Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 57 +++++++++++++++++++++++++++++++++++++++++++++- disas/nanomips.h | 57 ---------------------------------------------- 2 files changed, 56 insertions(+), 58 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 3b5e6d520f..7fed1abff0 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -36,7 +36,62 @@ #include #include -#include "nanomips.h" +#include + +typedef int64_t int64; +typedef uint64_t uint64; +typedef uint32_t uint32; +typedef uint16_t uint16; +typedef uint64_t img_address; + +enum TABLE_ENTRY_TYPE { + instruction, + call_instruction, + branch_instruction, + return_instruction, + reserved_block, + pool, +}; + +enum TABLE_ATTRIBUTE_TYPE { + MIPS64_ = 0x00000001, + XNP_ = 0x00000002, + XMMS_ = 0x00000004, + EVA_ = 0x00000008, + DSP_ = 0x00000010, + MT_ = 0x00000020, + EJTAG_ = 0x00000040, + TLBINV_ = 0x00000080, + CP0_ = 0x00000100, + CP1_ = 0x00000200, + CP2_ = 0x00000400, + UDI_ = 0x00000800, + MCU_ = 0x00001000, + VZ_ = 0x00002000, + TLB_ = 0x00004000, + MVH_ = 0x00008000, + ALL_ATTRIBUTES = 0xffffffffull, +}; + +typedef struct Dis_info { + img_address m_pc; +} Dis_info; + +typedef bool (*conditional_function)(uint64 instruction); +typedef std::string (*disassembly_function)(uint64 instruction, + Dis_info *info); + +typedef struct Pool { + TABLE_ENTRY_TYPE type; + const struct Pool *next_table; + int next_table_size; + int instructions_size; + uint64 mask; + uint64 value; + disassembly_function disassembly; + conditional_function condition; + uint64 attributes; +} Pool; #define IMGASSERTONCE(test) diff --git a/disas/nanomips.h b/disas/nanomips.h index 75abe03bba..0fd7299900 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -23,61 +23,4 @@ #ifndef DISAS_NANOMIPS_H #define DISAS_NANOMIPS_H -#include - -typedef int64_t int64; -typedef uint64_t uint64; -typedef uint32_t uint32; -typedef uint16_t uint16; -typedef uint64_t img_address; - -enum TABLE_ENTRY_TYPE { - instruction, - call_instruction, - branch_instruction, - return_instruction, - reserved_block, - pool, -}; - -enum TABLE_ATTRIBUTE_TYPE { - MIPS64_ = 0x00000001, - XNP_ = 0x00000002, - XMMS_ = 0x00000004, - EVA_ = 0x00000008, - DSP_ = 0x00000010, - MT_ = 0x00000020, - EJTAG_ = 0x00000040, - TLBINV_ = 0x00000080, - CP0_ = 0x00000100, - CP1_ = 0x00000200, - CP2_ = 0x00000400, - UDI_ = 0x00000800, - MCU_ = 0x00001000, - VZ_ = 0x00002000, - TLB_ = 0x00004000, - MVH_ = 0x00008000, - ALL_ATTRIBUTES = 0xffffffffull, -}; - -typedef struct Dis_info { - img_address m_pc; -} Dis_info; - -typedef bool (*conditional_function)(uint64 instruction); -typedef std::string (*disassembly_function)(uint64 instruction, - Dis_info *info); - -typedef struct Pool { - TABLE_ENTRY_TYPE type; - const struct Pool *next_table; - int next_table_size; - int instructions_size; - uint64 mask; - uint64 value; - disassembly_function disassembly; - conditional_function condition; - uint64 attributes; -} Pool; - #endif From patchwork Mon Sep 12 12:26:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973659 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE6E3ECAAD5 for ; Mon, 12 Sep 2022 13:03:36 +0000 (UTC) Received: from localhost ([::1]:47184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXj67-0006U5-L8 for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 09:03:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZA-0004it-SO for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:32 -0400 Received: from mail-eopbgr70131.outbound.protection.outlook.com ([40.107.7.131]:5091 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZ9-0005rg-3G for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kmlc4AQ0hddbYVeffzNl0WErrcR8vxox4ibFTsaRTRA8feoH5Qo8BirUeKCA8BDDsiAA9kph2qP80gES+7qyAI6cVMrSTM4czhDBimL8yTllGEYzxr1WdUKGrbJJPVGyoeiFB5aRNfuIIfoU/pjI3qXzAGhHv+MUd2qlFpj6Ahqi/NaLRwnfzuKs/jg0D3cfaeTcOIvGxeKnbM2sFKQ4CcP/60dv6dUJ6nxuDjJ3S+LaQ6flm2fBCi/ij1cwDxWHncL3jOs9hXsJx/fwVeYRDiqJwXCXZLKCkTuzPVukH+fOdfdW8sl25FeI0dWHB3Cw7RNUMa3ZhpZsfDoe7ljYog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bcXuC6nDfOiLLTj+yYQ+9NeO6SaHBMXc21gEATxZzqQ=; b=P/o/A+v0qoLrlkoOGYivYsiIqFCxozJXb5jL8MI0XmZcTOhtjK8MA8JIhH6RU9TGy2yLmLqc2cNMQlPG8T/iyyeSNqJCzgep9F3jjor35BO3xwhobO4gZpRwaZX917K3C3Ovpba0FHjOx5t90npmrSkzV/LPQF75c6gZ6W6UO8GBCvOAnCIsZ9hXtVdi4EIqG6WjE3NxqonZpOdIW2X5S2fZ9grQNIePnMvsmbeyzvmXIFSCGpKGLU7jJYLfeJ1PzogCAA6i2OZAIGLCmGqRnV1IKkFx5vj4FBo78NhyGFtZk1kd//H07EoYYshVRG2uKVKQnX/IMKjhwd+djOx+mA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bcXuC6nDfOiLLTj+yYQ+9NeO6SaHBMXc21gEATxZzqQ=; b=JmJ1Y6HA+NJLVxOynV4MKsFT32XYIG5e7CJ5o0RGeSPIgRwa0DW5cEtgajlvj1kPly6eC5W//CLfbzc3ir9XVfVO70c+zlH8V8Vg4/FYza2DCQ8q3J2J843Hkp2ryAFmJLI5cXyLhXqNgc1KAtDc+zPq8GI7o8GsK0xPrAOO3qU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:29:27 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:29:27 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [PATCH v3 11/24] disas/nanomips: Delete nanomips.h Date: Mon, 12 Sep 2022 14:26:22 +0200 Message-Id: <20220912122635.74032-12-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 40f9cd14-ff03-42cc-ade9-08da94ba6f3f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a2gvbiNl48vczB8X52njj602+EHLn/iupr41c0hGW0lB+//NvpX+M1o/+zAibzFLCWYsCPe3h0RrWRlTnDmyIRKwEUV444IIk5cezRMcMnn5kPhykYSq2S4hECaQdKOtXExMwI/+xonPapOzs8HifFhi3WivhO1QUzYbUWDUzNrDKrSgwcvh+eflESksGgGvzSPaVax4tIggQnsla9w17mDQd563+Nb1iFjVamN6QYlcSz/Q0skKo4j6GXsJfiLjVFcu3ojPW9yO/ynTsfwlpP7JQF60xaPVLnnQwJg6qHNqkuQ2mrFwA+MwgPELB6F1yuquggCJUGhFjhXanm9FC0keLqGBuWx/TI1mn3S6ExFL0cEEelmG4rRQVL3ZK1d4if2toH/FcksP+ACPN5R4WLHJUKBKKX4QZ+lVlIATAzDJ+5PaNvCNxtGj0t3sFSJPcHpogvdnZCpYax53NPn1NV8mmzzenbJELPs35EScEd5RsBQo7X11Ys/1uT0L+sq57Osdlm7TNmLREYmzyUzFS9LyUujVuf+rBCfmrmOLssIHXDG3kPReQR/jijqE0t2vivMgqMlhVdmv10ONwP+s/Z1DhYjER8dT+Qn7xi55i8q1egslvf18W1IShISuWCVi3SNFkUWFD/CZQJfTiqxu+D8pq5xTiYC6pmdQDKEIPxWEYF/p2Mq+CW4Tm/uFxftqJdBTLwU4mgOpfZ4+B92H+tOL5jh39nrbVMo2nCVmxIDSeKS4ETzQl4Vb2auqMfYEEW9GCLWzLUbuhbofHF2ONZB5TGqAvnd+JehQXCU8XHY= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(54906003)(5660300002)(7416002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(6666004)(2004002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4NJRBtlwDMnKG+mXMEiiGqAW3YDm?= =?utf-8?q?HUuhj+Nhc/TQosutJ1PEzsiKTxv/gjk5wPtK9fvQagS7Hc+IZlPB8WYyVtmdFjta1?= =?utf-8?q?rXs6hFTQFNxLV9azBeGj/uSrqhyJL2lq7ABeP3UIcVQ1G87HNZh2iia+YRnsHmX4i?= =?utf-8?q?If16N+i+7Ys02wK+i+8Sgr09Od2DWpGR6yJDJHTYvOcxFOKG2GsCtt6cP6E4RdDT0?= =?utf-8?q?uH9ag7pA1FpAeBMGF1DAX9Ld9nlEALsUxW0PUectXH2bq4/khTaNlPydvwqic4Tch?= =?utf-8?q?4YGgscTS9zd7TFa45RrI8Dma6CCzxICuo/HUewMZIzBCBmuqFhgxF9CWfiStnY3JJ?= =?utf-8?q?RKBjjop7aZ5qRWTldc4XBZ71Tp+tQrzHI/qhUo3rBsEL3QmjS3vR6Wp36qq/pQdiO?= =?utf-8?q?HabXYzGu++ZkorbVM7+4sZ7YCZuUzPIjdCUcHK24r+a4SlCK9eFMQWcRtEpW5BLmI?= =?utf-8?q?Ej0kvI68+Ofb/bupTrHxJnpz7e1+1JuOiZy/oiIiTD92O2/9ALJByIS4WyfFF4A1T?= =?utf-8?q?UTO63+rAP9b97JrojSKnUVHxOQ76GPICuiCj3m2z7rthffCUDYJ8o5nmV+vt5ZelA?= =?utf-8?q?OIAm1Hp7e2ec6drxXByzI5JskOKf4sLVJR4ZiDkt+uhvleLASUU6IAjlHWaUly9hG?= =?utf-8?q?kvR9owGyXv7uh4Xg8YqRxAH92GFGibClIlKyedNGC3/Kz/ruHr3h4qz5GGH9QfzXi?= =?utf-8?q?8tIHw5C03xOxOIsbP1n7nHK4b1hnm/tgp0bb6zt/txhsch2wxCnL9Jdw6sj13FHsd?= =?utf-8?q?MbTOyBetXFdOJzcPaOO0UMEkveqvnmGHl318oh1LvTvoTbRzNwqbj5F4BqosnQSHQ?= =?utf-8?q?cPpSorsHk+w59Lrf7dWDWiJG9dMp8qRd59iKL0Espzq9LieZrE8aHrYVsVNsvkydB?= =?utf-8?q?LLdEaBOnD5C/C6tP6xzoKy7SmuJHGiQR5vKBoVB/lmeDrV3RdoVTDBAaNGSGi9hqS?= =?utf-8?q?sNK12S+1wqH6iVJKNzLEK+WTX+ImDS09NdAnNrgYpNELFxmne4jToNQa8BJ5Gz0Zd?= =?utf-8?q?fgg7PiHg3zmyJOEVlkEwRABPyEbXtrYnpIP5bcdlVgREa1SyDmAW0A2P0VEA5TSO0?= =?utf-8?q?HyZpiTjp/gt5IHltzj3WK1aHj/GjsDBJWnKRVrRTNYFw31R4gLjQ26MJxZDrPwDbZ?= =?utf-8?q?vbQX+y9M29nXkr4zEMRtnwqm1aoQHGpF2/CKQQqJuS0xWB1NqRQXeGvNUi9nHzQQk?= =?utf-8?q?vVldTEaSfOmt/KrPkx49wraOiAVDY5M+DuEY81pS28ZrEJBKHotq1MXwgN9Vhw3U+?= =?utf-8?q?DoR3UVabYwqNaSktH4PnkIcE13M8aYlqn58halzrNNTt94noY42KdquRQ0IMeNKcz?= =?utf-8?q?ktnZMrcIJ67WzOBrmS2h4NR/GTjyEXcBoHBCw3wpScFQJKqWHnMCqr/BUQ6UwU5oT?= =?utf-8?q?4usslFf0dnijO/k3fOUmFIKvbfgGCrdUbVHHcFkVn7GpLYl54YULAKyzeApH2PmHc?= =?utf-8?q?V9DDFndnaUOUDA7ywFwREaDYQd1ipMhpKj4zhmo/X9gu6pR8w55Nf0upREt6hX1uG?= =?utf-8?q?OuO8O8H/LJ9ryWVHiPGnAluYqttLLTng/Q=3D=3D?= X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40f9cd14-ff03-42cc-ade9-08da94ba6f3f X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:29:27.8868 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Sry+7XSmspy1KThX76k+lkTrUpEGIYVftf+WIs4H/ZAwRepJcy3uhgtx+2e0XH8rvUyT6A7mdYs2Vfm11ZOyXbfq86tNSiDVyZ1FQ4m6clQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.131; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Header file nanomips.h has been deleted for the nanomips disassembler to stay consistent with the rest of the disassemblers which don't include extra header files. Signed-off-by: Milica Lazarevic Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- disas/nanomips.h | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 disas/nanomips.h diff --git a/disas/nanomips.h b/disas/nanomips.h deleted file mode 100644 index 0fd7299900..0000000000 --- a/disas/nanomips.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Header file for nanoMIPS disassembler component of QEMU - * - * Copyright (C) 2018 Wave Computing, Inc. - * Copyright (C) 2018 Matthew Fortune - * Copyright (C) 2018 Aleksandar Markovic - * - * 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 DISAS_NANOMIPS_H -#define DISAS_NANOMIPS_H - -#endif From patchwork Mon Sep 12 12:26:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973662 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C895ECAAD5 for ; Mon, 12 Sep 2022 13:07:24 +0000 (UTC) Received: from localhost ([::1]:51340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXj9n-0003Pc-0S for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 09:07:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZG-0004uv-Ec for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:39 -0400 Received: from mail-eopbgr70135.outbound.protection.outlook.com ([40.107.7.135]:3222 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZF-0005vi-18 for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:29:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Oil5XNyM6XDXCBXlOwMa/wKQ7MFHKrMvQPdnJnsn50Ga57TgD9qX8xEW6gIYHRWud9R6UOEjWkrrcQbHKfk9RNchNktNg2mcBUjFpO34OT+5n+zFM6vNzXAfZxYUNkPwhmSflEvLNfx1nG9O5CG8N9G4QwqS25skGupRlclIod1YtiL31PhWnBwwSH8c/yK4A04NMwSq9A1XF0oDYdz4EVnTTs+4eSHygUpuls9yHxSNnagtrVOBdKbphiv9Uxgqnj6EhjaVRyTJ+/jx1fq/o7hpVHIS6n/vRPVUyYoJBAPvXr3IkGUgURxUKVHkb60TenOm1pF0F8y0BoHQ/swICg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bZlPXPYQzGp7az8fs/CtoXf+9zDswd4FF7GMCLWG7LQ=; b=NyXo4hyK8QmtxwymioWhhN/oPgEXLreDarMxC7ByhcUTJAMMuNRnH2Nxvovzew5vRUjq4bwF0iUCaMuQvJO1bjDWZudmS5hMTY7wZNUhXZMSie3n5/wC2+YPqnVpPXfJTDziP/17g64ZSm71EJGXqaEkifWQrxk1TChM2q6hOmnE84+wRIlMf/GuqGMQ2z4nSMKucZuSHoXBm8HFYWaWha7ttcqrBCToJ+oLqdYBhTmbKbk7Sk5n47aFibsVZELqI6m6DQSIC1pWv3rl3s2nTE5pu03Nkp/4dv0K+n/xvoY6m+FatHh7wma3wDn3BdWMQa6RBGE6N3kcZgzcExpZCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bZlPXPYQzGp7az8fs/CtoXf+9zDswd4FF7GMCLWG7LQ=; b=Oe8q7rTBrWEZU55AkQCfvEdAdKg+qAXFAgz+4R0qPVsFvCe/q7Bd0llKa2H7IrAeDjL/ETB2eoPEN3+M3PPkIvIR6lwo9CzWil/oUCOW+ZQlWn3W1AA1yQdRS7d0ELYyKmGf0dKAAKGZQXtLTtGg6+d9fJgEm1r4JdhAeGn1DD8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:29:32 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:29:32 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 12/24] disas/nanomips: Remove #inlcude Date: Mon, 12 Sep 2022 14:26:23 +0200 Message-Id: <20220912122635.74032-13-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 47c00302-448d-47f5-351f-08da94ba71db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /TzKguXe//rUSbOSagzFZVeuxYyJpUv8wVuiP8JhejcUA5SjB44lpwpup8KEuESyDqJFzqvgzPsdpNYiPDKSL3AXTTP8+N2f4H0cKmFGW3hehjmQIViMsdNZUcghdmbOUL/3ZeBhwAWZ9Mz+JriBz8y6abLdDWLxYD7wXdNWd1/ldAK/x4iEM60faz/OkyDgzoNuM6oZfpsyCuSS5pz/+rWPT2VIhMvGDy7TfZXH8I3owU5V8n/9zu6lRJOAzUs6ZkQmzb9EckZm19ALj5oJNfeoBMmx+Hp9OoiPu2TogOyXyzsEbyg0ffPo2BefGQsS88gQ1TkEveIHBKuJ2W/ytgZ5qcowuZqQ5ehNeoGqMhIbRRh3G14zfXbmJuAy76KcN8t9RYJjNC2vyWgVSg7Ne+SOlUmDpM8YxODDmGOggmSyRgXnpZh+tMYqEjNdM9Y7KQhGzISrMLHlrQLbPrwxeD3miXBdQ0d8tYMRPnPjzYlVB9TlYTTt9f9aIdbNz8Tv8rOrzJs6eeQSqj8shrZLSp6jvsXix6dhOadQbKc7JSCK3euQ2YqTgKgumbatgPICnyZ3LFeDt7Wr0gDOZ/7ihA874lnHWdDaL88MPkk099Nr6RWj65CVW2rDx7VZjuEAkVIIuDD1EQ7BR06pzi7m3kHW7gKLqsP0XISs8Kzsmm9VMjCsWqaC/MrtefvGsCFqfOatwJjI+fs6YekkHbz04oPGQjVWBcfhpX3b/emSoL6t6KYmVMDWWteK5f1j4oAP X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(4744005)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(5660300002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(107886003)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: n+g9QbSbszkoH0F3hn0gCJxSdWXKLcMD1UK+ZIFJaD3MJ5tRsyS51hc3Qpir6ktMxfnUBk7BqmDRaYtB0P/MHIKOAj+8U1G6wfUOIx6teNSUfmf1enpP3iCM4nKcGXe5Au7Vxi/m3O6vj5+rX+q6vFDIZUtBuHHRvWuuBNSbzTQCyT3+VxjWhJbA0IG4Ho+UrmtOflpLWWIP87SeyE9gtd7A7AIzgLTslloz7lV18CDeABAgH0D+agn1wGapcwmIMvIaRIc52bc3DzjUvTV970An4gD2MEf2hwe4vLkCnhTnPWbbdVwaLlNQv8fEzXs1OWQquAPyeIOTZCzeJbz9UANXTqB5uuwP5uEtOqNHwSxsZUXKMHX9JDpmyY9KioBRvGH8YZtSwLi5cvZFnuT9jlKtPLHqH5vZYeHkZA+boZQaL2gEazhu3MHInm+xWpg8N6QFAc4fZAy262qEnv5V2c+yKmya+bdZnSKdg4XO1F9L5NPEbdKlHGmUHMwD+SqJnFOzT1EzqknfzkQzMnvWKXuNHyTvwLNO0SnOh13rIK10w04jA4o+dfPMoN/QhmWfwEU+LkWOoWYIFH6ecSAHEYfxCJd6Nk2Z6xaClZFtwaTNum6MY50BNSkfOqX5TaIuQ6dXyNUGAJ02WYNGvlQrWUoSRAWXIg/SAjiOW7Lb+mLoAxdFrh8mA7URym4I4QnqLYRxz4h0kHggF0vY9uqUKxRQLDEQmb77DXpNIgExO9ntFhJDXV3g2wQ9a2qoZth36Cr/z2p6XYElyvx3WCNHH3swwQj9K1uEXgx7GrHnXSNc80Vv6zPh8cjSlMEjOwSmfdp5z1edNk3ULbuIFpejRplLudTUughmxG/yD1JM/ozjsYZf/LaDwUnDZtuZtEnJxHN2KAOsxJhE00Ch0Yvckj29rTTAW7fJHez/qM6zmocN+TDs6tDC1gpo8JclK4kHO913rkEI/2ZrfIk8Fj39T3bJgQLfZEMbpdwGRkaW+FbVcq34T5Gv4gpZyqU0gnObCPW2i59JrzChr6ZjFh8hVASAt69rEHP/4hnP2rQVcaHl1D/6fgAusyPs3SMNrZunY7AdK+T2nWu9EoT8kA6EbzKxfyQs2z/I0k/+ULIsNGP+KaayJiq1d13a+z0dbEp4X3drRrlWc0WajaxGoxmOYYbfgpXb+UV0HJHUKpDggEp+dyEQOIUauMf4EIcciJ+45uVd4/6y+WENZ2muPkt9hA/VvdVsWI/IySYWWKfWeqfj3TawWM2wnVy/TwvNOBOpeKlrAjqNpUpV4UAWerwk6Q1ADTJagVaJth4XgcuJt9UZzzftjwiSdqYDRt2nX7oXCnEVYc0iG+DTCyl/Sz0gozruW7xq1JJs3RwHPQlbza2L+LwY7wxMlQFGuax10HGNTERsNfu5Nq0dybywVyZ0wjCQSxGAqazmirYfKd35/58jXg3d5pxl53Zre3/B6C+xCCuBDQxK9RGQdE//yce+Sliiy4qu8FggmqZ2NCyY5gBU9TP/US4Fi2gCVvrTlrgjBDl8u2/mBZue/tiV2YQ8vOiLM5PZQLBkZ7l5V2hivju6KHZFw3i+42u5C7ryKhp2xE+jfPKw/lVFg02c5cshUA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47c00302-448d-47f5-351f-08da94ba71db X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:29:32.2928 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +306unpqVX2STAz5UWUTTvnuTUQZxEMw7Y7h18LyWoM3L8b4T59BgtaT9ALTJT7rOYgy86goxDfWF9N3ZCN124OrNoBOI8wHxvdUo4i+CzM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.135; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" is a C++ library and it's not used by disassembler. Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 7fed1abff0..e3c5c51db1 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -32,7 +32,6 @@ #include #include -#include #include #include From patchwork Mon Sep 12 12:26:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973636 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82C5CC6FA83 for ; Mon, 12 Sep 2022 12:54:40 +0000 (UTC) Received: from localhost ([::1]:38098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXixT-00048i-Hw for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:54:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZv-0005Tt-EJ for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:30:20 -0400 Received: from mail-eopbgr70110.outbound.protection.outlook.com ([40.107.7.110]:8421 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZo-0006Az-GZ for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:30:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V1G/mTXe2hM3Q/6eWAo9uLd/cV0I5WHYBl7KB8hgWi5FM7bBVb/EQKEyKmtmu9Bi12PeaVXxPtdg7Fv2Zp5GRPvHkkTlEvh3c6Onp49H4+snHgqvRr3HdBQWppOBs6aWN/ad3AIGthLsfPAMPxOqYUObksRPCZifOWkanzpDJ3eOUfI/SpwSeL1Z6pzxK3UtaXI2gx2Ajtp4oGUBezuoJ/52ShRCITQ0uRrHCPEB8GsouCyAgNPzF0wwHTZr01cswV7l38Kbq9G4nSnH3ByB74oBEgfsg1YBtmH5M/pPsyCdDVxmtDqV4uvlH6Of5aDbqrDUalnGe+tNBjzaQ6hDqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Xghjnw0atlH5tLM43ue2rmso4c9dKuXWLL+Vpw4uRMk=; b=G1IIdfoJlbYmlxpE6aVvJV20brSz8AifdTIjeiveZ9HY7Pf5Jw6hRE0a5xYVM2Gzh4kmX6m4y4W+H35lF7qHW3Oq9PMJ3EZf8azhEtJIBmxfkKboWFwiwQjeBUmeVOBBmWHGHjXV1wcrByVcFUUJfpi3SyvxnPbpfKDyXGHxq+dnpODwopgX9swyK9XuR2CTDE3lZP6Sa4vdxLdqPGyGnWMXGLhqeK04lA7MvUxZNMox0z0O4R/sXoiXtBsfdrgiNVJYbvJHv0IOu8tWvhPJJ8i2huDjjL5CfBy8snE5r+EoGyvEBDtfCFcftfO4Re6xZSOwLF33VpROePvGk09HNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Xghjnw0atlH5tLM43ue2rmso4c9dKuXWLL+Vpw4uRMk=; b=aR/uA1HauyUcxbmDo5v6Iu6MlxgOI0pSlaMsx30aFbL+/cS4APNBR1F7+RNqcy0luy25NdmwetIXONT0mxk7pFPnxZ63V2uxq009/D8M1x2jp5/wNqVov5ll/vl1D8eD8ZzgeZnI8zJQbQdLfjDyteD6I/ewsQZ6Rg/NDw0+hiU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:29:39 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:29:39 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 13/24] disas/nanomips: Delete copy functions Date: Mon, 12 Sep 2022 14:26:24 +0200 Message-Id: <20220912122635.74032-14-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 68bd522c-3490-4d75-83dc-08da94ba7586 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8xitGObz35g3bWpJHFVWAolNsDIN3lthaMD38Ld5Oa9IreVdw8d0UDYFhaw396GvETJ+udCndkg3UBhpSnIcU8hQevpBN0274ILsO+VaMc2zsgdm9VH3CDNctZ+98YZLxcjGzDJ9N4Ap/11SBsUy7EXiD5dTBypGNP8APbxQRso5rso40O1JwP/lZXdl56415iRcusXZiUU4QoFsGGt4JYozPN29WTpvVNegB6t4htO5z7xmLQx67f97O5VgncHGS70PSmeMUtNsg6ZdgxVv/jcwdU6h++5D8fHrGlxEdONNjBfc8rFcRrOLD09OKyI1tbFnCUkubibpJb0B7695tpD7zDAwQt1Logl8IIZkUjvfCuFXB1ZknSXmiKPq6APaw+55i6a/Z9chnBIeMn8C+hExfXimuBc5OiNdzd21NQhoxAqZvKIqMEXd3cv+tOgAIYQMvuFpcguEA34TDTPcdQyRFbCF23Dyr5cmjFH0BcU6YoCbbQ06ycWGLtE4296P6tH5PTVEPmy6iq5UZyJzubUi2snWzXexVKxioPGFRQju3V4mt09KeZj5ReNIB4VCYKzr2SOBmkhTEvkfZf/GyO9agZNerQujlLuds8UO27JKhfZOz5XWUr6TbTOjyMphjW4uYElY5FEunldvyJoTavdYa4MQz4nRBxMVlnhBEUJcYSnDQnWPa3Xi2En7XAX+DrO7xj9X0F8VIvHrKrr2OvxyLaVOtsc4lX3kV5Y35YbKSXBvAzuJ7+GQ6wqUSfwZ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(30864003)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(5660300002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(107886003)(6666004)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3UARqsro1thRxAt7OMdVDPM7+8zPBYpKAfW2bfh7vdTcwM/8K+M3lqIvORUg8YCtYy6LNDnLag59zNDAG7OfVJJC7uK26L3NfbEQgfBYdsnW0+GyX8CDBAK0zj2x7bIQQf+kLiilTSjGgTdLbwBrkklvdJVKJts8AHxOrplIMWGMJqLFlRH+lzK2ZkDUOyRmDLLd7CXa+2e/zU4ZYtVxUPkINSC2orTUdgIQK9jk2FH1nYcMIGHIZ1oFVwNZSdGaIgGrZmA5oKnePluHu2lc0VAWK/MUM7svSwBmnX0+PrAoqgUxz0vgHaaPkQX/m8OTDQpVAGxHqEdXqcZl2hAzvGMcRpQIo/aAmyUU1dbqikUCnWHDA7flJKVSZp+32kTT0maoMN0wEv35X6S5wC8sontUCFW5pjLDd2cf3uZ9iNg6cxzgUitWpxLouKi85mSVBBVA4e5Tp5EIcIGlk/Pyp7pCkjeT4NIgSOum1kogyla/o45i4z5fcdV+YLyhNfifkbpYIqYOAVb8e0MRCcIex3xcuz7ZRXFKGHtBejTOZDLW3XmC1mvHQzSZIz2NEXKluR54oL9gzeOGcDOrvfXWHq9rWi41D9mckUuUJi0RXiAhAJ6LE3Jm3BvKZgiHHhQf8sLtcO01hW53UDZ1iPtgDDHSc+I0wE80e4dvtq2dbkbaCWImzEbYY6lrn6XxOdTuZq86qd2pHgGTYS+6fga7N/K4ASVqf6T6NVN/juYSN9d7zGDk+085Oh7sLOTO0vpD5EeKpxglvyJ1+Ye3ZI1HbXoTVoanr+5KQih/j6T5+asXznqmkhpIpkdTukBpEpqth5QpLM2wlXk509MebJsDZacyJGP+h4h4h0xBn0Ayk83+SSe01AT7LwwS1xO5s623rowPzikullMIE5cCvC6IzwI9TR1rODWkrAiZxOKpz/nuIviVVzipy5OEuXhzVM8xYr3gi6MaqM/XRrmA/Slk2eDfaA99dlmFD7xTQBXsUQAlWmHhe52t0zO1X4pG6DJNNGi4CeBriKYelzBdntT43eVOB8Rw7zVkJHyAFuHdKhwFiFMZoGld8mmvxPTBNCAj7OEwp+ZtKS0Dm00SJi3lNNM4eDt6w0bl6/sQuKgcJ+kL8FHEEY73foSXGAMGXLZM5R0Ybfin46c3S+59+/iEeSLaROyyoIF3/BTv1TcHIvv8XjNU6sOsCx1TpgsQ/51VdXOJij3h6AoNB+HRiaGoE3NVRpIfr1OQuHuo+GMfsOCRNdK2tgf2eQ3WWN8vn1ZxgcMC7KFFWv9Y6IvKVLpNzvYwcFjiwxZGULMm2+YpY9Uwq4dgKtYmifYEcAjMYCU0cZ3SPBdtOhskwltFLjMb/sVsW8J5htCihm4slDJeSb+F8Yn5rq8Jyg4ecNMyrdYot48Aojai6oGaQ7aZ7rZRHJWDI/tXUFeFY2/bJngZO9wFG47htGpw3EDg5lafdLuPyWGQR6NASvTIZ/Lr0GenwhVyv0Kt1kcpYL9u5O/0nFhWMdV/7kKnyUKnq28noD2r8D2T7soeUHsD8eR5RebBPiQbsz4bWZmCpfTEUnwCrCjADM7CqQFI0g5A8e27Pm17CYTkP5DM6He11r47sHwQwg== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68bd522c-3490-4d75-83dc-08da94ba7586 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:29:39.2298 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ika+2y5fASg1oLttiJTybWnKTB3p6HIRyxpzX5TIiyy5MKgYfmXymEUneHYi8IQb/ImF7OgXH6nbe1KSRr9FtR2u++cp5bmZiH/wwUMn9qU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.110; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Functions that have just one parameter and simply return it have been deleted. Calls to these functions have been replaced with the argument itself. We're deleting following functions: - both versions of copy() - encode_s_from_address() - encode_u_from_address() - encode_lsb_from_pos_and_size() Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 3151 ++++++++++++++++++++++---------------------- 1 file changed, 1559 insertions(+), 1592 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index e3c5c51db1..634ce8d08c 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -499,18 +499,6 @@ static uint64 decode_gpr_gpr1(uint64 d) } -static uint64 copy(uint64 d) -{ - return d; -} - - -static int64 copy(int64 d) -{ - return d; -} - - static int64 neg_copy(uint64 d) { return 0ll - d; @@ -531,20 +519,6 @@ static uint64 encode_rs3_and_check_rs3_lt_rt3(uint64 d) } -/* nop - done by extraction function */ -static uint64 encode_s_from_address(uint64 d) -{ - return d; -} - - -/* nop - done by extraction function */ -static uint64 encode_u_from_address(uint64 d) -{ - return d; -} - - static uint64 encode_count3_from_count(uint64 d) { IMGASSERTONCE(d < 8); @@ -594,13 +568,6 @@ static uint64 encode_rt1_from_rt(uint64 d) } -/* ? */ -static uint64 encode_lsb_from_pos_and_size(uint64 d) -{ - return d; -} - - static std::string GPR(uint64 reg) { static const char *gpr_reg[32] = { @@ -1710,8 +1677,8 @@ static std::string ABS_D(uint64 instruction, Dis_info *info) uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string fs = FPR(copy(fs_value)); - std::string fd = FPR(copy(fd_value)); + std::string fs = FPR(fs_value); + std::string fd = FPR(fd_value); return img_format("ABS.D %s, %s", fd, fs); } @@ -1732,8 +1699,8 @@ static std::string ABS_S(uint64 instruction, Dis_info *info) uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string fs = FPR(copy(fs_value)); - std::string fd = FPR(copy(fd_value)); + std::string fs = FPR(fs_value); + std::string fd = FPR(fd_value); return img_format("ABS.S %s, %s", fd, fs); } @@ -1754,8 +1721,8 @@ static std::string ABSQ_S_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("ABSQ_S.PH %s, %s", rt, rs); } @@ -1776,8 +1743,8 @@ static std::string ABSQ_S_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("ABSQ_S.QB %s, %s", rt, rs); } @@ -1798,8 +1765,8 @@ static std::string ABSQ_S_W(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("ABSQ_S.W %s, %s", rt, rs); } @@ -1820,9 +1787,9 @@ static std::string ACLR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string bit = IMMEDIATE(copy(bit_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string bit = IMMEDIATE(bit_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("ACLR %s, %s(%s)", bit, s, rs); } @@ -1843,9 +1810,9 @@ static std::string ADD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADD %s, %s, %s", rd, rs, rt); } @@ -1868,9 +1835,9 @@ static std::string ADD_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); - std::string fd = FPR(copy(fd_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); + std::string fd = FPR(fd_value); return img_format("ADD.D %s, %s, %s", fd, fs, ft); } @@ -1893,9 +1860,9 @@ static std::string ADD_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); - std::string fd = FPR(copy(fd_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); + std::string fd = FPR(fd_value); return img_format("ADD.S %s, %s, %s", fd, fs, ft); } @@ -1916,9 +1883,9 @@ static std::string ADDIU_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_15_to_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string u = IMMEDIATE(u_value); return img_format("ADDIU %s, %s, %s", rt, rs, u); } @@ -1938,8 +1905,8 @@ static std::string ADDIU_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); return img_format("ADDIU %s, %s", rt, s); } @@ -1959,8 +1926,8 @@ static std::string ADDIU_GP48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); return img_format("ADDIU %s, $%d, %s", rt, 28, s); } @@ -1980,8 +1947,8 @@ static std::string ADDIU_GP_B_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("ADDIU %s, $%d, %s", rt, 28, u); } @@ -2001,8 +1968,8 @@ static std::string ADDIU_GP_W_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("ADDIU %s, $%d, %s", rt, 28, u); } @@ -2023,8 +1990,8 @@ static std::string ADDIU_NEG_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); std::string u = IMMEDIATE(neg_copy(u_value)); return img_format("ADDIU %s, %s, %s", rt, rs, u); @@ -2046,7 +2013,7 @@ static std::string ADDIU_R1_SP_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("ADDIU %s, $%d, %s", rt3, 29, u); } @@ -2069,7 +2036,7 @@ static std::string ADDIU_R2_(uint64 instruction, Dis_info *info) std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("ADDIU %s, %s, %s", rt3, rs3, u); } @@ -2088,8 +2055,8 @@ static std::string ADDIU_RS5_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_9_8_7_6_5(instruction); int64 s_value = extract_s__se3_4_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); return img_format("ADDIU %s, %s", rt, s); } @@ -2110,8 +2077,8 @@ static std::string ADDIUPC_32_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2132,8 +2099,8 @@ static std::string ADDIUPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 6, info); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2155,9 +2122,9 @@ static std::string ADDQ_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDQ.PH %s, %s, %s", rd, rs, rt); } @@ -2180,9 +2147,9 @@ static std::string ADDQ_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -2204,9 +2171,9 @@ static std::string ADDQ_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDQ_S.W %s, %s, %s", rd, rs, rt); } @@ -2229,9 +2196,9 @@ static std::string ADDQH_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDQH.PH %s, %s, %s", rd, rs, rt); } @@ -2254,9 +2221,9 @@ static std::string ADDQH_R_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -2279,9 +2246,9 @@ static std::string ADDQH_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDQH_R.W %s, %s, %s", rd, rs, rt); } @@ -2304,9 +2271,9 @@ static std::string ADDQH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDQH.W %s, %s, %s", rd, rs, rt); } @@ -2328,9 +2295,9 @@ static std::string ADDSC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDSC %s, %s, %s", rd, rs, rt); } @@ -2375,9 +2342,9 @@ static std::string ADDU_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDU %s, %s, %s", rd, rs, rt); } @@ -2421,9 +2388,9 @@ static std::string ADDU_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDU.PH %s, %s, %s", rd, rs, rt); } @@ -2445,9 +2412,9 @@ static std::string ADDU_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDU.QB %s, %s, %s", rd, rs, rt); } @@ -2470,9 +2437,9 @@ static std::string ADDU_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDU_S.PH %s, %s, %s", rd, rs, rt); } @@ -2494,9 +2461,9 @@ static std::string ADDU_S_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDU_S.QB %s, %s, %s", rd, rs, rt); } @@ -2519,9 +2486,9 @@ static std::string ADDUH_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDUH.QB %s, %s, %s", rd, rs, rt); } @@ -2544,9 +2511,9 @@ static std::string ADDUH_R_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -2567,9 +2534,9 @@ static std::string ADDWC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ADDWC %s, %s, %s", rd, rs, rt); } @@ -2590,8 +2557,8 @@ static std::string ALUIPC(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); } @@ -2634,9 +2601,9 @@ static std::string AND_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("AND %s, %s, %s", rd, rs, rt); } @@ -2681,9 +2648,9 @@ static std::string ANDI_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string u = IMMEDIATE(u_value); return img_format("ANDI %s, %s, %s", rt, rs, u); } @@ -2705,9 +2672,9 @@ static std::string APPEND(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("APPEND %s, %s, %s", rt, rs, sa); } @@ -2729,9 +2696,9 @@ static std::string ASET(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string bit = IMMEDIATE(copy(bit_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string bit = IMMEDIATE(bit_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("ASET %s, %s(%s)", bit, s, rs); } @@ -2751,7 +2718,7 @@ static std::string BALC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 2, info); + std::string s = ADDRESS(s_value, 2, info); return img_format("BALC %s", s); } @@ -2771,7 +2738,7 @@ static std::string BALC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string s = ADDRESS(s_value, 4, info); return img_format("BALC %s", s); } @@ -2792,8 +2759,8 @@ static std::string BALRSC(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("BALRSC %s, %s", rt, rs); } @@ -2815,9 +2782,9 @@ static std::string BBEQZC(uint64 instruction, Dis_info *info) uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string bit = IMMEDIATE(copy(bit_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string bit = IMMEDIATE(bit_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BBEQZC %s, %s, %s", rt, bit, s); } @@ -2839,9 +2806,9 @@ static std::string BBNEZC(uint64 instruction, Dis_info *info) uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string bit = IMMEDIATE(copy(bit_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string bit = IMMEDIATE(bit_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BBNEZC %s, %s, %s", rt, bit, s); } @@ -2861,7 +2828,7 @@ static std::string BC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 2, info); + std::string s = ADDRESS(s_value, 2, info); return img_format("BC %s", s); } @@ -2881,7 +2848,7 @@ static std::string BC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string s = ADDRESS(s_value, 4, info); return img_format("BC %s", s); } @@ -2902,8 +2869,8 @@ static std::string BC1EQZC(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string ft = FPR(copy(ft_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string ft = FPR(ft_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BC1EQZC %s, %s", ft, s); } @@ -2924,8 +2891,8 @@ static std::string BC1NEZC(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string ft = FPR(copy(ft_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string ft = FPR(ft_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BC1NEZC %s, %s", ft, s); } @@ -2946,8 +2913,8 @@ static std::string BC2EQZC(uint64 instruction, Dis_info *info) uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string ct = CPR(copy(ct_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string ct = CPR(ct_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BC2EQZC %s, %s", ct, s); } @@ -2968,8 +2935,8 @@ static std::string BC2NEZC(uint64 instruction, Dis_info *info) uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string ct = CPR(copy(ct_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string ct = CPR(ct_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BC2NEZC %s, %s", ct, s); } @@ -2993,7 +2960,7 @@ static std::string BEQC_16_(uint64 instruction, Dis_info *info) std::string rs3 = GPR(encode_rs3_and_check_rs3_lt_rt3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = ADDRESS(encode_u_from_address(u_value), 2, info); + std::string u = ADDRESS(u_value, 2, info); return img_format("BEQC %s, %s, %s", rs3, rt3, u); } @@ -3015,9 +2982,9 @@ static std::string BEQC_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BEQC %s, %s, %s", rs, rt, s); } @@ -3039,9 +3006,9 @@ static std::string BEQIC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BEQIC %s, %s, %s", rt, u, s); } @@ -3063,7 +3030,7 @@ static std::string BEQZC_16_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 2, info); + std::string s = ADDRESS(s_value, 2, info); return img_format("BEQZC %s, %s", rt3, s); } @@ -3085,9 +3052,9 @@ static std::string BGEC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BGEC %s, %s, %s", rs, rt, s); } @@ -3109,9 +3076,9 @@ static std::string BGEIC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BGEIC %s, %s, %s", rt, u, s); } @@ -3133,9 +3100,9 @@ static std::string BGEIUC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BGEIUC %s, %s, %s", rt, u, s); } @@ -3157,9 +3124,9 @@ static std::string BGEUC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BGEUC %s, %s, %s", rs, rt, s); } @@ -3181,9 +3148,9 @@ static std::string BLTC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BLTC %s, %s, %s", rs, rt, s); } @@ -3205,9 +3172,9 @@ static std::string BLTIC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BLTIC %s, %s, %s", rt, u, s); } @@ -3229,9 +3196,9 @@ static std::string BLTIUC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BLTIUC %s, %s, %s", rt, u, s); } @@ -3253,9 +3220,9 @@ static std::string BLTUC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BLTUC %s, %s, %s", rs, rt, s); } @@ -3279,7 +3246,7 @@ static std::string BNEC_16_(uint64 instruction, Dis_info *info) std::string rs3 = GPR(encode_rs3_and_check_rs3_ge_rt3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = ADDRESS(encode_u_from_address(u_value), 2, info); + std::string u = ADDRESS(u_value, 2, info); return img_format("BNEC %s, %s, %s", rs3, rt3, u); } @@ -3301,9 +3268,9 @@ static std::string BNEC_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BNEC %s, %s, %s", rs, rt, s); } @@ -3325,9 +3292,9 @@ static std::string BNEIC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string s = ADDRESS(s_value, 4, info); return img_format("BNEIC %s, %s, %s", rt, u, s); } @@ -3349,7 +3316,7 @@ static std::string BNEZC_16_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 2, info); + std::string s = ADDRESS(s_value, 2, info); return img_format("BNEZC %s, %s", rt3, s); } @@ -3369,7 +3336,7 @@ static std::string BPOSGE32C(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string s = ADDRESS(s_value, 4, info); return img_format("BPOSGE32C %s", s); } @@ -3389,7 +3356,7 @@ static std::string BREAK_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("BREAK %s", code); } @@ -3409,7 +3376,7 @@ static std::string BREAK_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("BREAK %s", code); } @@ -3429,7 +3396,7 @@ static std::string BRSC(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); + std::string rs = GPR(rs_value); return img_format("BRSC %s", rs); } @@ -3451,9 +3418,9 @@ static std::string CACHE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string op = IMMEDIATE(copy(op_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string op = IMMEDIATE(op_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("CACHE %s, %s(%s)", op, s, rs); } @@ -3475,9 +3442,9 @@ static std::string CACHEE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string op = IMMEDIATE(copy(op_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string op = IMMEDIATE(op_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("CACHEE %s, %s(%s)", op, s, rs); } @@ -3498,8 +3465,8 @@ static std::string CEIL_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CEIL.L.D %s, %s", ft, fs); } @@ -3520,8 +3487,8 @@ static std::string CEIL_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CEIL.L.S %s, %s", ft, fs); } @@ -3542,8 +3509,8 @@ static std::string CEIL_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CEIL.W.D %s, %s", ft, fs); } @@ -3564,8 +3531,8 @@ static std::string CEIL_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CEIL.W.S %s, %s", ft, fs); } @@ -3586,8 +3553,8 @@ static std::string CFC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("CFC1 %s, %s", rt, cs); } @@ -3608,8 +3575,8 @@ static std::string CFC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("CFC2 %s, %s", rt, cs); } @@ -3630,8 +3597,8 @@ static std::string CLASS_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CLASS.D %s, %s", ft, fs); } @@ -3652,8 +3619,8 @@ static std::string CLASS_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CLASS.S %s, %s", ft, fs); } @@ -3674,8 +3641,8 @@ static std::string CLO(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("CLO %s, %s", rt, rs); } @@ -3696,8 +3663,8 @@ static std::string CLZ(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("CLZ %s, %s", rt, rs); } @@ -3719,9 +3686,9 @@ static std::string CMP_AF_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.AF.D %s, %s, %s", fd, fs, ft); } @@ -3743,9 +3710,9 @@ static std::string CMP_AF_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.AF.S %s, %s, %s", fd, fs, ft); } @@ -3767,9 +3734,9 @@ static std::string CMP_EQ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.EQ.D %s, %s, %s", fd, fs, ft); } @@ -3789,8 +3756,8 @@ static std::string CMP_EQ_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMP.EQ.PH %s, %s", rs, rt); } @@ -3812,9 +3779,9 @@ static std::string CMP_EQ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.EQ.S %s, %s, %s", fd, fs, ft); } @@ -3836,9 +3803,9 @@ static std::string CMP_LE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.LE.D %s, %s, %s", fd, fs, ft); } @@ -3858,8 +3825,8 @@ static std::string CMP_LE_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMP.LE.PH %s, %s", rs, rt); } @@ -3881,9 +3848,9 @@ static std::string CMP_LE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.LE.S %s, %s, %s", fd, fs, ft); } @@ -3905,9 +3872,9 @@ static std::string CMP_LT_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.LT.D %s, %s, %s", fd, fs, ft); } @@ -3927,8 +3894,8 @@ static std::string CMP_LT_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMP.LT.PH %s, %s", rs, rt); } @@ -3950,9 +3917,9 @@ static std::string CMP_LT_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.LT.S %s, %s, %s", fd, fs, ft); } @@ -3974,9 +3941,9 @@ static std::string CMP_NE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.NE.D %s, %s, %s", fd, fs, ft); } @@ -3998,9 +3965,9 @@ static std::string CMP_NE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.NE.S %s, %s, %s", fd, fs, ft); } @@ -4022,9 +3989,9 @@ static std::string CMP_OR_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.OR.D %s, %s, %s", fd, fs, ft); } @@ -4046,9 +4013,9 @@ static std::string CMP_OR_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.OR.S %s, %s, %s", fd, fs, ft); } @@ -4070,9 +4037,9 @@ static std::string CMP_SAF_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SAF.D %s, %s, %s", fd, fs, ft); } @@ -4094,9 +4061,9 @@ static std::string CMP_SAF_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SAF.S %s, %s, %s", fd, fs, ft); } @@ -4118,9 +4085,9 @@ static std::string CMP_SEQ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SEQ.D %s, %s, %s", fd, fs, ft); } @@ -4142,9 +4109,9 @@ static std::string CMP_SEQ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SEQ.S %s, %s, %s", fd, fs, ft); } @@ -4166,9 +4133,9 @@ static std::string CMP_SLE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SLE.D %s, %s, %s", fd, fs, ft); } @@ -4190,9 +4157,9 @@ static std::string CMP_SLE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SLE.S %s, %s, %s", fd, fs, ft); } @@ -4214,9 +4181,9 @@ static std::string CMP_SLT_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SLT.D %s, %s, %s", fd, fs, ft); } @@ -4238,9 +4205,9 @@ static std::string CMP_SLT_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SLT.S %s, %s, %s", fd, fs, ft); } @@ -4262,9 +4229,9 @@ static std::string CMP_SNE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SNE.D %s, %s, %s", fd, fs, ft); } @@ -4286,9 +4253,9 @@ static std::string CMP_SNE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SNE.S %s, %s, %s", fd, fs, ft); } @@ -4310,9 +4277,9 @@ static std::string CMP_SOR_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SOR.D %s, %s, %s", fd, fs, ft); } @@ -4334,9 +4301,9 @@ static std::string CMP_SOR_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SOR.S %s, %s, %s", fd, fs, ft); } @@ -4358,9 +4325,9 @@ static std::string CMP_SUEQ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SUEQ.D %s, %s, %s", fd, fs, ft); } @@ -4382,9 +4349,9 @@ static std::string CMP_SUEQ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SUEQ.S %s, %s, %s", fd, fs, ft); } @@ -4406,9 +4373,9 @@ static std::string CMP_SULE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SULE.D %s, %s, %s", fd, fs, ft); } @@ -4430,9 +4397,9 @@ static std::string CMP_SULE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SULE.S %s, %s, %s", fd, fs, ft); } @@ -4454,9 +4421,9 @@ static std::string CMP_SULT_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SULT.D %s, %s, %s", fd, fs, ft); } @@ -4478,9 +4445,9 @@ static std::string CMP_SULT_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SULT.S %s, %s, %s", fd, fs, ft); } @@ -4502,9 +4469,9 @@ static std::string CMP_SUN_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SUN.D %s, %s, %s", fd, fs, ft); } @@ -4526,9 +4493,9 @@ static std::string CMP_SUNE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SUNE.D %s, %s, %s", fd, fs, ft); } @@ -4550,9 +4517,9 @@ static std::string CMP_SUNE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SUNE.S %s, %s, %s", fd, fs, ft); } @@ -4574,9 +4541,9 @@ static std::string CMP_SUN_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.SUN.S %s, %s, %s", fd, fs, ft); } @@ -4598,9 +4565,9 @@ static std::string CMP_UEQ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.UEQ.D %s, %s, %s", fd, fs, ft); } @@ -4622,9 +4589,9 @@ static std::string CMP_UEQ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.UEQ.S %s, %s, %s", fd, fs, ft); } @@ -4646,9 +4613,9 @@ static std::string CMP_ULE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.ULE.D %s, %s, %s", fd, fs, ft); } @@ -4670,9 +4637,9 @@ static std::string CMP_ULE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.ULE.S %s, %s, %s", fd, fs, ft); } @@ -4694,9 +4661,9 @@ static std::string CMP_ULT_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.ULT.D %s, %s, %s", fd, fs, ft); } @@ -4718,9 +4685,9 @@ static std::string CMP_ULT_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.ULT.S %s, %s, %s", fd, fs, ft); } @@ -4742,9 +4709,9 @@ static std::string CMP_UN_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.UN.D %s, %s, %s", fd, fs, ft); } @@ -4766,9 +4733,9 @@ static std::string CMP_UNE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.UNE.D %s, %s, %s", fd, fs, ft); } @@ -4790,9 +4757,9 @@ static std::string CMP_UNE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.UNE.S %s, %s, %s", fd, fs, ft); } @@ -4814,9 +4781,9 @@ static std::string CMP_UN_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("CMP.UN.S %s, %s, %s", fd, fs, ft); } @@ -4839,9 +4806,9 @@ static std::string CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPGDU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4864,9 +4831,9 @@ static std::string CMPGDU_LE_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPGDU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4889,9 +4856,9 @@ static std::string CMPGDU_LT_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPGDU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4914,9 +4881,9 @@ static std::string CMPGU_EQ_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPGU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4939,9 +4906,9 @@ static std::string CMPGU_LE_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPGU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4964,9 +4931,9 @@ static std::string CMPGU_LT_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPGU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4987,8 +4954,8 @@ static std::string CMPU_EQ_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPU.EQ.QB %s, %s", rs, rt); } @@ -5009,8 +4976,8 @@ static std::string CMPU_LE_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPU.LE.QB %s, %s", rs, rt); } @@ -5031,8 +4998,8 @@ static std::string CMPU_LT_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("CMPU.LT.QB %s, %s", rs, rt); } @@ -5052,7 +5019,7 @@ static std::string COP2_1(uint64 instruction, Dis_info *info) { uint64 cofun_value = extract_cofun_25_24_23(instruction); - std::string cofun = IMMEDIATE(copy(cofun_value)); + std::string cofun = IMMEDIATE(cofun_value); return img_format("COP2_1 %s", cofun); } @@ -5073,8 +5040,8 @@ static std::string CTC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("CTC1 %s, %s", rt, cs); } @@ -5095,8 +5062,8 @@ static std::string CTC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("CTC2 %s, %s", rt, cs); } @@ -5117,8 +5084,8 @@ static std::string CVT_D_L(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.D.L %s, %s", ft, fs); } @@ -5139,8 +5106,8 @@ static std::string CVT_D_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.D.S %s, %s", ft, fs); } @@ -5161,8 +5128,8 @@ static std::string CVT_D_W(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.D.W %s, %s", ft, fs); } @@ -5183,8 +5150,8 @@ static std::string CVT_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.L.D %s, %s", ft, fs); } @@ -5205,8 +5172,8 @@ static std::string CVT_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.L.S %s, %s", ft, fs); } @@ -5227,8 +5194,8 @@ static std::string CVT_S_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.S.D %s, %s", ft, fs); } @@ -5249,8 +5216,8 @@ static std::string CVT_S_L(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.S.L %s, %s", ft, fs); } @@ -5271,8 +5238,8 @@ static std::string CVT_S_PL(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.S.PL %s, %s", ft, fs); } @@ -5293,8 +5260,8 @@ static std::string CVT_S_PU(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.S.PU %s, %s", ft, fs); } @@ -5315,8 +5282,8 @@ static std::string CVT_S_W(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.S.W %s, %s", ft, fs); } @@ -5337,8 +5304,8 @@ static std::string CVT_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.W.D %s, %s", ft, fs); } @@ -5359,8 +5326,8 @@ static std::string CVT_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("CVT.W.S %s, %s", ft, fs); } @@ -5381,8 +5348,8 @@ static std::string DADDIU_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); return img_format("DADDIU %s, %s", rt, s); } @@ -5404,8 +5371,8 @@ static std::string DADDIU_NEG_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); std::string u = IMMEDIATE(neg_copy(u_value)); return img_format("DADDIU %s, %s, %s", rt, rs, u); @@ -5428,9 +5395,9 @@ static std::string DADDIU_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string u = IMMEDIATE(u_value); return img_format("DADDIU %s, %s, %s", rt, rs, u); } @@ -5452,9 +5419,9 @@ static std::string DADD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DADD %s, %s, %s", rd, rs, rt); } @@ -5476,9 +5443,9 @@ static std::string DADDU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DADDU %s, %s, %s", rd, rs, rt); } @@ -5499,8 +5466,8 @@ static std::string DCLO(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("DCLO %s, %s", rt, rs); } @@ -5521,8 +5488,8 @@ static std::string DCLZ(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("DCLZ %s, %s", rt, rs); } @@ -5544,9 +5511,9 @@ static std::string DDIV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DDIV %s, %s, %s", rd, rs, rt); } @@ -5568,9 +5535,9 @@ static std::string DDIVU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DDIVU %s, %s, %s", rd, rs, rt); } @@ -5611,9 +5578,9 @@ static std::string DEXTM(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string lsb = IMMEDIATE(copy(lsb_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string lsb = IMMEDIATE(lsb_value); std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); @@ -5637,9 +5604,9 @@ static std::string DEXT(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string lsb = IMMEDIATE(copy(lsb_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string lsb = IMMEDIATE(lsb_value); std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); @@ -5663,9 +5630,9 @@ static std::string DEXTU(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string lsb = IMMEDIATE(copy(lsb_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string lsb = IMMEDIATE(lsb_value); std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); @@ -5689,10 +5656,10 @@ static std::string DINSM(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); - std::string size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string pos = IMMEDIATE(lsb_value); + std::string size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ return img_format("DINSM %s, %s, %s, %s", rt, rs, pos, size); @@ -5717,10 +5684,10 @@ static std::string DINS(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); - std::string size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string pos = IMMEDIATE(lsb_value); + std::string size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ return img_format("DINS %s, %s, %s, %s", rt, rs, pos, size); @@ -5745,10 +5712,10 @@ static std::string DINSU(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); - std::string size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string pos = IMMEDIATE(lsb_value); + std::string size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ return img_format("DINSU %s, %s, %s, %s", rt, rs, pos, size); @@ -5770,7 +5737,7 @@ static std::string DI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("DI %s", rt); } @@ -5792,9 +5759,9 @@ static std::string DIV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DIV %s, %s, %s", rd, rs, rt); } @@ -5816,9 +5783,9 @@ static std::string DIV_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("DIV.D %s, %s, %s", fd, fs, ft); } @@ -5840,9 +5807,9 @@ static std::string DIV_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("DIV.S %s, %s, %s", fd, fs, ft); } @@ -5864,9 +5831,9 @@ static std::string DIVU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DIVU %s, %s, %s", rd, rs, rt); } @@ -5889,10 +5856,10 @@ static std::string DLSA(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 u2_value = extract_u2_10_9(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string u2 = IMMEDIATE(copy(u2_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string u2 = IMMEDIATE(u2_value); return img_format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); } @@ -5913,8 +5880,8 @@ static std::string DLUI_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); uint64 u_value = extract_u_31_to_0__s32(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("DLUI %s, %s", rt, u); } @@ -5936,9 +5903,9 @@ static std::string DMFC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("DMFC0 %s, %s, %s", rt, c0s, sel); } @@ -5959,8 +5926,8 @@ static std::string DMFC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string fs = FPR(copy(fs_value)); + std::string rt = GPR(rt_value); + std::string fs = FPR(fs_value); return img_format("DMFC1 %s, %s", rt, fs); } @@ -5981,8 +5948,8 @@ static std::string DMFC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("DMFC2 %s, %s", rt, cs); } @@ -6004,9 +5971,9 @@ static std::string DMFGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("DMFGC0 %s, %s, %s", rt, c0s, sel); } @@ -6028,9 +5995,9 @@ static std::string DMOD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DMOD %s, %s, %s", rd, rs, rt); } @@ -6052,9 +6019,9 @@ static std::string DMODU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DMODU %s, %s, %s", rd, rs, rt); } @@ -6076,9 +6043,9 @@ static std::string DMTC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("DMTC0 %s, %s, %s", rt, c0s, sel); } @@ -6099,8 +6066,8 @@ static std::string DMTC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string fs = FPR(copy(fs_value)); + std::string rt = GPR(rt_value); + std::string fs = FPR(fs_value); return img_format("DMTC1 %s, %s", rt, fs); } @@ -6121,8 +6088,8 @@ static std::string DMTC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("DMTC2 %s, %s", rt, cs); } @@ -6144,9 +6111,9 @@ static std::string DMTGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("DMTGC0 %s, %s, %s", rt, c0s, sel); } @@ -6166,7 +6133,7 @@ static std::string DMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("DMT %s", rt); } @@ -6188,9 +6155,9 @@ static std::string DMUH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DMUH %s, %s, %s", rd, rs, rt); } @@ -6212,9 +6179,9 @@ static std::string DMUHU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DMUHU %s, %s, %s", rd, rs, rt); } @@ -6236,9 +6203,9 @@ static std::string DMUL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DMUL %s, %s, %s", rd, rs, rt); } @@ -6260,9 +6227,9 @@ static std::string DMULU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DMULU %s, %s, %s", rd, rs, rt); } @@ -6285,9 +6252,9 @@ static std::string DPA_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6309,9 +6276,9 @@ static std::string DPAQ_SA_L_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPAQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6333,9 +6300,9 @@ static std::string DPAQ_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6357,9 +6324,9 @@ static std::string DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPAQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6381,9 +6348,9 @@ static std::string DPAQX_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPAQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6405,9 +6372,9 @@ static std::string DPAU_H_QBL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPAU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6429,9 +6396,9 @@ static std::string DPAU_H_QBR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPAU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6453,9 +6420,9 @@ static std::string DPAX_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPAX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6477,9 +6444,9 @@ static std::string DPS_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPS.W.PH %s, %s, %s", ac, rs, rt); } @@ -6501,9 +6468,9 @@ static std::string DPSQ_SA_L_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPSQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6525,9 +6492,9 @@ static std::string DPSQ_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPSQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6549,9 +6516,9 @@ static std::string DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPSQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6573,9 +6540,9 @@ static std::string DPSQX_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPSQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6597,9 +6564,9 @@ static std::string DPSU_H_QBL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPSU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6621,9 +6588,9 @@ static std::string DPSU_H_QBR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPSU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6645,9 +6612,9 @@ static std::string DPSX_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DPSX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6669,9 +6636,9 @@ static std::string DROTR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("DROTR %s, %s, %s", rt, rs, shift); } @@ -6693,9 +6660,9 @@ static std::string DROTR32(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("DROTR32 %s, %s, %s", rt, rs, shift); } @@ -6717,9 +6684,9 @@ static std::string DROTRV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DROTRV %s, %s, %s", rd, rs, rt); } @@ -6742,10 +6709,10 @@ static std::string DROTX(uint64 instruction, Dis_info *info) uint64 shiftx_value = extract_shiftx_11_10_9_8_7_6(instruction); uint64 shift_value = extract_shift_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); - std::string shiftx = IMMEDIATE(copy(shiftx_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); + std::string shiftx = IMMEDIATE(shiftx_value); return img_format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); } @@ -6767,9 +6734,9 @@ static std::string DSLL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("DSLL %s, %s, %s", rt, rs, shift); } @@ -6791,9 +6758,9 @@ static std::string DSLL32(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("DSLL32 %s, %s, %s", rt, rs, shift); } @@ -6815,9 +6782,9 @@ static std::string DSLLV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DSLLV %s, %s, %s", rd, rs, rt); } @@ -6839,9 +6806,9 @@ static std::string DSRA(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("DSRA %s, %s, %s", rt, rs, shift); } @@ -6863,9 +6830,9 @@ static std::string DSRA32(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("DSRA32 %s, %s, %s", rt, rs, shift); } @@ -6887,9 +6854,9 @@ static std::string DSRAV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DSRAV %s, %s, %s", rd, rs, rt); } @@ -6911,9 +6878,9 @@ static std::string DSRL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("DSRL %s, %s, %s", rt, rs, shift); } @@ -6935,9 +6902,9 @@ static std::string DSRL32(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("DSRL32 %s, %s, %s", rt, rs, shift); } @@ -6959,9 +6926,9 @@ static std::string DSRLV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DSRLV %s, %s, %s", rd, rs, rt); } @@ -6983,9 +6950,9 @@ static std::string DSUB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DSUB %s, %s, %s", rd, rs, rt); } @@ -7007,9 +6974,9 @@ static std::string DSUBU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("DSUBU %s, %s, %s", rd, rs, rt); } @@ -7029,7 +6996,7 @@ static std::string DVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("DVPE %s", rt); } @@ -7049,7 +7016,7 @@ static std::string DVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("DVP %s", rt); } @@ -7087,7 +7054,7 @@ static std::string EI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("EI %s", rt); } @@ -7107,7 +7074,7 @@ static std::string EMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("EMT %s", rt); } @@ -7163,7 +7130,7 @@ static std::string EVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("EVP %s", rt); } @@ -7183,7 +7150,7 @@ static std::string EVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("EVPE %s", rt); } @@ -7206,9 +7173,9 @@ static std::string EXT(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string lsb = IMMEDIATE(copy(lsb_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string lsb = IMMEDIATE(lsb_value); std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); @@ -7232,10 +7199,10 @@ static std::string EXTD(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string shift = IMMEDIATE(shift_value); return img_format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7258,10 +7225,10 @@ static std::string EXTD32(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string shift = IMMEDIATE(shift_value); return img_format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7283,9 +7250,9 @@ static std::string EXTPDP(uint64 instruction, Dis_info *info) uint64 size_value = extract_size_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string size = IMMEDIATE(copy(size_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string size = IMMEDIATE(size_value); return img_format("EXTPDP %s, %s, %s", rt, ac, size); } @@ -7307,9 +7274,9 @@ static std::string EXTPDPV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); return img_format("EXTPDPV %s, %s, %s", rt, ac, rs); } @@ -7331,9 +7298,9 @@ static std::string EXTP(uint64 instruction, Dis_info *info) uint64 size_value = extract_size_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string size = IMMEDIATE(copy(size_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string size = IMMEDIATE(size_value); return img_format("EXTP %s, %s, %s", rt, ac, size); } @@ -7355,9 +7322,9 @@ static std::string EXTPV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); return img_format("EXTPV %s, %s, %s", rt, ac, rs); } @@ -7380,9 +7347,9 @@ static std::string EXTR_RS_W(uint64 instruction, Dis_info *info) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string shift = IMMEDIATE(shift_value); return img_format("EXTR_RS.W %s, %s, %s", rt, ac, shift); } @@ -7405,9 +7372,9 @@ static std::string EXTR_R_W(uint64 instruction, Dis_info *info) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string shift = IMMEDIATE(shift_value); return img_format("EXTR_R.W %s, %s, %s", rt, ac, shift); } @@ -7430,9 +7397,9 @@ static std::string EXTR_S_H(uint64 instruction, Dis_info *info) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string shift = IMMEDIATE(shift_value); return img_format("EXTR_S.H %s, %s, %s", rt, ac, shift); } @@ -7455,9 +7422,9 @@ static std::string EXTR_W(uint64 instruction, Dis_info *info) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string shift = IMMEDIATE(shift_value); return img_format("EXTR.W %s, %s, %s", rt, ac, shift); } @@ -7480,9 +7447,9 @@ static std::string EXTRV_RS_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); return img_format("EXTRV_RS.W %s, %s, %s", rt, ac, rs); } @@ -7505,9 +7472,9 @@ static std::string EXTRV_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); return img_format("EXTRV_R.W %s, %s, %s", rt, ac, rs); } @@ -7530,9 +7497,9 @@ static std::string EXTRV_S_H(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); return img_format("EXTRV_S.H %s, %s, %s", rt, ac, rs); } @@ -7555,9 +7522,9 @@ static std::string EXTRV_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); return img_format("EXTRV.W %s, %s, %s", rt, ac, rs); } @@ -7581,10 +7548,10 @@ static std::string EXTW(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string shift = IMMEDIATE(shift_value); return img_format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7605,8 +7572,8 @@ static std::string FLOOR_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("FLOOR.L.D %s, %s", ft, fs); } @@ -7627,8 +7594,8 @@ static std::string FLOOR_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("FLOOR.L.S %s, %s", ft, fs); } @@ -7649,8 +7616,8 @@ static std::string FLOOR_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("FLOOR.W.D %s, %s", ft, fs); } @@ -7671,8 +7638,8 @@ static std::string FLOOR_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("FLOOR.W.S %s, %s", ft, fs); } @@ -7694,9 +7661,9 @@ static std::string FORK(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("FORK %s, %s, %s", rd, rs, rt); } @@ -7716,7 +7683,7 @@ static std::string HYPCALL(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("HYPCALL %s", code); } @@ -7736,7 +7703,7 @@ static std::string HYPCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("HYPCALL %s", code); } @@ -7759,10 +7726,10 @@ static std::string INS(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); - std::string size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string pos = IMMEDIATE(lsb_value); + std::string size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ return img_format("INS %s, %s, %s, %s", rt, rs, pos, size); @@ -7784,8 +7751,8 @@ static std::string INSV(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("INSV %s, %s", rt, rs); } @@ -7823,7 +7790,7 @@ static std::string JALRC_16_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("JALRC $%d, %s", 31, rt); } @@ -7844,8 +7811,8 @@ static std::string JALRC_32_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("JALRC %s, %s", rt, rs); } @@ -7866,8 +7833,8 @@ static std::string JALRC_HB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("JALRC.HB %s, %s", rt, rs); } @@ -7887,7 +7854,7 @@ static std::string JRC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - std::string rt = GPR(copy(rt_value)); + std::string rt = GPR(rt_value); return img_format("JRC %s", rt); } @@ -7910,7 +7877,7 @@ static std::string LB_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_1_0(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LB %s, %s(%s)", rt3, u, rs3); @@ -7932,8 +7899,8 @@ static std::string LB_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("LB %s, %s($%d)", rt, u, 28); } @@ -7955,9 +7922,9 @@ static std::string LB_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LB %s, %s(%s)", rt, s, rs); } @@ -7979,9 +7946,9 @@ static std::string LB_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LB %s, %s(%s)", rt, u, rs); } @@ -8003,9 +7970,9 @@ static std::string LBE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LBE %s, %s(%s)", rt, s, rs); } @@ -8028,7 +7995,7 @@ static std::string LBU_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_1_0(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LBU %s, %s(%s)", rt3, u, rs3); @@ -8050,8 +8017,8 @@ static std::string LBU_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("LBU %s, %s($%d)", rt, u, 28); } @@ -8073,9 +8040,9 @@ static std::string LBU_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LBU %s, %s(%s)", rt, s, rs); } @@ -8097,9 +8064,9 @@ static std::string LBU_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LBU %s, %s(%s)", rt, u, rs); } @@ -8121,9 +8088,9 @@ static std::string LBUE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LBUE %s, %s(%s)", rt, s, rs); } @@ -8145,9 +8112,9 @@ static std::string LBUX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LBUX %s, %s(%s)", rd, rs, rt); } @@ -8169,9 +8136,9 @@ static std::string LBX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LBX %s, %s(%s)", rd, rs, rt); } @@ -8192,8 +8159,8 @@ static std::string LD_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("LD %s, %s($%d)", rt, u, 28); } @@ -8215,9 +8182,9 @@ static std::string LD_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LD %s, %s(%s)", rt, s, rs); } @@ -8239,9 +8206,9 @@ static std::string LD_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LD %s, %s(%s)", rt, u, rs); } @@ -8262,8 +8229,8 @@ static std::string LDC1_GP_(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string ft = FPR(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string ft = FPR(ft_value); + std::string u = IMMEDIATE(u_value); return img_format("LDC1 %s, %s($%d)", ft, u, 28); } @@ -8285,9 +8252,9 @@ static std::string LDC1_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(copy(ft_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string ft = FPR(ft_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LDC1 %s, %s(%s)", ft, s, rs); } @@ -8309,9 +8276,9 @@ static std::string LDC1_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string ft = FPR(ft_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LDC1 %s, %s(%s)", ft, u, rs); } @@ -8333,9 +8300,9 @@ static std::string LDC1XS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ft = FPR(ft_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LDC1XS %s, %s(%s)", ft, rs, rt); } @@ -8357,9 +8324,9 @@ static std::string LDC1X(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ft = FPR(ft_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LDC1X %s, %s(%s)", ft, rs, rt); } @@ -8381,9 +8348,9 @@ static std::string LDC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ct = CPR(copy(ct_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string ct = CPR(ct_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LDC2 %s, %s(%s)", ct, s, rs); } @@ -8406,9 +8373,9 @@ static std::string LDM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("LDM %s, %s(%s), %s", rt, s, rs, count3); @@ -8430,8 +8397,8 @@ static std::string LDPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 6, info); return img_format("LDPC %s, %s", rt, s); } @@ -8453,9 +8420,9 @@ static std::string LDX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LDX %s, %s(%s)", rd, rs, rt); } @@ -8477,9 +8444,9 @@ static std::string LDXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LDXS %s, %s(%s)", rd, rs, rt); } @@ -8502,7 +8469,7 @@ static std::string LH_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_2_1__s1(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LH %s, %s(%s)", rt3, u, rs3); @@ -8524,8 +8491,8 @@ static std::string LH_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("LH %s, %s($%d)", rt, u, 28); } @@ -8547,9 +8514,9 @@ static std::string LH_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LH %s, %s(%s)", rt, s, rs); } @@ -8571,9 +8538,9 @@ static std::string LH_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LH %s, %s(%s)", rt, u, rs); } @@ -8595,9 +8562,9 @@ static std::string LHE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LHE %s, %s(%s)", rt, s, rs); } @@ -8620,7 +8587,7 @@ static std::string LHU_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_2_1__s1(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LHU %s, %s(%s)", rt3, u, rs3); @@ -8642,8 +8609,8 @@ static std::string LHU_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("LHU %s, %s($%d)", rt, u, 28); } @@ -8665,9 +8632,9 @@ static std::string LHU_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LHU %s, %s(%s)", rt, s, rs); } @@ -8689,9 +8656,9 @@ static std::string LHU_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LHU %s, %s(%s)", rt, u, rs); } @@ -8713,9 +8680,9 @@ static std::string LHUE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LHUE %s, %s(%s)", rt, s, rs); } @@ -8737,9 +8704,9 @@ static std::string LHUX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LHUX %s, %s(%s)", rd, rs, rt); } @@ -8761,9 +8728,9 @@ static std::string LHUXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LHUXS %s, %s(%s)", rd, rs, rt); } @@ -8785,9 +8752,9 @@ static std::string LHXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LHXS %s, %s(%s)", rd, rs, rt); } @@ -8809,9 +8776,9 @@ static std::string LHX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LHX %s, %s(%s)", rd, rs, rt); } @@ -8854,8 +8821,8 @@ static std::string LI_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); return img_format("LI %s, %s", rt, s); } @@ -8877,9 +8844,9 @@ static std::string LL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LL %s, %s(%s)", rt, s, rs); } @@ -8901,9 +8868,9 @@ static std::string LLD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_s3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LLD %s, %s(%s)", rt, s, rs); } @@ -8925,9 +8892,9 @@ static std::string LLDP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ru = GPR(ru_value); + std::string rs = GPR(rs_value); return img_format("LLDP %s, %s, (%s)", rt, ru, rs); } @@ -8949,9 +8916,9 @@ static std::string LLE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LLE %s, %s(%s)", rt, s, rs); } @@ -8973,9 +8940,9 @@ static std::string LLWP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ru = GPR(ru_value); + std::string rs = GPR(rs_value); return img_format("LLWP %s, %s, (%s)", rt, ru, rs); } @@ -8997,9 +8964,9 @@ static std::string LLWPE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ru = GPR(ru_value); + std::string rs = GPR(rs_value); return img_format("LLWPE %s, %s, (%s)", rt, ru, rs); } @@ -9022,10 +8989,10 @@ static std::string LSA(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 u2_value = extract_u2_10_9(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string u2 = IMMEDIATE(copy(u2_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); + std::string u2 = IMMEDIATE(u2_value); return img_format("LSA %s, %s, %s, %s", rd, rs, rt, u2); } @@ -9046,8 +9013,8 @@ static std::string LUI(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); return img_format("LUI %s, %%hi(%s)", rt, s); } @@ -9070,7 +9037,7 @@ static std::string LW_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_3_2_1_0__s2(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LW %s, %s(%s)", rt3, u, rs3); @@ -9094,7 +9061,7 @@ static std::string LW_4X4_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_3_8__s2(instruction); std::string rt4 = GPR(decode_gpr_gpr4(rt4_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); return img_format("LW %s, %s(%s)", rt4, u, rs4); @@ -9116,8 +9083,8 @@ static std::string LW_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("LW %s, %s($%d)", rt, u, 28); } @@ -9139,7 +9106,7 @@ static std::string LW_GP16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("LW %s, %s($%d)", rt3, u, 28); } @@ -9161,9 +9128,9 @@ static std::string LW_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LW %s, %s(%s)", rt, s, rs); } @@ -9184,8 +9151,8 @@ static std::string LW_SP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("LW %s, %s($%d)", rt, u, 29); } @@ -9207,9 +9174,9 @@ static std::string LW_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LW %s, %s(%s)", rt, u, rs); } @@ -9230,8 +9197,8 @@ static std::string LWC1_GP_(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string ft = FPR(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string ft = FPR(ft_value); + std::string u = IMMEDIATE(u_value); return img_format("LWC1 %s, %s($%d)", ft, u, 28); } @@ -9253,9 +9220,9 @@ static std::string LWC1_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(copy(ft_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string ft = FPR(ft_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LWC1 %s, %s(%s)", ft, s, rs); } @@ -9277,9 +9244,9 @@ static std::string LWC1_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string ft = FPR(ft_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LWC1 %s, %s(%s)", ft, u, rs); } @@ -9301,9 +9268,9 @@ static std::string LWC1X(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ft = FPR(ft_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LWC1X %s, %s(%s)", ft, rs, rt); } @@ -9325,9 +9292,9 @@ static std::string LWC1XS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ft = FPR(ft_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LWC1XS %s, %s(%s)", ft, rs, rt); } @@ -9349,9 +9316,9 @@ static std::string LWC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ct = CPR(copy(ct_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string ct = CPR(ct_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LWC2 %s, %s(%s)", ct, s, rs); } @@ -9373,9 +9340,9 @@ static std::string LWE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LWE %s, %s(%s)", rt, s, rs); } @@ -9398,9 +9365,9 @@ static std::string LWM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("LWM %s, %s(%s), %s", rt, s, rs, count3); @@ -9422,8 +9389,8 @@ static std::string LWPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 6, info); return img_format("LWPC %s, %s", rt, s); } @@ -9444,8 +9411,8 @@ static std::string LWU_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("LWU %s, %s($%d)", rt, u, 28); } @@ -9467,9 +9434,9 @@ static std::string LWU_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("LWU %s, %s(%s)", rt, s, rs); } @@ -9491,9 +9458,9 @@ static std::string LWU_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("LWU %s, %s(%s)", rt, u, rs); } @@ -9515,9 +9482,9 @@ static std::string LWUX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LWUX %s, %s(%s)", rd, rs, rt); } @@ -9539,9 +9506,9 @@ static std::string LWUXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LWUXS %s, %s(%s)", rd, rs, rt); } @@ -9563,9 +9530,9 @@ static std::string LWX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LWX %s, %s(%s)", rd, rs, rt); } @@ -9611,9 +9578,9 @@ static std::string LWXS_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("LWXS %s, %s(%s)", rd, rs, rt); } @@ -9636,9 +9603,9 @@ static std::string MADD_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MADD %s, %s, %s", ac, rs, rt); } @@ -9660,9 +9627,9 @@ static std::string MADDF_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MADDF.D %s, %s, %s", fd, fs, ft); } @@ -9684,9 +9651,9 @@ static std::string MADDF_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MADDF.S %s, %s, %s", fd, fs, ft); } @@ -9709,9 +9676,9 @@ static std::string MADDU_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MADDU %s, %s, %s", ac, rs, rt); } @@ -9734,9 +9701,9 @@ static std::string MAQ_S_W_PHL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MAQ_S.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9759,9 +9726,9 @@ static std::string MAQ_S_W_PHR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MAQ_S.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9784,9 +9751,9 @@ static std::string MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MAQ_SA.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9809,9 +9776,9 @@ static std::string MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MAQ_SA.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9833,9 +9800,9 @@ static std::string MAX_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MAX.D %s, %s, %s", fd, fs, ft); } @@ -9857,9 +9824,9 @@ static std::string MAX_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MAX.S %s, %s, %s", fd, fs, ft); } @@ -9881,9 +9848,9 @@ static std::string MAXA_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MAXA.D %s, %s, %s", fd, fs, ft); } @@ -9905,9 +9872,9 @@ static std::string MAXA_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MAXA.S %s, %s, %s", fd, fs, ft); } @@ -9929,9 +9896,9 @@ static std::string MFC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MFC0 %s, %s, %s", rt, c0s, sel); } @@ -9952,8 +9919,8 @@ static std::string MFC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string fs = FPR(copy(fs_value)); + std::string rt = GPR(rt_value); + std::string fs = FPR(fs_value); return img_format("MFC1 %s, %s", rt, fs); } @@ -9974,8 +9941,8 @@ static std::string MFC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("MFC2 %s, %s", rt, cs); } @@ -9997,9 +9964,9 @@ static std::string MFGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MFGC0 %s, %s, %s", rt, c0s, sel); } @@ -10021,9 +9988,9 @@ static std::string MFHC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MFHC0 %s, %s, %s", rt, c0s, sel); } @@ -10044,8 +10011,8 @@ static std::string MFHC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string fs = FPR(copy(fs_value)); + std::string rt = GPR(rt_value); + std::string fs = FPR(fs_value); return img_format("MFHC1 %s, %s", rt, fs); } @@ -10066,8 +10033,8 @@ static std::string MFHC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("MFHC2 %s, %s", rt, cs); } @@ -10089,9 +10056,9 @@ static std::string MFHGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MFHGC0 %s, %s, %s", rt, c0s, sel); } @@ -10111,8 +10078,8 @@ static std::string MFHI_DSP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); return img_format("MFHI %s, %s", rt, ac); } @@ -10135,10 +10102,10 @@ static std::string MFHTR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = IMMEDIATE(copy(c0s_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = IMMEDIATE(c0s_value); + std::string u = IMMEDIATE(u_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10158,8 +10125,8 @@ static std::string MFLO_DSP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ac = AC(copy(ac_value)); + std::string rt = GPR(rt_value); + std::string ac = AC(ac_value); return img_format("MFLO %s, %s", rt, ac); } @@ -10182,10 +10149,10 @@ static std::string MFTR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = IMMEDIATE(copy(c0s_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = IMMEDIATE(c0s_value); + std::string u = IMMEDIATE(u_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10207,9 +10174,9 @@ static std::string MIN_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MIN.D %s, %s, %s", fd, fs, ft); } @@ -10231,9 +10198,9 @@ static std::string MIN_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MIN.S %s, %s, %s", fd, fs, ft); } @@ -10255,9 +10222,9 @@ static std::string MINA_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MINA.D %s, %s, %s", fd, fs, ft); } @@ -10279,9 +10246,9 @@ static std::string MINA_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MINA.S %s, %s, %s", fd, fs, ft); } @@ -10303,9 +10270,9 @@ static std::string MOD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MOD %s, %s, %s", rd, rs, rt); } @@ -10327,9 +10294,9 @@ static std::string MODSUB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MODSUB %s, %s, %s", rd, rs, rt); } @@ -10351,9 +10318,9 @@ static std::string MODU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MODU %s, %s, %s", rd, rs, rt); } @@ -10374,8 +10341,8 @@ static std::string MOV_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("MOV.D %s, %s", ft, fs); } @@ -10396,8 +10363,8 @@ static std::string MOV_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("MOV.S %s, %s", ft, fs); } @@ -10421,7 +10388,7 @@ static std::string MOVE_BALC(uint64 instruction, Dis_info *info) std::string rd1 = GPR(decode_gpr_gpr1(rd1_value)); std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4, info); + std::string s = ADDRESS(s_value, 4, info); return img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); } @@ -10496,8 +10463,8 @@ static std::string MOVE(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 rs_value = extract_rs_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("MOVE %s, %s", rt, rs); } @@ -10519,9 +10486,9 @@ static std::string MOVN(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MOVN %s, %s, %s", rd, rs, rt); } @@ -10543,9 +10510,9 @@ static std::string MOVZ(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MOVZ %s, %s, %s", rd, rs, rt); } @@ -10567,9 +10534,9 @@ static std::string MSUB_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MSUB %s, %s, %s", ac, rs, rt); } @@ -10591,9 +10558,9 @@ static std::string MSUBF_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MSUBF.D %s, %s, %s", fd, fs, ft); } @@ -10615,9 +10582,9 @@ static std::string MSUBF_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MSUBF.S %s, %s, %s", fd, fs, ft); } @@ -10639,9 +10606,9 @@ static std::string MSUBU_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MSUBU %s, %s, %s", ac, rs, rt); } @@ -10663,9 +10630,9 @@ static std::string MTC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MTC0 %s, %s, %s", rt, c0s, sel); } @@ -10686,8 +10653,8 @@ static std::string MTC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string fs = FPR(copy(fs_value)); + std::string rt = GPR(rt_value); + std::string fs = FPR(fs_value); return img_format("MTC1 %s, %s", rt, fs); } @@ -10708,8 +10675,8 @@ static std::string MTC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("MTC2 %s, %s", rt, cs); } @@ -10731,9 +10698,9 @@ static std::string MTGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MTGC0 %s, %s, %s", rt, c0s, sel); } @@ -10755,9 +10722,9 @@ static std::string MTHC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MTHC0 %s, %s, %s", rt, c0s, sel); } @@ -10778,8 +10745,8 @@ static std::string MTHC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string fs = FPR(copy(fs_value)); + std::string rt = GPR(rt_value); + std::string fs = FPR(fs_value); return img_format("MTHC1 %s, %s", rt, fs); } @@ -10800,8 +10767,8 @@ static std::string MTHC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string cs = CPR(copy(cs_value)); + std::string rt = GPR(rt_value); + std::string cs = CPR(cs_value); return img_format("MTHC2 %s, %s", rt, cs); } @@ -10823,9 +10790,9 @@ static std::string MTHGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = CPR(c0s_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MTHGC0 %s, %s, %s", rt, c0s, sel); } @@ -10845,8 +10812,8 @@ static std::string MTHI_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rs = GPR(copy(rs_value)); - std::string ac = AC(copy(ac_value)); + std::string rs = GPR(rs_value); + std::string ac = AC(ac_value); return img_format("MTHI %s, %s", rs, ac); } @@ -10866,8 +10833,8 @@ static std::string MTHLIP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rs = GPR(copy(rs_value)); - std::string ac = AC(copy(ac_value)); + std::string rs = GPR(rs_value); + std::string ac = AC(ac_value); return img_format("MTHLIP %s, %s", rs, ac); } @@ -10890,10 +10857,10 @@ static std::string MTHTR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = IMMEDIATE(copy(c0s_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = IMMEDIATE(c0s_value); + std::string u = IMMEDIATE(u_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10913,8 +10880,8 @@ static std::string MTLO_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rs = GPR(copy(rs_value)); - std::string ac = AC(copy(ac_value)); + std::string rs = GPR(rs_value); + std::string ac = AC(ac_value); return img_format("MTLO %s, %s", rs, ac); } @@ -10937,10 +10904,10 @@ static std::string MTTR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - std::string rt = GPR(copy(rt_value)); - std::string c0s = IMMEDIATE(copy(c0s_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string c0s = IMMEDIATE(c0s_value); + std::string u = IMMEDIATE(u_value); + std::string sel = IMMEDIATE(sel_value); return img_format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10962,9 +10929,9 @@ static std::string MUH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MUH %s, %s, %s", rd, rs, rt); } @@ -10986,9 +10953,9 @@ static std::string MUHU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MUHU %s, %s, %s", rd, rs, rt); } @@ -11010,9 +10977,9 @@ static std::string MUL_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MUL %s, %s, %s", rd, rs, rt); } @@ -11056,9 +11023,9 @@ static std::string MUL_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MUL.D %s, %s, %s", fd, fs, ft); } @@ -11081,9 +11048,9 @@ static std::string MUL_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MUL.PH %s, %s, %s", rd, rs, rt); } @@ -11106,9 +11073,9 @@ static std::string MUL_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MUL_S.PH %s, %s, %s", rd, rs, rt); } @@ -11130,9 +11097,9 @@ static std::string MUL_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("MUL.S %s, %s, %s", fd, fs, ft); } @@ -11155,9 +11122,9 @@ static std::string MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULEQ_S.W.PHL %s, %s, %s", rd, rs, rt); } @@ -11180,9 +11147,9 @@ static std::string MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULEQ_S.W.PHR %s, %s, %s", rd, rs, rt); } @@ -11205,9 +11172,9 @@ static std::string MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULEU_S.PH.QBL %s, %s, %s", rd, rs, rt); } @@ -11230,9 +11197,9 @@ static std::string MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULEU_S.PH.QBR %s, %s, %s", rd, rs, rt); } @@ -11255,9 +11222,9 @@ static std::string MULQ_RS_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULQ_RS.PH %s, %s, %s", rd, rs, rt); } @@ -11280,9 +11247,9 @@ static std::string MULQ_RS_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULQ_RS.W %s, %s, %s", rd, rs, rt); } @@ -11305,9 +11272,9 @@ static std::string MULQ_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -11330,9 +11297,9 @@ static std::string MULQ_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULQ_S.W %s, %s, %s", rd, rs, rt); } @@ -11355,9 +11322,9 @@ static std::string MULSA_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULSA.W.PH %s, %s, %s", ac, rs, rt); } @@ -11380,9 +11347,9 @@ static std::string MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULSAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -11404,9 +11371,9 @@ static std::string MULT_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULT %s, %s, %s", ac, rs, rt); } @@ -11428,9 +11395,9 @@ static std::string MULTU_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ac = AC(ac_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULTU %s, %s, %s", ac, rs, rt); } @@ -11452,9 +11419,9 @@ static std::string MULU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("MULU %s, %s, %s", rd, rs, rt); } @@ -11475,8 +11442,8 @@ static std::string NEG_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("NEG.D %s, %s", ft, fs); } @@ -11497,8 +11464,8 @@ static std::string NEG_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("NEG.S %s, %s", ft, fs); } @@ -11556,9 +11523,9 @@ static std::string NOR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("NOR %s, %s, %s", rd, rs, rt); } @@ -11624,9 +11591,9 @@ static std::string OR_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("OR %s, %s, %s", rd, rs, rt); } @@ -11648,9 +11615,9 @@ static std::string ORI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string u = IMMEDIATE(u_value); return img_format("ORI %s, %s, %s", rt, rs, u); } @@ -11673,9 +11640,9 @@ static std::string PACKRL_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("PACKRL.PH %s, %s, %s", rd, rs, rt); } @@ -11716,9 +11683,9 @@ static std::string PICK_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("PICK.PH %s, %s, %s", rd, rs, rt); } @@ -11741,9 +11708,9 @@ static std::string PICK_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("PICK.QB %s, %s, %s", rd, rs, rt); } @@ -11765,8 +11732,8 @@ static std::string PRECEQ_W_PHL(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEQ.W.PHL %s, %s", rt, rs); } @@ -11788,8 +11755,8 @@ static std::string PRECEQ_W_PHR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEQ.W.PHR %s, %s", rt, rs); } @@ -11811,8 +11778,8 @@ static std::string PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEQU.PH.QBLA %s, %s", rt, rs); } @@ -11834,8 +11801,8 @@ static std::string PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEQU.PH.QBL %s, %s", rt, rs); } @@ -11857,8 +11824,8 @@ static std::string PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEQU.PH.QBRA %s, %s", rt, rs); } @@ -11880,8 +11847,8 @@ static std::string PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEQU.PH.QBR %s, %s", rt, rs); } @@ -11904,8 +11871,8 @@ static std::string PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEU.PH.QBLA %s, %s", rt, rs); } @@ -11927,8 +11894,8 @@ static std::string PRECEU_PH_QBL(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEU.PH.QBL %s, %s", rt, rs); } @@ -11951,8 +11918,8 @@ static std::string PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEU.PH.QBRA %s, %s", rt, rs); } @@ -11974,8 +11941,8 @@ static std::string PRECEU_PH_QBR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("PRECEU.PH.QBR %s, %s", rt, rs); } @@ -11998,9 +11965,9 @@ static std::string PRECR_QB_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("PRECR.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12023,9 +11990,9 @@ static std::string PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); } @@ -12048,9 +12015,9 @@ static std::string PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); } @@ -12073,9 +12040,9 @@ static std::string PRECRQ_PH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("PRECRQ.PH.W %s, %s, %s", rd, rs, rt); } @@ -12098,9 +12065,9 @@ static std::string PRECRQ_QB_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("PRECRQ.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12123,9 +12090,9 @@ static std::string PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("PRECRQ_RS.PH.W %s, %s, %s", rd, rs, rt); } @@ -12148,9 +12115,9 @@ static std::string PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("PRECRQU_S.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12172,9 +12139,9 @@ static std::string PREF_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string hint = IMMEDIATE(copy(hint_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string hint = IMMEDIATE(hint_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("PREF %s, %s(%s)", hint, s, rs); } @@ -12196,9 +12163,9 @@ static std::string PREF_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string hint = IMMEDIATE(copy(hint_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string hint = IMMEDIATE(hint_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("PREF %s, %s(%s)", hint, u, rs); } @@ -12220,9 +12187,9 @@ static std::string PREFE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string hint = IMMEDIATE(copy(hint_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string hint = IMMEDIATE(hint_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("PREFE %s, %s(%s)", hint, s, rs); } @@ -12244,9 +12211,9 @@ static std::string PREPEND(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("PREPEND %s, %s, %s", rt, rs, sa); } @@ -12266,8 +12233,8 @@ static std::string RADDU_W_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("RADDU.W.QB %s, %s", rt, rs); } @@ -12287,8 +12254,8 @@ static std::string RDDSP(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string mask = IMMEDIATE(copy(mask_value)); + std::string rt = GPR(rt_value); + std::string mask = IMMEDIATE(mask_value); return img_format("RDDSP %s, %s", rt, mask); } @@ -12310,9 +12277,9 @@ static std::string RDHWR(uint64 instruction, Dis_info *info) uint64 hs_value = extract_hs_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string hs = CPR(copy(hs_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + std::string rt = GPR(rt_value); + std::string hs = CPR(hs_value); + std::string sel = IMMEDIATE(sel_value); return img_format("RDHWR %s, %s, %s", rt, hs, sel); } @@ -12333,8 +12300,8 @@ static std::string RDPGPR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("RDPGPR %s, %s", rt, rs); } @@ -12355,8 +12322,8 @@ static std::string RECIP_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("RECIP.D %s, %s", ft, fs); } @@ -12377,8 +12344,8 @@ static std::string RECIP_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("RECIP.S %s, %s", ft, fs); } @@ -12399,8 +12366,8 @@ static std::string REPL_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se9_20_19_18_17_16_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); return img_format("REPL.PH %s, %s", rt, s); } @@ -12421,8 +12388,8 @@ static std::string REPL_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_19_18_17_16_15_14_13(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("REPL.QB %s, %s", rt, u); } @@ -12443,8 +12410,8 @@ static std::string REPLV_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("REPLV.PH %s, %s", rt, rs); } @@ -12464,8 +12431,8 @@ static std::string REPLV_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("REPLV.QB %s, %s", rt, rs); } @@ -12488,7 +12455,7 @@ static std::string RESTORE_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("RESTORE %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12510,7 +12477,7 @@ static std::string RESTORE_JRC_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("RESTORE.JRC %s%s", u, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12533,7 +12500,7 @@ static std::string RESTORE_JRC_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("RESTORE.JRC %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12554,8 +12521,8 @@ static std::string RESTOREF(uint64 instruction, Dis_info *info) uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); - std::string u = IMMEDIATE(copy(u_value)); - std::string count = IMMEDIATE(copy(count_value)); + std::string u = IMMEDIATE(u_value); + std::string count = IMMEDIATE(count_value); return img_format("RESTOREF %s, %s", u, count); } @@ -12576,8 +12543,8 @@ static std::string RINT_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("RINT.D %s, %s", ft, fs); } @@ -12598,8 +12565,8 @@ static std::string RINT_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("RINT.S %s, %s", ft, fs); } @@ -12621,9 +12588,9 @@ static std::string ROTR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("ROTR %s, %s, %s", rt, rs, shift); } @@ -12645,9 +12612,9 @@ static std::string ROTRV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("ROTRV %s, %s, %s", rd, rs, rt); } @@ -12671,11 +12638,11 @@ static std::string ROTX(uint64 instruction, Dis_info *info) uint64 stripe_value = extract_stripe_6(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); - std::string shiftx = IMMEDIATE(copy(shiftx_value)); - std::string stripe = IMMEDIATE(copy(stripe_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); + std::string shiftx = IMMEDIATE(shiftx_value); + std::string stripe = IMMEDIATE(stripe_value); return img_format("ROTX %s, %s, %s, %s, %s", rt, rs, shift, shiftx, stripe); @@ -12697,8 +12664,8 @@ static std::string ROUND_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("ROUND.L.D %s, %s", ft, fs); } @@ -12719,8 +12686,8 @@ static std::string ROUND_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("ROUND.L.S %s, %s", ft, fs); } @@ -12741,8 +12708,8 @@ static std::string ROUND_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("ROUND.W.D %s, %s", ft, fs); } @@ -12763,8 +12730,8 @@ static std::string ROUND_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("ROUND.W.S %s, %s", ft, fs); } @@ -12785,8 +12752,8 @@ static std::string RSQRT_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("RSQRT.D %s, %s", ft, fs); } @@ -12807,8 +12774,8 @@ static std::string RSQRT_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("RSQRT.S %s, %s", ft, fs); } @@ -12830,7 +12797,7 @@ static std::string SAVE_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("SAVE %s%s", u, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12853,7 +12820,7 @@ static std::string SAVE_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("SAVE %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12874,8 +12841,8 @@ static std::string SAVEF(uint64 instruction, Dis_info *info) uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); - std::string u = IMMEDIATE(copy(u_value)); - std::string count = IMMEDIATE(copy(count_value)); + std::string u = IMMEDIATE(u_value); + std::string count = IMMEDIATE(count_value); return img_format("SAVEF %s, %s", u, count); } @@ -12898,7 +12865,7 @@ static std::string SB_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_1_0(instruction); std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SB %s, %s(%s)", rtz3, u, rs3); @@ -12920,8 +12887,8 @@ static std::string SB_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("SB %s, %s($%d)", rt, u, 28); } @@ -12943,9 +12910,9 @@ static std::string SB_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SB %s, %s(%s)", rt, s, rs); } @@ -12967,9 +12934,9 @@ static std::string SB_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("SB %s, %s(%s)", rt, u, rs); } @@ -12991,9 +12958,9 @@ static std::string SBE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SBE %s, %s(%s)", rt, s, rs); } @@ -13015,9 +12982,9 @@ static std::string SBX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SBX %s, %s(%s)", rd, rs, rt); } @@ -13039,9 +13006,9 @@ static std::string SC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SC %s, %s(%s)", rt, s, rs); } @@ -13063,9 +13030,9 @@ static std::string SCD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_s3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SCD %s, %s(%s)", rt, s, rs); } @@ -13087,9 +13054,9 @@ static std::string SCDP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ru = GPR(ru_value); + std::string rs = GPR(rs_value); return img_format("SCDP %s, %s, (%s)", rt, ru, rs); } @@ -13111,9 +13078,9 @@ static std::string SCE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SCE %s, %s(%s)", rt, s, rs); } @@ -13135,9 +13102,9 @@ static std::string SCWP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ru = GPR(ru_value); + std::string rs = GPR(rs_value); return img_format("SCWP %s, %s, (%s)", rt, ru, rs); } @@ -13159,9 +13126,9 @@ static std::string SCWPE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string ru = GPR(ru_value); + std::string rs = GPR(rs_value); return img_format("SCWPE %s, %s, (%s)", rt, ru, rs); } @@ -13182,8 +13149,8 @@ static std::string SD_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("SD %s, %s($%d)", rt, u, 28); } @@ -13205,9 +13172,9 @@ static std::string SD_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SD %s, %s(%s)", rt, s, rs); } @@ -13229,9 +13196,9 @@ static std::string SD_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("SD %s, %s(%s)", rt, u, rs); } @@ -13251,7 +13218,7 @@ static std::string SDBBP_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("SDBBP %s", code); } @@ -13271,7 +13238,7 @@ static std::string SDBBP_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("SDBBP %s", code); } @@ -13292,8 +13259,8 @@ static std::string SDC1_GP_(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string ft = FPR(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string ft = FPR(ft_value); + std::string u = IMMEDIATE(u_value); return img_format("SDC1 %s, %s($%d)", ft, u, 28); } @@ -13315,9 +13282,9 @@ static std::string SDC1_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(copy(ft_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string ft = FPR(ft_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SDC1 %s, %s(%s)", ft, s, rs); } @@ -13339,9 +13306,9 @@ static std::string SDC1_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string ft = FPR(ft_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("SDC1 %s, %s(%s)", ft, u, rs); } @@ -13363,9 +13330,9 @@ static std::string SDC1X(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ft = FPR(ft_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SDC1X %s, %s(%s)", ft, rs, rt); } @@ -13387,9 +13354,9 @@ static std::string SDC1XS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ft = FPR(ft_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SDC1XS %s, %s(%s)", ft, rs, rt); } @@ -13411,9 +13378,9 @@ static std::string SDC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string cs = CPR(copy(cs_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string cs = CPR(cs_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SDC2 %s, %s(%s)", cs, s, rs); } @@ -13436,9 +13403,9 @@ static std::string SDM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("SDM %s, %s(%s), %s", rt, s, rs, count3); @@ -13460,8 +13427,8 @@ static std::string SDPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 6, info); return img_format("SDPC %s, %s", rt, s); } @@ -13483,9 +13450,9 @@ static std::string SDXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SDXS %s, %s(%s)", rd, rs, rt); } @@ -13507,9 +13474,9 @@ static std::string SDX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SDX %s, %s(%s)", rd, rs, rt); } @@ -13530,8 +13497,8 @@ static std::string SEB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SEB %s, %s", rt, rs); } @@ -13552,8 +13519,8 @@ static std::string SEH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SEH %s, %s", rt, rs); } @@ -13575,9 +13542,9 @@ static std::string SEL_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("SEL.D %s, %s, %s", fd, fs, ft); } @@ -13599,9 +13566,9 @@ static std::string SEL_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("SEL.S %s, %s, %s", fd, fs, ft); } @@ -13623,9 +13590,9 @@ static std::string SELEQZ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("SELEQZ.D %s, %s, %s", fd, fs, ft); } @@ -13647,9 +13614,9 @@ static std::string SELEQZ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("SELEQZ.S %s, %s, %s", fd, fs, ft); } @@ -13671,9 +13638,9 @@ static std::string SELNEZ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("SELNEZ.D %s, %s, %s", fd, fs, ft); } @@ -13695,9 +13662,9 @@ static std::string SELNEZ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("SELNEZ.S %s, %s, %s", fd, fs, ft); } @@ -13719,9 +13686,9 @@ static std::string SEQI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string u = IMMEDIATE(u_value); return img_format("SEQI %s, %s, %s", rt, rs, u); } @@ -13744,7 +13711,7 @@ static std::string SH_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_2_1__s1(instruction); std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SH %s, %s(%s)", rtz3, u, rs3); @@ -13766,8 +13733,8 @@ static std::string SH_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("SH %s, %s($%d)", rt, u, 28); } @@ -13789,9 +13756,9 @@ static std::string SH_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SH %s, %s(%s)", rt, s, rs); } @@ -13813,9 +13780,9 @@ static std::string SH_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("SH %s, %s(%s)", rt, u, rs); } @@ -13837,9 +13804,9 @@ static std::string SHE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SHE %s, %s(%s)", rt, s, rs); } @@ -13860,8 +13827,8 @@ static std::string SHILO(uint64 instruction, Dis_info *info) int64 shift_value = extract_shift__se5_21_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string shift = IMMEDIATE(copy(shift_value)); - std::string ac = AC(copy(ac_value)); + std::string shift = IMMEDIATE(shift_value); + std::string ac = AC(ac_value); return img_format("SHILO %s, %s", ac, shift); } @@ -13882,8 +13849,8 @@ static std::string SHILOV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rs = GPR(copy(rs_value)); - std::string ac = AC(copy(ac_value)); + std::string rs = GPR(rs_value); + std::string ac = AC(ac_value); return img_format("SHILOV %s, %s", ac, rs); } @@ -13905,9 +13872,9 @@ static std::string SHLL_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHLL.PH %s, %s, %s", rt, rs, sa); } @@ -13929,9 +13896,9 @@ static std::string SHLL_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHLL.QB %s, %s, %s", rt, rs, sa); } @@ -13954,9 +13921,9 @@ static std::string SHLL_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHLL_S.PH %s, %s, %s", rt, rs, sa); } @@ -13978,9 +13945,9 @@ static std::string SHLL_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHLL_S.W %s, %s, %s", rt, rs, sa); } @@ -14003,9 +13970,9 @@ static std::string SHLLV_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHLLV.PH %s, %s, %s", rd, rt, rs); } @@ -14027,9 +13994,9 @@ static std::string SHLLV_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHLLV.QB %s, %s, %s", rd, rt, rs); } @@ -14052,9 +14019,9 @@ static std::string SHLLV_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHLLV_S.PH %s, %s, %s", rd, rt, rs); } @@ -14076,9 +14043,9 @@ static std::string SHLLV_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHLLV_S.W %s, %s, %s", rd, rt, rs); } @@ -14100,9 +14067,9 @@ static std::string SHRA_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHRA.PH %s, %s, %s", rt, rs, sa); } @@ -14124,9 +14091,9 @@ static std::string SHRA_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHRA.QB %s, %s, %s", rt, rs, sa); } @@ -14148,9 +14115,9 @@ static std::string SHRA_R_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHRA_R.PH %s, %s, %s", rt, rs, sa); } @@ -14172,9 +14139,9 @@ static std::string SHRA_R_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHRA_R.QB %s, %s, %s", rt, rs, sa); } @@ -14196,9 +14163,9 @@ static std::string SHRA_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHRA_R.W %s, %s, %s", rt, rs, sa); } @@ -14220,9 +14187,9 @@ static std::string SHRAV_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHRAV.PH %s, %s, %s", rd, rt, rs); } @@ -14244,9 +14211,9 @@ static std::string SHRAV_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHRAV.QB %s, %s, %s", rd, rt, rs); } @@ -14268,9 +14235,9 @@ static std::string SHRAV_R_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHRAV_R.PH %s, %s, %s", rd, rt, rs); } @@ -14292,9 +14259,9 @@ static std::string SHRAV_R_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHRAV_R.QB %s, %s, %s", rd, rt, rs); } @@ -14316,9 +14283,9 @@ static std::string SHRAV_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHRAV_R.W %s, %s, %s", rd, rt, rs); } @@ -14340,9 +14307,9 @@ static std::string SHRL_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHRL.PH %s, %s, %s", rt, rs, sa); } @@ -14364,9 +14331,9 @@ static std::string SHRL_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string sa = IMMEDIATE(sa_value); return img_format("SHRL.QB %s, %s, %s", rt, rs, sa); } @@ -14389,9 +14356,9 @@ static std::string SHRLV_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHRLV.PH %s, %s, %s", rd, rt, rs); } @@ -14413,9 +14380,9 @@ static std::string SHRLV_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rd = GPR(rd_value); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("SHRLV.QB %s, %s, %s", rd, rt, rs); } @@ -14437,9 +14404,9 @@ static std::string SHX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SHX %s, %s(%s)", rd, rs, rt); } @@ -14461,9 +14428,9 @@ static std::string SHXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SHXS %s, %s(%s)", rd, rs, rt); } @@ -14483,7 +14450,7 @@ static std::string SIGRIE(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("SIGRIE %s", code); } @@ -14529,9 +14496,9 @@ static std::string SLL_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("SLL %s, %s, %s", rt, rs, shift); } @@ -14553,9 +14520,9 @@ static std::string SLLV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SLLV %s, %s, %s", rd, rs, rt); } @@ -14577,9 +14544,9 @@ static std::string SLT(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SLT %s, %s, %s", rd, rs, rt); } @@ -14601,9 +14568,9 @@ static std::string SLTI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string u = IMMEDIATE(u_value); return img_format("SLTI %s, %s, %s", rt, rs, u); } @@ -14625,9 +14592,9 @@ static std::string SLTIU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string u = IMMEDIATE(u_value); return img_format("SLTIU %s, %s, %s", rt, rs, u); } @@ -14649,9 +14616,9 @@ static std::string SLTU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SLTU %s, %s, %s", rd, rs, rt); } @@ -14673,9 +14640,9 @@ static std::string SOV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SOV %s, %s, %s", rd, rs, rt); } @@ -14695,7 +14662,7 @@ static std::string SPECIAL2(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); - std::string op = IMMEDIATE(copy(op_value)); + std::string op = IMMEDIATE(op_value); return img_format("SPECIAL2 %s", op); } @@ -14716,8 +14683,8 @@ static std::string SQRT_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("SQRT.D %s, %s", ft, fs); } @@ -14738,8 +14705,8 @@ static std::string SQRT_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("SQRT.S %s, %s", ft, fs); } @@ -14761,9 +14728,9 @@ static std::string SRA(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("SRA %s, %s, %s", rt, rs, shift); } @@ -14785,9 +14752,9 @@ static std::string SRAV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SRAV %s, %s, %s", rd, rs, rt); } @@ -14833,9 +14800,9 @@ static std::string SRL_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string shift = IMMEDIATE(shift_value); return img_format("SRL %s, %s, %s", rt, rs, shift); } @@ -14857,9 +14824,9 @@ static std::string SRLV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SRLV %s, %s, %s", rd, rs, rt); } @@ -14881,9 +14848,9 @@ static std::string SUB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUB %s, %s, %s", rd, rs, rt); } @@ -14905,9 +14872,9 @@ static std::string SUB_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("SUB.D %s, %s, %s", fd, fs, ft); } @@ -14929,9 +14896,9 @@ static std::string SUB_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + std::string fd = FPR(fd_value); + std::string fs = FPR(fs_value); + std::string ft = FPR(ft_value); return img_format("SUB.S %s, %s, %s", fd, fs, ft); } @@ -14953,9 +14920,9 @@ static std::string SUBQ_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBQ.PH %s, %s, %s", rd, rs, rt); } @@ -14978,9 +14945,9 @@ static std::string SUBQ_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -15003,9 +14970,9 @@ static std::string SUBQ_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBQ_S.W %s, %s, %s", rd, rs, rt); } @@ -15028,9 +14995,9 @@ static std::string SUBQH_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBQH.PH %s, %s, %s", rd, rs, rt); } @@ -15053,9 +15020,9 @@ static std::string SUBQH_R_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -15078,9 +15045,9 @@ static std::string SUBQH_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBQH_R.W %s, %s, %s", rd, rs, rt); } @@ -15103,9 +15070,9 @@ static std::string SUBQH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBQH.W %s, %s, %s", rd, rs, rt); } @@ -15151,9 +15118,9 @@ static std::string SUBU_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBU %s, %s, %s", rd, rs, rt); } @@ -15175,9 +15142,9 @@ static std::string SUBU_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBU.PH %s, %s, %s", rd, rs, rt); } @@ -15199,9 +15166,9 @@ static std::string SUBU_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBU.QB %s, %s, %s", rd, rs, rt); } @@ -15224,9 +15191,9 @@ static std::string SUBU_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBU_S.PH %s, %s, %s", rd, rs, rt); } @@ -15249,9 +15216,9 @@ static std::string SUBU_S_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBU_S.QB %s, %s, %s", rd, rs, rt); } @@ -15274,9 +15241,9 @@ static std::string SUBUH_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBUH.QB %s, %s, %s", rd, rs, rt); } @@ -15299,9 +15266,9 @@ static std::string SUBUH_R_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SUBUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -15324,7 +15291,7 @@ static std::string SW_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_3_2_1_0__s2(instruction); std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SW %s, %s(%s)", rtz3, u, rs3); @@ -15348,7 +15315,7 @@ static std::string SW_4X4_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_3_8__s2(instruction); std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); return img_format("SW %s, %s(%s)", rtz4, u, rs4); @@ -15371,7 +15338,7 @@ static std::string SW_GP16_(uint64 instruction, Dis_info *info) uint64 rtz3_value = extract_rtz3_9_8_7(instruction); std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string u = IMMEDIATE(u_value); return img_format("SW %s, %s($%d)", rtz3, u, 28); } @@ -15392,8 +15359,8 @@ static std::string SW_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("SW %s, %s($%d)", rt, u, 28); } @@ -15415,9 +15382,9 @@ static std::string SW_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SW %s, %s(%s)", rt, s, rs); } @@ -15438,8 +15405,8 @@ static std::string SW_SP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); return img_format("SW %s, %s($%d)", rt, u, 29); } @@ -15461,9 +15428,9 @@ static std::string SW_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("SW %s, %s(%s)", rt, u, rs); } @@ -15484,8 +15451,8 @@ static std::string SWC1_GP_(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string ft = FPR(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string ft = FPR(ft_value); + std::string u = IMMEDIATE(u_value); return img_format("SWC1 %s, %s($%d)", ft, u, 28); } @@ -15507,9 +15474,9 @@ static std::string SWC1_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(copy(ft_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string ft = FPR(ft_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SWC1 %s, %s(%s)", ft, s, rs); } @@ -15531,9 +15498,9 @@ static std::string SWC1_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + std::string ft = FPR(ft_value); + std::string u = IMMEDIATE(u_value); + std::string rs = GPR(rs_value); return img_format("SWC1 %s, %s(%s)", ft, u, rs); } @@ -15555,9 +15522,9 @@ static std::string SWC1X(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ft = FPR(ft_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SWC1X %s, %s(%s)", ft, rs, rt); } @@ -15579,9 +15546,9 @@ static std::string SWC1XS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string ft = FPR(ft_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SWC1XS %s, %s(%s)", ft, rs, rt); } @@ -15603,9 +15570,9 @@ static std::string SWC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string cs = CPR(copy(cs_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string cs = CPR(cs_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SWC2 %s, %s(%s)", cs, s, rs); } @@ -15627,9 +15594,9 @@ static std::string SWE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SWE %s, %s(%s)", rt, s, rs); } @@ -15652,9 +15619,9 @@ static std::string SWM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("SWM %s, %s(%s), %s", rt, s, rs, count3); @@ -15676,8 +15643,8 @@ static std::string SWPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 6, info); + std::string rt = GPR(rt_value); + std::string s = ADDRESS(s_value, 6, info); return img_format("SWPC %s, %s", rt, s); } @@ -15699,9 +15666,9 @@ static std::string SWX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SWX %s, %s(%s)", rd, rs, rt); } @@ -15723,9 +15690,9 @@ static std::string SWXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("SWXS %s, %s(%s)", rd, rs, rt); } @@ -15745,7 +15712,7 @@ static std::string SYNC(uint64 instruction, Dis_info *info) { uint64 stype_value = extract_stype_20_19_18_17_16(instruction); - std::string stype = IMMEDIATE(copy(stype_value)); + std::string stype = IMMEDIATE(stype_value); return img_format("SYNC %s", stype); } @@ -15766,8 +15733,8 @@ static std::string SYNCI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SYNCI %s(%s)", s, rs); } @@ -15788,8 +15755,8 @@ static std::string SYNCIE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("SYNCIE %s(%s)", s, rs); } @@ -15809,7 +15776,7 @@ static std::string SYSCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("SYSCALL %s", code); } @@ -15827,7 +15794,7 @@ static std::string SYSCALL_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("SYSCALL %s", code); } @@ -15848,8 +15815,8 @@ static std::string TEQ(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("TEQ %s, %s", rs, rt); } @@ -16086,8 +16053,8 @@ static std::string TNE(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("TNE %s, %s", rs, rt); } @@ -16108,8 +16075,8 @@ static std::string TRUNC_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("TRUNC.L.D %s, %s", ft, fs); } @@ -16130,8 +16097,8 @@ static std::string TRUNC_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("TRUNC.L.S %s, %s", ft, fs); } @@ -16152,8 +16119,8 @@ static std::string TRUNC_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("TRUNC.W.D %s, %s", ft, fs); } @@ -16174,8 +16141,8 @@ static std::string TRUNC_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); + std::string ft = FPR(ft_value); + std::string fs = FPR(fs_value); return img_format("TRUNC.W.S %s, %s", ft, fs); } @@ -16198,9 +16165,9 @@ static std::string UALDM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UALDM %s, %s(%s), %s", rt, s, rs, count3); @@ -16223,9 +16190,9 @@ static std::string UALH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("UALH %s, %s(%s)", rt, s, rs); } @@ -16248,9 +16215,9 @@ static std::string UALWM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UALWM %s, %s(%s), %s", rt, s, rs, count3); @@ -16274,9 +16241,9 @@ static std::string UASDM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UASDM %s, %s(%s), %s", rt, s, rs, count3); @@ -16299,9 +16266,9 @@ static std::string UASH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); return img_format("UASH %s, %s(%s)", rt, s, rs); } @@ -16324,9 +16291,9 @@ static std::string UASWM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string s = IMMEDIATE(s_value); + std::string rs = GPR(rs_value); std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UASWM %s, %s(%s), %s", rt, s, rs, count3); @@ -16347,7 +16314,7 @@ static std::string UDI(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); - std::string op = IMMEDIATE(copy(op_value)); + std::string op = IMMEDIATE(op_value); return img_format("UDI %s", op); } @@ -16365,7 +16332,7 @@ static std::string WAIT(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_25_24_23_22_21_20_19_18_17_16(instruction); - std::string code = IMMEDIATE(copy(code_value)); + std::string code = IMMEDIATE(code_value); return img_format("WAIT %s", code); } @@ -16386,8 +16353,8 @@ static std::string WRDSP(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); - std::string rt = GPR(copy(rt_value)); - std::string mask = IMMEDIATE(copy(mask_value)); + std::string rt = GPR(rt_value); + std::string mask = IMMEDIATE(mask_value); return img_format("WRDSP %s, %s", rt, mask); } @@ -16408,8 +16375,8 @@ static std::string WRPGPR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("WRPGPR %s, %s", rt, rs); } @@ -16453,9 +16420,9 @@ static std::string XOR_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + std::string rd = GPR(rd_value); + std::string rs = GPR(rs_value); + std::string rt = GPR(rt_value); return img_format("XOR %s, %s, %s", rd, rs, rt); } @@ -16477,9 +16444,9 @@ static std::string XORI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); + std::string u = IMMEDIATE(u_value); return img_format("XORI %s, %s, %s", rt, rs, u); } @@ -16499,8 +16466,8 @@ static std::string YIELD(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + std::string rt = GPR(rt_value); + std::string rs = GPR(rs_value); return img_format("YIELD %s, %s", rt, rs); } From patchwork Mon Sep 12 12:26:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 972EDECAAD5 for ; Mon, 12 Sep 2022 12:38:20 +0000 (UTC) Received: from localhost ([::1]:60642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXihf-0002mw-Dk for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:38:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZx-0005Wh-Da for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:30:21 -0400 Received: from mail-eopbgr70110.outbound.protection.outlook.com ([40.107.7.110]:8421 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiZv-0006Az-Ol for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:30:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vq+Iv4lmVlLditI1KyhDaQg+XvLYGwXnQkqqK9WDOeCFU1RlbbwVbki6L90LjQGi4YssHtmTia6unbz00rKdbkZT2gZeOJ3zZZvZnqOsSiAOfoUoqqr1AXfVhMyn6pJPhcvroNkJ0XTPxXVQV3nnTPxqBYgnTuyGzqZF+1Y1ZHce7bROUeM6u8VJwsWVMisQmf+MLeIoRGFOOcvLnnjKSQbJQ9x0VZCm4kaOrKieIBiorggCH4M6RiW5aOk+0deBuq2IZDb0E16llL0FV7xV42V2wAin7tvkmWyMvgZwW5heIW/hf26sRE4ji5FuYSQ2kp8vsrTGKjJBEPpc3s1xcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7vyRvGf0xgb+csgPwZHdKRYAd9YK67In1wmGvQpBmoY=; b=eXP9aLM8SYw3hAMHzRO6OrHUgTy3mGnKhTf/hpKmmpjevkpwl9Lo2ZTVMqZ01nObe+SJ88Nsq8uhnO8nYlB9dcUUNXYUCmT7eezaeJl7lfVoRpWMIS1LMogoMgchyc0BA4mtvZk2yg5IFD5ySJl1dnv1XIC+azUyxNUYvfjibyjlhGsMbNA1Gf1nYv81L0ygfhaAonNbfy08Y19kPi41OxvIShHlzPRJOYL/pK9ciTuuHC9Tvw3JI6TSVEi4mVwgZ5CBJ8HBIccvbkcFEy9f1XXSYg0QWbrTgtVdE52xKG/nXQnH1FVTX6fqzpTMg+lrkwuGUVTbtV+nMi7DXgAWcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7vyRvGf0xgb+csgPwZHdKRYAd9YK67In1wmGvQpBmoY=; b=fPTDGJ65XcbqGl06LvBhM7QKYQZQ6IFE8V6h8XZbuC6w7q5YPq8AiFJwsQp1o7U9Ez1IQ8yQj49rpl+l/Oo864kQo8fU4ykQfnJwJe89Y80Y2WNhbCWXDJ+xB0V2iXGSXSMcfSX7CvALdq8FD2/cEFa6H0HkdatPGCC+8hUZ9PU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:30:10 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:30:10 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 14/24] disas/nanomips: Delete wrapper functions Date: Mon, 12 Sep 2022 14:26:25 +0200 Message-Id: <20220912122635.74032-15-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c57b245-4bde-4a90-b45b-08da94ba888a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Kf/PLHJpAzJlQLBCDpJkK9ny4XFEU2iJ+B38u+V2233lC770ayBZtqvvWS52PrTyKET1+SWi/xUact2Nmu5M7LkEFfn8F9U0JWTIxPU0u8nr1880tkbY4ps0rKH4w3JOZrp2okrgGF7YP8P7dI+UP8/oa6IzhDsVNCYP+Lr/VKsKqIAezvOQpwDptCFrxwMrScp+xxH432i2JdCwqf+AdDnas7sq8uvuP7hL9uPs6AvSqVXMU1yYaEW4KdOSr1ydgXtAQTg/aN77kSs9DjwwV8r9lfuUcvfWpiPbSAixngIpGLIabr/dhIoiyjSQvy7lug3IqYwsL9J2z8SdVVl1OQ0cd7eEadL1QYH9fctplHXKpvvZrZZLPKNWVdGBbLqwMb9vmfGvWomX+56D677O1W97J7wh/UbjY9fywp7/Rx2+AIhbN9yK1eOwGOeHDDzP/wsx32Gtv01O+kE6v9oX/1uL0fr4+V6+w13UoKOze32lq/v3L0WQ2KQW2kjjMHiteEl1Fm2XvFsyArqlsRKLTLBp4Sj3PVwpRQiOmvC3OTXdJqVk4RzuVp7RPlxyMKqUMaeqNB2pZZ0Rn0xzqlIJRJ1mg2E5zW969q59zEGTmpYvZstdsmDK4actFBXkqjLJgytVGr6uvfD9YDkGMGtt9KaMnvVuBkPgN2B1vIWJEhbc9gV7jipTLUrccmgJcz252K5Ihaa744uoVVnOxPke7ALOBw5x8WqcOO7Ow+VUfAWFU8Ey5vct6MsFk9Kj5ws5 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(5660300002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(107886003)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wFfTS9qevcc9QFzn35PSC/WZ63DNKDodbIr31tgiMg4Hzp2KlKSK8QIxvnZZTZ1P8OTjfELNxatyoDK79OE7fN0aX7oUMTtNFWC8J+nMx0EKpVW2X/TT75jpPCgMPVuXf8ciQyshjn0XBmWKF4+I1jdQuOKJXn+LwRD3W8LAFdx5qJJw05m7jYkC5bHQt4AnZxo5feUt7Pj0PPzkzTe7sTmE6yUMFmMw2SF7OdnA4Vnatd5/3fAYvtgU1oMrZPGhZzQJIXxcDbDDZz1F7XrMyoQliWEmfd/RJqNim+xMblkMPz8iuNmUguI+CyBpLCPxIDOlEvTOimaB6vKSwys+hZdqapEC0epHIf/9PSYlLzLM/uJx8RU6c1kLPs9Ms75/QOQiCf7YoX6599xh4aTUpZRcMOJ+/hEfMi6Va9VTMsAkJCugpfjQ6cMjrPA2ERFIte+aEsnSZk6aIZ+l/oagsUY8xxu5uov/oBwCHDoqK/U6kAhTXwQkmW3mx4vc85ncdZ7mnjz26A3G+r5TpJrAGZX7z0OYsYv/DEOaEJGKAmD6Kqw/Zqr5iedDhbi0bO+qBh4+rzzXNi+kJ4OLMRSdwz3/gjh/v85shjWfPXGLBleFpMziQnEDim4xfOAIMRFBLVJE8WbwM7hqLN7jBiGPf6g1Qrgy1lzf3ubOAVPT3TS2/ExxfBM7gzZJPFiqh2NR5mqcG01XtqvIyeyPrVwysWXejxZISvJbUUs1J0FVvHsKkUiM/vle3QefYJOS1AjyUpYgqzS9xRCxjSKBqOumu+UOi5Isim9VyCso7+ecYRpNd0pJQITgUII4iShmH5xhFOaODn+SxAtaW5AL4RNmY7rsXhiAFDwIXyXmSx6Q86Ds27rs5Zes0Xd6d+PCRrLT02C0QYMWtT6wT/xBKrzPt/B9OpnChkTvIj15SbY7HmATuoHhQsutjYrPw5NmnCwNJKc7JpsjwuP2GRiFV+EPJrSsMz9sY83+I226REH9TEckR3zwNqol+PhVCxHwJhHgXQ8yvmm8y64b1I7oNHn+s8uGIfF1XQTMDaziiw3x7H2ZJ3F5p0jV0nz1iuzSLETgOHY/GXKnghAj3l6D3k1ydEaxh+PdN2szxkr58/HIzO7VYosukG4zll8/sBKakAntkcLdhz5/PkPP6zNr7hzQt67fC452h97sJMgtKah+DCScspDGlE3Pc6uTIMwJIMsn7tVPRwagVL6fmBUpdf05A3FuIIu7b+5LFOb/nU/f+VGK8gi6nHoAB0O/7OIV0z9SfuTRNEl/mRTNeAd9yUWebzIJL3VF6tDfk/U/szbxleuYrsUyMsoN77R9JV0jUWDBaUBU9Aaafo0enGckSQAW2aJPLAHYry+X/hRLXwBxeN5ssCHoC09KUpnQau2UQgLbv0kKV4ojPIwsMO2wEPBm9VnN+mdvDxQ1gTEEuoj5NthN0Bl0Tv2tyBmTG+0PDgpSaGy6NGNEad13O/M5E7gSexY/6IRp5NykHx5eQOkX989tJdHYM10K1mbewaZzLJbU6Dk427o3g9//28owpDWpNduBf8W9Z0XawaxFlhRHa/+2ODM62l4SEuBwLVra2nOe/DcYWiaQkTJrov1p2Eptnw== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c57b245-4bde-4a90-b45b-08da94ba888a X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:30:10.3372 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LxISxrSf5eD/ervn2XcVSDyhA8rA2m81dFOOhhN7lajRpTocA3LGoVfRlymjf1+uCtTtRshb9CakJzUmSJA/qlkaDU9zxPW5GizyoT9lT7E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.110; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Following functions just wrap the decode_gpr_gpr3() function: - encode_rs3_and_check_rs3_ge_rt3() - encode_rs3_and_check_rs3_lt_rt3() Therefore those have been deleted. Calls to these two functions have been replaced with calls to decode_gpr_gpr3. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 634ce8d08c..b5a4adb121 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -505,20 +505,6 @@ static int64 neg_copy(uint64 d) } -/* strange wrapper around gpr3 */ -static uint64 encode_rs3_and_check_rs3_ge_rt3(uint64 d) -{ -return decode_gpr_gpr3(d); -} - - -/* strange wrapper around gpr3 */ -static uint64 encode_rs3_and_check_rs3_lt_rt3(uint64 d) -{ - return decode_gpr_gpr3(d); -} - - static uint64 encode_count3_from_count(uint64 d) { IMGASSERTONCE(d < 8); @@ -2958,7 +2944,7 @@ static std::string BEQC_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s1(instruction); - std::string rs3 = GPR(encode_rs3_and_check_rs3_lt_rt3(rs3_value)); + std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string u = ADDRESS(u_value, 2, info); @@ -3244,7 +3230,7 @@ static std::string BNEC_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s1(instruction); - std::string rs3 = GPR(encode_rs3_and_check_rs3_ge_rt3(rs3_value)); + std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); std::string u = ADDRESS(u_value, 2, info); From patchwork Mon Sep 12 12:26:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973663 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28834C6FA83 for ; Mon, 12 Sep 2022 13:11:52 +0000 (UTC) Received: from localhost ([::1]:53418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXjE7-0000zC-2Q for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 09:11:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiac-0006RD-T4 for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:03 -0400 Received: from mail-eopbgr70121.outbound.protection.outlook.com ([40.107.7.121]:30790 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiaV-0006OD-N3 for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XfwPCUaSHzUzbb3Xh41qvoIAKWYtykNQ1r9j8789cuMdzE8tSLwlBXgMe6rXZrHVw6g/yxl7xC9mP+SDNPpumj1LtiGUdTo+cMbOTElJ23dSLFhBHU++WsL+3xrl31t6O38WzZQdpTYyHctl4zIIpXVH9ueJs5jWyal52z0YA3uA90eREQDsmOlMej8RVsR0TPQdUmuPOoZ6mVeUa15KcSiQt+i0OMpWHg2SPaiai+1wbr958OTsVYDS8aVFY56YUsXYfUyUqSQw9dtvpWeOHIc425r4tcTN6R5XOsLpkLgcDADnRv3jXMZ4bRv0Y0FQWVGtB/mnLCoYhyOhFVglQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Kl7qlMaMyEG9Hco2Vc6CcUiKIRwkdmUEO8osO6Uaf9g=; b=c9i7kpZ8cuoRzF0d34RvDPhDhb+Vzm3h3P3VMyUux03WfbTy2kpxHwe3+QSQoSZMDpN6j/nxdI10HYXy0yNla1I1eUVmPECVKnugjvKbq3mufbz9FxKVIccKMz04TiPjEzF7SM/y1muP2zjACNYNYVUolq26g+8GIYfCkDMGzAF8to1eePCsrUfR77CxvEyszyf7iofaPI7wnkKdOBgeHGwvFC2nZlT163Gy4uFSjoh6lPyqwXWA2Pl2Sdscv5KmIYsW88g11xsbY3SjjS/OG916LtDSh2OG98cgKLYEzUchDCmPVXejDPeBfNjxOF9kos/8POGfth9YWNF5/eD9xA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kl7qlMaMyEG9Hco2Vc6CcUiKIRwkdmUEO8osO6Uaf9g=; b=iCzC5sRIBUkuuS2oq5/qWD1RyaZkItEPKmdrsPoXk3tNfzis/pZ25p276I64drmvYllLAk7w7E0DkI6cKyERRl1914wrrnvCyQb49eDX0elX66sjcg2ipITbZRkPxsuanhhU6HRW7ANSDBHcjSVkFF/MEceBgOqnbcHx5kI5Iok= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:30:15 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:30:15 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 15/24] disas/nanomips: Replace std::string type Date: Mon, 12 Sep 2022 14:26:26 +0200 Message-Id: <20220912122635.74032-16-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: a3622069-bb2c-45c8-b286-08da94ba8b1c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: unaLH8bnSyB4w+aJKyIRkEb7kvlUXCJ3ynJEfdwRGUvAE87TNxZeoHyXWHRfQCMOhfAsgRWgxuqftrKAy1NajY9NQJMMJOCzj/UaVhRKr6slDkVB2cGCY+NRO82rXZInF6UTAnJpS3qV409EX7Mz+FHcuWm//WEtvUWqPO7whJ+Sofy38Q0L4pjZi2GkQblFy04BYbnxVdPcdByWC2fwL4f11AzrQTnT6heqcGREj0uEjheZjl2ztY1gZPR2PV2CbNQU0ANuiOXGthEXXT3RlMquUnx2ZSUJV6ji1+6WMAM2hvHjxv+xEJeks110IhVrAhx+NkLeVTsJX3gIPcSK3ZVwzLPCoKn37NBebDm7l2043H714F6B12qI3t5+/zcl/HZkpvLw5FAP3ENHmh5O8aK23GNI1cS8FxSGRGLZIbf9wO0xArtrjlmyAtnmoHX7W9UI8Q39oyUBf5DJkznKwGKrueCAeKtmuFyF2C0jY/V6XHCv2YIc3xU86UlF3fsyWAfPzDei46UcKRD9Ti0OFY9R8O7+G/YKDkDrr0CeMaoKiocEAha+vHEyHZfpVioqy2HsZmwpHX34tbLh/Hig/pkKOdQfJF8AqsMaxmcAZlpIW44EwUEYc0L6DdCuU1D2QwlW/uVjXDQz4TsJhIRMbw4QLRotfPf0r/Q9c0LspuYXv6GUSbZdekcChlJZvKKwTxUj+ZHU3VL4SuxkD1uIAyv1dDNPDxSsvxsILe2YXtEICfwvTRen4A0H+Yue6i3v X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(30864003)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(5660300002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(107886003)(6666004)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DUeStUSYBUA9GISYzZoqP5ckFQfbwhJdGCJFmTqAqGXVK3Jj0KUaGMGD16iLVgo5ijaJRJ5viOZRxUdZRB4dq4qus5lP6upyWzj+1jF8NUypeCUuPDiYdxyO+7In4QKhek1DtRYm91fYN7dBEhCKwlgvRVYd0rXpPslb863vnhvb13bbRlXU1ylSCbPQIG5/ALexj/LToUyew7w8TYRHmtgtswh0RvwAUxv+aSrZOilY9hoDkox72gygzZIKkYws/TadprRtvva1Zpv3mZG5nWAIV22Jw01s89ghBn5ipTuFV6NUJ4cI+dsq/cVtijXt8TGL7lebrV/0w2+/kMBJdTYg5PaoAbFvYOIQWOFmP+rFzBpDLuCxiB/HiXWrzj9+VSCFnuYv1Vh4KrnMZ/I7Z5M5CJOueRafRs/UK2G6pZluLHeCC3GLVnHcRj2DfUVhBQuJUKyL8yupF7y4G4njIsNUje+K8lXXBUcCJkg4XJ+BPD4My50dto8op5Snm95S2g80vD12ey8pNO6ZC6fWsidbqfEKAVAcbsOh4c4mMxiZkEvLJfqyTZDGR3O/165eVOaW4VPiGI9PhsOKHnWubSm7yCEmOkSADbUMFpCcWYIc398cQblVRlLdwXSGpi/JpmhwCOncq8mrSIYy8pH52B9E5W4Pk7tvaBKQNGtlla//mihgPAxq7u4Oub3kS2wRor+KsAojmUzol2ofmh6ss6Ao71Rzo6qBv9qrZf3fp+PrY8KxBeZFxJ2R3ZT0wqfQ7xhD+84m5EdOJU5n4pw7KsroHyXk3ZPXnTng7yPWqB8L81KzhmIHmHp0LhinEt9oVD4waBpJXQPVCQMQZ/BKJ9vjp8xyPIfhcAgOQkPZy4RWcg6sIGDFzrG1zJg9gnJadOSt9S0uDaTCibGx+uXSzpLyYTz1GU2Co8FAb9TIlsDHjpPD8c4SE0VaYVxoX9Ddt65fCGudlOM/AOGDJTp5IwZu9Inb/3+kkqFbJOLfhjmYK09k97AAXGOLFQE09OsaYNSkmTs5O6idsfSTvHzu3//q5WjYIJJEQVCYDVughKybZ/L47ykk7JFOjerMSKDSc1Dd/oXTmX+CUKVW5iErS7MBJsc4GMcP8x1uNBySAQ7UfsRFSEbwJN7b+vW8egV/qmsVAhyUkVjZGoPYlBppJxSDLWZMoUEHxajG9DuiFnkdNmrQ88LTJkik04QtOAUyIpugbaKzjPryLjxS8mzWcqQzJhM/B7gWaa7oQbUhEm8i1zzbHDWpjNb/t4eLtfyG1mVEK7O2F5CuszMatAv+Z3yXl3tGOYtzy2bbYFgbI6rlj/TQgffIbM4BuX1kD+v2ASkC5YAN2C65MCMEXwd7iY7/EuIlkdhHisElkNlF2dlM/7A8qsa6EASjOeSWEO8DgaMNeJNo5BuZFIZZslrOycJhDpb5WzTH1Nwz1LVC+mP+JEL6ND1FkVdI3dVCo1VFfF0z21G3U5CQmyBu2HHntSvyTxDjfOMmxH00er1kAVQOQI9LXwW8ERZWyE48lVjEYB8rZM2bnYq/Llzoxwc1Fn02HqWZK8IljxSjZZC4bkLWx7bn7mqoJ2WzwYwNhchkN2LtYjezAi5MTcsILI7/Xg== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3622069-bb2c-45c8-b286-08da94ba8b1c X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:30:15.5712 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JHGIaQWX00H1nstvojhyr/MHLFFqsY7YTonP6gi2Lkmo61xo+wE3ky51XudVlXlG27tDQ76J2pEs/iW3hRAZvDU10f3dw4qYMb7T7H8fWxQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.121; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The return type of typedef disassembly_function is changed to char * instead of std::string. Therefore, for every particular disassembly_function function signature is changed. For example: - static std::string ABS_D(uint64 instruction, img_address m_pc) {...} is replaced with - static char *ABS_D(uint64 instruction, img_address m_pc) {...} Every helper function used to return std::string is changed to return const char * or char *. Where the return value points to a static string that the caller must not free, the return type is const char *. If a function allocates memory and the caller is required to free it, the return type is a char *. This applies to the following functions: img_format, to_string, GPR, save_restore_list, FPR, etc. Now that we replaced every std::string for const char * or char *, it is possible to delete multiple versions of the img_format function. The general version: - static char *img_format(const char *format, ...) {...} can handle all string formatting, so others have been deleted. Where necessary, strings are dynamically allocated with g_strjoinv, g_strdup, g_strdup_vprintf, and g_strdup_printf. Memory leaking will be prevented later. String concatenation in the save_restore_list() function is handled using g_strjoinv() function instead of += operator. The type of the "dis" parameter in the Disassemble function is changed - from std::string & - to char ** Without applying all of these changes, the nanomips disassembler may be buildable but can't produce the appropriate output, so all of them are made together. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 4776 ++++++++++++++++++++++---------------------- 1 file changed, 2337 insertions(+), 2439 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index b5a4adb121..816155527d 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -30,13 +30,11 @@ #include "qemu/osdep.h" #include "disas/dis-asm.h" -#include +#include #include #include #include -#include - typedef int64_t int64; typedef uint64_t uint64; typedef uint32_t uint32; @@ -77,7 +75,7 @@ typedef struct Dis_info { } Dis_info; typedef bool (*conditional_function)(uint64 instruction); -typedef std::string (*disassembly_function)(uint64 instruction, +typedef char * (*disassembly_function)(uint64 instruction, Dis_info *info); typedef struct Pool { @@ -95,122 +93,20 @@ typedef struct Pool { #define IMGASSERTONCE(test) -std::string img_format(const char *format, ...) +static char *img_format(const char *format, ...) { - char buffer[256]; + char *buffer; va_list args; va_start(args, format); - int err = vsprintf(buffer, format, args); - if (err < 0) { - perror(buffer); - } + buffer = g_strdup_vprintf(format, args); va_end(args); return buffer; } -std::string img_format(const char *format, - std::string s) -{ - char buffer[256]; - - sprintf(buffer, format, s.c_str()); - - return buffer; -} - -std::string img_format(const char *format, - std::string s1, - std::string s2) -{ - char buffer[256]; - - sprintf(buffer, format, s1.c_str(), s2.c_str()); - - return buffer; -} - -std::string img_format(const char *format, - std::string s1, - std::string s2, - std::string s3) -{ - char buffer[256]; - - sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str()); - - return buffer; -} - -std::string img_format(const char *format, - std::string s1, - std::string s2, - std::string s3, - std::string s4) -{ - char buffer[256]; - - sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str(), - s4.c_str()); - - return buffer; -} - -std::string img_format(const char *format, - std::string s1, - std::string s2, - std::string s3, - std::string s4, - std::string s5) -{ - char buffer[256]; - - sprintf(buffer, format, s1.c_str(), s2.c_str(), s3.c_str(), - s4.c_str(), s5.c_str()); - - return buffer; -} - -std::string img_format(const char *format, - uint64 d, - std::string s2) -{ - char buffer[256]; - - sprintf(buffer, format, d, s2.c_str()); - - return buffer; -} - -std::string img_format(const char *format, - std::string s1, - uint64 d, - std::string s2) -{ - char buffer[256]; - - sprintf(buffer, format, s1.c_str(), d, s2.c_str()); - - return buffer; -} - -std::string img_format(const char *format, - std::string s1, - std::string s2, - uint64 d) -{ - char buffer[256]; - - sprintf(buffer, format, s1.c_str(), s2.c_str(), d); - - return buffer; -} - -std::string to_string(img_address a) +static char *to_string(img_address a) { - char buffer[256]; - sprintf(buffer, "0x%" PRIx64, a); - return buffer; + return g_strdup_printf("0x%" PRIx64, a); } @@ -554,7 +450,7 @@ static uint64 encode_rt1_from_rt(uint64 d) } -static std::string GPR(uint64 reg) +static const char *GPR(uint64 reg) { static const char *gpr_reg[32] = { "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", @@ -572,21 +468,25 @@ static std::string GPR(uint64 reg) } -static std::string save_restore_list(uint64 rt, uint64 count, uint64 gp) +static char *save_restore_list(uint64 rt, uint64 count, uint64 gp) { - std::string str; + char *reg_list[34]; + reg_list[0] = (char *)""; + assert(count <= 32); for (uint64 counter = 0; counter != count; counter++) { bool use_gp = gp && (counter == count - 1); uint64 this_rt = use_gp ? 28 : ((rt & 0x10) | (rt + counter)) & 0x1f; - str += img_format(",%s", GPR(this_rt)); + /* glib usage below requires casting away const */ + reg_list[counter + 1] = (char *)GPR(this_rt); } + reg_list[count + 1] = NULL; - return str; + return g_strjoinv(",", reg_list); } -static std::string FPR(uint64 reg) +static const char *FPR(uint64 reg) { static const char *fpr_reg[32] = { "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", @@ -604,7 +504,7 @@ static std::string FPR(uint64 reg) } -static std::string AC(uint64 reg) +static const char *AC(uint64 reg) { static const char *ac_reg[4] = { "ac0", "ac1", "ac2", "ac3" @@ -619,26 +519,26 @@ static std::string AC(uint64 reg) } -static std::string IMMEDIATE(uint64 value) +static char *IMMEDIATE(uint64 value) { return img_format("0x%" PRIx64, value); } -static std::string IMMEDIATE(int64 value) +static char *IMMEDIATE(int64 value) { return img_format("%" PRId64, value); } -static std::string CPR(uint64 reg) +static char *CPR(uint64 reg) { /* needs more work */ return img_format("CP%" PRIu64, reg); } -static std::string ADDRESS(uint64 value, int instruction_size, Dis_info *info) +static char *ADDRESS(uint64 value, int instruction_size, Dis_info *info) { /* token for string replace */ img_address address = info->m_pc + value + instruction_size; @@ -673,7 +573,7 @@ static uint64 extract_op_code_value(const uint16 *data, int size) * instruction size - negative is error * disassembly string - on error will constain error string */ -static int Disassemble(const uint16 * data, std::string & dis, +static int Disassemble(const uint16 *data, char **dis, TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, Dis_info *info) { @@ -699,20 +599,21 @@ static int Disassemble(const uint16 * data, std::string & dis, (table[i].type == return_instruction)) { disassembly_function dis_fn = table[i].disassembly; if (dis_fn == 0) { - dis = "disassembler failure - bad table entry"; + *dis = g_strdup( + "disassembler failure - bad table entry"); return -6; } type = table[i].type; - dis = dis_fn(op_code, info); + *dis = dis_fn(op_code, info); return table[i].instructions_size; } else { - dis = "reserved instruction"; + *dis = g_strdup("reserved instruction"); return -2; } } catch (std::runtime_error & e) { - dis = e.what(); + *dis = g_strdup(e.what()); return -3; /* runtime error */ } } @@ -721,11 +622,11 @@ static int Disassemble(const uint16 * data, std::string & dis, } catch (std::exception & e) { - dis = e.what(); + *dis = g_strdup(e.what()); return -4; /* runtime error */ } - dis = "failed to disassemble"; + *dis = g_strdup("failed to disassemble"); return -1; /* failed to disassemble */ } @@ -1658,13 +1559,13 @@ static bool SLTU_cond(uint64 instruction) * fs ----- * fd ----- */ -static std::string ABS_D(uint64 instruction, Dis_info *info) +static char *ABS_D(uint64 instruction, Dis_info *info) { uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string fs = FPR(fs_value); - std::string fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *fd = FPR(fd_value); return img_format("ABS.D %s, %s", fd, fs); } @@ -1680,13 +1581,13 @@ static std::string ABS_D(uint64 instruction, Dis_info *info) * fd ----- * fs ----- */ -static std::string ABS_S(uint64 instruction, Dis_info *info) +static char *ABS_S(uint64 instruction, Dis_info *info) { uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string fs = FPR(fs_value); - std::string fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *fd = FPR(fd_value); return img_format("ABS.S %s, %s", fd, fs); } @@ -1702,13 +1603,13 @@ static std::string ABS_S(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ABSQ_S_PH(uint64 instruction, Dis_info *info) +static char *ABSQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("ABSQ_S.PH %s, %s", rt, rs); } @@ -1724,13 +1625,13 @@ static std::string ABSQ_S_PH(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ABSQ_S_QB(uint64 instruction, Dis_info *info) +static char *ABSQ_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("ABSQ_S.QB %s, %s", rt, rs); } @@ -1746,13 +1647,13 @@ static std::string ABSQ_S_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ABSQ_S_W(uint64 instruction, Dis_info *info) +static char *ABSQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("ABSQ_S.W %s, %s", rt, rs); } @@ -1767,15 +1668,15 @@ static std::string ABSQ_S_W(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ACLR(uint64 instruction, Dis_info *info) +static char *ACLR(uint64 instruction, Dis_info *info) { uint64 bit_value = extract_bit_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string bit = IMMEDIATE(bit_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *bit = IMMEDIATE(bit_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("ACLR %s, %s(%s)", bit, s, rs); } @@ -1790,15 +1691,15 @@ static std::string ACLR(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADD(uint64 instruction, Dis_info *info) +static char *ADD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADD %s, %s, %s", rd, rs, rt); } @@ -1815,15 +1716,15 @@ static std::string ADD(uint64 instruction, Dis_info *info) * fs ----- * fd ----- */ -static std::string ADD_D(uint64 instruction, Dis_info *info) +static char *ADD_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); - std::string fd = FPR(fd_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); + const char *fd = FPR(fd_value); return img_format("ADD.D %s, %s, %s", fd, fs, ft); } @@ -1840,15 +1741,15 @@ static std::string ADD_D(uint64 instruction, Dis_info *info) * fs ----- * fd ----- */ -static std::string ADD_S(uint64 instruction, Dis_info *info) +static char *ADD_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); - std::string fd = FPR(fd_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); + const char *fd = FPR(fd_value); return img_format("ADD.S %s, %s, %s", fd, fs, ft); } @@ -1863,15 +1764,15 @@ static std::string ADD_S(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADDIU_32_(uint64 instruction, Dis_info *info) +static char *ADDIU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_15_to_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(u_value); return img_format("ADDIU %s, %s, %s", rt, rs, u); } @@ -1886,13 +1787,13 @@ static std::string ADDIU_32_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADDIU_48_(uint64 instruction, Dis_info *info) +static char *ADDIU_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); return img_format("ADDIU %s, %s", rt, s); } @@ -1907,13 +1808,13 @@ static std::string ADDIU_48_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADDIU_GP48_(uint64 instruction, Dis_info *info) +static char *ADDIU_GP48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); return img_format("ADDIU %s, $%d, %s", rt, 28, s); } @@ -1928,13 +1829,13 @@ static std::string ADDIU_GP48_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADDIU_GP_B_(uint64 instruction, Dis_info *info) +static char *ADDIU_GP_B_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("ADDIU %s, $%d, %s", rt, 28, u); } @@ -1949,13 +1850,13 @@ static std::string ADDIU_GP_B_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADDIU_GP_W_(uint64 instruction, Dis_info *info) +static char *ADDIU_GP_W_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("ADDIU %s, $%d, %s", rt, 28, u); } @@ -1970,15 +1871,15 @@ static std::string ADDIU_GP_W_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADDIU_NEG_(uint64 instruction, Dis_info *info) +static char *ADDIU_NEG_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(neg_copy(u_value)); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(neg_copy(u_value)); return img_format("ADDIU %s, %s, %s", rt, rs, u); } @@ -1993,13 +1894,13 @@ static std::string ADDIU_NEG_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADDIU_R1_SP_(uint64 instruction, Dis_info *info) +static char *ADDIU_R1_SP_(uint64 instruction, Dis_info *info) { uint64 u_value = extract_u_5_4_3_2_1_0__s2(instruction); uint64 rt3_value = extract_rt3_9_8_7(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(u_value); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = IMMEDIATE(u_value); return img_format("ADDIU %s, $%d, %s", rt3, 29, u); } @@ -2014,15 +1915,15 @@ static std::string ADDIU_R1_SP_(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string ADDIU_R2_(uint64 instruction, Dis_info *info) +static char *ADDIU_R2_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_2_1_0__s2(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string u = IMMEDIATE(u_value); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + char *u = IMMEDIATE(u_value); return img_format("ADDIU %s, %s, %s", rt3, rs3, u); } @@ -2036,13 +1937,13 @@ static std::string ADDIU_R2_(uint64 instruction, Dis_info *info) * rt ----- * s - --- */ -static std::string ADDIU_RS5_(uint64 instruction, Dis_info *info) +static char *ADDIU_RS5_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); int64 s_value = extract_s__se3_4_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); return img_format("ADDIU %s, %s", rt, s); } @@ -2058,13 +1959,13 @@ static std::string ADDIU_RS5_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDIUPC_32_(uint64 instruction, Dis_info *info) +static char *ADDIUPC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 4, info); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2080,13 +1981,13 @@ static std::string ADDIUPC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDIUPC_48_(uint64 instruction, Dis_info *info) +static char *ADDIUPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 6, info); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 6, info); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2102,15 +2003,15 @@ static std::string ADDIUPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDQ_PH(uint64 instruction, Dis_info *info) +static char *ADDQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDQ.PH %s, %s, %s", rd, rs, rt); } @@ -2127,15 +2028,15 @@ static std::string ADDQ_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDQ_S_PH(uint64 instruction, Dis_info *info) +static char *ADDQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -2151,15 +2052,15 @@ static std::string ADDQ_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDQ_S_W(uint64 instruction, Dis_info *info) +static char *ADDQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDQ_S.W %s, %s, %s", rd, rs, rt); } @@ -2176,15 +2077,15 @@ static std::string ADDQ_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDQH_PH(uint64 instruction, Dis_info *info) +static char *ADDQH_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDQH.PH %s, %s, %s", rd, rs, rt); } @@ -2201,15 +2102,15 @@ static std::string ADDQH_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDQH_R_PH(uint64 instruction, Dis_info *info) +static char *ADDQH_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -2226,15 +2127,15 @@ static std::string ADDQH_R_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDQH_R_W(uint64 instruction, Dis_info *info) +static char *ADDQH_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDQH_R.W %s, %s, %s", rd, rs, rt); } @@ -2251,15 +2152,15 @@ static std::string ADDQH_R_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDQH_W(uint64 instruction, Dis_info *info) +static char *ADDQH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDQH.W %s, %s, %s", rd, rs, rt); } @@ -2275,15 +2176,15 @@ static std::string ADDQH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDSC(uint64 instruction, Dis_info *info) +static char *ADDSC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDSC %s, %s, %s", rd, rs, rt); } @@ -2298,15 +2199,15 @@ static std::string ADDSC(uint64 instruction, Dis_info *info) * rs3 --- * rd3 --- */ -static std::string ADDU_16_(uint64 instruction, Dis_info *info) +static char *ADDU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 rd3_value = extract_rd3_3_2_1(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string rd3 = GPR(decode_gpr_gpr3(rd3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rd3 = GPR(decode_gpr_gpr3(rd3_value)); return img_format("ADDU %s, %s, %s", rd3, rs3, rt3); } @@ -2322,15 +2223,15 @@ static std::string ADDU_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDU_32_(uint64 instruction, Dis_info *info) +static char *ADDU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDU %s, %s, %s", rd, rs, rt); } @@ -2346,13 +2247,13 @@ static std::string ADDU_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDU_4X4_(uint64 instruction, Dis_info *info) +static char *ADDU_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); - std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); - std::string rt4 = GPR(decode_gpr_gpr4(rt4_value)); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); return img_format("ADDU %s, %s", rs4, rt4); } @@ -2368,15 +2269,15 @@ static std::string ADDU_4X4_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDU_PH(uint64 instruction, Dis_info *info) +static char *ADDU_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDU.PH %s, %s, %s", rd, rs, rt); } @@ -2392,15 +2293,15 @@ static std::string ADDU_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDU_QB(uint64 instruction, Dis_info *info) +static char *ADDU_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDU.QB %s, %s, %s", rd, rs, rt); } @@ -2417,15 +2318,15 @@ static std::string ADDU_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDU_S_PH(uint64 instruction, Dis_info *info) +static char *ADDU_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDU_S.PH %s, %s, %s", rd, rs, rt); } @@ -2441,15 +2342,15 @@ static std::string ADDU_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDU_S_QB(uint64 instruction, Dis_info *info) +static char *ADDU_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDU_S.QB %s, %s, %s", rd, rs, rt); } @@ -2466,15 +2367,15 @@ static std::string ADDU_S_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDUH_QB(uint64 instruction, Dis_info *info) +static char *ADDUH_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDUH.QB %s, %s, %s", rd, rs, rt); } @@ -2491,15 +2392,15 @@ static std::string ADDUH_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDUH_R_QB(uint64 instruction, Dis_info *info) +static char *ADDUH_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -2514,15 +2415,15 @@ static std::string ADDUH_R_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ADDWC(uint64 instruction, Dis_info *info) +static char *ADDWC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ADDWC %s, %s, %s", rd, rs, rt); } @@ -2538,13 +2439,13 @@ static std::string ADDWC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ALUIPC(uint64 instruction, Dis_info *info) +static char *ALUIPC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 4, info); return img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); } @@ -2559,13 +2460,13 @@ static std::string ALUIPC(uint64 instruction, Dis_info *info) * rs3 --- * eu ---- */ -static std::string AND_16_(uint64 instruction, Dis_info *info) +static char *AND_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("AND %s, %s", rs3, rt3); } @@ -2581,15 +2482,15 @@ static std::string AND_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string AND_32_(uint64 instruction, Dis_info *info) +static char *AND_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("AND %s, %s, %s", rd, rs, rt); } @@ -2604,15 +2505,15 @@ static std::string AND_32_(uint64 instruction, Dis_info *info) * rs3 --- * eu ---- */ -static std::string ANDI_16_(uint64 instruction, Dis_info *info) +static char *ANDI_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 eu_value = extract_eu_3_2_1_0(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string eu = IMMEDIATE(encode_eu_from_u_andi16(eu_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + char *eu = IMMEDIATE(encode_eu_from_u_andi16(eu_value)); return img_format("ANDI %s, %s, %s", rt3, rs3, eu); } @@ -2628,15 +2529,15 @@ static std::string ANDI_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ANDI_32_(uint64 instruction, Dis_info *info) +static char *ANDI_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(u_value); return img_format("ANDI %s, %s, %s", rt, rs, u); } @@ -2652,15 +2553,15 @@ static std::string ANDI_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string APPEND(uint64 instruction, Dis_info *info) +static char *APPEND(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("APPEND %s, %s, %s", rt, rs, sa); } @@ -2676,15 +2577,15 @@ static std::string APPEND(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ASET(uint64 instruction, Dis_info *info) +static char *ASET(uint64 instruction, Dis_info *info) { uint64 bit_value = extract_bit_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string bit = IMMEDIATE(bit_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *bit = IMMEDIATE(bit_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("ASET %s, %s(%s)", bit, s, rs); } @@ -2700,11 +2601,11 @@ static std::string ASET(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BALC_16_(uint64 instruction, Dis_info *info) +static char *BALC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); - std::string s = ADDRESS(s_value, 2, info); + char *s = ADDRESS(s_value, 2, info); return img_format("BALC %s", s); } @@ -2720,11 +2621,11 @@ static std::string BALC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BALC_32_(uint64 instruction, Dis_info *info) +static char *BALC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - std::string s = ADDRESS(s_value, 4, info); + char *s = ADDRESS(s_value, 4, info); return img_format("BALC %s", s); } @@ -2740,13 +2641,13 @@ static std::string BALC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BALRSC(uint64 instruction, Dis_info *info) +static char *BALRSC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("BALRSC %s, %s", rt, rs); } @@ -2762,15 +2663,15 @@ static std::string BALRSC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BBEQZC(uint64 instruction, Dis_info *info) +static char *BBEQZC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(rt_value); - std::string bit = IMMEDIATE(bit_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *bit = IMMEDIATE(bit_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BBEQZC %s, %s, %s", rt, bit, s); } @@ -2786,15 +2687,15 @@ static std::string BBEQZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BBNEZC(uint64 instruction, Dis_info *info) +static char *BBNEZC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(rt_value); - std::string bit = IMMEDIATE(bit_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *bit = IMMEDIATE(bit_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BBNEZC %s, %s, %s", rt, bit, s); } @@ -2810,11 +2711,11 @@ static std::string BBNEZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BC_16_(uint64 instruction, Dis_info *info) +static char *BC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); - std::string s = ADDRESS(s_value, 2, info); + char *s = ADDRESS(s_value, 2, info); return img_format("BC %s", s); } @@ -2830,11 +2731,11 @@ static std::string BC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BC_32_(uint64 instruction, Dis_info *info) +static char *BC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - std::string s = ADDRESS(s_value, 4, info); + char *s = ADDRESS(s_value, 4, info); return img_format("BC %s", s); } @@ -2850,13 +2751,13 @@ static std::string BC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BC1EQZC(uint64 instruction, Dis_info *info) +static char *BC1EQZC(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string ft = FPR(ft_value); - std::string s = ADDRESS(s_value, 4, info); + const char *ft = FPR(ft_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BC1EQZC %s, %s", ft, s); } @@ -2872,13 +2773,13 @@ static std::string BC1EQZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BC1NEZC(uint64 instruction, Dis_info *info) +static char *BC1NEZC(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string ft = FPR(ft_value); - std::string s = ADDRESS(s_value, 4, info); + const char *ft = FPR(ft_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BC1NEZC %s, %s", ft, s); } @@ -2894,13 +2795,13 @@ static std::string BC1NEZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BC2EQZC(uint64 instruction, Dis_info *info) +static char *BC2EQZC(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string ct = CPR(ct_value); - std::string s = ADDRESS(s_value, 4, info); + char *ct = CPR(ct_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BC2EQZC %s, %s", ct, s); } @@ -2916,13 +2817,13 @@ static std::string BC2EQZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BC2NEZC(uint64 instruction, Dis_info *info) +static char *BC2NEZC(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string ct = CPR(ct_value); - std::string s = ADDRESS(s_value, 4, info); + char *ct = CPR(ct_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BC2NEZC %s, %s", ct, s); } @@ -2938,15 +2839,15 @@ static std::string BC2NEZC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BEQC_16_(uint64 instruction, Dis_info *info) +static char *BEQC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s1(instruction); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = ADDRESS(u_value, 2, info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = ADDRESS(u_value, 2, info); return img_format("BEQC %s, %s, %s", rs3, rt3, u); } @@ -2962,15 +2863,15 @@ static std::string BEQC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BEQC_32_(uint64 instruction, Dis_info *info) +static char *BEQC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BEQC %s, %s, %s", rs, rt, s); } @@ -2986,15 +2887,15 @@ static std::string BEQC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BEQIC(uint64 instruction, Dis_info *info) +static char *BEQIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BEQIC %s, %s, %s", rt, u, s); } @@ -3010,13 +2911,13 @@ static std::string BEQIC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BEQZC_16_(uint64 instruction, Dis_info *info) +static char *BEQZC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string s = ADDRESS(s_value, 2, info); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *s = ADDRESS(s_value, 2, info); return img_format("BEQZC %s, %s", rt3, s); } @@ -3032,15 +2933,15 @@ static std::string BEQZC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BGEC(uint64 instruction, Dis_info *info) +static char *BGEC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BGEC %s, %s, %s", rs, rt, s); } @@ -3056,15 +2957,15 @@ static std::string BGEC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BGEIC(uint64 instruction, Dis_info *info) +static char *BGEIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BGEIC %s, %s, %s", rt, u, s); } @@ -3080,15 +2981,15 @@ static std::string BGEIC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BGEIUC(uint64 instruction, Dis_info *info) +static char *BGEIUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BGEIUC %s, %s, %s", rt, u, s); } @@ -3104,15 +3005,15 @@ static std::string BGEIUC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BGEUC(uint64 instruction, Dis_info *info) +static char *BGEUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BGEUC %s, %s, %s", rs, rt, s); } @@ -3128,15 +3029,15 @@ static std::string BGEUC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BLTC(uint64 instruction, Dis_info *info) +static char *BLTC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BLTC %s, %s, %s", rs, rt, s); } @@ -3152,15 +3053,15 @@ static std::string BLTC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BLTIC(uint64 instruction, Dis_info *info) +static char *BLTIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BLTIC %s, %s, %s", rt, u, s); } @@ -3176,15 +3077,15 @@ static std::string BLTIC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BLTIUC(uint64 instruction, Dis_info *info) +static char *BLTIUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BLTIUC %s, %s, %s", rt, u, s); } @@ -3200,15 +3101,15 @@ static std::string BLTIUC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BLTUC(uint64 instruction, Dis_info *info) +static char *BLTUC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BLTUC %s, %s, %s", rs, rt, s); } @@ -3224,15 +3125,15 @@ static std::string BLTUC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BNEC_16_(uint64 instruction, Dis_info *info) +static char *BNEC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s1(instruction); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = ADDRESS(u_value, 2, info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = ADDRESS(u_value, 2, info); return img_format("BNEC %s, %s, %s", rs3, rt3, u); } @@ -3248,15 +3149,15 @@ static std::string BNEC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BNEC_32_(uint64 instruction, Dis_info *info) +static char *BNEC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BNEC %s, %s, %s", rs, rt, s); } @@ -3272,15 +3173,15 @@ static std::string BNEC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BNEIC(uint64 instruction, Dis_info *info) +static char *BNEIC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string s = ADDRESS(s_value, 4, info); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + char *s = ADDRESS(s_value, 4, info); return img_format("BNEIC %s, %s, %s", rt, u, s); } @@ -3296,13 +3197,13 @@ static std::string BNEIC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BNEZC_16_(uint64 instruction, Dis_info *info) +static char *BNEZC_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string s = ADDRESS(s_value, 2, info); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *s = ADDRESS(s_value, 2, info); return img_format("BNEZC %s, %s", rt3, s); } @@ -3318,11 +3219,11 @@ static std::string BNEZC_16_(uint64 instruction, Dis_info *info) * s[13:1] ------------- * s[14] - */ -static std::string BPOSGE32C(uint64 instruction, Dis_info *info) +static char *BPOSGE32C(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string s = ADDRESS(s_value, 4, info); + char *s = ADDRESS(s_value, 4, info); return img_format("BPOSGE32C %s", s); } @@ -3338,11 +3239,11 @@ static std::string BPOSGE32C(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BREAK_16_(uint64 instruction, Dis_info *info) +static char *BREAK_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("BREAK %s", code); } @@ -3358,11 +3259,11 @@ static std::string BREAK_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BREAK_32_(uint64 instruction, Dis_info *info) +static char *BREAK_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("BREAK %s", code); } @@ -3378,11 +3279,11 @@ static std::string BREAK_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string BRSC(uint64 instruction, Dis_info *info) +static char *BRSC(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); + const char *rs = GPR(rs_value); return img_format("BRSC %s", rs); } @@ -3398,15 +3299,15 @@ static std::string BRSC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CACHE(uint64 instruction, Dis_info *info) +static char *CACHE(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string op = IMMEDIATE(op_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *op = IMMEDIATE(op_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("CACHE %s, %s(%s)", op, s, rs); } @@ -3422,15 +3323,15 @@ static std::string CACHE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CACHEE(uint64 instruction, Dis_info *info) +static char *CACHEE(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string op = IMMEDIATE(op_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *op = IMMEDIATE(op_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("CACHEE %s, %s(%s)", op, s, rs); } @@ -3446,13 +3347,13 @@ static std::string CACHEE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CEIL_L_D(uint64 instruction, Dis_info *info) +static char *CEIL_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CEIL.L.D %s, %s", ft, fs); } @@ -3468,13 +3369,13 @@ static std::string CEIL_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CEIL_L_S(uint64 instruction, Dis_info *info) +static char *CEIL_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CEIL.L.S %s, %s", ft, fs); } @@ -3490,13 +3391,13 @@ static std::string CEIL_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CEIL_W_D(uint64 instruction, Dis_info *info) +static char *CEIL_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CEIL.W.D %s, %s", ft, fs); } @@ -3512,13 +3413,13 @@ static std::string CEIL_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CEIL_W_S(uint64 instruction, Dis_info *info) +static char *CEIL_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CEIL.W.S %s, %s", ft, fs); } @@ -3534,13 +3435,13 @@ static std::string CEIL_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CFC1(uint64 instruction, Dis_info *info) +static char *CFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("CFC1 %s, %s", rt, cs); } @@ -3556,13 +3457,13 @@ static std::string CFC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CFC2(uint64 instruction, Dis_info *info) +static char *CFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("CFC2 %s, %s", rt, cs); } @@ -3578,13 +3479,13 @@ static std::string CFC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CLASS_D(uint64 instruction, Dis_info *info) +static char *CLASS_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CLASS.D %s, %s", ft, fs); } @@ -3600,13 +3501,13 @@ static std::string CLASS_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CLASS_S(uint64 instruction, Dis_info *info) +static char *CLASS_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CLASS.S %s, %s", ft, fs); } @@ -3622,13 +3523,13 @@ static std::string CLASS_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CLO(uint64 instruction, Dis_info *info) +static char *CLO(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("CLO %s, %s", rt, rs); } @@ -3644,13 +3545,13 @@ static std::string CLO(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CLZ(uint64 instruction, Dis_info *info) +static char *CLZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("CLZ %s, %s", rt, rs); } @@ -3666,15 +3567,15 @@ static std::string CLZ(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_AF_D(uint64 instruction, Dis_info *info) +static char *CMP_AF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.AF.D %s, %s, %s", fd, fs, ft); } @@ -3690,15 +3591,15 @@ static std::string CMP_AF_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_AF_S(uint64 instruction, Dis_info *info) +static char *CMP_AF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.AF.S %s, %s, %s", fd, fs, ft); } @@ -3714,15 +3615,15 @@ static std::string CMP_AF_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_EQ_D(uint64 instruction, Dis_info *info) +static char *CMP_EQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.EQ.D %s, %s, %s", fd, fs, ft); } @@ -3737,13 +3638,13 @@ static std::string CMP_EQ_D(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string CMP_EQ_PH(uint64 instruction, Dis_info *info) +static char *CMP_EQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMP.EQ.PH %s, %s", rs, rt); } @@ -3759,15 +3660,15 @@ static std::string CMP_EQ_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_EQ_S(uint64 instruction, Dis_info *info) +static char *CMP_EQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.EQ.S %s, %s, %s", fd, fs, ft); } @@ -3783,15 +3684,15 @@ static std::string CMP_EQ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_LE_D(uint64 instruction, Dis_info *info) +static char *CMP_LE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.LE.D %s, %s, %s", fd, fs, ft); } @@ -3806,13 +3707,13 @@ static std::string CMP_LE_D(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string CMP_LE_PH(uint64 instruction, Dis_info *info) +static char *CMP_LE_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMP.LE.PH %s, %s", rs, rt); } @@ -3828,15 +3729,15 @@ static std::string CMP_LE_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_LE_S(uint64 instruction, Dis_info *info) +static char *CMP_LE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.LE.S %s, %s, %s", fd, fs, ft); } @@ -3852,15 +3753,15 @@ static std::string CMP_LE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_LT_D(uint64 instruction, Dis_info *info) +static char *CMP_LT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.LT.D %s, %s, %s", fd, fs, ft); } @@ -3875,13 +3776,13 @@ static std::string CMP_LT_D(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string CMP_LT_PH(uint64 instruction, Dis_info *info) +static char *CMP_LT_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMP.LT.PH %s, %s", rs, rt); } @@ -3897,15 +3798,15 @@ static std::string CMP_LT_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_LT_S(uint64 instruction, Dis_info *info) +static char *CMP_LT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.LT.S %s, %s, %s", fd, fs, ft); } @@ -3921,15 +3822,15 @@ static std::string CMP_LT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_NE_D(uint64 instruction, Dis_info *info) +static char *CMP_NE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.NE.D %s, %s, %s", fd, fs, ft); } @@ -3945,15 +3846,15 @@ static std::string CMP_NE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_NE_S(uint64 instruction, Dis_info *info) +static char *CMP_NE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.NE.S %s, %s, %s", fd, fs, ft); } @@ -3969,15 +3870,15 @@ static std::string CMP_NE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_OR_D(uint64 instruction, Dis_info *info) +static char *CMP_OR_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.OR.D %s, %s, %s", fd, fs, ft); } @@ -3993,15 +3894,15 @@ static std::string CMP_OR_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_OR_S(uint64 instruction, Dis_info *info) +static char *CMP_OR_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.OR.S %s, %s, %s", fd, fs, ft); } @@ -4017,15 +3918,15 @@ static std::string CMP_OR_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SAF_D(uint64 instruction, Dis_info *info) +static char *CMP_SAF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SAF.D %s, %s, %s", fd, fs, ft); } @@ -4041,15 +3942,15 @@ static std::string CMP_SAF_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SAF_S(uint64 instruction, Dis_info *info) +static char *CMP_SAF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SAF.S %s, %s, %s", fd, fs, ft); } @@ -4065,15 +3966,15 @@ static std::string CMP_SAF_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SEQ_D(uint64 instruction, Dis_info *info) +static char *CMP_SEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SEQ.D %s, %s, %s", fd, fs, ft); } @@ -4089,15 +3990,15 @@ static std::string CMP_SEQ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SEQ_S(uint64 instruction, Dis_info *info) +static char *CMP_SEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SEQ.S %s, %s, %s", fd, fs, ft); } @@ -4113,15 +4014,15 @@ static std::string CMP_SEQ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SLE_D(uint64 instruction, Dis_info *info) +static char *CMP_SLE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SLE.D %s, %s, %s", fd, fs, ft); } @@ -4137,15 +4038,15 @@ static std::string CMP_SLE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SLE_S(uint64 instruction, Dis_info *info) +static char *CMP_SLE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SLE.S %s, %s, %s", fd, fs, ft); } @@ -4161,15 +4062,15 @@ static std::string CMP_SLE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SLT_D(uint64 instruction, Dis_info *info) +static char *CMP_SLT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SLT.D %s, %s, %s", fd, fs, ft); } @@ -4185,15 +4086,15 @@ static std::string CMP_SLT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SLT_S(uint64 instruction, Dis_info *info) +static char *CMP_SLT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SLT.S %s, %s, %s", fd, fs, ft); } @@ -4209,15 +4110,15 @@ static std::string CMP_SLT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SNE_D(uint64 instruction, Dis_info *info) +static char *CMP_SNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SNE.D %s, %s, %s", fd, fs, ft); } @@ -4233,15 +4134,15 @@ static std::string CMP_SNE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SNE_S(uint64 instruction, Dis_info *info) +static char *CMP_SNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SNE.S %s, %s, %s", fd, fs, ft); } @@ -4257,15 +4158,15 @@ static std::string CMP_SNE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SOR_D(uint64 instruction, Dis_info *info) +static char *CMP_SOR_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SOR.D %s, %s, %s", fd, fs, ft); } @@ -4281,15 +4182,15 @@ static std::string CMP_SOR_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SOR_S(uint64 instruction, Dis_info *info) +static char *CMP_SOR_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SOR.S %s, %s, %s", fd, fs, ft); } @@ -4305,15 +4206,15 @@ static std::string CMP_SOR_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SUEQ_D(uint64 instruction, Dis_info *info) +static char *CMP_SUEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SUEQ.D %s, %s, %s", fd, fs, ft); } @@ -4329,15 +4230,15 @@ static std::string CMP_SUEQ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SUEQ_S(uint64 instruction, Dis_info *info) +static char *CMP_SUEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SUEQ.S %s, %s, %s", fd, fs, ft); } @@ -4353,15 +4254,15 @@ static std::string CMP_SUEQ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SULE_D(uint64 instruction, Dis_info *info) +static char *CMP_SULE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SULE.D %s, %s, %s", fd, fs, ft); } @@ -4377,15 +4278,15 @@ static std::string CMP_SULE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SULE_S(uint64 instruction, Dis_info *info) +static char *CMP_SULE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SULE.S %s, %s, %s", fd, fs, ft); } @@ -4401,15 +4302,15 @@ static std::string CMP_SULE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SULT_D(uint64 instruction, Dis_info *info) +static char *CMP_SULT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SULT.D %s, %s, %s", fd, fs, ft); } @@ -4425,15 +4326,15 @@ static std::string CMP_SULT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SULT_S(uint64 instruction, Dis_info *info) +static char *CMP_SULT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SULT.S %s, %s, %s", fd, fs, ft); } @@ -4449,15 +4350,15 @@ static std::string CMP_SULT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SUN_D(uint64 instruction, Dis_info *info) +static char *CMP_SUN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SUN.D %s, %s, %s", fd, fs, ft); } @@ -4473,15 +4374,15 @@ static std::string CMP_SUN_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SUNE_D(uint64 instruction, Dis_info *info) +static char *CMP_SUNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SUNE.D %s, %s, %s", fd, fs, ft); } @@ -4497,15 +4398,15 @@ static std::string CMP_SUNE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SUNE_S(uint64 instruction, Dis_info *info) +static char *CMP_SUNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SUNE.S %s, %s, %s", fd, fs, ft); } @@ -4521,15 +4422,15 @@ static std::string CMP_SUNE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_SUN_S(uint64 instruction, Dis_info *info) +static char *CMP_SUN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.SUN.S %s, %s, %s", fd, fs, ft); } @@ -4545,15 +4446,15 @@ static std::string CMP_SUN_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_UEQ_D(uint64 instruction, Dis_info *info) +static char *CMP_UEQ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.UEQ.D %s, %s, %s", fd, fs, ft); } @@ -4569,15 +4470,15 @@ static std::string CMP_UEQ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_UEQ_S(uint64 instruction, Dis_info *info) +static char *CMP_UEQ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.UEQ.S %s, %s, %s", fd, fs, ft); } @@ -4593,15 +4494,15 @@ static std::string CMP_UEQ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_ULE_D(uint64 instruction, Dis_info *info) +static char *CMP_ULE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.ULE.D %s, %s, %s", fd, fs, ft); } @@ -4617,15 +4518,15 @@ static std::string CMP_ULE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_ULE_S(uint64 instruction, Dis_info *info) +static char *CMP_ULE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.ULE.S %s, %s, %s", fd, fs, ft); } @@ -4641,15 +4542,15 @@ static std::string CMP_ULE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_ULT_D(uint64 instruction, Dis_info *info) +static char *CMP_ULT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.ULT.D %s, %s, %s", fd, fs, ft); } @@ -4665,15 +4566,15 @@ static std::string CMP_ULT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_ULT_S(uint64 instruction, Dis_info *info) +static char *CMP_ULT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.ULT.S %s, %s, %s", fd, fs, ft); } @@ -4689,15 +4590,15 @@ static std::string CMP_ULT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_UN_D(uint64 instruction, Dis_info *info) +static char *CMP_UN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.UN.D %s, %s, %s", fd, fs, ft); } @@ -4713,15 +4614,15 @@ static std::string CMP_UN_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_UNE_D(uint64 instruction, Dis_info *info) +static char *CMP_UNE_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.UNE.D %s, %s, %s", fd, fs, ft); } @@ -4737,15 +4638,15 @@ static std::string CMP_UNE_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_UNE_S(uint64 instruction, Dis_info *info) +static char *CMP_UNE_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.UNE.S %s, %s, %s", fd, fs, ft); } @@ -4761,15 +4662,15 @@ static std::string CMP_UNE_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMP_UN_S(uint64 instruction, Dis_info *info) +static char *CMP_UN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("CMP.UN.S %s, %s, %s", fd, fs, ft); } @@ -4786,15 +4687,15 @@ static std::string CMP_UN_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) +static char *CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPGDU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4811,15 +4712,15 @@ static std::string CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMPGDU_LE_QB(uint64 instruction, Dis_info *info) +static char *CMPGDU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPGDU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4836,15 +4737,15 @@ static std::string CMPGDU_LE_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMPGDU_LT_QB(uint64 instruction, Dis_info *info) +static char *CMPGDU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPGDU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4861,15 +4762,15 @@ static std::string CMPGDU_LT_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMPGU_EQ_QB(uint64 instruction, Dis_info *info) +static char *CMPGU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPGU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4886,15 +4787,15 @@ static std::string CMPGU_EQ_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMPGU_LE_QB(uint64 instruction, Dis_info *info) +static char *CMPGU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPGU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4911,15 +4812,15 @@ static std::string CMPGU_LE_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CMPGU_LT_QB(uint64 instruction, Dis_info *info) +static char *CMPGU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPGU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4935,13 +4836,13 @@ static std::string CMPGU_LT_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string CMPU_EQ_QB(uint64 instruction, Dis_info *info) +static char *CMPU_EQ_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPU.EQ.QB %s, %s", rs, rt); } @@ -4957,13 +4858,13 @@ static std::string CMPU_EQ_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string CMPU_LE_QB(uint64 instruction, Dis_info *info) +static char *CMPU_LE_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPU.LE.QB %s, %s", rs, rt); } @@ -4979,13 +4880,13 @@ static std::string CMPU_LE_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string CMPU_LT_QB(uint64 instruction, Dis_info *info) +static char *CMPU_LT_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("CMPU.LT.QB %s, %s", rs, rt); } @@ -5001,11 +4902,11 @@ static std::string CMPU_LT_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string COP2_1(uint64 instruction, Dis_info *info) +static char *COP2_1(uint64 instruction, Dis_info *info) { uint64 cofun_value = extract_cofun_25_24_23(instruction); - std::string cofun = IMMEDIATE(cofun_value); + char *cofun = IMMEDIATE(cofun_value); return img_format("COP2_1 %s", cofun); } @@ -5021,13 +4922,13 @@ static std::string COP2_1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CTC1(uint64 instruction, Dis_info *info) +static char *CTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("CTC1 %s, %s", rt, cs); } @@ -5043,13 +4944,13 @@ static std::string CTC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CTC2(uint64 instruction, Dis_info *info) +static char *CTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("CTC2 %s, %s", rt, cs); } @@ -5065,13 +4966,13 @@ static std::string CTC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_D_L(uint64 instruction, Dis_info *info) +static char *CVT_D_L(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.D.L %s, %s", ft, fs); } @@ -5087,13 +4988,13 @@ static std::string CVT_D_L(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_D_S(uint64 instruction, Dis_info *info) +static char *CVT_D_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.D.S %s, %s", ft, fs); } @@ -5109,13 +5010,13 @@ static std::string CVT_D_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_D_W(uint64 instruction, Dis_info *info) +static char *CVT_D_W(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.D.W %s, %s", ft, fs); } @@ -5131,13 +5032,13 @@ static std::string CVT_D_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_L_D(uint64 instruction, Dis_info *info) +static char *CVT_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.L.D %s, %s", ft, fs); } @@ -5153,13 +5054,13 @@ static std::string CVT_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_L_S(uint64 instruction, Dis_info *info) +static char *CVT_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.L.S %s, %s", ft, fs); } @@ -5175,13 +5076,13 @@ static std::string CVT_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_S_D(uint64 instruction, Dis_info *info) +static char *CVT_S_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.S.D %s, %s", ft, fs); } @@ -5197,13 +5098,13 @@ static std::string CVT_S_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_S_L(uint64 instruction, Dis_info *info) +static char *CVT_S_L(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.S.L %s, %s", ft, fs); } @@ -5219,13 +5120,13 @@ static std::string CVT_S_L(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_S_PL(uint64 instruction, Dis_info *info) +static char *CVT_S_PL(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.S.PL %s, %s", ft, fs); } @@ -5241,13 +5142,13 @@ static std::string CVT_S_PL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_S_PU(uint64 instruction, Dis_info *info) +static char *CVT_S_PU(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.S.PU %s, %s", ft, fs); } @@ -5263,13 +5164,13 @@ static std::string CVT_S_PU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_S_W(uint64 instruction, Dis_info *info) +static char *CVT_S_W(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.S.W %s, %s", ft, fs); } @@ -5285,13 +5186,13 @@ static std::string CVT_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_W_D(uint64 instruction, Dis_info *info) +static char *CVT_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.W.D %s, %s", ft, fs); } @@ -5307,13 +5208,13 @@ static std::string CVT_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string CVT_W_S(uint64 instruction, Dis_info *info) +static char *CVT_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("CVT.W.S %s, %s", ft, fs); } @@ -5329,13 +5230,13 @@ static std::string CVT_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DADDIU_48_(uint64 instruction, Dis_info *info) +static char *DADDIU_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); return img_format("DADDIU %s, %s", rt, s); } @@ -5351,15 +5252,15 @@ static std::string DADDIU_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DADDIU_NEG_(uint64 instruction, Dis_info *info) +static char *DADDIU_NEG_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(neg_copy(u_value)); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(neg_copy(u_value)); return img_format("DADDIU %s, %s, %s", rt, rs, u); } @@ -5375,15 +5276,15 @@ static std::string DADDIU_NEG_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DADDIU_U12_(uint64 instruction, Dis_info *info) +static char *DADDIU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(u_value); return img_format("DADDIU %s, %s, %s", rt, rs, u); } @@ -5399,15 +5300,15 @@ static std::string DADDIU_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DADD(uint64 instruction, Dis_info *info) +static char *DADD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DADD %s, %s, %s", rd, rs, rt); } @@ -5423,15 +5324,15 @@ static std::string DADD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DADDU(uint64 instruction, Dis_info *info) +static char *DADDU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DADDU %s, %s, %s", rd, rs, rt); } @@ -5447,13 +5348,13 @@ static std::string DADDU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DCLO(uint64 instruction, Dis_info *info) +static char *DCLO(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("DCLO %s, %s", rt, rs); } @@ -5469,13 +5370,13 @@ static std::string DCLO(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DCLZ(uint64 instruction, Dis_info *info) +static char *DCLZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("DCLZ %s, %s", rt, rs); } @@ -5491,15 +5392,15 @@ static std::string DCLZ(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DDIV(uint64 instruction, Dis_info *info) +static char *DDIV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DDIV %s, %s, %s", rd, rs, rt); } @@ -5515,15 +5416,15 @@ static std::string DDIV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DDIVU(uint64 instruction, Dis_info *info) +static char *DDIVU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DDIVU %s, %s, %s", rd, rs, rt); } @@ -5539,11 +5440,11 @@ static std::string DDIVU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DERET(uint64 instruction, Dis_info *info) +static char *DERET(uint64 instruction, Dis_info *info) { (void)instruction; - return "DERET "; + return g_strdup("DERET "); } @@ -5557,17 +5458,17 @@ static std::string DERET(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DEXTM(uint64 instruction, Dis_info *info) +static char *DEXTM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string lsb = IMMEDIATE(lsb_value); - std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *lsb = IMMEDIATE(lsb_value); + char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5583,17 +5484,17 @@ static std::string DEXTM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DEXT(uint64 instruction, Dis_info *info) +static char *DEXT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string lsb = IMMEDIATE(lsb_value); - std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *lsb = IMMEDIATE(lsb_value); + char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5609,17 +5510,17 @@ static std::string DEXT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DEXTU(uint64 instruction, Dis_info *info) +static char *DEXTU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string lsb = IMMEDIATE(lsb_value); - std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *lsb = IMMEDIATE(lsb_value); + char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5635,17 +5536,17 @@ static std::string DEXTU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DINSM(uint64 instruction, Dis_info *info) +static char *DINSM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string pos = IMMEDIATE(lsb_value); - std::string size = IMMEDIATE(msbd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *pos = IMMEDIATE(lsb_value); + char *size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ return img_format("DINSM %s, %s, %s, %s", rt, rs, pos, size); @@ -5663,17 +5564,17 @@ static std::string DINSM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DINS(uint64 instruction, Dis_info *info) +static char *DINS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string pos = IMMEDIATE(lsb_value); - std::string size = IMMEDIATE(msbd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *pos = IMMEDIATE(lsb_value); + char *size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ return img_format("DINS %s, %s, %s, %s", rt, rs, pos, size); @@ -5691,17 +5592,17 @@ static std::string DINS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DINSU(uint64 instruction, Dis_info *info) +static char *DINSU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string pos = IMMEDIATE(lsb_value); - std::string size = IMMEDIATE(msbd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *pos = IMMEDIATE(lsb_value); + char *size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ return img_format("DINSU %s, %s, %s, %s", rt, rs, pos, size); @@ -5719,11 +5620,11 @@ static std::string DINSU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DI(uint64 instruction, Dis_info *info) +static char *DI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("DI %s", rt); } @@ -5739,15 +5640,15 @@ static std::string DI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DIV(uint64 instruction, Dis_info *info) +static char *DIV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DIV %s, %s, %s", rd, rs, rt); } @@ -5763,15 +5664,15 @@ static std::string DIV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DIV_D(uint64 instruction, Dis_info *info) +static char *DIV_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("DIV.D %s, %s, %s", fd, fs, ft); } @@ -5787,15 +5688,15 @@ static std::string DIV_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DIV_S(uint64 instruction, Dis_info *info) +static char *DIV_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("DIV.S %s, %s, %s", fd, fs, ft); } @@ -5811,15 +5712,15 @@ static std::string DIV_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DIVU(uint64 instruction, Dis_info *info) +static char *DIVU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DIVU %s, %s, %s", rd, rs, rt); } @@ -5835,17 +5736,17 @@ static std::string DIVU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DLSA(uint64 instruction, Dis_info *info) +static char *DLSA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 u2_value = extract_u2_10_9(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string u2 = IMMEDIATE(u2_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u2 = IMMEDIATE(u2_value); return img_format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); } @@ -5861,13 +5762,13 @@ static std::string DLSA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DLUI_48_(uint64 instruction, Dis_info *info) +static char *DLUI_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); uint64 u_value = extract_u_31_to_0__s32(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("DLUI %s, %s", rt, u); } @@ -5883,15 +5784,15 @@ static std::string DLUI_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMFC0(uint64 instruction, Dis_info *info) +static char *DMFC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("DMFC0 %s, %s, %s", rt, c0s, sel); } @@ -5907,13 +5808,13 @@ static std::string DMFC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMFC1(uint64 instruction, Dis_info *info) +static char *DMFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string fs = FPR(fs_value); + const char *rt = GPR(rt_value); + const char *fs = FPR(fs_value); return img_format("DMFC1 %s, %s", rt, fs); } @@ -5929,13 +5830,13 @@ static std::string DMFC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMFC2(uint64 instruction, Dis_info *info) +static char *DMFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("DMFC2 %s, %s", rt, cs); } @@ -5951,15 +5852,15 @@ static std::string DMFC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMFGC0(uint64 instruction, Dis_info *info) +static char *DMFGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("DMFGC0 %s, %s, %s", rt, c0s, sel); } @@ -5975,15 +5876,15 @@ static std::string DMFGC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMOD(uint64 instruction, Dis_info *info) +static char *DMOD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DMOD %s, %s, %s", rd, rs, rt); } @@ -5999,15 +5900,15 @@ static std::string DMOD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMODU(uint64 instruction, Dis_info *info) +static char *DMODU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DMODU %s, %s, %s", rd, rs, rt); } @@ -6023,15 +5924,15 @@ static std::string DMODU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMTC0(uint64 instruction, Dis_info *info) +static char *DMTC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("DMTC0 %s, %s, %s", rt, c0s, sel); } @@ -6047,13 +5948,13 @@ static std::string DMTC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMTC1(uint64 instruction, Dis_info *info) +static char *DMTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string fs = FPR(fs_value); + const char *rt = GPR(rt_value); + const char *fs = FPR(fs_value); return img_format("DMTC1 %s, %s", rt, fs); } @@ -6069,13 +5970,13 @@ static std::string DMTC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMTC2(uint64 instruction, Dis_info *info) +static char *DMTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("DMTC2 %s, %s", rt, cs); } @@ -6091,15 +5992,15 @@ static std::string DMTC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMTGC0(uint64 instruction, Dis_info *info) +static char *DMTGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("DMTGC0 %s, %s, %s", rt, c0s, sel); } @@ -6115,11 +6016,11 @@ static std::string DMTGC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMT(uint64 instruction, Dis_info *info) +static char *DMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("DMT %s", rt); } @@ -6135,15 +6036,15 @@ static std::string DMT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMUH(uint64 instruction, Dis_info *info) +static char *DMUH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DMUH %s, %s, %s", rd, rs, rt); } @@ -6159,15 +6060,15 @@ static std::string DMUH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMUHU(uint64 instruction, Dis_info *info) +static char *DMUHU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DMUHU %s, %s, %s", rd, rs, rt); } @@ -6183,15 +6084,15 @@ static std::string DMUHU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMUL(uint64 instruction, Dis_info *info) +static char *DMUL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DMUL %s, %s, %s", rd, rs, rt); } @@ -6207,15 +6108,15 @@ static std::string DMUL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DMULU(uint64 instruction, Dis_info *info) +static char *DMULU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DMULU %s, %s, %s", rd, rs, rt); } @@ -6232,15 +6133,15 @@ static std::string DMULU(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string DPA_W_PH(uint64 instruction, Dis_info *info) +static char *DPA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6256,15 +6157,15 @@ static std::string DPA_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPAQ_SA_L_W(uint64 instruction, Dis_info *info) +static char *DPAQ_SA_L_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPAQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6280,15 +6181,15 @@ static std::string DPAQ_SA_L_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPAQ_S_W_PH(uint64 instruction, Dis_info *info) +static char *DPAQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6304,15 +6205,15 @@ static std::string DPAQ_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) +static char *DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPAQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6328,15 +6229,15 @@ static std::string DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPAQX_S_W_PH(uint64 instruction, Dis_info *info) +static char *DPAQX_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPAQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6352,15 +6253,15 @@ static std::string DPAQX_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPAU_H_QBL(uint64 instruction, Dis_info *info) +static char *DPAU_H_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPAU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6376,15 +6277,15 @@ static std::string DPAU_H_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPAU_H_QBR(uint64 instruction, Dis_info *info) +static char *DPAU_H_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPAU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6400,15 +6301,15 @@ static std::string DPAU_H_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPAX_W_PH(uint64 instruction, Dis_info *info) +static char *DPAX_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPAX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6424,15 +6325,15 @@ static std::string DPAX_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPS_W_PH(uint64 instruction, Dis_info *info) +static char *DPS_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPS.W.PH %s, %s, %s", ac, rs, rt); } @@ -6448,15 +6349,15 @@ static std::string DPS_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPSQ_SA_L_W(uint64 instruction, Dis_info *info) +static char *DPSQ_SA_L_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPSQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6472,15 +6373,15 @@ static std::string DPSQ_SA_L_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPSQ_S_W_PH(uint64 instruction, Dis_info *info) +static char *DPSQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPSQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6496,15 +6397,15 @@ static std::string DPSQ_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) +static char *DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPSQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6520,15 +6421,15 @@ static std::string DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPSQX_S_W_PH(uint64 instruction, Dis_info *info) +static char *DPSQX_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPSQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6544,15 +6445,15 @@ static std::string DPSQX_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPSU_H_QBL(uint64 instruction, Dis_info *info) +static char *DPSU_H_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPSU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6568,15 +6469,15 @@ static std::string DPSU_H_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPSU_H_QBR(uint64 instruction, Dis_info *info) +static char *DPSU_H_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPSU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6592,15 +6493,15 @@ static std::string DPSU_H_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DPSX_W_PH(uint64 instruction, Dis_info *info) +static char *DPSX_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DPSX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6616,15 +6517,15 @@ static std::string DPSX_W_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DROTR(uint64 instruction, Dis_info *info) +static char *DROTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("DROTR %s, %s, %s", rt, rs, shift); } @@ -6640,15 +6541,15 @@ static std::string DROTR(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -static std::string DROTR32(uint64 instruction, Dis_info *info) +static char *DROTR32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("DROTR32 %s, %s, %s", rt, rs, shift); } @@ -6664,15 +6565,15 @@ static std::string DROTR32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DROTRV(uint64 instruction, Dis_info *info) +static char *DROTRV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DROTRV %s, %s, %s", rd, rs, rt); } @@ -6688,17 +6589,17 @@ static std::string DROTRV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DROTX(uint64 instruction, Dis_info *info) +static char *DROTX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shiftx_value = extract_shiftx_11_10_9_8_7_6(instruction); uint64 shift_value = extract_shift_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); - std::string shiftx = IMMEDIATE(shiftx_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); + char *shiftx = IMMEDIATE(shiftx_value); return img_format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); } @@ -6714,15 +6615,15 @@ static std::string DROTX(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -static std::string DSLL(uint64 instruction, Dis_info *info) +static char *DSLL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("DSLL %s, %s, %s", rt, rs, shift); } @@ -6738,15 +6639,15 @@ static std::string DSLL(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -static std::string DSLL32(uint64 instruction, Dis_info *info) +static char *DSLL32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("DSLL32 %s, %s, %s", rt, rs, shift); } @@ -6762,15 +6663,15 @@ static std::string DSLL32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DSLLV(uint64 instruction, Dis_info *info) +static char *DSLLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DSLLV %s, %s, %s", rd, rs, rt); } @@ -6786,15 +6687,15 @@ static std::string DSLLV(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -static std::string DSRA(uint64 instruction, Dis_info *info) +static char *DSRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("DSRA %s, %s, %s", rt, rs, shift); } @@ -6810,15 +6711,15 @@ static std::string DSRA(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -static std::string DSRA32(uint64 instruction, Dis_info *info) +static char *DSRA32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("DSRA32 %s, %s, %s", rt, rs, shift); } @@ -6834,15 +6735,15 @@ static std::string DSRA32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DSRAV(uint64 instruction, Dis_info *info) +static char *DSRAV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DSRAV %s, %s, %s", rd, rs, rt); } @@ -6858,15 +6759,15 @@ static std::string DSRAV(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -static std::string DSRL(uint64 instruction, Dis_info *info) +static char *DSRL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("DSRL %s, %s, %s", rt, rs, shift); } @@ -6882,15 +6783,15 @@ static std::string DSRL(uint64 instruction, Dis_info *info) * rs ----- * shift ----- */ -static std::string DSRL32(uint64 instruction, Dis_info *info) +static char *DSRL32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("DSRL32 %s, %s, %s", rt, rs, shift); } @@ -6906,15 +6807,15 @@ static std::string DSRL32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DSRLV(uint64 instruction, Dis_info *info) +static char *DSRLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DSRLV %s, %s, %s", rd, rs, rt); } @@ -6930,15 +6831,15 @@ static std::string DSRLV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DSUB(uint64 instruction, Dis_info *info) +static char *DSUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DSUB %s, %s, %s", rd, rs, rt); } @@ -6954,15 +6855,15 @@ static std::string DSUB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DSUBU(uint64 instruction, Dis_info *info) +static char *DSUBU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("DSUBU %s, %s, %s", rd, rs, rt); } @@ -6978,11 +6879,11 @@ static std::string DSUBU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DVPE(uint64 instruction, Dis_info *info) +static char *DVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("DVPE %s", rt); } @@ -6998,11 +6899,11 @@ static std::string DVPE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string DVP(uint64 instruction, Dis_info *info) +static char *DVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("DVP %s", rt); } @@ -7018,11 +6919,11 @@ static std::string DVP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EHB(uint64 instruction, Dis_info *info) +static char *EHB(uint64 instruction, Dis_info *info) { (void)instruction; - return "EHB "; + return g_strdup("EHB "); } @@ -7036,11 +6937,11 @@ static std::string EHB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EI(uint64 instruction, Dis_info *info) +static char *EI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("EI %s", rt); } @@ -7056,11 +6957,11 @@ static std::string EI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EMT(uint64 instruction, Dis_info *info) +static char *EMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("EMT %s", rt); } @@ -7076,11 +6977,11 @@ static std::string EMT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ERET(uint64 instruction, Dis_info *info) +static char *ERET(uint64 instruction, Dis_info *info) { (void)instruction; - return "ERET "; + return g_strdup("ERET "); } @@ -7094,11 +6995,11 @@ static std::string ERET(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ERETNC(uint64 instruction, Dis_info *info) +static char *ERETNC(uint64 instruction, Dis_info *info) { (void)instruction; - return "ERETNC "; + return g_strdup("ERETNC "); } @@ -7112,11 +7013,11 @@ static std::string ERETNC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EVP(uint64 instruction, Dis_info *info) +static char *EVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("EVP %s", rt); } @@ -7132,11 +7033,11 @@ static std::string EVP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EVPE(uint64 instruction, Dis_info *info) +static char *EVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("EVPE %s", rt); } @@ -7152,17 +7053,17 @@ static std::string EVPE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EXT(uint64 instruction, Dis_info *info) +static char *EXT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string lsb = IMMEDIATE(lsb_value); - std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *lsb = IMMEDIATE(lsb_value); + char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -7178,17 +7079,17 @@ static std::string EXT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EXTD(uint64 instruction, Dis_info *info) +static char *EXTD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string shift = IMMEDIATE(shift_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *shift = IMMEDIATE(shift_value); return img_format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7204,17 +7105,17 @@ static std::string EXTD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EXTD32(uint64 instruction, Dis_info *info) +static char *EXTD32(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string shift = IMMEDIATE(shift_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *shift = IMMEDIATE(shift_value); return img_format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7230,15 +7131,15 @@ static std::string EXTD32(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EXTPDP(uint64 instruction, Dis_info *info) +static char *EXTPDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 size_value = extract_size_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string size = IMMEDIATE(size_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + char *size = IMMEDIATE(size_value); return img_format("EXTPDP %s, %s, %s", rt, ac, size); } @@ -7254,15 +7155,15 @@ static std::string EXTPDP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EXTPDPV(uint64 instruction, Dis_info *info) +static char *EXTPDPV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); return img_format("EXTPDPV %s, %s, %s", rt, ac, rs); } @@ -7278,15 +7179,15 @@ static std::string EXTPDPV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EXTP(uint64 instruction, Dis_info *info) +static char *EXTP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 size_value = extract_size_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string size = IMMEDIATE(size_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + char *size = IMMEDIATE(size_value); return img_format("EXTP %s, %s, %s", rt, ac, size); } @@ -7302,15 +7203,15 @@ static std::string EXTP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string EXTPV(uint64 instruction, Dis_info *info) +static char *EXTPV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); return img_format("EXTPV %s, %s, %s", rt, ac, rs); } @@ -7327,15 +7228,15 @@ static std::string EXTPV(uint64 instruction, Dis_info *info) * shift ----- * ac -- */ -static std::string EXTR_RS_W(uint64 instruction, Dis_info *info) +static char *EXTR_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + char *shift = IMMEDIATE(shift_value); return img_format("EXTR_RS.W %s, %s, %s", rt, ac, shift); } @@ -7352,15 +7253,15 @@ static std::string EXTR_RS_W(uint64 instruction, Dis_info *info) * shift ----- * ac -- */ -static std::string EXTR_R_W(uint64 instruction, Dis_info *info) +static char *EXTR_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + char *shift = IMMEDIATE(shift_value); return img_format("EXTR_R.W %s, %s, %s", rt, ac, shift); } @@ -7377,15 +7278,15 @@ static std::string EXTR_R_W(uint64 instruction, Dis_info *info) * shift ----- * ac -- */ -static std::string EXTR_S_H(uint64 instruction, Dis_info *info) +static char *EXTR_S_H(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + char *shift = IMMEDIATE(shift_value); return img_format("EXTR_S.H %s, %s, %s", rt, ac, shift); } @@ -7402,15 +7303,15 @@ static std::string EXTR_S_H(uint64 instruction, Dis_info *info) * shift ----- * ac -- */ -static std::string EXTR_W(uint64 instruction, Dis_info *info) +static char *EXTR_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + char *shift = IMMEDIATE(shift_value); return img_format("EXTR.W %s, %s, %s", rt, ac, shift); } @@ -7427,15 +7328,15 @@ static std::string EXTR_W(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string EXTRV_RS_W(uint64 instruction, Dis_info *info) +static char *EXTRV_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); return img_format("EXTRV_RS.W %s, %s, %s", rt, ac, rs); } @@ -7452,15 +7353,15 @@ static std::string EXTRV_RS_W(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string EXTRV_R_W(uint64 instruction, Dis_info *info) +static char *EXTRV_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); return img_format("EXTRV_R.W %s, %s, %s", rt, ac, rs); } @@ -7477,15 +7378,15 @@ static std::string EXTRV_R_W(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string EXTRV_S_H(uint64 instruction, Dis_info *info) +static char *EXTRV_S_H(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); return img_format("EXTRV_S.H %s, %s, %s", rt, ac, rs); } @@ -7502,15 +7403,15 @@ static std::string EXTRV_S_H(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string EXTRV_W(uint64 instruction, Dis_info *info) +static char *EXTRV_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); return img_format("EXTRV.W %s, %s, %s", rt, ac, rs); } @@ -7527,17 +7428,17 @@ static std::string EXTRV_W(uint64 instruction, Dis_info *info) * rd ----- * shift ----- */ -static std::string EXTW(uint64 instruction, Dis_info *info) +static char *EXTW(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string shift = IMMEDIATE(shift_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *shift = IMMEDIATE(shift_value); return img_format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7553,13 +7454,13 @@ static std::string EXTW(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string FLOOR_L_D(uint64 instruction, Dis_info *info) +static char *FLOOR_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("FLOOR.L.D %s, %s", ft, fs); } @@ -7575,13 +7476,13 @@ static std::string FLOOR_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string FLOOR_L_S(uint64 instruction, Dis_info *info) +static char *FLOOR_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("FLOOR.L.S %s, %s", ft, fs); } @@ -7597,13 +7498,13 @@ static std::string FLOOR_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string FLOOR_W_D(uint64 instruction, Dis_info *info) +static char *FLOOR_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("FLOOR.W.D %s, %s", ft, fs); } @@ -7619,13 +7520,13 @@ static std::string FLOOR_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string FLOOR_W_S(uint64 instruction, Dis_info *info) +static char *FLOOR_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("FLOOR.W.S %s, %s", ft, fs); } @@ -7641,15 +7542,15 @@ static std::string FLOOR_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string FORK(uint64 instruction, Dis_info *info) +static char *FORK(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("FORK %s, %s, %s", rd, rs, rt); } @@ -7665,11 +7566,11 @@ static std::string FORK(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string HYPCALL(uint64 instruction, Dis_info *info) +static char *HYPCALL(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("HYPCALL %s", code); } @@ -7685,11 +7586,11 @@ static std::string HYPCALL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string HYPCALL_16_(uint64 instruction, Dis_info *info) +static char *HYPCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("HYPCALL %s", code); } @@ -7705,17 +7606,17 @@ static std::string HYPCALL_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string INS(uint64 instruction, Dis_info *info) +static char *INS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string pos = IMMEDIATE(lsb_value); - std::string size = IMMEDIATE(msbd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *pos = IMMEDIATE(lsb_value); + char *size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ return img_format("INS %s, %s, %s, %s", rt, rs, pos, size); @@ -7732,13 +7633,13 @@ static std::string INS(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string INSV(uint64 instruction, Dis_info *info) +static char *INSV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("INSV %s, %s", rt, rs); } @@ -7754,11 +7655,11 @@ static std::string INSV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string IRET(uint64 instruction, Dis_info *info) +static char *IRET(uint64 instruction, Dis_info *info) { (void)instruction; - return "IRET "; + return g_strdup("IRET "); } @@ -7772,11 +7673,11 @@ static std::string IRET(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string JALRC_16_(uint64 instruction, Dis_info *info) +static char *JALRC_16_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("JALRC $%d, %s", 31, rt); } @@ -7792,13 +7693,13 @@ static std::string JALRC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string JALRC_32_(uint64 instruction, Dis_info *info) +static char *JALRC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("JALRC %s, %s", rt, rs); } @@ -7814,13 +7715,13 @@ static std::string JALRC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string JALRC_HB(uint64 instruction, Dis_info *info) +static char *JALRC_HB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("JALRC.HB %s, %s", rt, rs); } @@ -7836,11 +7737,11 @@ static std::string JALRC_HB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string JRC(uint64 instruction, Dis_info *info) +static char *JRC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - std::string rt = GPR(rt_value); + const char *rt = GPR(rt_value); return img_format("JRC %s", rt); } @@ -7856,15 +7757,15 @@ static std::string JRC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LB_16_(uint64 instruction, Dis_info *info) +static char *LB_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_1_0(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(u_value); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = IMMEDIATE(u_value); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LB %s, %s(%s)", rt3, u, rs3); } @@ -7880,13 +7781,13 @@ static std::string LB_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LB_GP_(uint64 instruction, Dis_info *info) +static char *LB_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("LB %s, %s($%d)", rt, u, 28); } @@ -7902,15 +7803,15 @@ static std::string LB_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LB_S9_(uint64 instruction, Dis_info *info) +static char *LB_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LB %s, %s(%s)", rt, s, rs); } @@ -7926,15 +7827,15 @@ static std::string LB_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LB_U12_(uint64 instruction, Dis_info *info) +static char *LB_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LB %s, %s(%s)", rt, u, rs); } @@ -7950,15 +7851,15 @@ static std::string LB_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LBE(uint64 instruction, Dis_info *info) +static char *LBE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LBE %s, %s(%s)", rt, s, rs); } @@ -7974,15 +7875,15 @@ static std::string LBE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LBU_16_(uint64 instruction, Dis_info *info) +static char *LBU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_1_0(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(u_value); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = IMMEDIATE(u_value); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LBU %s, %s(%s)", rt3, u, rs3); } @@ -7998,13 +7899,13 @@ static std::string LBU_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LBU_GP_(uint64 instruction, Dis_info *info) +static char *LBU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("LBU %s, %s($%d)", rt, u, 28); } @@ -8020,15 +7921,15 @@ static std::string LBU_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LBU_S9_(uint64 instruction, Dis_info *info) +static char *LBU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LBU %s, %s(%s)", rt, s, rs); } @@ -8044,15 +7945,15 @@ static std::string LBU_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LBU_U12_(uint64 instruction, Dis_info *info) +static char *LBU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LBU %s, %s(%s)", rt, u, rs); } @@ -8068,15 +7969,15 @@ static std::string LBU_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LBUE(uint64 instruction, Dis_info *info) +static char *LBUE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LBUE %s, %s(%s)", rt, s, rs); } @@ -8092,15 +7993,15 @@ static std::string LBUE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LBUX(uint64 instruction, Dis_info *info) +static char *LBUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LBUX %s, %s(%s)", rd, rs, rt); } @@ -8116,15 +8017,15 @@ static std::string LBUX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LBX(uint64 instruction, Dis_info *info) +static char *LBX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LBX %s, %s(%s)", rd, rs, rt); } @@ -8140,13 +8041,13 @@ static std::string LBX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LD_GP_(uint64 instruction, Dis_info *info) +static char *LD_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("LD %s, %s($%d)", rt, u, 28); } @@ -8162,15 +8063,15 @@ static std::string LD_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LD_S9_(uint64 instruction, Dis_info *info) +static char *LD_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LD %s, %s(%s)", rt, s, rs); } @@ -8186,15 +8087,15 @@ static std::string LD_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LD_U12_(uint64 instruction, Dis_info *info) +static char *LD_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LD %s, %s(%s)", rt, u, rs); } @@ -8210,13 +8111,13 @@ static std::string LD_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDC1_GP_(uint64 instruction, Dis_info *info) +static char *LDC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string ft = FPR(ft_value); - std::string u = IMMEDIATE(u_value); + const char *ft = FPR(ft_value); + char *u = IMMEDIATE(u_value); return img_format("LDC1 %s, %s($%d)", ft, u, 28); } @@ -8232,15 +8133,15 @@ static std::string LDC1_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDC1_S9_(uint64 instruction, Dis_info *info) +static char *LDC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(ft_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *ft = FPR(ft_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LDC1 %s, %s(%s)", ft, s, rs); } @@ -8256,15 +8157,15 @@ static std::string LDC1_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDC1_U12_(uint64 instruction, Dis_info *info) +static char *LDC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(ft_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *ft = FPR(ft_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LDC1 %s, %s(%s)", ft, u, rs); } @@ -8280,15 +8181,15 @@ static std::string LDC1_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDC1XS(uint64 instruction, Dis_info *info) +static char *LDC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ft = FPR(ft_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LDC1XS %s, %s(%s)", ft, rs, rt); } @@ -8304,15 +8205,15 @@ static std::string LDC1XS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDC1X(uint64 instruction, Dis_info *info) +static char *LDC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ft = FPR(ft_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LDC1X %s, %s(%s)", ft, rs, rt); } @@ -8328,15 +8229,15 @@ static std::string LDC1X(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDC2(uint64 instruction, Dis_info *info) +static char *LDC2(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ct = CPR(ct_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *ct = CPR(ct_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LDC2 %s, %s(%s)", ct, s, rs); } @@ -8352,17 +8253,17 @@ static std::string LDC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDM(uint64 instruction, Dis_info *info) +static char *LDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); + char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("LDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -8378,13 +8279,13 @@ static std::string LDM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDPC_48_(uint64 instruction, Dis_info *info) +static char *LDPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 6, info); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 6, info); return img_format("LDPC %s, %s", rt, s); } @@ -8400,15 +8301,15 @@ static std::string LDPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDX(uint64 instruction, Dis_info *info) +static char *LDX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LDX %s, %s(%s)", rd, rs, rt); } @@ -8424,15 +8325,15 @@ static std::string LDX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LDXS(uint64 instruction, Dis_info *info) +static char *LDXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LDXS %s, %s(%s)", rd, rs, rt); } @@ -8448,15 +8349,15 @@ static std::string LDXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LH_16_(uint64 instruction, Dis_info *info) +static char *LH_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_2_1__s1(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(u_value); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = IMMEDIATE(u_value); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LH %s, %s(%s)", rt3, u, rs3); } @@ -8472,13 +8373,13 @@ static std::string LH_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LH_GP_(uint64 instruction, Dis_info *info) +static char *LH_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("LH %s, %s($%d)", rt, u, 28); } @@ -8494,15 +8395,15 @@ static std::string LH_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LH_S9_(uint64 instruction, Dis_info *info) +static char *LH_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LH %s, %s(%s)", rt, s, rs); } @@ -8518,15 +8419,15 @@ static std::string LH_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LH_U12_(uint64 instruction, Dis_info *info) +static char *LH_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LH %s, %s(%s)", rt, u, rs); } @@ -8542,15 +8443,15 @@ static std::string LH_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHE(uint64 instruction, Dis_info *info) +static char *LHE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LHE %s, %s(%s)", rt, s, rs); } @@ -8566,15 +8467,15 @@ static std::string LHE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHU_16_(uint64 instruction, Dis_info *info) +static char *LHU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_2_1__s1(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(u_value); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = IMMEDIATE(u_value); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LHU %s, %s(%s)", rt3, u, rs3); } @@ -8590,13 +8491,13 @@ static std::string LHU_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHU_GP_(uint64 instruction, Dis_info *info) +static char *LHU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("LHU %s, %s($%d)", rt, u, 28); } @@ -8612,15 +8513,15 @@ static std::string LHU_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHU_S9_(uint64 instruction, Dis_info *info) +static char *LHU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LHU %s, %s(%s)", rt, s, rs); } @@ -8636,15 +8537,15 @@ static std::string LHU_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHU_U12_(uint64 instruction, Dis_info *info) +static char *LHU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LHU %s, %s(%s)", rt, u, rs); } @@ -8660,15 +8561,15 @@ static std::string LHU_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHUE(uint64 instruction, Dis_info *info) +static char *LHUE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LHUE %s, %s(%s)", rt, s, rs); } @@ -8684,15 +8585,15 @@ static std::string LHUE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHUX(uint64 instruction, Dis_info *info) +static char *LHUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LHUX %s, %s(%s)", rd, rs, rt); } @@ -8708,15 +8609,15 @@ static std::string LHUX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHUXS(uint64 instruction, Dis_info *info) +static char *LHUXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LHUXS %s, %s(%s)", rd, rs, rt); } @@ -8732,15 +8633,15 @@ static std::string LHUXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHXS(uint64 instruction, Dis_info *info) +static char *LHXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LHXS %s, %s(%s)", rd, rs, rt); } @@ -8756,15 +8657,15 @@ static std::string LHXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LHX(uint64 instruction, Dis_info *info) +static char *LHX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LHX %s, %s(%s)", rd, rs, rt); } @@ -8780,13 +8681,13 @@ static std::string LHX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LI_16_(uint64 instruction, Dis_info *info) +static char *LI_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 eu_value = extract_eu_6_5_4_3_2_1_0(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string eu = IMMEDIATE(encode_eu_from_s_li16(eu_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *eu = IMMEDIATE(encode_eu_from_s_li16(eu_value)); return img_format("LI %s, %s", rt3, eu); } @@ -8802,13 +8703,13 @@ static std::string LI_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LI_48_(uint64 instruction, Dis_info *info) +static char *LI_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); return img_format("LI %s, %s", rt, s); } @@ -8824,15 +8725,15 @@ static std::string LI_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LL(uint64 instruction, Dis_info *info) +static char *LL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LL %s, %s(%s)", rt, s, rs); } @@ -8848,15 +8749,15 @@ static std::string LL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LLD(uint64 instruction, Dis_info *info) +static char *LLD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_s3(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LLD %s, %s(%s)", rt, s, rs); } @@ -8872,15 +8773,15 @@ static std::string LLD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LLDP(uint64 instruction, Dis_info *info) +static char *LLDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(rt_value); - std::string ru = GPR(ru_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ru = GPR(ru_value); + const char *rs = GPR(rs_value); return img_format("LLDP %s, %s, (%s)", rt, ru, rs); } @@ -8896,15 +8797,15 @@ static std::string LLDP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LLE(uint64 instruction, Dis_info *info) +static char *LLE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LLE %s, %s(%s)", rt, s, rs); } @@ -8920,15 +8821,15 @@ static std::string LLE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LLWP(uint64 instruction, Dis_info *info) +static char *LLWP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(rt_value); - std::string ru = GPR(ru_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ru = GPR(ru_value); + const char *rs = GPR(rs_value); return img_format("LLWP %s, %s, (%s)", rt, ru, rs); } @@ -8944,15 +8845,15 @@ static std::string LLWP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LLWPE(uint64 instruction, Dis_info *info) +static char *LLWPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(rt_value); - std::string ru = GPR(ru_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ru = GPR(ru_value); + const char *rs = GPR(rs_value); return img_format("LLWPE %s, %s, (%s)", rt, ru, rs); } @@ -8968,17 +8869,17 @@ static std::string LLWPE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LSA(uint64 instruction, Dis_info *info) +static char *LSA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 u2_value = extract_u2_10_9(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); - std::string u2 = IMMEDIATE(u2_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u2 = IMMEDIATE(u2_value); return img_format("LSA %s, %s, %s, %s", rd, rs, rt, u2); } @@ -8994,13 +8895,13 @@ static std::string LSA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LUI(uint64 instruction, Dis_info *info) +static char *LUI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); return img_format("LUI %s, %%hi(%s)", rt, s); } @@ -9016,15 +8917,15 @@ static std::string LUI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LW_16_(uint64 instruction, Dis_info *info) +static char *LW_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s2(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(u_value); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = IMMEDIATE(u_value); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LW %s, %s(%s)", rt3, u, rs3); } @@ -9040,15 +8941,15 @@ static std::string LW_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LW_4X4_(uint64 instruction, Dis_info *info) +static char *LW_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); uint64 u_value = extract_u_3_8__s2(instruction); - std::string rt4 = GPR(decode_gpr_gpr4(rt4_value)); - std::string u = IMMEDIATE(u_value); - std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); + char *u = IMMEDIATE(u_value); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); return img_format("LW %s, %s(%s)", rt4, u, rs4); } @@ -9064,13 +8965,13 @@ static std::string LW_4X4_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LW_GP_(uint64 instruction, Dis_info *info) +static char *LW_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("LW %s, %s($%d)", rt, u, 28); } @@ -9086,13 +8987,13 @@ static std::string LW_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LW_GP16_(uint64 instruction, Dis_info *info) +static char *LW_GP16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string u = IMMEDIATE(u_value); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + char *u = IMMEDIATE(u_value); return img_format("LW %s, %s($%d)", rt3, u, 28); } @@ -9108,15 +9009,15 @@ static std::string LW_GP16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LW_S9_(uint64 instruction, Dis_info *info) +static char *LW_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LW %s, %s(%s)", rt, s, rs); } @@ -9132,13 +9033,13 @@ static std::string LW_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LW_SP_(uint64 instruction, Dis_info *info) +static char *LW_SP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("LW %s, %s($%d)", rt, u, 29); } @@ -9154,15 +9055,15 @@ static std::string LW_SP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LW_U12_(uint64 instruction, Dis_info *info) +static char *LW_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LW %s, %s(%s)", rt, u, rs); } @@ -9178,13 +9079,13 @@ static std::string LW_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWC1_GP_(uint64 instruction, Dis_info *info) +static char *LWC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string ft = FPR(ft_value); - std::string u = IMMEDIATE(u_value); + const char *ft = FPR(ft_value); + char *u = IMMEDIATE(u_value); return img_format("LWC1 %s, %s($%d)", ft, u, 28); } @@ -9200,15 +9101,15 @@ static std::string LWC1_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWC1_S9_(uint64 instruction, Dis_info *info) +static char *LWC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(ft_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *ft = FPR(ft_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LWC1 %s, %s(%s)", ft, s, rs); } @@ -9224,15 +9125,15 @@ static std::string LWC1_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWC1_U12_(uint64 instruction, Dis_info *info) +static char *LWC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(ft_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *ft = FPR(ft_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LWC1 %s, %s(%s)", ft, u, rs); } @@ -9248,15 +9149,15 @@ static std::string LWC1_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWC1X(uint64 instruction, Dis_info *info) +static char *LWC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ft = FPR(ft_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LWC1X %s, %s(%s)", ft, rs, rt); } @@ -9272,15 +9173,15 @@ static std::string LWC1X(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWC1XS(uint64 instruction, Dis_info *info) +static char *LWC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ft = FPR(ft_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LWC1XS %s, %s(%s)", ft, rs, rt); } @@ -9296,15 +9197,15 @@ static std::string LWC1XS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWC2(uint64 instruction, Dis_info *info) +static char *LWC2(uint64 instruction, Dis_info *info) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ct = CPR(ct_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *ct = CPR(ct_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LWC2 %s, %s(%s)", ct, s, rs); } @@ -9320,15 +9221,15 @@ static std::string LWC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWE(uint64 instruction, Dis_info *info) +static char *LWE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LWE %s, %s(%s)", rt, s, rs); } @@ -9344,17 +9245,17 @@ static std::string LWE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWM(uint64 instruction, Dis_info *info) +static char *LWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); + char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("LWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -9370,13 +9271,13 @@ static std::string LWM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWPC_48_(uint64 instruction, Dis_info *info) +static char *LWPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 6, info); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 6, info); return img_format("LWPC %s, %s", rt, s); } @@ -9392,13 +9293,13 @@ static std::string LWPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWU_GP_(uint64 instruction, Dis_info *info) +static char *LWU_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("LWU %s, %s($%d)", rt, u, 28); } @@ -9414,15 +9315,15 @@ static std::string LWU_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWU_S9_(uint64 instruction, Dis_info *info) +static char *LWU_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("LWU %s, %s(%s)", rt, s, rs); } @@ -9438,15 +9339,15 @@ static std::string LWU_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWU_U12_(uint64 instruction, Dis_info *info) +static char *LWU_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("LWU %s, %s(%s)", rt, u, rs); } @@ -9462,15 +9363,15 @@ static std::string LWU_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWUX(uint64 instruction, Dis_info *info) +static char *LWUX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LWUX %s, %s(%s)", rd, rs, rt); } @@ -9486,15 +9387,15 @@ static std::string LWUX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWUXS(uint64 instruction, Dis_info *info) +static char *LWUXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LWUXS %s, %s(%s)", rd, rs, rt); } @@ -9510,15 +9411,15 @@ static std::string LWUXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWX(uint64 instruction, Dis_info *info) +static char *LWX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LWX %s, %s(%s)", rd, rs, rt); } @@ -9534,15 +9435,15 @@ static std::string LWX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWXS_16_(uint64 instruction, Dis_info *info) +static char *LWXS_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 rd3_value = extract_rd3_3_2_1(instruction); - std::string rd3 = GPR(decode_gpr_gpr3(rd3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string rt3 = IMMEDIATE(decode_gpr_gpr3(rt3_value)); + const char *rd3 = GPR(decode_gpr_gpr3(rd3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + char *rt3 = IMMEDIATE(decode_gpr_gpr3(rt3_value)); return img_format("LWXS %s, %s(%s)", rd3, rs3, rt3); } @@ -9558,15 +9459,15 @@ static std::string LWXS_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string LWXS_32_(uint64 instruction, Dis_info *info) +static char *LWXS_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("LWXS %s, %s(%s)", rd, rs, rt); } @@ -9583,15 +9484,15 @@ static std::string LWXS_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MADD_DSP_(uint64 instruction, Dis_info *info) +static char *MADD_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MADD %s, %s, %s", ac, rs, rt); } @@ -9607,15 +9508,15 @@ static std::string MADD_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MADDF_D(uint64 instruction, Dis_info *info) +static char *MADDF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MADDF.D %s, %s, %s", fd, fs, ft); } @@ -9631,15 +9532,15 @@ static std::string MADDF_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MADDF_S(uint64 instruction, Dis_info *info) +static char *MADDF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MADDF.S %s, %s, %s", fd, fs, ft); } @@ -9656,15 +9557,15 @@ static std::string MADDF_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MADDU_DSP_(uint64 instruction, Dis_info *info) +static char *MADDU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MADDU %s, %s, %s", ac, rs, rt); } @@ -9681,15 +9582,15 @@ static std::string MADDU_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MAQ_S_W_PHL(uint64 instruction, Dis_info *info) +static char *MAQ_S_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MAQ_S.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9706,15 +9607,15 @@ static std::string MAQ_S_W_PHL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MAQ_S_W_PHR(uint64 instruction, Dis_info *info) +static char *MAQ_S_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MAQ_S.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9731,15 +9632,15 @@ static std::string MAQ_S_W_PHR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) +static char *MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MAQ_SA.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9756,15 +9657,15 @@ static std::string MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) +static char *MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MAQ_SA.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9780,15 +9681,15 @@ static std::string MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MAX_D(uint64 instruction, Dis_info *info) +static char *MAX_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MAX.D %s, %s, %s", fd, fs, ft); } @@ -9804,15 +9705,15 @@ static std::string MAX_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MAX_S(uint64 instruction, Dis_info *info) +static char *MAX_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MAX.S %s, %s, %s", fd, fs, ft); } @@ -9828,15 +9729,15 @@ static std::string MAX_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MAXA_D(uint64 instruction, Dis_info *info) +static char *MAXA_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MAXA.D %s, %s, %s", fd, fs, ft); } @@ -9852,15 +9753,15 @@ static std::string MAXA_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MAXA_S(uint64 instruction, Dis_info *info) +static char *MAXA_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MAXA.S %s, %s, %s", fd, fs, ft); } @@ -9876,15 +9777,15 @@ static std::string MAXA_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFC0(uint64 instruction, Dis_info *info) +static char *MFC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("MFC0 %s, %s, %s", rt, c0s, sel); } @@ -9900,13 +9801,13 @@ static std::string MFC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFC1(uint64 instruction, Dis_info *info) +static char *MFC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string fs = FPR(fs_value); + const char *rt = GPR(rt_value); + const char *fs = FPR(fs_value); return img_format("MFC1 %s, %s", rt, fs); } @@ -9922,13 +9823,13 @@ static std::string MFC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFC2(uint64 instruction, Dis_info *info) +static char *MFC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("MFC2 %s, %s", rt, cs); } @@ -9944,15 +9845,15 @@ static std::string MFC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFGC0(uint64 instruction, Dis_info *info) +static char *MFGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("MFGC0 %s, %s, %s", rt, c0s, sel); } @@ -9968,15 +9869,15 @@ static std::string MFGC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFHC0(uint64 instruction, Dis_info *info) +static char *MFHC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("MFHC0 %s, %s, %s", rt, c0s, sel); } @@ -9992,13 +9893,13 @@ static std::string MFHC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFHC1(uint64 instruction, Dis_info *info) +static char *MFHC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string fs = FPR(fs_value); + const char *rt = GPR(rt_value); + const char *fs = FPR(fs_value); return img_format("MFHC1 %s, %s", rt, fs); } @@ -10014,13 +9915,13 @@ static std::string MFHC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFHC2(uint64 instruction, Dis_info *info) +static char *MFHC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("MFHC2 %s, %s", rt, cs); } @@ -10036,15 +9937,15 @@ static std::string MFHC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFHGC0(uint64 instruction, Dis_info *info) +static char *MFHGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("MFHGC0 %s, %s, %s", rt, c0s, sel); } @@ -10059,13 +9960,13 @@ static std::string MFHGC0(uint64 instruction, Dis_info *info) * rt ----- * ac -- */ -static std::string MFHI_DSP_(uint64 instruction, Dis_info *info) +static char *MFHI_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); return img_format("MFHI %s, %s", rt, ac); } @@ -10081,17 +9982,17 @@ static std::string MFHI_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFHTR(uint64 instruction, Dis_info *info) +static char *MFHTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - std::string rt = GPR(rt_value); - std::string c0s = IMMEDIATE(c0s_value); - std::string u = IMMEDIATE(u_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = IMMEDIATE(c0s_value); + char *u = IMMEDIATE(u_value); + char *sel = IMMEDIATE(sel_value); return img_format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10106,13 +10007,13 @@ static std::string MFHTR(uint64 instruction, Dis_info *info) * rt ----- * ac -- */ -static std::string MFLO_DSP_(uint64 instruction, Dis_info *info) +static char *MFLO_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rt = GPR(rt_value); - std::string ac = AC(ac_value); + const char *rt = GPR(rt_value); + const char *ac = AC(ac_value); return img_format("MFLO %s, %s", rt, ac); } @@ -10128,17 +10029,17 @@ static std::string MFLO_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MFTR(uint64 instruction, Dis_info *info) +static char *MFTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - std::string rt = GPR(rt_value); - std::string c0s = IMMEDIATE(c0s_value); - std::string u = IMMEDIATE(u_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = IMMEDIATE(c0s_value); + char *u = IMMEDIATE(u_value); + char *sel = IMMEDIATE(sel_value); return img_format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10154,15 +10055,15 @@ static std::string MFTR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MIN_D(uint64 instruction, Dis_info *info) +static char *MIN_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MIN.D %s, %s, %s", fd, fs, ft); } @@ -10178,15 +10079,15 @@ static std::string MIN_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MIN_S(uint64 instruction, Dis_info *info) +static char *MIN_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MIN.S %s, %s, %s", fd, fs, ft); } @@ -10202,15 +10103,15 @@ static std::string MIN_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MINA_D(uint64 instruction, Dis_info *info) +static char *MINA_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MINA.D %s, %s, %s", fd, fs, ft); } @@ -10226,15 +10127,15 @@ static std::string MINA_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MINA_S(uint64 instruction, Dis_info *info) +static char *MINA_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MINA.S %s, %s, %s", fd, fs, ft); } @@ -10250,15 +10151,15 @@ static std::string MINA_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOD(uint64 instruction, Dis_info *info) +static char *MOD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MOD %s, %s, %s", rd, rs, rt); } @@ -10274,15 +10175,15 @@ static std::string MOD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MODSUB(uint64 instruction, Dis_info *info) +static char *MODSUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MODSUB %s, %s, %s", rd, rs, rt); } @@ -10298,15 +10199,15 @@ static std::string MODSUB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MODU(uint64 instruction, Dis_info *info) +static char *MODU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MODU %s, %s, %s", rd, rs, rt); } @@ -10322,13 +10223,13 @@ static std::string MODU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOV_D(uint64 instruction, Dis_info *info) +static char *MOV_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("MOV.D %s, %s", ft, fs); } @@ -10344,13 +10245,13 @@ static std::string MOV_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOV_S(uint64 instruction, Dis_info *info) +static char *MOV_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("MOV.S %s, %s", ft, fs); } @@ -10366,15 +10267,15 @@ static std::string MOV_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOVE_BALC(uint64 instruction, Dis_info *info) +static char *MOVE_BALC(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_27_26_25_23_22_21(instruction); uint64 rd1_value = extract_rdl_25_24(instruction); int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); - std::string rd1 = GPR(decode_gpr_gpr1(rd1_value)); - std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - std::string s = ADDRESS(s_value, 4, info); + const char *rd1 = GPR(decode_gpr_gpr1(rd1_value)); + const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); + char *s = ADDRESS(s_value, 4, info); return img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); } @@ -10390,17 +10291,17 @@ static std::string MOVE_BALC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOVEP(uint64 instruction, Dis_info *info) +static char *MOVEP(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction); uint64 rd2_value = extract_rd2_3_8(instruction); uint64 rsz4_value = extract_rsz4_4_2_1_0(instruction); - std::string rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value)); - std::string re2 = GPR(decode_gpr_gpr2_reg2(rd2_value)); + const char *rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value)); + const char *re2 = GPR(decode_gpr_gpr2_reg2(rd2_value)); /* !!!!!!!!!! - no conversion function */ - std::string rsz4 = GPR(decode_gpr_gpr4_zero(rsz4_value)); - std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); + const char *rsz4 = GPR(decode_gpr_gpr4_zero(rsz4_value)); + const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); return img_format("MOVEP %s, %s, %s, %s", rd2, re2, rsz4, rtz4); /* hand edited */ @@ -10417,16 +10318,16 @@ static std::string MOVEP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOVEP_REV_(uint64 instruction, Dis_info *info) +static char *MOVEP_REV_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rd2_value = extract_rd2_3_8(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); - std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); - std::string rt4 = GPR(decode_gpr_gpr4(rt4_value)); - std::string rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value)); - std::string rs2 = GPR(decode_gpr_gpr2_reg2(rd2_value)); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); + const char *rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value)); + const char *rs2 = GPR(decode_gpr_gpr2_reg2(rd2_value)); /* !!!!!!!!!! - no conversion function */ return img_format("MOVEP %s, %s, %s, %s", rs4, rt4, rd2, rs2); @@ -10444,13 +10345,13 @@ static std::string MOVEP_REV_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOVE(uint64 instruction, Dis_info *info) +static char *MOVE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 rs_value = extract_rs_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("MOVE %s, %s", rt, rs); } @@ -10466,15 +10367,15 @@ static std::string MOVE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOVN(uint64 instruction, Dis_info *info) +static char *MOVN(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MOVN %s, %s, %s", rd, rs, rt); } @@ -10490,15 +10391,15 @@ static std::string MOVN(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MOVZ(uint64 instruction, Dis_info *info) +static char *MOVZ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MOVZ %s, %s, %s", rd, rs, rt); } @@ -10514,15 +10415,15 @@ static std::string MOVZ(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MSUB_DSP_(uint64 instruction, Dis_info *info) +static char *MSUB_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MSUB %s, %s, %s", ac, rs, rt); } @@ -10538,15 +10439,15 @@ static std::string MSUB_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MSUBF_D(uint64 instruction, Dis_info *info) +static char *MSUBF_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MSUBF.D %s, %s, %s", fd, fs, ft); } @@ -10562,15 +10463,15 @@ static std::string MSUBF_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MSUBF_S(uint64 instruction, Dis_info *info) +static char *MSUBF_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MSUBF.S %s, %s, %s", fd, fs, ft); } @@ -10586,15 +10487,15 @@ static std::string MSUBF_S(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MSUBU_DSP_(uint64 instruction, Dis_info *info) +static char *MSUBU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MSUBU %s, %s, %s", ac, rs, rt); } @@ -10610,15 +10511,15 @@ static std::string MSUBU_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTC0(uint64 instruction, Dis_info *info) +static char *MTC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("MTC0 %s, %s, %s", rt, c0s, sel); } @@ -10634,13 +10535,13 @@ static std::string MTC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTC1(uint64 instruction, Dis_info *info) +static char *MTC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string fs = FPR(fs_value); + const char *rt = GPR(rt_value); + const char *fs = FPR(fs_value); return img_format("MTC1 %s, %s", rt, fs); } @@ -10656,13 +10557,13 @@ static std::string MTC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTC2(uint64 instruction, Dis_info *info) +static char *MTC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("MTC2 %s, %s", rt, cs); } @@ -10678,15 +10579,15 @@ static std::string MTC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTGC0(uint64 instruction, Dis_info *info) +static char *MTGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("MTGC0 %s, %s, %s", rt, c0s, sel); } @@ -10702,15 +10603,15 @@ static std::string MTGC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTHC0(uint64 instruction, Dis_info *info) +static char *MTHC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("MTHC0 %s, %s, %s", rt, c0s, sel); } @@ -10726,13 +10627,13 @@ static std::string MTHC0(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTHC1(uint64 instruction, Dis_info *info) +static char *MTHC1(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string fs = FPR(fs_value); + const char *rt = GPR(rt_value); + const char *fs = FPR(fs_value); return img_format("MTHC1 %s, %s", rt, fs); } @@ -10748,13 +10649,13 @@ static std::string MTHC1(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTHC2(uint64 instruction, Dis_info *info) +static char *MTHC2(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string cs = CPR(cs_value); + const char *rt = GPR(rt_value); + char *cs = CPR(cs_value); return img_format("MTHC2 %s, %s", rt, cs); } @@ -10770,15 +10671,15 @@ static std::string MTHC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTHGC0(uint64 instruction, Dis_info *info) +static char *MTHGC0(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string c0s = CPR(c0s_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = CPR(c0s_value); + char *sel = IMMEDIATE(sel_value); return img_format("MTHGC0 %s, %s, %s", rt, c0s, sel); } @@ -10793,13 +10694,13 @@ static std::string MTHGC0(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MTHI_DSP_(uint64 instruction, Dis_info *info) +static char *MTHI_DSP_(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rs = GPR(rs_value); - std::string ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *ac = AC(ac_value); return img_format("MTHI %s, %s", rs, ac); } @@ -10814,13 +10715,13 @@ static std::string MTHI_DSP_(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MTHLIP(uint64 instruction, Dis_info *info) +static char *MTHLIP(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rs = GPR(rs_value); - std::string ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *ac = AC(ac_value); return img_format("MTHLIP %s, %s", rs, ac); } @@ -10836,17 +10737,17 @@ static std::string MTHLIP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTHTR(uint64 instruction, Dis_info *info) +static char *MTHTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - std::string rt = GPR(rt_value); - std::string c0s = IMMEDIATE(c0s_value); - std::string u = IMMEDIATE(u_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = IMMEDIATE(c0s_value); + char *u = IMMEDIATE(u_value); + char *sel = IMMEDIATE(sel_value); return img_format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10861,13 +10762,13 @@ static std::string MTHTR(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MTLO_DSP_(uint64 instruction, Dis_info *info) +static char *MTLO_DSP_(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rs = GPR(rs_value); - std::string ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *ac = AC(ac_value); return img_format("MTLO %s, %s", rs, ac); } @@ -10883,17 +10784,17 @@ static std::string MTLO_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MTTR(uint64 instruction, Dis_info *info) +static char *MTTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - std::string rt = GPR(rt_value); - std::string c0s = IMMEDIATE(c0s_value); - std::string u = IMMEDIATE(u_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *c0s = IMMEDIATE(c0s_value); + char *u = IMMEDIATE(u_value); + char *sel = IMMEDIATE(sel_value); return img_format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10909,15 +10810,15 @@ static std::string MTTR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MUH(uint64 instruction, Dis_info *info) +static char *MUH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MUH %s, %s, %s", rd, rs, rt); } @@ -10933,15 +10834,15 @@ static std::string MUH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MUHU(uint64 instruction, Dis_info *info) +static char *MUHU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MUHU %s, %s, %s", rd, rs, rt); } @@ -10957,15 +10858,15 @@ static std::string MUHU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MUL_32_(uint64 instruction, Dis_info *info) +static char *MUL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MUL %s, %s, %s", rd, rs, rt); } @@ -10981,13 +10882,13 @@ static std::string MUL_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MUL_4X4_(uint64 instruction, Dis_info *info) +static char *MUL_4X4_(uint64 instruction, Dis_info *info) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); - std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); - std::string rt4 = GPR(decode_gpr_gpr4(rt4_value)); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); return img_format("MUL %s, %s", rs4, rt4); } @@ -11003,15 +10904,15 @@ static std::string MUL_4X4_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MUL_D(uint64 instruction, Dis_info *info) +static char *MUL_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MUL.D %s, %s, %s", fd, fs, ft); } @@ -11028,15 +10929,15 @@ static std::string MUL_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MUL_PH(uint64 instruction, Dis_info *info) +static char *MUL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MUL.PH %s, %s, %s", rd, rs, rt); } @@ -11053,15 +10954,15 @@ static std::string MUL_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MUL_S_PH(uint64 instruction, Dis_info *info) +static char *MUL_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MUL_S.PH %s, %s, %s", rd, rs, rt); } @@ -11077,15 +10978,15 @@ static std::string MUL_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MUL_S(uint64 instruction, Dis_info *info) +static char *MUL_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("MUL.S %s, %s, %s", fd, fs, ft); } @@ -11102,15 +11003,15 @@ static std::string MUL_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) +static char *MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULEQ_S.W.PHL %s, %s, %s", rd, rs, rt); } @@ -11127,15 +11028,15 @@ static std::string MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) +static char *MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULEQ_S.W.PHR %s, %s, %s", rd, rs, rt); } @@ -11152,15 +11053,15 @@ static std::string MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) +static char *MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULEU_S.PH.QBL %s, %s, %s", rd, rs, rt); } @@ -11177,15 +11078,15 @@ static std::string MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) +static char *MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULEU_S.PH.QBR %s, %s, %s", rd, rs, rt); } @@ -11202,15 +11103,15 @@ static std::string MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULQ_RS_PH(uint64 instruction, Dis_info *info) +static char *MULQ_RS_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULQ_RS.PH %s, %s, %s", rd, rs, rt); } @@ -11227,15 +11128,15 @@ static std::string MULQ_RS_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULQ_RS_W(uint64 instruction, Dis_info *info) +static char *MULQ_RS_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULQ_RS.W %s, %s, %s", rd, rs, rt); } @@ -11252,15 +11153,15 @@ static std::string MULQ_RS_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULQ_S_PH(uint64 instruction, Dis_info *info) +static char *MULQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -11277,15 +11178,15 @@ static std::string MULQ_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULQ_S_W(uint64 instruction, Dis_info *info) +static char *MULQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULQ_S.W %s, %s, %s", rd, rs, rt); } @@ -11302,15 +11203,15 @@ static std::string MULQ_S_W(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MULSA_W_PH(uint64 instruction, Dis_info *info) +static char *MULSA_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULSA.W.PH %s, %s, %s", ac, rs, rt); } @@ -11327,15 +11228,15 @@ static std::string MULSA_W_PH(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) +static char *MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULSAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -11351,15 +11252,15 @@ static std::string MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MULT_DSP_(uint64 instruction, Dis_info *info) +static char *MULT_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULT %s, %s, %s", ac, rs, rt); } @@ -11375,15 +11276,15 @@ static std::string MULT_DSP_(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string MULTU_DSP_(uint64 instruction, Dis_info *info) +static char *MULTU_DSP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string ac = AC(ac_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULTU %s, %s, %s", ac, rs, rt); } @@ -11399,15 +11300,15 @@ static std::string MULTU_DSP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string MULU(uint64 instruction, Dis_info *info) +static char *MULU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("MULU %s, %s, %s", rd, rs, rt); } @@ -11423,13 +11324,13 @@ static std::string MULU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string NEG_D(uint64 instruction, Dis_info *info) +static char *NEG_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("NEG.D %s, %s", ft, fs); } @@ -11445,13 +11346,13 @@ static std::string NEG_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string NEG_S(uint64 instruction, Dis_info *info) +static char *NEG_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("NEG.S %s, %s", ft, fs); } @@ -11467,11 +11368,11 @@ static std::string NEG_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string NOP_16_(uint64 instruction, Dis_info *info) +static char *NOP_16_(uint64 instruction, Dis_info *info) { (void)instruction; - return "NOP "; + return g_strdup("NOP "); } @@ -11485,11 +11386,11 @@ static std::string NOP_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string NOP_32_(uint64 instruction, Dis_info *info) +static char *NOP_32_(uint64 instruction, Dis_info *info) { (void)instruction; - return "NOP "; + return g_strdup("NOP "); } @@ -11503,15 +11404,15 @@ static std::string NOP_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string NOR(uint64 instruction, Dis_info *info) +static char *NOR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("NOR %s, %s, %s", rd, rs, rt); } @@ -11527,13 +11428,13 @@ static std::string NOR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string NOT_16_(uint64 instruction, Dis_info *info) +static char *NOT_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("NOT %s, %s", rt3, rs3); } @@ -11549,13 +11450,13 @@ static std::string NOT_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string OR_16_(uint64 instruction, Dis_info *info) +static char *OR_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); return img_format("OR %s, %s", rs3, rt3); } @@ -11571,15 +11472,15 @@ static std::string OR_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string OR_32_(uint64 instruction, Dis_info *info) +static char *OR_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("OR %s, %s, %s", rd, rs, rt); } @@ -11595,15 +11496,15 @@ static std::string OR_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ORI(uint64 instruction, Dis_info *info) +static char *ORI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(u_value); return img_format("ORI %s, %s, %s", rt, rs, u); } @@ -11620,15 +11521,15 @@ static std::string ORI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PACKRL_PH(uint64 instruction, Dis_info *info) +static char *PACKRL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("PACKRL.PH %s, %s, %s", rd, rs, rt); } @@ -11644,11 +11545,11 @@ static std::string PACKRL_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PAUSE(uint64 instruction, Dis_info *info) +static char *PAUSE(uint64 instruction, Dis_info *info) { (void)instruction; - return "PAUSE "; + return g_strdup("PAUSE "); } @@ -11663,15 +11564,15 @@ static std::string PAUSE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PICK_PH(uint64 instruction, Dis_info *info) +static char *PICK_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("PICK.PH %s, %s, %s", rd, rs, rt); } @@ -11688,15 +11589,15 @@ static std::string PICK_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PICK_QB(uint64 instruction, Dis_info *info) +static char *PICK_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("PICK.QB %s, %s, %s", rd, rs, rt); } @@ -11713,13 +11614,13 @@ static std::string PICK_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEQ_W_PHL(uint64 instruction, Dis_info *info) +static char *PRECEQ_W_PHL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEQ.W.PHL %s, %s", rt, rs); } @@ -11736,13 +11637,13 @@ static std::string PRECEQ_W_PHL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEQ_W_PHR(uint64 instruction, Dis_info *info) +static char *PRECEQ_W_PHR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEQ.W.PHR %s, %s", rt, rs); } @@ -11759,13 +11660,13 @@ static std::string PRECEQ_W_PHR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) +static char *PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEQU.PH.QBLA %s, %s", rt, rs); } @@ -11782,13 +11683,13 @@ static std::string PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) +static char *PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEQU.PH.QBL %s, %s", rt, rs); } @@ -11805,13 +11706,13 @@ static std::string PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) +static char *PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEQU.PH.QBRA %s, %s", rt, rs); } @@ -11828,13 +11729,13 @@ static std::string PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) +static char *PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEQU.PH.QBR %s, %s", rt, rs); } @@ -11852,13 +11753,13 @@ static std::string PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) +static char *PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEU.PH.QBLA %s, %s", rt, rs); } @@ -11875,13 +11776,13 @@ static std::string PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEU_PH_QBL(uint64 instruction, Dis_info *info) +static char *PRECEU_PH_QBL(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEU.PH.QBL %s, %s", rt, rs); } @@ -11899,13 +11800,13 @@ static std::string PRECEU_PH_QBL(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) +static char *PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEU.PH.QBRA %s, %s", rt, rs); } @@ -11922,13 +11823,13 @@ static std::string PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECEU_PH_QBR(uint64 instruction, Dis_info *info) +static char *PRECEU_PH_QBR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("PRECEU.PH.QBR %s, %s", rt, rs); } @@ -11945,15 +11846,15 @@ static std::string PRECEU_PH_QBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECR_QB_PH(uint64 instruction, Dis_info *info) +static char *PRECR_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("PRECR.QB.PH %s, %s, %s", rd, rs, rt); } @@ -11970,15 +11871,15 @@ static std::string PRECR_QB_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) +static char *PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); } @@ -11995,15 +11896,15 @@ static std::string PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) +static char *PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); } @@ -12020,15 +11921,15 @@ static std::string PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECRQ_PH_W(uint64 instruction, Dis_info *info) +static char *PRECRQ_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("PRECRQ.PH.W %s, %s, %s", rd, rs, rt); } @@ -12045,15 +11946,15 @@ static std::string PRECRQ_PH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECRQ_QB_PH(uint64 instruction, Dis_info *info) +static char *PRECRQ_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("PRECRQ.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12070,15 +11971,15 @@ static std::string PRECRQ_QB_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) +static char *PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("PRECRQ_RS.PH.W %s, %s, %s", rd, rs, rt); } @@ -12095,15 +11996,15 @@ static std::string PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) +static char *PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("PRECRQU_S.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12119,15 +12020,15 @@ static std::string PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PREF_S9_(uint64 instruction, Dis_info *info) +static char *PREF_S9_(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string hint = IMMEDIATE(hint_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *hint = IMMEDIATE(hint_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("PREF %s, %s(%s)", hint, s, rs); } @@ -12143,15 +12044,15 @@ static std::string PREF_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PREF_U12_(uint64 instruction, Dis_info *info) +static char *PREF_U12_(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string hint = IMMEDIATE(hint_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + char *hint = IMMEDIATE(hint_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("PREF %s, %s(%s)", hint, u, rs); } @@ -12167,15 +12068,15 @@ static std::string PREF_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PREFE(uint64 instruction, Dis_info *info) +static char *PREFE(uint64 instruction, Dis_info *info) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string hint = IMMEDIATE(hint_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *hint = IMMEDIATE(hint_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("PREFE %s, %s(%s)", hint, s, rs); } @@ -12191,15 +12092,15 @@ static std::string PREFE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string PREPEND(uint64 instruction, Dis_info *info) +static char *PREPEND(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("PREPEND %s, %s, %s", rt, rs, sa); } @@ -12214,13 +12115,13 @@ static std::string PREPEND(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string RADDU_W_QB(uint64 instruction, Dis_info *info) +static char *RADDU_W_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("RADDU.W.QB %s, %s", rt, rs); } @@ -12235,13 +12136,13 @@ static std::string RADDU_W_QB(uint64 instruction, Dis_info *info) * rt ----- * mask ------- */ -static std::string RDDSP(uint64 instruction, Dis_info *info) +static char *RDDSP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); - std::string rt = GPR(rt_value); - std::string mask = IMMEDIATE(mask_value); + const char *rt = GPR(rt_value); + char *mask = IMMEDIATE(mask_value); return img_format("RDDSP %s, %s", rt, mask); } @@ -12257,15 +12158,15 @@ static std::string RDDSP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RDHWR(uint64 instruction, Dis_info *info) +static char *RDHWR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 hs_value = extract_hs_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string hs = CPR(hs_value); - std::string sel = IMMEDIATE(sel_value); + const char *rt = GPR(rt_value); + char *hs = CPR(hs_value); + char *sel = IMMEDIATE(sel_value); return img_format("RDHWR %s, %s, %s", rt, hs, sel); } @@ -12281,13 +12182,13 @@ static std::string RDHWR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RDPGPR(uint64 instruction, Dis_info *info) +static char *RDPGPR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("RDPGPR %s, %s", rt, rs); } @@ -12303,13 +12204,13 @@ static std::string RDPGPR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RECIP_D(uint64 instruction, Dis_info *info) +static char *RECIP_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("RECIP.D %s, %s", ft, fs); } @@ -12325,13 +12226,13 @@ static std::string RECIP_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RECIP_S(uint64 instruction, Dis_info *info) +static char *RECIP_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("RECIP.S %s, %s", ft, fs); } @@ -12347,13 +12248,13 @@ static std::string RECIP_S(uint64 instruction, Dis_info *info) * rt ----- * s ---------- */ -static std::string REPL_PH(uint64 instruction, Dis_info *info) +static char *REPL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se9_20_19_18_17_16_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); return img_format("REPL.PH %s, %s", rt, s); } @@ -12369,13 +12270,13 @@ static std::string REPL_PH(uint64 instruction, Dis_info *info) * rt ----- * u -------- */ -static std::string REPL_QB(uint64 instruction, Dis_info *info) +static char *REPL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_19_18_17_16_15_14_13(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("REPL.QB %s, %s", rt, u); } @@ -12391,13 +12292,13 @@ static std::string REPL_QB(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string REPLV_PH(uint64 instruction, Dis_info *info) +static char *REPLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("REPLV.PH %s, %s", rt, rs); } @@ -12412,13 +12313,13 @@ static std::string REPLV_PH(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string REPLV_QB(uint64 instruction, Dis_info *info) +static char *REPLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("REPLV.QB %s, %s", rt, rs); } @@ -12434,14 +12335,14 @@ static std::string REPLV_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RESTORE_32_(uint64 instruction, Dis_info *info) +static char *RESTORE_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - std::string u = IMMEDIATE(u_value); + char *u = IMMEDIATE(u_value); return img_format("RESTORE %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12457,13 +12358,13 @@ static std::string RESTORE_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RESTORE_JRC_16_(uint64 instruction, Dis_info *info) +static char *RESTORE_JRC_16_(uint64 instruction, Dis_info *info) { uint64 rt1_value = extract_rtl_11(instruction); uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - std::string u = IMMEDIATE(u_value); + char *u = IMMEDIATE(u_value); return img_format("RESTORE.JRC %s%s", u, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12479,14 +12380,14 @@ static std::string RESTORE_JRC_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RESTORE_JRC_32_(uint64 instruction, Dis_info *info) +static char *RESTORE_JRC_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - std::string u = IMMEDIATE(u_value); + char *u = IMMEDIATE(u_value); return img_format("RESTORE.JRC %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12502,13 +12403,13 @@ static std::string RESTORE_JRC_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RESTOREF(uint64 instruction, Dis_info *info) +static char *RESTOREF(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); - std::string u = IMMEDIATE(u_value); - std::string count = IMMEDIATE(count_value); + char *u = IMMEDIATE(u_value); + char *count = IMMEDIATE(count_value); return img_format("RESTOREF %s, %s", u, count); } @@ -12524,13 +12425,13 @@ static std::string RESTOREF(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RINT_D(uint64 instruction, Dis_info *info) +static char *RINT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("RINT.D %s, %s", ft, fs); } @@ -12546,13 +12447,13 @@ static std::string RINT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RINT_S(uint64 instruction, Dis_info *info) +static char *RINT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("RINT.S %s, %s", ft, fs); } @@ -12568,15 +12469,15 @@ static std::string RINT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ROTR(uint64 instruction, Dis_info *info) +static char *ROTR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("ROTR %s, %s, %s", rt, rs, shift); } @@ -12592,15 +12493,15 @@ static std::string ROTR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ROTRV(uint64 instruction, Dis_info *info) +static char *ROTRV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("ROTRV %s, %s, %s", rd, rs, rt); } @@ -12616,7 +12517,7 @@ static std::string ROTRV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ROTX(uint64 instruction, Dis_info *info) +static char *ROTX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12624,11 +12525,11 @@ static std::string ROTX(uint64 instruction, Dis_info *info) uint64 stripe_value = extract_stripe_6(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); - std::string shiftx = IMMEDIATE(shiftx_value); - std::string stripe = IMMEDIATE(stripe_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); + char *shiftx = IMMEDIATE(shiftx_value); + char *stripe = IMMEDIATE(stripe_value); return img_format("ROTX %s, %s, %s, %s, %s", rt, rs, shift, shiftx, stripe); @@ -12645,13 +12546,13 @@ static std::string ROTX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ROUND_L_D(uint64 instruction, Dis_info *info) +static char *ROUND_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("ROUND.L.D %s, %s", ft, fs); } @@ -12667,13 +12568,13 @@ static std::string ROUND_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ROUND_L_S(uint64 instruction, Dis_info *info) +static char *ROUND_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("ROUND.L.S %s, %s", ft, fs); } @@ -12689,13 +12590,13 @@ static std::string ROUND_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ROUND_W_D(uint64 instruction, Dis_info *info) +static char *ROUND_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("ROUND.W.D %s, %s", ft, fs); } @@ -12711,13 +12612,13 @@ static std::string ROUND_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string ROUND_W_S(uint64 instruction, Dis_info *info) +static char *ROUND_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("ROUND.W.S %s, %s", ft, fs); } @@ -12733,13 +12634,13 @@ static std::string ROUND_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RSQRT_D(uint64 instruction, Dis_info *info) +static char *RSQRT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("RSQRT.D %s, %s", ft, fs); } @@ -12755,13 +12656,13 @@ static std::string RSQRT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string RSQRT_S(uint64 instruction, Dis_info *info) +static char *RSQRT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("RSQRT.S %s, %s", ft, fs); } @@ -12777,13 +12678,13 @@ static std::string RSQRT_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SAVE_16_(uint64 instruction, Dis_info *info) +static char *SAVE_16_(uint64 instruction, Dis_info *info) { uint64 rt1_value = extract_rtl_11(instruction); uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - std::string u = IMMEDIATE(u_value); + char *u = IMMEDIATE(u_value); return img_format("SAVE %s%s", u, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12799,14 +12700,14 @@ static std::string SAVE_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SAVE_32_(uint64 instruction, Dis_info *info) +static char *SAVE_32_(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - std::string u = IMMEDIATE(u_value); + char *u = IMMEDIATE(u_value); return img_format("SAVE %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12822,13 +12723,13 @@ static std::string SAVE_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SAVEF(uint64 instruction, Dis_info *info) +static char *SAVEF(uint64 instruction, Dis_info *info) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); - std::string u = IMMEDIATE(u_value); - std::string count = IMMEDIATE(count_value); + char *u = IMMEDIATE(u_value); + char *count = IMMEDIATE(count_value); return img_format("SAVEF %s, %s", u, count); } @@ -12844,15 +12745,15 @@ static std::string SAVEF(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SB_16_(uint64 instruction, Dis_info *info) +static char *SB_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_1_0(instruction); - std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - std::string u = IMMEDIATE(u_value); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + char *u = IMMEDIATE(u_value); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SB %s, %s(%s)", rtz3, u, rs3); } @@ -12868,13 +12769,13 @@ static std::string SB_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SB_GP_(uint64 instruction, Dis_info *info) +static char *SB_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("SB %s, %s($%d)", rt, u, 28); } @@ -12890,15 +12791,15 @@ static std::string SB_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SB_S9_(uint64 instruction, Dis_info *info) +static char *SB_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SB %s, %s(%s)", rt, s, rs); } @@ -12914,15 +12815,15 @@ static std::string SB_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SB_U12_(uint64 instruction, Dis_info *info) +static char *SB_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("SB %s, %s(%s)", rt, u, rs); } @@ -12938,15 +12839,15 @@ static std::string SB_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SBE(uint64 instruction, Dis_info *info) +static char *SBE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SBE %s, %s(%s)", rt, s, rs); } @@ -12962,15 +12863,15 @@ static std::string SBE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SBX(uint64 instruction, Dis_info *info) +static char *SBX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SBX %s, %s(%s)", rd, rs, rt); } @@ -12986,15 +12887,15 @@ static std::string SBX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SC(uint64 instruction, Dis_info *info) +static char *SC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SC %s, %s(%s)", rt, s, rs); } @@ -13010,15 +12911,15 @@ static std::string SC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SCD(uint64 instruction, Dis_info *info) +static char *SCD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_s3(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SCD %s, %s(%s)", rt, s, rs); } @@ -13034,15 +12935,15 @@ static std::string SCD(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SCDP(uint64 instruction, Dis_info *info) +static char *SCDP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(rt_value); - std::string ru = GPR(ru_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ru = GPR(ru_value); + const char *rs = GPR(rs_value); return img_format("SCDP %s, %s, (%s)", rt, ru, rs); } @@ -13058,15 +12959,15 @@ static std::string SCDP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SCE(uint64 instruction, Dis_info *info) +static char *SCE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SCE %s, %s(%s)", rt, s, rs); } @@ -13082,15 +12983,15 @@ static std::string SCE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SCWP(uint64 instruction, Dis_info *info) +static char *SCWP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(rt_value); - std::string ru = GPR(ru_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ru = GPR(ru_value); + const char *rs = GPR(rs_value); return img_format("SCWP %s, %s, (%s)", rt, ru, rs); } @@ -13106,15 +13007,15 @@ static std::string SCWP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SCWPE(uint64 instruction, Dis_info *info) +static char *SCWPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - std::string rt = GPR(rt_value); - std::string ru = GPR(ru_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *ru = GPR(ru_value); + const char *rs = GPR(rs_value); return img_format("SCWPE %s, %s, (%s)", rt, ru, rs); } @@ -13130,13 +13031,13 @@ static std::string SCWPE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SD_GP_(uint64 instruction, Dis_info *info) +static char *SD_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("SD %s, %s($%d)", rt, u, 28); } @@ -13152,15 +13053,15 @@ static std::string SD_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SD_S9_(uint64 instruction, Dis_info *info) +static char *SD_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SD %s, %s(%s)", rt, s, rs); } @@ -13176,15 +13077,15 @@ static std::string SD_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SD_U12_(uint64 instruction, Dis_info *info) +static char *SD_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("SD %s, %s(%s)", rt, u, rs); } @@ -13200,11 +13101,11 @@ static std::string SD_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDBBP_16_(uint64 instruction, Dis_info *info) +static char *SDBBP_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("SDBBP %s", code); } @@ -13220,11 +13121,11 @@ static std::string SDBBP_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDBBP_32_(uint64 instruction, Dis_info *info) +static char *SDBBP_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("SDBBP %s", code); } @@ -13240,13 +13141,13 @@ static std::string SDBBP_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDC1_GP_(uint64 instruction, Dis_info *info) +static char *SDC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string ft = FPR(ft_value); - std::string u = IMMEDIATE(u_value); + const char *ft = FPR(ft_value); + char *u = IMMEDIATE(u_value); return img_format("SDC1 %s, %s($%d)", ft, u, 28); } @@ -13262,15 +13163,15 @@ static std::string SDC1_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDC1_S9_(uint64 instruction, Dis_info *info) +static char *SDC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(ft_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *ft = FPR(ft_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SDC1 %s, %s(%s)", ft, s, rs); } @@ -13286,15 +13187,15 @@ static std::string SDC1_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDC1_U12_(uint64 instruction, Dis_info *info) +static char *SDC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(ft_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *ft = FPR(ft_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("SDC1 %s, %s(%s)", ft, u, rs); } @@ -13310,15 +13211,15 @@ static std::string SDC1_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDC1X(uint64 instruction, Dis_info *info) +static char *SDC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ft = FPR(ft_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SDC1X %s, %s(%s)", ft, rs, rt); } @@ -13334,15 +13235,15 @@ static std::string SDC1X(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDC1XS(uint64 instruction, Dis_info *info) +static char *SDC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ft = FPR(ft_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SDC1XS %s, %s(%s)", ft, rs, rt); } @@ -13358,15 +13259,15 @@ static std::string SDC1XS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDC2(uint64 instruction, Dis_info *info) +static char *SDC2(uint64 instruction, Dis_info *info) { uint64 cs_value = extract_cs_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string cs = CPR(cs_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *cs = CPR(cs_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SDC2 %s, %s(%s)", cs, s, rs); } @@ -13382,17 +13283,17 @@ static std::string SDC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDM(uint64 instruction, Dis_info *info) +static char *SDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); + char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("SDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -13408,13 +13309,13 @@ static std::string SDM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDPC_48_(uint64 instruction, Dis_info *info) +static char *SDPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 6, info); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 6, info); return img_format("SDPC %s, %s", rt, s); } @@ -13430,15 +13331,15 @@ static std::string SDPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDXS(uint64 instruction, Dis_info *info) +static char *SDXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SDXS %s, %s(%s)", rd, rs, rt); } @@ -13454,15 +13355,15 @@ static std::string SDXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SDX(uint64 instruction, Dis_info *info) +static char *SDX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SDX %s, %s(%s)", rd, rs, rt); } @@ -13478,13 +13379,13 @@ static std::string SDX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SEB(uint64 instruction, Dis_info *info) +static char *SEB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SEB %s, %s", rt, rs); } @@ -13500,13 +13401,13 @@ static std::string SEB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SEH(uint64 instruction, Dis_info *info) +static char *SEH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SEH %s, %s", rt, rs); } @@ -13522,15 +13423,15 @@ static std::string SEH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SEL_D(uint64 instruction, Dis_info *info) +static char *SEL_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("SEL.D %s, %s, %s", fd, fs, ft); } @@ -13546,15 +13447,15 @@ static std::string SEL_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SEL_S(uint64 instruction, Dis_info *info) +static char *SEL_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("SEL.S %s, %s, %s", fd, fs, ft); } @@ -13570,15 +13471,15 @@ static std::string SEL_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SELEQZ_D(uint64 instruction, Dis_info *info) +static char *SELEQZ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("SELEQZ.D %s, %s, %s", fd, fs, ft); } @@ -13594,15 +13495,15 @@ static std::string SELEQZ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SELEQZ_S(uint64 instruction, Dis_info *info) +static char *SELEQZ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("SELEQZ.S %s, %s, %s", fd, fs, ft); } @@ -13618,15 +13519,15 @@ static std::string SELEQZ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SELNEZ_D(uint64 instruction, Dis_info *info) +static char *SELNEZ_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("SELNEZ.D %s, %s, %s", fd, fs, ft); } @@ -13642,15 +13543,15 @@ static std::string SELNEZ_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SELNEZ_S(uint64 instruction, Dis_info *info) +static char *SELNEZ_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("SELNEZ.S %s, %s, %s", fd, fs, ft); } @@ -13666,15 +13567,15 @@ static std::string SELNEZ_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SEQI(uint64 instruction, Dis_info *info) +static char *SEQI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(u_value); return img_format("SEQI %s, %s, %s", rt, rs, u); } @@ -13690,15 +13591,15 @@ static std::string SEQI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SH_16_(uint64 instruction, Dis_info *info) +static char *SH_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_2_1__s1(instruction); - std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - std::string u = IMMEDIATE(u_value); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + char *u = IMMEDIATE(u_value); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SH %s, %s(%s)", rtz3, u, rs3); } @@ -13714,13 +13615,13 @@ static std::string SH_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SH_GP_(uint64 instruction, Dis_info *info) +static char *SH_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("SH %s, %s($%d)", rt, u, 28); } @@ -13736,15 +13637,15 @@ static std::string SH_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SH_S9_(uint64 instruction, Dis_info *info) +static char *SH_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SH %s, %s(%s)", rt, s, rs); } @@ -13760,15 +13661,15 @@ static std::string SH_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SH_U12_(uint64 instruction, Dis_info *info) +static char *SH_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("SH %s, %s(%s)", rt, u, rs); } @@ -13784,15 +13685,15 @@ static std::string SH_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHE(uint64 instruction, Dis_info *info) +static char *SHE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SHE %s, %s(%s)", rt, s, rs); } @@ -13808,13 +13709,13 @@ static std::string SHE(uint64 instruction, Dis_info *info) * shift ------ * ac -- */ -static std::string SHILO(uint64 instruction, Dis_info *info) +static char *SHILO(uint64 instruction, Dis_info *info) { int64 shift_value = extract_shift__se5_21_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string shift = IMMEDIATE(shift_value); - std::string ac = AC(ac_value); + char *shift = IMMEDIATE(shift_value); + const char *ac = AC(ac_value); return img_format("SHILO %s, %s", ac, shift); } @@ -13830,13 +13731,13 @@ static std::string SHILO(uint64 instruction, Dis_info *info) * rs ----- * ac -- */ -static std::string SHILOV(uint64 instruction, Dis_info *info) +static char *SHILOV(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - std::string rs = GPR(rs_value); - std::string ac = AC(ac_value); + const char *rs = GPR(rs_value); + const char *ac = AC(ac_value); return img_format("SHILOV %s, %s", ac, rs); } @@ -13852,15 +13753,15 @@ static std::string SHILOV(uint64 instruction, Dis_info *info) * rs ----- * sa ---- */ -static std::string SHLL_PH(uint64 instruction, Dis_info *info) +static char *SHLL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHLL.PH %s, %s, %s", rt, rs, sa); } @@ -13876,15 +13777,15 @@ static std::string SHLL_PH(uint64 instruction, Dis_info *info) * rs ----- * sa --- */ -static std::string SHLL_QB(uint64 instruction, Dis_info *info) +static char *SHLL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHLL.QB %s, %s, %s", rt, rs, sa); } @@ -13901,15 +13802,15 @@ static std::string SHLL_QB(uint64 instruction, Dis_info *info) * rs ----- * sa ---- */ -static std::string SHLL_S_PH(uint64 instruction, Dis_info *info) +static char *SHLL_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHLL_S.PH %s, %s, %s", rt, rs, sa); } @@ -13925,15 +13826,15 @@ static std::string SHLL_S_PH(uint64 instruction, Dis_info *info) * rs ----- * sa ----- */ -static std::string SHLL_S_W(uint64 instruction, Dis_info *info) +static char *SHLL_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHLL_S.W %s, %s, %s", rt, rs, sa); } @@ -13950,15 +13851,15 @@ static std::string SHLL_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHLLV_PH(uint64 instruction, Dis_info *info) +static char *SHLLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHLLV.PH %s, %s, %s", rd, rt, rs); } @@ -13974,15 +13875,15 @@ static std::string SHLLV_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHLLV_QB(uint64 instruction, Dis_info *info) +static char *SHLLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHLLV.QB %s, %s, %s", rd, rt, rs); } @@ -13999,15 +13900,15 @@ static std::string SHLLV_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHLLV_S_PH(uint64 instruction, Dis_info *info) +static char *SHLLV_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHLLV_S.PH %s, %s, %s", rd, rt, rs); } @@ -14023,15 +13924,15 @@ static std::string SHLLV_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHLLV_S_W(uint64 instruction, Dis_info *info) +static char *SHLLV_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHLLV_S.W %s, %s, %s", rd, rt, rs); } @@ -14047,15 +13948,15 @@ static std::string SHLLV_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRA_PH(uint64 instruction, Dis_info *info) +static char *SHRA_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHRA.PH %s, %s, %s", rt, rs, sa); } @@ -14071,15 +13972,15 @@ static std::string SHRA_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRA_QB(uint64 instruction, Dis_info *info) +static char *SHRA_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHRA.QB %s, %s, %s", rt, rs, sa); } @@ -14095,15 +13996,15 @@ static std::string SHRA_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRA_R_PH(uint64 instruction, Dis_info *info) +static char *SHRA_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHRA_R.PH %s, %s, %s", rt, rs, sa); } @@ -14119,15 +14020,15 @@ static std::string SHRA_R_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRA_R_QB(uint64 instruction, Dis_info *info) +static char *SHRA_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHRA_R.QB %s, %s, %s", rt, rs, sa); } @@ -14143,15 +14044,15 @@ static std::string SHRA_R_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRA_R_W(uint64 instruction, Dis_info *info) +static char *SHRA_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHRA_R.W %s, %s, %s", rt, rs, sa); } @@ -14167,15 +14068,15 @@ static std::string SHRA_R_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRAV_PH(uint64 instruction, Dis_info *info) +static char *SHRAV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHRAV.PH %s, %s, %s", rd, rt, rs); } @@ -14191,15 +14092,15 @@ static std::string SHRAV_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRAV_QB(uint64 instruction, Dis_info *info) +static char *SHRAV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHRAV.QB %s, %s, %s", rd, rt, rs); } @@ -14215,15 +14116,15 @@ static std::string SHRAV_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRAV_R_PH(uint64 instruction, Dis_info *info) +static char *SHRAV_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHRAV_R.PH %s, %s, %s", rd, rt, rs); } @@ -14239,15 +14140,15 @@ static std::string SHRAV_R_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRAV_R_QB(uint64 instruction, Dis_info *info) +static char *SHRAV_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHRAV_R.QB %s, %s, %s", rd, rt, rs); } @@ -14263,15 +14164,15 @@ static std::string SHRAV_R_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRAV_R_W(uint64 instruction, Dis_info *info) +static char *SHRAV_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHRAV_R.W %s, %s, %s", rd, rt, rs); } @@ -14287,15 +14188,15 @@ static std::string SHRAV_R_W(uint64 instruction, Dis_info *info) * rs ----- * sa ---- */ -static std::string SHRL_PH(uint64 instruction, Dis_info *info) +static char *SHRL_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHRL.PH %s, %s, %s", rt, rs, sa); } @@ -14311,15 +14212,15 @@ static std::string SHRL_PH(uint64 instruction, Dis_info *info) * rs ----- * sa --- */ -static std::string SHRL_QB(uint64 instruction, Dis_info *info) +static char *SHRL_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string sa = IMMEDIATE(sa_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *sa = IMMEDIATE(sa_value); return img_format("SHRL.QB %s, %s, %s", rt, rs, sa); } @@ -14336,15 +14237,15 @@ static std::string SHRL_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRLV_PH(uint64 instruction, Dis_info *info) +static char *SHRLV_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHRLV.PH %s, %s, %s", rd, rt, rs); } @@ -14360,15 +14261,15 @@ static std::string SHRLV_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHRLV_QB(uint64 instruction, Dis_info *info) +static char *SHRLV_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rd = GPR(rd_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("SHRLV.QB %s, %s, %s", rd, rt, rs); } @@ -14384,15 +14285,15 @@ static std::string SHRLV_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHX(uint64 instruction, Dis_info *info) +static char *SHX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SHX %s, %s(%s)", rd, rs, rt); } @@ -14408,15 +14309,15 @@ static std::string SHX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SHXS(uint64 instruction, Dis_info *info) +static char *SHXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SHXS %s, %s(%s)", rd, rs, rt); } @@ -14432,11 +14333,11 @@ static std::string SHXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SIGRIE(uint64 instruction, Dis_info *info) +static char *SIGRIE(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("SIGRIE %s", code); } @@ -14452,15 +14353,15 @@ static std::string SIGRIE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SLL_16_(uint64 instruction, Dis_info *info) +static char *SLL_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 shift3_value = extract_shift3_2_1_0(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); return img_format("SLL %s, %s, %s", rt3, rs3, shift3); } @@ -14476,15 +14377,15 @@ static std::string SLL_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SLL_32_(uint64 instruction, Dis_info *info) +static char *SLL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("SLL %s, %s, %s", rt, rs, shift); } @@ -14500,15 +14401,15 @@ static std::string SLL_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SLLV(uint64 instruction, Dis_info *info) +static char *SLLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SLLV %s, %s, %s", rd, rs, rt); } @@ -14524,15 +14425,15 @@ static std::string SLLV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SLT(uint64 instruction, Dis_info *info) +static char *SLT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SLT %s, %s, %s", rd, rs, rt); } @@ -14548,15 +14449,15 @@ static std::string SLT(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SLTI(uint64 instruction, Dis_info *info) +static char *SLTI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(u_value); return img_format("SLTI %s, %s, %s", rt, rs, u); } @@ -14572,15 +14473,15 @@ static std::string SLTI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SLTIU(uint64 instruction, Dis_info *info) +static char *SLTIU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(u_value); return img_format("SLTIU %s, %s, %s", rt, rs, u); } @@ -14596,15 +14497,15 @@ static std::string SLTIU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SLTU(uint64 instruction, Dis_info *info) +static char *SLTU(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SLTU %s, %s, %s", rd, rs, rt); } @@ -14620,15 +14521,15 @@ static std::string SLTU(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SOV(uint64 instruction, Dis_info *info) +static char *SOV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SOV %s, %s, %s", rd, rs, rt); } @@ -14644,11 +14545,11 @@ static std::string SOV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SPECIAL2(uint64 instruction, Dis_info *info) +static char *SPECIAL2(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); - std::string op = IMMEDIATE(op_value); + char *op = IMMEDIATE(op_value); return img_format("SPECIAL2 %s", op); } @@ -14664,13 +14565,13 @@ static std::string SPECIAL2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SQRT_D(uint64 instruction, Dis_info *info) +static char *SQRT_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("SQRT.D %s, %s", ft, fs); } @@ -14686,13 +14587,13 @@ static std::string SQRT_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SQRT_S(uint64 instruction, Dis_info *info) +static char *SQRT_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("SQRT.S %s, %s", ft, fs); } @@ -14708,15 +14609,15 @@ static std::string SQRT_S(uint64 instruction, Dis_info *info) * rd ----- * sa ----- */ -static std::string SRA(uint64 instruction, Dis_info *info) +static char *SRA(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("SRA %s, %s, %s", rt, rs, shift); } @@ -14732,15 +14633,15 @@ static std::string SRA(uint64 instruction, Dis_info *info) * rt ----- * rd ----- */ -static std::string SRAV(uint64 instruction, Dis_info *info) +static char *SRAV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SRAV %s, %s, %s", rd, rs, rt); } @@ -14756,15 +14657,15 @@ static std::string SRAV(uint64 instruction, Dis_info *info) * rt ----- * rd ----- */ -static std::string SRL_16_(uint64 instruction, Dis_info *info) +static char *SRL_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 shift3_value = extract_shift3_2_1_0(instruction); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); return img_format("SRL %s, %s, %s", rt3, rs3, shift3); } @@ -14780,15 +14681,15 @@ static std::string SRL_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SRL_32_(uint64 instruction, Dis_info *info) +static char *SRL_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string shift = IMMEDIATE(shift_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *shift = IMMEDIATE(shift_value); return img_format("SRL %s, %s, %s", rt, rs, shift); } @@ -14804,15 +14705,15 @@ static std::string SRL_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SRLV(uint64 instruction, Dis_info *info) +static char *SRLV(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SRLV %s, %s, %s", rd, rs, rt); } @@ -14828,15 +14729,15 @@ static std::string SRLV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUB(uint64 instruction, Dis_info *info) +static char *SUB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUB %s, %s, %s", rd, rs, rt); } @@ -14852,15 +14753,15 @@ static std::string SUB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUB_D(uint64 instruction, Dis_info *info) +static char *SUB_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("SUB.D %s, %s, %s", fd, fs, ft); } @@ -14876,15 +14777,15 @@ static std::string SUB_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUB_S(uint64 instruction, Dis_info *info) +static char *SUB_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - std::string fd = FPR(fd_value); - std::string fs = FPR(fs_value); - std::string ft = FPR(ft_value); + const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value); return img_format("SUB.S %s, %s, %s", fd, fs, ft); } @@ -14900,15 +14801,15 @@ static std::string SUB_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBQ_PH(uint64 instruction, Dis_info *info) +static char *SUBQ_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBQ.PH %s, %s, %s", rd, rs, rt); } @@ -14925,15 +14826,15 @@ static std::string SUBQ_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBQ_S_PH(uint64 instruction, Dis_info *info) +static char *SUBQ_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -14950,15 +14851,15 @@ static std::string SUBQ_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBQ_S_W(uint64 instruction, Dis_info *info) +static char *SUBQ_S_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBQ_S.W %s, %s, %s", rd, rs, rt); } @@ -14975,15 +14876,15 @@ static std::string SUBQ_S_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBQH_PH(uint64 instruction, Dis_info *info) +static char *SUBQH_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBQH.PH %s, %s, %s", rd, rs, rt); } @@ -15000,15 +14901,15 @@ static std::string SUBQH_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBQH_R_PH(uint64 instruction, Dis_info *info) +static char *SUBQH_R_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -15025,15 +14926,15 @@ static std::string SUBQH_R_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBQH_R_W(uint64 instruction, Dis_info *info) +static char *SUBQH_R_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBQH_R.W %s, %s, %s", rd, rs, rt); } @@ -15050,15 +14951,15 @@ static std::string SUBQH_R_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBQH_W(uint64 instruction, Dis_info *info) +static char *SUBQH_W(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBQH.W %s, %s, %s", rd, rs, rt); } @@ -15074,15 +14975,15 @@ static std::string SUBQH_W(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBU_16_(uint64 instruction, Dis_info *info) +static char *SUBU_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 rd3_value = extract_rd3_3_2_1(instruction); - std::string rd3 = GPR(decode_gpr_gpr3(rd3_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rd3 = GPR(decode_gpr_gpr3(rd3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); return img_format("SUBU %s, %s, %s", rd3, rs3, rt3); } @@ -15098,15 +14999,15 @@ static std::string SUBU_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBU_32_(uint64 instruction, Dis_info *info) +static char *SUBU_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBU %s, %s, %s", rd, rs, rt); } @@ -15122,15 +15023,15 @@ static std::string SUBU_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBU_PH(uint64 instruction, Dis_info *info) +static char *SUBU_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBU.PH %s, %s, %s", rd, rs, rt); } @@ -15146,15 +15047,15 @@ static std::string SUBU_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBU_QB(uint64 instruction, Dis_info *info) +static char *SUBU_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBU.QB %s, %s, %s", rd, rs, rt); } @@ -15171,15 +15072,15 @@ static std::string SUBU_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBU_S_PH(uint64 instruction, Dis_info *info) +static char *SUBU_S_PH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBU_S.PH %s, %s, %s", rd, rs, rt); } @@ -15196,15 +15097,15 @@ static std::string SUBU_S_PH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBU_S_QB(uint64 instruction, Dis_info *info) +static char *SUBU_S_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBU_S.QB %s, %s, %s", rd, rs, rt); } @@ -15221,15 +15122,15 @@ static std::string SUBU_S_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBUH_QB(uint64 instruction, Dis_info *info) +static char *SUBUH_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBUH.QB %s, %s, %s", rd, rs, rt); } @@ -15246,15 +15147,15 @@ static std::string SUBUH_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SUBUH_R_QB(uint64 instruction, Dis_info *info) +static char *SUBUH_R_QB(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SUBUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -15270,15 +15171,15 @@ static std::string SUBUH_R_QB(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SW_16_(uint64 instruction, Dis_info *info) +static char *SW_16_(uint64 instruction, Dis_info *info) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s2(instruction); - std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - std::string u = IMMEDIATE(u_value); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + char *u = IMMEDIATE(u_value); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SW %s, %s(%s)", rtz3, u, rs3); } @@ -15294,15 +15195,15 @@ static std::string SW_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SW_4X4_(uint64 instruction, Dis_info *info) +static char *SW_4X4_(uint64 instruction, Dis_info *info) { uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); uint64 u_value = extract_u_3_8__s2(instruction); - std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - std::string u = IMMEDIATE(u_value); - std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); + char *u = IMMEDIATE(u_value); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); return img_format("SW %s, %s(%s)", rtz4, u, rs4); } @@ -15318,13 +15219,13 @@ static std::string SW_4X4_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SW_GP16_(uint64 instruction, Dis_info *info) +static char *SW_GP16_(uint64 instruction, Dis_info *info) { uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); uint64 rtz3_value = extract_rtz3_9_8_7(instruction); - std::string rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - std::string u = IMMEDIATE(u_value); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + char *u = IMMEDIATE(u_value); return img_format("SW %s, %s($%d)", rtz3, u, 28); } @@ -15340,13 +15241,13 @@ static std::string SW_GP16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SW_GP_(uint64 instruction, Dis_info *info) +static char *SW_GP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("SW %s, %s($%d)", rt, u, 28); } @@ -15362,15 +15263,15 @@ static std::string SW_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SW_S9_(uint64 instruction, Dis_info *info) +static char *SW_S9_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SW %s, %s(%s)", rt, s, rs); } @@ -15386,13 +15287,13 @@ static std::string SW_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SW_SP_(uint64 instruction, Dis_info *info) +static char *SW_SP_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); return img_format("SW %s, %s($%d)", rt, u, 29); } @@ -15408,15 +15309,15 @@ static std::string SW_SP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SW_U12_(uint64 instruction, Dis_info *info) +static char *SW_U12_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("SW %s, %s(%s)", rt, u, rs); } @@ -15432,13 +15333,13 @@ static std::string SW_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWC1_GP_(uint64 instruction, Dis_info *info) +static char *SWC1_GP_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - std::string ft = FPR(ft_value); - std::string u = IMMEDIATE(u_value); + const char *ft = FPR(ft_value); + char *u = IMMEDIATE(u_value); return img_format("SWC1 %s, %s($%d)", ft, u, 28); } @@ -15454,15 +15355,15 @@ static std::string SWC1_GP_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWC1_S9_(uint64 instruction, Dis_info *info) +static char *SWC1_S9_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(ft_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *ft = FPR(ft_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SWC1 %s, %s(%s)", ft, s, rs); } @@ -15478,15 +15379,15 @@ static std::string SWC1_S9_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWC1_U12_(uint64 instruction, Dis_info *info) +static char *SWC1_U12_(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string ft = FPR(ft_value); - std::string u = IMMEDIATE(u_value); - std::string rs = GPR(rs_value); + const char *ft = FPR(ft_value); + char *u = IMMEDIATE(u_value); + const char *rs = GPR(rs_value); return img_format("SWC1 %s, %s(%s)", ft, u, rs); } @@ -15502,15 +15403,15 @@ static std::string SWC1_U12_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWC1X(uint64 instruction, Dis_info *info) +static char *SWC1X(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ft = FPR(ft_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SWC1X %s, %s(%s)", ft, rs, rt); } @@ -15526,15 +15427,15 @@ static std::string SWC1X(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWC1XS(uint64 instruction, Dis_info *info) +static char *SWC1XS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - std::string ft = FPR(ft_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *ft = FPR(ft_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SWC1XS %s, %s(%s)", ft, rs, rt); } @@ -15550,15 +15451,15 @@ static std::string SWC1XS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWC2(uint64 instruction, Dis_info *info) +static char *SWC2(uint64 instruction, Dis_info *info) { uint64 cs_value = extract_cs_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string cs = CPR(cs_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *cs = CPR(cs_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SWC2 %s, %s(%s)", cs, s, rs); } @@ -15574,15 +15475,15 @@ static std::string SWC2(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWE(uint64 instruction, Dis_info *info) +static char *SWE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SWE %s, %s(%s)", rt, s, rs); } @@ -15598,17 +15499,17 @@ static std::string SWE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWM(uint64 instruction, Dis_info *info) +static char *SWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); + char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("SWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -15624,13 +15525,13 @@ static std::string SWM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWPC_48_(uint64 instruction, Dis_info *info) +static char *SWPC_48_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - std::string rt = GPR(rt_value); - std::string s = ADDRESS(s_value, 6, info); + const char *rt = GPR(rt_value); + char *s = ADDRESS(s_value, 6, info); return img_format("SWPC %s, %s", rt, s); } @@ -15646,15 +15547,15 @@ static std::string SWPC_48_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWX(uint64 instruction, Dis_info *info) +static char *SWX(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SWX %s, %s(%s)", rd, rs, rt); } @@ -15670,15 +15571,15 @@ static std::string SWX(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SWXS(uint64 instruction, Dis_info *info) +static char *SWXS(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("SWXS %s, %s(%s)", rd, rs, rt); } @@ -15694,11 +15595,11 @@ static std::string SWXS(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SYNC(uint64 instruction, Dis_info *info) +static char *SYNC(uint64 instruction, Dis_info *info) { uint64 stype_value = extract_stype_20_19_18_17_16(instruction); - std::string stype = IMMEDIATE(stype_value); + char *stype = IMMEDIATE(stype_value); return img_format("SYNC %s", stype); } @@ -15714,13 +15615,13 @@ static std::string SYNC(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SYNCI(uint64 instruction, Dis_info *info) +static char *SYNCI(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SYNCI %s(%s)", s, rs); } @@ -15736,13 +15637,13 @@ static std::string SYNCI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SYNCIE(uint64 instruction, Dis_info *info) +static char *SYNCIE(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("SYNCIE %s(%s)", s, rs); } @@ -15758,11 +15659,11 @@ static std::string SYNCIE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string SYSCALL_16_(uint64 instruction, Dis_info *info) +static char *SYSCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("SYSCALL %s", code); } @@ -15776,11 +15677,11 @@ static std::string SYSCALL_16_(uint64 instruction, Dis_info *info) * 00000000000010 * code ------------------ */ -static std::string SYSCALL_32_(uint64 instruction, Dis_info *info) +static char *SYSCALL_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("SYSCALL %s", code); } @@ -15796,13 +15697,13 @@ static std::string SYSCALL_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TEQ(uint64 instruction, Dis_info *info) +static char *TEQ(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("TEQ %s, %s", rs, rt); } @@ -15818,11 +15719,11 @@ static std::string TEQ(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBGINV(uint64 instruction, Dis_info *info) +static char *TLBGINV(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBGINV "; + return g_strdup("TLBGINV "); } @@ -15836,11 +15737,11 @@ static std::string TLBGINV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBGINVF(uint64 instruction, Dis_info *info) +static char *TLBGINVF(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBGINVF "; + return g_strdup("TLBGINVF "); } @@ -15854,11 +15755,11 @@ static std::string TLBGINVF(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBGP(uint64 instruction, Dis_info *info) +static char *TLBGP(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBGP "; + return g_strdup("TLBGP "); } @@ -15872,11 +15773,11 @@ static std::string TLBGP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBGR(uint64 instruction, Dis_info *info) +static char *TLBGR(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBGR "; + return g_strdup("TLBGR "); } @@ -15890,11 +15791,11 @@ static std::string TLBGR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBGWI(uint64 instruction, Dis_info *info) +static char *TLBGWI(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBGWI "; + return g_strdup("TLBGWI "); } @@ -15908,11 +15809,11 @@ static std::string TLBGWI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBGWR(uint64 instruction, Dis_info *info) +static char *TLBGWR(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBGWR "; + return g_strdup("TLBGWR "); } @@ -15926,11 +15827,11 @@ static std::string TLBGWR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBINV(uint64 instruction, Dis_info *info) +static char *TLBINV(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBINV "; + return g_strdup("TLBINV "); } @@ -15944,11 +15845,11 @@ static std::string TLBINV(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBINVF(uint64 instruction, Dis_info *info) +static char *TLBINVF(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBINVF "; + return g_strdup("TLBINVF "); } @@ -15962,11 +15863,11 @@ static std::string TLBINVF(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBP(uint64 instruction, Dis_info *info) +static char *TLBP(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBP "; + return g_strdup("TLBP "); } @@ -15980,11 +15881,11 @@ static std::string TLBP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBR(uint64 instruction, Dis_info *info) +static char *TLBR(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBR "; + return g_strdup("TLBR "); } @@ -15998,11 +15899,11 @@ static std::string TLBR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBWI(uint64 instruction, Dis_info *info) +static char *TLBWI(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBWI "; + return g_strdup("TLBWI "); } @@ -16016,11 +15917,11 @@ static std::string TLBWI(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TLBWR(uint64 instruction, Dis_info *info) +static char *TLBWR(uint64 instruction, Dis_info *info) { (void)instruction; - return "TLBWR "; + return g_strdup("TLBWR "); } @@ -16034,13 +15935,13 @@ static std::string TLBWR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TNE(uint64 instruction, Dis_info *info) +static char *TNE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("TNE %s, %s", rs, rt); } @@ -16056,13 +15957,13 @@ static std::string TNE(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TRUNC_L_D(uint64 instruction, Dis_info *info) +static char *TRUNC_L_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("TRUNC.L.D %s, %s", ft, fs); } @@ -16078,13 +15979,13 @@ static std::string TRUNC_L_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TRUNC_L_S(uint64 instruction, Dis_info *info) +static char *TRUNC_L_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("TRUNC.L.S %s, %s", ft, fs); } @@ -16100,13 +16001,13 @@ static std::string TRUNC_L_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TRUNC_W_D(uint64 instruction, Dis_info *info) +static char *TRUNC_W_D(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("TRUNC.W.D %s, %s", ft, fs); } @@ -16122,13 +16023,13 @@ static std::string TRUNC_W_D(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string TRUNC_W_S(uint64 instruction, Dis_info *info) +static char *TRUNC_W_S(uint64 instruction, Dis_info *info) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - std::string ft = FPR(ft_value); - std::string fs = FPR(fs_value); + const char *ft = FPR(ft_value); + const char *fs = FPR(fs_value); return img_format("TRUNC.W.S %s, %s", ft, fs); } @@ -16144,17 +16045,17 @@ static std::string TRUNC_W_S(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string UALDM(uint64 instruction, Dis_info *info) +static char *UALDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); + char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UALDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16170,15 +16071,15 @@ static std::string UALDM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string UALH(uint64 instruction, Dis_info *info) +static char *UALH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("UALH %s, %s(%s)", rt, s, rs); } @@ -16194,17 +16095,17 @@ static std::string UALH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string UALWM(uint64 instruction, Dis_info *info) +static char *UALWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); + char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UALWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16220,17 +16121,17 @@ static std::string UALWM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string UASDM(uint64 instruction, Dis_info *info) +static char *UASDM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); + char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UASDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16246,15 +16147,15 @@ static std::string UASDM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string UASH(uint64 instruction, Dis_info *info) +static char *UASH(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); return img_format("UASH %s, %s(%s)", rt, s, rs); } @@ -16270,17 +16171,17 @@ static std::string UASH(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string UASWM(uint64 instruction, Dis_info *info) +static char *UASWM(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - std::string rt = GPR(rt_value); - std::string s = IMMEDIATE(s_value); - std::string rs = GPR(rs_value); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(rt_value); + char *s = IMMEDIATE(s_value); + const char *rs = GPR(rs_value); + char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UASWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16296,11 +16197,11 @@ static std::string UASWM(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string UDI(uint64 instruction, Dis_info *info) +static char *UDI(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); - std::string op = IMMEDIATE(op_value); + char *op = IMMEDIATE(op_value); return img_format("UDI %s", op); } @@ -16314,11 +16215,11 @@ static std::string UDI(uint64 instruction, Dis_info *info) * 001000 1100001101111111 * code ---------- */ -static std::string WAIT(uint64 instruction, Dis_info *info) +static char *WAIT(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_25_24_23_22_21_20_19_18_17_16(instruction); - std::string code = IMMEDIATE(code_value); + char *code = IMMEDIATE(code_value); return img_format("WAIT %s", code); } @@ -16334,13 +16235,13 @@ static std::string WAIT(uint64 instruction, Dis_info *info) * rt ----- * mask ------- */ -static std::string WRDSP(uint64 instruction, Dis_info *info) +static char *WRDSP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); - std::string rt = GPR(rt_value); - std::string mask = IMMEDIATE(mask_value); + const char *rt = GPR(rt_value); + char *mask = IMMEDIATE(mask_value); return img_format("WRDSP %s, %s", rt, mask); } @@ -16356,13 +16257,13 @@ static std::string WRDSP(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string WRPGPR(uint64 instruction, Dis_info *info) +static char *WRPGPR(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("WRPGPR %s, %s", rt, rs); } @@ -16378,13 +16279,13 @@ static std::string WRPGPR(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string XOR_16_(uint64 instruction, Dis_info *info) +static char *XOR_16_(uint64 instruction, Dis_info *info) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); - std::string rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); return img_format("XOR %s, %s", rs3, rt3); } @@ -16400,15 +16301,15 @@ static std::string XOR_16_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string XOR_32_(uint64 instruction, Dis_info *info) +static char *XOR_32_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - std::string rd = GPR(rd_value); - std::string rs = GPR(rs_value); - std::string rt = GPR(rt_value); + const char *rd = GPR(rd_value); + const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value); return img_format("XOR %s, %s, %s", rd, rs, rt); } @@ -16424,15 +16325,15 @@ static std::string XOR_32_(uint64 instruction, Dis_info *info) * rs ----- * rd ----- */ -static std::string XORI(uint64 instruction, Dis_info *info) +static char *XORI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); - std::string u = IMMEDIATE(u_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); + char *u = IMMEDIATE(u_value); return img_format("XORI %s, %s, %s", rt, rs, u); } @@ -16447,13 +16348,13 @@ static std::string XORI(uint64 instruction, Dis_info *info) * rt ----- * rs ----- */ -static std::string YIELD(uint64 instruction, Dis_info *info) +static char *YIELD(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rt = GPR(rt_value); - std::string rs = GPR(rs_value); + const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value); return img_format("YIELD %s, %s", rt, rs); } @@ -22256,25 +22157,22 @@ static const Pool MAJOR[2] = { 0x0 }, /* P16 */ }; -static int Disassemble(const uint16 *data, std::string & dis, +static int Disassemble(const uint16 *data, char **dis, TABLE_ENTRY_TYPE & type, Dis_info *info) { return Disassemble(data, dis, type, MAJOR, 2, info); } -static int nanomips_dis(char *buf, +static int nanomips_dis(char **buf, Dis_info *info, unsigned short one, unsigned short two, unsigned short three) { - std::string disasm; uint16 bits[3] = {one, two, three}; TABLE_ENTRY_TYPE type; - int size = Disassemble(bits, disasm, type, info); - - strcpy(buf, disasm.c_str()); + int size = Disassemble(bits, buf, type, info); return size; } @@ -22283,7 +22181,7 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) int status; bfd_byte buffer[2]; uint16_t insn1 = 0, insn2 = 0, insn3 = 0; - char buf[200]; + char *buf = NULL; info->bytes_per_chunk = 2; info->display_endian = info->endian; @@ -22345,7 +22243,7 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) (*info->fprintf_func)(info->stream, " "); } - int length = nanomips_dis(buf, &disassm_info, insn1, insn2, insn3); + int length = nanomips_dis(&buf, &disassm_info, insn1, insn2, insn3); /* FIXME: Should probably use a hash table on the major opcode here. */ From patchwork Mon Sep 12 12:26:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973628 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 422D4C6FA86 for ; Mon, 12 Sep 2022 12:45:11 +0000 (UTC) Received: from localhost ([::1]:37540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXioI-000391-AS for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:45:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXian-0006dK-5I for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:13 -0400 Received: from mail-eopbgr70093.outbound.protection.outlook.com ([40.107.7.93]:54542 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiai-0006P4-3h for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N1QnZMGjKGxkMHHQpnoixq+UWPeOFjeso8H8mwMWhihL3lVU0H7qHJZn5fyg+y4swpDWjvFzMf8tQ8RoBdBW+7HcqJY1AH+cbGrHHJnfxvHdZIVSIr27jvE6Mfc1Ape156eBWkNOKqSLJhi+fksLxXvxDWayAe55LFXWpH5r6MHC8K92ww4iFP8yOiAfd8DLHjg1c+g9UorPGAvf2rg0A1bJf6Uxm9ylg9O2nzTuqYFk7kenfhm7Tz0sVXTeUk85X5xAtIRxXGj2/P06LfkbKPAmhk8K0S/j66zy3gYXBV4R97ZKqtIFdIQkcd+ackdnpgGNcsGigufWNsobo7XJVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fLstSdhGlEXBP+rtvQ0Q62A1Dj62pGYrASkjFGnCtp8=; b=LOoiolcok6pai/dn9Gk1fy57uU4kG+pUA4KlgB2TT7tG6u3HHRhew4qoGAhvuZKM9fmeb7IzodznCZ36vQ3bWgDGvPyvpKe55iW/ivwk8enOjW0PR/vnWluNWoAamK0gdPp9HrDLhWVJ7pyWVcRbnLvI0mvyLb7CvjmqVKpDNSKjlcHazZPwlZHrUW1MbsWMB5QGuE1WISaYBJ5t8uU7aCbwgI+2IsHAW1BqVQ0lvzGqTX1X5b6L+K7mQY4OTWOnh0XLuw1ZozeASzZIWB1yHkMbKdnP9utr5M3L6nUgBXxNv6wKX091b8Sw/fVgo7cmKco9LGdR6H9FolF6tZ+JIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fLstSdhGlEXBP+rtvQ0Q62A1Dj62pGYrASkjFGnCtp8=; b=TlcipY9AvkLFi5QVJbOPTll4CIc0ePDJZMTgNLZXeOdY0PTDNCjFyGt7QTriWX+fEQq/Yrx9TAg+QORxVx3aiBepPr/iHqNuLqTzWGV3EOgjFkzNffyVimTw1FW62StThIhGuzG+mzVvKgPXa/rrEBJ6zdYRscRM/Yqle6a1VcM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by DB4PR03MB9481.eurprd03.prod.outlook.com (2603:10a6:10:3f7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:30:51 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:30:51 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 16/24] disas/nanomips: Remove IMMEDIATE functions Date: Mon, 12 Sep 2022 14:26:27 +0200 Message-Id: <20220912122635.74032-17-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|DB4PR03MB9481:EE_ X-MS-Office365-Filtering-Correlation-Id: 8d0a9632-a0db-4a7c-b500-08da94baa108 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ceuqETTKMEyGo85tR+udtGojrHKypw7ROKyK+OGr3v0dvxX9fNeIjoXSznFUel1hPDvU1ubBzG0w8v5Qu8otCtyZPIFrMJ39FqH0mJ8fRcbd18Inihgk9GCp79QmVi94Z6Mb7FxLulz0NZjN0M/wrfZEgun0pPg7gCgloIsfEZQ3I1c6APgiZ10vQCR9ByaWPOwaP5Amjp8B4gTzouTHWSh9tNW8BXpMNDL3HnkKXH0w5Rtzlg/47nokksxAOB8pHfbKw3gViADtz6ITAb8j0hQSgqtKPVGOJ2mXunoXqF/RlICkpQRjQz2sE+DU2iO05PvN9kLlp5xTNDqz6hojPAXuRyrDoZABHdROh01vl/VIe9D2WKdbUx7PBB0xKLCBExBYVB4iMStO91UlB+u9jewHU6c8x3sGKNuYOLCFWrPkJ1/HFjeivJwsMJB6cRb+fTYkjA9dGdVM5ciJJUaHRHSPrmcpWTc5ZOAhBN44se+mrrVsvjdmXdbyEdvWIHXCIPTsvbGW4/50Agq4w3J3C8kiAkhlwJNM90iZ2KwxNDukY4NRka4GTDSHmAQaNReCVmmhN7bewAmIoPDD1Bu+bAplEsoNB4Rz1bUG21jPIreHd+r8xRznlRPN6GLbJGzIvdHfXf4u1cQiAb/369iF1baO8ZQexlKs8mKZ2pNI6A8AH3aBS+GFbLSme1/JXvsaANaCBCRnW5N2yreb2HzUvU1ktkid4dRUwf75a7OA9nKeSNAanb+GlDlCztLJYBBitySrXx4rAjFBHF40pbZ3Fg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(39830400003)(376002)(346002)(366004)(396003)(38100700002)(26005)(36756003)(6512007)(41300700001)(83380400001)(107886003)(6666004)(2906002)(52116002)(8936002)(2616005)(44832011)(1076003)(186003)(6506007)(30864003)(5660300002)(86362001)(66556008)(66946007)(66476007)(8676002)(6486002)(4326008)(38350700002)(6916009)(316002)(478600001)(14773001)(579004)(559001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RSGgVElKfDANte7ldh+MUyOraZmJdCNcERcgzsje2QNDG5acSuAzKt3s2sRSOWTgQRF1PCViYBQGt7bpxvtanLOHEB6JUfzjvfUKmT8jPDCVDWzSZ8VU9EqRePXiEPHKnNDEsMLL1/0QnxZoUlVf9u5EvS/59LaEnSMVF8mIYO4FoQ/+fB8ROTEzhp7BVqYaQjblMeSoVVwAay2vRkY6TndoIDJd27n7/K2dr5del1U0OZmxxZMBHDhthlQA3jNokfxlSU2l/qQupPn9e8Xgle2xuNuhLja7awf4FFr++ZArE9rnwGRctt291UELykvc2aLj/TqrSCbuCMrUdQc9+dl5Rr1qCJStMl8A/YRzY2nvX3X1av32z8AJPYLZAniYujzjRPsiUi+ZdxiKxajJTu+In9BeHod/yG/PhdjNNn2peBZDUyrqh6oA4fnnKvIgmNvHnkNjaudAInFG0364TC06iowurZKsMcRVPBEDSb3hfDU6cDmd6ca/39ThJt/S5IvHH5fRaFuRhEl3TytW4viTAfAlt5BWxuh6tdueil5/RgpJBMvsVui3GZYgcLzjDYkEMdK4mQ8T5XbQdBGyqRlZ3qeKtmK6OkwUFH6KvcGWdwH4CepFlRonarw+yJnUIIC8iCdYrQjqCC6h78umhC40kMMFlbUZfOm98KrJfMYqieletMXmG45ImK/HUbzY81hfIO6fUn2wSwMncaO22aLzE7TrxgpqQKUKgtxBD6L2FwlosSPBx2vTCvVoPuYsXCrHct0qN8UVTLR3n/A3BcD4OzsfiCnVBzeosUunbew4cxZ3qmywj4JNwPxAmx5T2JuiURA+TFjaTQmX7la5RMfAMEmGntR7am4aflZwoXnBEw8qnyhtdgthgDSpVSlpDpFP4pX08+/dNYFD5Nsk6QdbQHnYXoEGE33APO2wmyxqnXTMvZL1SJIfD1trwD/yyXaWLJUkzHdaOedi34gM6wh0bebPp6D5dDhenxMC1aaagOwudwpU8X7i1lsXr6osLT78v7EjAYTN3MGLsY/Xf+adqnBrRVZW4IoUldMc2GOnn3zaR7/CE4YXWDbpkSFdOoPh7aallcjbGiM1o5jAKx7oOCTwmalHA49dp7EzqeqCQKTML2/oCK6c38sB2AtoJ/IHSYD5D1nFFLt7YQjdpbn+C1EXQUDCHj1gvZXoreWhz+AihmchGc7+8Rtv3hB3wMitfYHq9WLjg3ncdYMjJeWzXQcCIlb32qT5ecY5G6maS+pEJ2M/MTFMZB8YonhKFDZWc9IDrO9LKtmZ4VYU1b2iOG1xcbNH2KggZYzOCf9Y7swC8n3iiYtT7+V2W8TqQzPZm9MuqT9QsVsW1/G6/UaBQ94DPLT84sxk4/FOJNUkDGuPwr1XGn2CW+4IvOrjo7bXc5zOrOZBDWjd93Wg1myYExRIVYEwt7j76w5ZMqGeaXOOFz3rDVcpzxfYkrHMT6UN4LTsK6BSPDmZzhD3IN0foDQIZfTwrI42kH9eSIbBC5IMhj8ghSMo+mMbVs4Rt04T1YEMEBuEL7qc+ggL2UDThOhf8FLx2ln1lWmdVE4Wg650pnv66AkJjx9DlIGxirPcPGpG4jW4Uuf+j/ZRrA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d0a9632-a0db-4a7c-b500-08da94baa108 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:30:51.5532 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: d9CBAnrFQlrDuFaHXAc4Q1+z0qEltZrGB1qVLekISjBDdmf3epQwvggF0KQ5xuqpq9YNW+i9f9prqQG+4YFUpozKYvDbsD8e4omIrioO18A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9481 Received-SPF: pass client-ip=40.107.7.93; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Both versions of IMMEDIATE functions have been removed. Before this patch, we'd been calling img_format twice, the first time through the IMMEDIATE to get an appropriate string and the second time to print that string. There's no more need for that. Therefore, calls to IMMEDIATE are removed, and now we're directly printing the integer values instead. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 756 ++++++++++++++++----------------------------- 1 file changed, 265 insertions(+), 491 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 816155527d..441204bb84 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -519,18 +519,6 @@ static const char *AC(uint64 reg) } -static char *IMMEDIATE(uint64 value) -{ - return img_format("0x%" PRIx64, value); -} - - -static char *IMMEDIATE(int64 value) -{ - return img_format("%" PRId64, value); -} - - static char *CPR(uint64 reg) { /* needs more work */ @@ -1674,11 +1662,10 @@ static char *ACLR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *bit = IMMEDIATE(bit_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("ACLR %s, %s(%s)", bit, s, rs); + return img_format("ACLR 0x%" PRIx64 ", %" PRId64 "(%s)", + bit_value, s_value, rs); } @@ -1772,9 +1759,8 @@ static char *ADDIU_32_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(u_value); - return img_format("ADDIU %s, %s, %s", rt, rs, u); + return img_format("ADDIU %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -1793,9 +1779,8 @@ static char *ADDIU_48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); - return img_format("ADDIU %s, %s", rt, s); + return img_format("ADDIU %s, %" PRId64, rt, s_value); } @@ -1814,9 +1799,8 @@ static char *ADDIU_GP48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); - return img_format("ADDIU %s, $%d, %s", rt, 28, s); + return img_format("ADDIU %s, $%d, %" PRId64, rt, 28, s_value); } @@ -1835,9 +1819,8 @@ static char *ADDIU_GP_B_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("ADDIU %s, $%d, %s", rt, 28, u); + return img_format("ADDIU %s, $%d, 0x%" PRIx64, rt, 28, u_value); } @@ -1856,9 +1839,8 @@ static char *ADDIU_GP_W_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_20_to_2__s2(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("ADDIU %s, $%d, %s", rt, 28, u); + return img_format("ADDIU %s, $%d, 0x%" PRIx64, rt, 28, u_value); } @@ -1879,9 +1861,9 @@ static char *ADDIU_NEG_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(neg_copy(u_value)); + int64 u = neg_copy(u_value); - return img_format("ADDIU %s, %s, %s", rt, rs, u); + return img_format("ADDIU %s, %s, %" PRId64, rt, rs, u); } @@ -1900,9 +1882,8 @@ static char *ADDIU_R1_SP_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = IMMEDIATE(u_value); - return img_format("ADDIU %s, $%d, %s", rt3, 29, u); + return img_format("ADDIU %s, $%d, 0x%" PRIx64, rt3, 29, u_value); } @@ -1923,9 +1904,8 @@ static char *ADDIU_R2_(uint64 instruction, Dis_info *info) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - char *u = IMMEDIATE(u_value); - return img_format("ADDIU %s, %s, %s", rt3, rs3, u); + return img_format("ADDIU %s, %s, 0x%" PRIx64, rt3, rs3, u_value); } @@ -1943,9 +1923,8 @@ static char *ADDIU_RS5_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se3_4_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); - return img_format("ADDIU %s, %s", rt, s); + return img_format("ADDIU %s, %" PRId64, rt, s_value); } @@ -2513,9 +2492,9 @@ static char *ANDI_16_(uint64 instruction, Dis_info *info) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - char *eu = IMMEDIATE(encode_eu_from_u_andi16(eu_value)); + uint64 eu = encode_eu_from_u_andi16(eu_value); - return img_format("ANDI %s, %s, %s", rt3, rs3, eu); + return img_format("ANDI %s, %s, 0x%" PRIx64, rt3, rs3, eu); } @@ -2537,9 +2516,8 @@ static char *ANDI_32_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(u_value); - return img_format("ANDI %s, %s, %s", rt, rs, u); + return img_format("ANDI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -2561,9 +2539,8 @@ static char *APPEND(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("APPEND %s, %s, %s", rt, rs, sa); + return img_format("APPEND %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -2583,11 +2560,10 @@ static char *ASET(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *bit = IMMEDIATE(bit_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("ASET %s, %s(%s)", bit, s, rs); + return img_format("ASET 0x%" PRIx64 ", %" PRId64 "(%s)", + bit_value, s_value, rs); } @@ -2670,10 +2646,9 @@ static char *BBEQZC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *bit = IMMEDIATE(bit_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BBEQZC %s, %s, %s", rt, bit, s); + return img_format("BBEQZC %s, 0x%" PRIx64 ", %s", rt, bit_value, s); } @@ -2694,10 +2669,9 @@ static char *BBNEZC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *bit = IMMEDIATE(bit_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BBNEZC %s, %s, %s", rt, bit, s); + return img_format("BBNEZC %s, 0x%" PRIx64 ", %s", rt, bit_value, s); } @@ -2894,10 +2868,9 @@ static char *BEQIC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BEQIC %s, %s, %s", rt, u, s); + return img_format("BEQIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -2964,10 +2937,9 @@ static char *BGEIC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BGEIC %s, %s, %s", rt, u, s); + return img_format("BGEIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -2988,10 +2960,9 @@ static char *BGEIUC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BGEIUC %s, %s, %s", rt, u, s); + return img_format("BGEIUC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -3060,10 +3031,9 @@ static char *BLTIC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BLTIC %s, %s, %s", rt, u, s); + return img_format("BLTIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -3084,10 +3054,9 @@ static char *BLTIUC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BLTIUC %s, %s, %s", rt, u, s); + return img_format("BLTIUC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -3180,10 +3149,9 @@ static char *BNEIC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BNEIC %s, %s, %s", rt, u, s); + return img_format("BNEIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -3243,9 +3211,8 @@ static char *BREAK_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("BREAK %s", code); + return img_format("BREAK 0x%" PRIx64, code_value); } @@ -3263,9 +3230,8 @@ static char *BREAK_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("BREAK %s", code); + return img_format("BREAK 0x%" PRIx64, code_value); } @@ -3305,11 +3271,9 @@ static char *CACHE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *op = IMMEDIATE(op_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("CACHE %s, %s(%s)", op, s, rs); + return img_format("CACHE 0x%" PRIx64 ", %s(%s)", op_value, s_value, rs); } @@ -3329,11 +3293,9 @@ static char *CACHEE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *op = IMMEDIATE(op_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("CACHEE %s, %s(%s)", op, s, rs); + return img_format("CACHEE 0x%" PRIx64 ", %s(%s)", op_value, s_value, rs); } @@ -4906,9 +4868,8 @@ static char *COP2_1(uint64 instruction, Dis_info *info) { uint64 cofun_value = extract_cofun_25_24_23(instruction); - char *cofun = IMMEDIATE(cofun_value); - return img_format("COP2_1 %s", cofun); + return img_format("COP2_1 0x%" PRIx64, cofun_value); } @@ -5236,9 +5197,8 @@ static char *DADDIU_48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); - return img_format("DADDIU %s, %s", rt, s); + return img_format("DADDIU %s, %s", rt, s_value); } @@ -5260,9 +5220,9 @@ static char *DADDIU_NEG_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(neg_copy(u_value)); + int64 u = neg_copy(u_value); - return img_format("DADDIU %s, %s, %s", rt, rs, u); + return img_format("DADDIU %s, %s, %" PRId64, rt, rs, u); } @@ -5284,9 +5244,8 @@ static char *DADDIU_U12_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(u_value); - return img_format("DADDIU %s, %s, %s", rt, rs, u); + return img_format("DADDIU %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -5467,10 +5426,10 @@ static char *DEXTM(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *lsb = IMMEDIATE(lsb_value); - char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + uint64 msbd = encode_msbd_from_size(msbd_value); - return img_format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); + return img_format("DEXTM %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, lsb_value, msbd); } @@ -5493,10 +5452,10 @@ static char *DEXT(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *lsb = IMMEDIATE(lsb_value); - char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + uint64 msbd = encode_msbd_from_size(msbd_value); - return img_format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); + return img_format("DEXT %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, lsb_value, msbd); } @@ -5519,10 +5478,10 @@ static char *DEXTU(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *lsb = IMMEDIATE(lsb_value); - char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + uint64 msbd = encode_msbd_from_size(msbd_value); - return img_format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); + return img_format("DEXTU %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, lsb_value, msbd); } @@ -5545,11 +5504,10 @@ static char *DINSM(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *pos = IMMEDIATE(lsb_value); - char *size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ - return img_format("DINSM %s, %s, %s, %s", rt, rs, pos, size); + return img_format("DINSM %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, lsb_value, msbd_value); /* hand edited */ } @@ -5573,11 +5531,10 @@ static char *DINS(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *pos = IMMEDIATE(lsb_value); - char *size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ - return img_format("DINS %s, %s, %s, %s", rt, rs, pos, size); + return img_format("DINS %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, lsb_value, msbd_value); /* hand edited */ } @@ -5601,11 +5558,10 @@ static char *DINSU(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *pos = IMMEDIATE(lsb_value); - char *size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ - return img_format("DINSU %s, %s, %s, %s", rt, rs, pos, size); + return img_format("DINSU %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, lsb_value, msbd_value); /* hand edited */ } @@ -5746,9 +5702,8 @@ static char *DLSA(uint64 instruction, Dis_info *info) const char *rd = GPR(rd_value); const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *u2 = IMMEDIATE(u2_value); - return img_format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); + return img_format("DLSA %s, %s, %s, 0x%" PRIx64, rd, rs, rt, u2_value); } @@ -5768,9 +5723,8 @@ static char *DLUI_48_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_31_to_0__s32(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("DLUI %s, %s", rt, u); + return img_format("DLUI %s, 0x%" PRIx64, rt, u_value); } @@ -5792,9 +5746,8 @@ static char *DMFC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("DMFC0 %s, %s, %s", rt, c0s, sel); + return img_format("DMFC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -5860,9 +5813,8 @@ static char *DMFGC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("DMFGC0 %s, %s, %s", rt, c0s, sel); + return img_format("DMFGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -5932,9 +5884,8 @@ static char *DMTC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("DMTC0 %s, %s, %s", rt, c0s, sel); + return img_format("DMTC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -6000,9 +5951,8 @@ static char *DMTGC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("DMTGC0 %s, %s, %s", rt, c0s, sel); + return img_format("DMTGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -6525,9 +6475,8 @@ static char *DROTR(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("DROTR %s, %s, %s", rt, rs, shift); + return img_format("DROTR %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6549,9 +6498,8 @@ static char *DROTR32(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("DROTR32 %s, %s, %s", rt, rs, shift); + return img_format("DROTR32 %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6598,10 +6546,9 @@ static char *DROTX(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - char *shiftx = IMMEDIATE(shiftx_value); - return img_format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); + return img_format("DROTX %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, shift_value, shiftx_value); } @@ -6623,9 +6570,8 @@ static char *DSLL(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("DSLL %s, %s, %s", rt, rs, shift); + return img_format("DSLL %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6647,9 +6593,8 @@ static char *DSLL32(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("DSLL32 %s, %s, %s", rt, rs, shift); + return img_format("DSLL32 %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6695,9 +6640,8 @@ static char *DSRA(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("DSRA %s, %s, %s", rt, rs, shift); + return img_format("DSRA %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6719,9 +6663,8 @@ static char *DSRA32(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("DSRA32 %s, %s, %s", rt, rs, shift); + return img_format("DSRA32 %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6767,9 +6710,8 @@ static char *DSRL(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("DSRL %s, %s, %s", rt, rs, shift); + return img_format("DSRL %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6791,9 +6733,8 @@ static char *DSRL32(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("DSRL32 %s, %s, %s", rt, rs, shift); + return img_format("DSRL32 %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -7062,10 +7003,10 @@ static char *EXT(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *lsb = IMMEDIATE(lsb_value); - char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + uint64 msbd = encode_msbd_from_size(msbd_value); - return img_format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); + return img_format("EXT %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, lsb_value, msbd); } @@ -7089,9 +7030,8 @@ static char *EXTD(uint64 instruction, Dis_info *info) const char *rd = GPR(rd_value); const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *shift = IMMEDIATE(shift_value); - return img_format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); + return img_format("EXTD %s, %s, %s, 0x%" PRIx64, rd, rs, rt, shift_value); } @@ -7115,9 +7055,8 @@ static char *EXTD32(uint64 instruction, Dis_info *info) const char *rd = GPR(rd_value); const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *shift = IMMEDIATE(shift_value); - return img_format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); + return img_format("EXTD32 %s, %s, %s, 0x%" PRIx64, rd, rs, rt, shift_value); } @@ -7139,9 +7078,8 @@ static char *EXTPDP(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *ac = AC(ac_value); - char *size = IMMEDIATE(size_value); - return img_format("EXTPDP %s, %s, %s", rt, ac, size); + return img_format("EXTPDP %s, %s, 0x%" PRIx64, rt, ac, size_value); } @@ -7187,9 +7125,8 @@ static char *EXTP(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *ac = AC(ac_value); - char *size = IMMEDIATE(size_value); - return img_format("EXTP %s, %s, %s", rt, ac, size); + return img_format("EXTP %s, %s, 0x%" PRIx64, rt, ac, size_value); } @@ -7236,9 +7173,8 @@ static char *EXTR_RS_W(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *ac = AC(ac_value); - char *shift = IMMEDIATE(shift_value); - return img_format("EXTR_RS.W %s, %s, %s", rt, ac, shift); + return img_format("EXTR_RS.W %s, %s, 0x%" PRIx64, rt, ac, shift_value); } @@ -7261,9 +7197,8 @@ static char *EXTR_R_W(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *ac = AC(ac_value); - char *shift = IMMEDIATE(shift_value); - return img_format("EXTR_R.W %s, %s, %s", rt, ac, shift); + return img_format("EXTR_R.W %s, %s, 0x%" PRIx64, rt, ac, shift_value); } @@ -7286,9 +7221,8 @@ static char *EXTR_S_H(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *ac = AC(ac_value); - char *shift = IMMEDIATE(shift_value); - return img_format("EXTR_S.H %s, %s, %s", rt, ac, shift); + return img_format("EXTR_S.H %s, %s, 0x%" PRIx64, rt, ac, shift_value); } @@ -7311,9 +7245,8 @@ static char *EXTR_W(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *ac = AC(ac_value); - char *shift = IMMEDIATE(shift_value); - return img_format("EXTR.W %s, %s, %s", rt, ac, shift); + return img_format("EXTR.W %s, %s, 0x%" PRIx64, rt, ac, shift_value); } @@ -7438,9 +7371,8 @@ static char *EXTW(uint64 instruction, Dis_info *info) const char *rd = GPR(rd_value); const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *shift = IMMEDIATE(shift_value); - return img_format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); + return img_format("EXTW %s, %s, %s, 0x%" PRIx64, rd, rs, rt, shift_value); } @@ -7570,9 +7502,8 @@ static char *HYPCALL(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("HYPCALL %s", code); + return img_format("HYPCALL 0x%" PRIx64, code_value); } @@ -7590,9 +7521,8 @@ static char *HYPCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("HYPCALL %s", code); + return img_format("HYPCALL 0x%" PRIx64, code_value); } @@ -7615,11 +7545,10 @@ static char *INS(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *pos = IMMEDIATE(lsb_value); - char *size = IMMEDIATE(msbd_value); /* !!!!!!!!!! - no conversion function */ - return img_format("INS %s, %s, %s, %s", rt, rs, pos, size); + return img_format("INS %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, lsb_value, msbd_value); /* hand edited */ } @@ -7764,10 +7693,9 @@ static char *LB_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_1_0(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = IMMEDIATE(u_value); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LB %s, %s(%s)", rt3, u, rs3); + return img_format("LB %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -7787,9 +7715,8 @@ static char *LB_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("LB %s, %s($%d)", rt, u, 28); + return img_format("LB %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -7810,10 +7737,9 @@ static char *LB_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LB %s, %s(%s)", rt, s, rs); + return img_format("LB %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -7834,10 +7760,9 @@ static char *LB_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LB %s, %s(%s)", rt, u, rs); + return img_format("LB %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -7858,10 +7783,9 @@ static char *LBE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LBE %s, %s(%s)", rt, s, rs); + return img_format("LBE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -7882,10 +7806,9 @@ static char *LBU_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_1_0(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = IMMEDIATE(u_value); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LBU %s, %s(%s)", rt3, u, rs3); + return img_format("LBU %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -7905,9 +7828,8 @@ static char *LBU_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("LBU %s, %s($%d)", rt, u, 28); + return img_format("LBU %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -7928,10 +7850,9 @@ static char *LBU_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LBU %s, %s(%s)", rt, s, rs); + return img_format("LBU %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -7952,10 +7873,9 @@ static char *LBU_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LBU %s, %s(%s)", rt, u, rs); + return img_format("LBU %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -7976,10 +7896,9 @@ static char *LBUE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LBUE %s, %s(%s)", rt, s, rs); + return img_format("LBUE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8047,9 +7966,8 @@ static char *LD_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_20_to_3__s3(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("LD %s, %s($%d)", rt, u, 28); + return img_format("LD %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -8070,10 +7988,9 @@ static char *LD_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LD %s, %s(%s)", rt, s, rs); + return img_format("LD %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8094,10 +8011,9 @@ static char *LD_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LD %s, %s(%s)", rt, u, rs); + return img_format("LD %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -8117,9 +8033,8 @@ static char *LDC1_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_2__s2(instruction); const char *ft = FPR(ft_value); - char *u = IMMEDIATE(u_value); - return img_format("LDC1 %s, %s($%d)", ft, u, 28); + return img_format("LDC1 %s, 0x%" PRIx64 "($%d)", ft, u_value, 28); } @@ -8140,10 +8055,9 @@ static char *LDC1_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *ft = FPR(ft_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LDC1 %s, %s(%s)", ft, s, rs); + return img_format("LDC1 %s, %" PRId64 "(%s)", ft, s_value, rs); } @@ -8164,10 +8078,9 @@ static char *LDC1_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *ft = FPR(ft_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LDC1 %s, %s(%s)", ft, u, rs); + return img_format("LDC1 %s, 0x%" PRIx64 "(%s)", ft, u_value, rs); } @@ -8236,10 +8149,9 @@ static char *LDC2(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); char *ct = CPR(ct_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LDC2 %s, %s(%s)", ct, s, rs); + return img_format("LDC2 %s, %" PRId64 "(%s)", ct, s_value, rs); } @@ -8261,11 +8173,11 @@ static char *LDM(uint64 instruction, Dis_info *info) uint64 count3_value = extract_count3_14_13_12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + uint64 count3 = encode_count3_from_count(count3_value); - return img_format("LDM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("LDM %s, %" PRId64 "(%s), 0x%" PRIx64, + rt, s_value, rs, count3); } @@ -8356,10 +8268,9 @@ static char *LH_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_2_1__s1(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = IMMEDIATE(u_value); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LH %s, %s(%s)", rt3, u, rs3); + return img_format("LH %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -8379,9 +8290,8 @@ static char *LH_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_1__s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("LH %s, %s($%d)", rt, u, 28); + return img_format("LH %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -8402,10 +8312,9 @@ static char *LH_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LH %s, %s(%s)", rt, s, rs); + return img_format("LH %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8426,10 +8335,9 @@ static char *LH_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LH %s, %s(%s)", rt, u, rs); + return img_format("LH %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -8450,10 +8358,9 @@ static char *LHE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LHE %s, %s(%s)", rt, s, rs); + return img_format("LHE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8474,10 +8381,9 @@ static char *LHU_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_2_1__s1(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = IMMEDIATE(u_value); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LHU %s, %s(%s)", rt3, u, rs3); + return img_format("LHU %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -8497,9 +8403,8 @@ static char *LHU_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_1__s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("LHU %s, %s($%d)", rt, u, 28); + return img_format("LHU %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -8520,10 +8425,9 @@ static char *LHU_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LHU %s, %s(%s)", rt, s, rs); + return img_format("LHU %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8544,10 +8448,9 @@ static char *LHU_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LHU %s, %s(%s)", rt, u, rs); + return img_format("LHU %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -8568,10 +8471,9 @@ static char *LHUE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LHUE %s, %s(%s)", rt, s, rs); + return img_format("LHUE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8687,9 +8589,9 @@ static char *LI_16_(uint64 instruction, Dis_info *info) uint64 eu_value = extract_eu_6_5_4_3_2_1_0(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *eu = IMMEDIATE(encode_eu_from_s_li16(eu_value)); + int64 eu = encode_eu_from_s_li16(eu_value); - return img_format("LI %s, %s", rt3, eu); + return img_format("LI %s, %" PRId64, rt3, eu); } @@ -8709,9 +8611,8 @@ static char *LI_48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); - return img_format("LI %s, %s", rt, s); + return img_format("LI %s, %" PRId64, rt, s_value); } @@ -8732,10 +8633,9 @@ static char *LL(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LL %s, %s(%s)", rt, s, rs); + return img_format("LL %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8756,10 +8656,9 @@ static char *LLD(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_s3(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LLD %s, %s(%s)", rt, s, rs); + return img_format("LLD %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8804,10 +8703,9 @@ static char *LLE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LLE %s, %s(%s)", rt, s, rs); + return img_format("LLE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8879,9 +8777,8 @@ static char *LSA(uint64 instruction, Dis_info *info) const char *rd = GPR(rd_value); const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *u2 = IMMEDIATE(u2_value); - return img_format("LSA %s, %s, %s, %s", rd, rs, rt, u2); + return img_format("LSA %s, %s, %s, 0x%" PRIx64, rd, rs, rt, u2_value); } @@ -8901,9 +8798,8 @@ static char *LUI(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); - return img_format("LUI %s, %%hi(%s)", rt, s); + return img_format("LUI %s, %%hi(%" PRId64 ")", rt, s_value); } @@ -8924,10 +8820,9 @@ static char *LW_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_3_2_1_0__s2(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = IMMEDIATE(u_value); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LW %s, %s(%s)", rt3, u, rs3); + return img_format("LW %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -8948,10 +8843,9 @@ static char *LW_4X4_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_3_8__s2(instruction); const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); - char *u = IMMEDIATE(u_value); const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); - return img_format("LW %s, %s(%s)", rt4, u, rs4); + return img_format("LW %s, 0x%" PRIx64 "(%s)", rt4, u_value, rs4); } @@ -8971,9 +8865,8 @@ static char *LW_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_20_to_2__s2(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("LW %s, %s($%d)", rt, u, 28); + return img_format("LW %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -8993,9 +8886,8 @@ static char *LW_GP16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = IMMEDIATE(u_value); - return img_format("LW %s, %s($%d)", rt3, u, 28); + return img_format("LW %s, 0x%" PRIx64 "($%d)", rt3, u_value, 28); } @@ -9016,10 +8908,9 @@ static char *LW_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LW %s, %s(%s)", rt, s, rs); + return img_format("LW %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -9039,9 +8930,8 @@ static char *LW_SP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("LW %s, %s($%d)", rt, u, 29); + return img_format("LW %s, 0x%" PRIx64 "($%d)", rt, u_value, 29); } @@ -9062,10 +8952,9 @@ static char *LW_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LW %s, %s(%s)", rt, u, rs); + return img_format("LW %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -9085,9 +8974,8 @@ static char *LWC1_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_2__s2(instruction); const char *ft = FPR(ft_value); - char *u = IMMEDIATE(u_value); - return img_format("LWC1 %s, %s($%d)", ft, u, 28); + return img_format("LWC1 %s, 0x%" PRIx64 "($%d)", ft, u_value, 28); } @@ -9108,10 +8996,9 @@ static char *LWC1_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *ft = FPR(ft_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LWC1 %s, %s(%s)", ft, s, rs); + return img_format("LWC1 %s, %" PRId64 "(%s)", ft, s_value, rs); } @@ -9132,10 +9019,9 @@ static char *LWC1_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *ft = FPR(ft_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LWC1 %s, %s(%s)", ft, u, rs); + return img_format("LWC1 %s, 0x%" PRIx64 "(%s)", ft, u_value, rs); } @@ -9204,10 +9090,9 @@ static char *LWC2(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); char *ct = CPR(ct_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LWC2 %s, %s(%s)", ct, s, rs); + return img_format("LWC2 %s, %" PRId64 "(%s)", ct, s_value, rs); } @@ -9228,10 +9113,9 @@ static char *LWE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LWE %s, %s(%s)", rt, s, rs); + return img_format("LWE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -9253,11 +9137,11 @@ static char *LWM(uint64 instruction, Dis_info *info) uint64 count3_value = extract_count3_14_13_12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + uint64 count3 = encode_count3_from_count(count3_value); - return img_format("LWM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("LWM %s, %" PRId64 "(%s), 0x%" PRIx64, + rt, s_value, rs, count3); } @@ -9299,9 +9183,8 @@ static char *LWU_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_2__s2(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("LWU %s, %s($%d)", rt, u, 28); + return img_format("LWU %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -9322,10 +9205,9 @@ static char *LWU_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("LWU %s, %s(%s)", rt, s, rs); + return img_format("LWU %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -9346,10 +9228,9 @@ static char *LWU_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("LWU %s, %s(%s)", rt, u, rs); + return img_format("LWU %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -9443,9 +9324,9 @@ static char *LWXS_16_(uint64 instruction, Dis_info *info) const char *rd3 = GPR(decode_gpr_gpr3(rd3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - char *rt3 = IMMEDIATE(decode_gpr_gpr3(rt3_value)); + uint64 rt3 = decode_gpr_gpr3(rt3_value); - return img_format("LWXS %s, %s(%s)", rd3, rs3, rt3); + return img_format("LWXS %s, %s(0x%" PRIx64 ")", rd3, rs3, rt3); } @@ -9785,9 +9666,8 @@ static char *MFC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MFC0 %s, %s, %s", rt, c0s, sel); + return img_format("MFC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -9853,9 +9733,8 @@ static char *MFGC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MFGC0 %s, %s, %s", rt, c0s, sel); + return img_format("MFGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -9877,9 +9756,8 @@ static char *MFHC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MFHC0 %s, %s, %s", rt, c0s, sel); + return img_format("MFHC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -9945,9 +9823,8 @@ static char *MFHGC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MFHGC0 %s, %s, %s", rt, c0s, sel); + return img_format("MFHGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -9990,11 +9867,9 @@ static char *MFHTR(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_10(instruction); const char *rt = GPR(rt_value); - char *c0s = IMMEDIATE(c0s_value); - char *u = IMMEDIATE(u_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); + return img_format("MFHTR %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, + rt, c0s_value, u_value, sel_value); } @@ -10037,11 +9912,9 @@ static char *MFTR(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_10(instruction); const char *rt = GPR(rt_value); - char *c0s = IMMEDIATE(c0s_value); - char *u = IMMEDIATE(u_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); + return img_format("MFTR %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, + rt, c0s_value, u_value, sel_value); } @@ -10519,9 +10392,8 @@ static char *MTC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MTC0 %s, %s, %s", rt, c0s, sel); + return img_format("MTC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -10587,9 +10459,8 @@ static char *MTGC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MTGC0 %s, %s, %s", rt, c0s, sel); + return img_format("MTGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -10611,9 +10482,8 @@ static char *MTHC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MTHC0 %s, %s, %s", rt, c0s, sel); + return img_format("MTHC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -10679,9 +10549,8 @@ static char *MTHGC0(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *c0s = CPR(c0s_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MTHGC0 %s, %s, %s", rt, c0s, sel); + return img_format("MTHGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); } @@ -10745,11 +10614,9 @@ static char *MTHTR(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_10(instruction); const char *rt = GPR(rt_value); - char *c0s = IMMEDIATE(c0s_value); - char *u = IMMEDIATE(u_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); + return img_format("MTHTR %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, + rt, c0s_value, u_value, sel_value); } @@ -10792,11 +10659,9 @@ static char *MTTR(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_10(instruction); const char *rt = GPR(rt_value); - char *c0s = IMMEDIATE(c0s_value); - char *u = IMMEDIATE(u_value); - char *sel = IMMEDIATE(sel_value); - return img_format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); + return img_format("MTTR %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, + rt, c0s_value, u_value, sel_value); } @@ -11504,9 +11369,8 @@ static char *ORI(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(u_value); - return img_format("ORI %s, %s, %s", rt, rs, u); + return img_format("ORI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -11879,9 +11743,8 @@ static char *PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); + return img_format("PRECR_SRA.PH.W %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -11904,9 +11767,8 @@ static char *PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); + return img_format("PRECR_SRA_R.PH.W %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -12026,11 +11888,10 @@ static char *PREF_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *hint = IMMEDIATE(hint_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("PREF %s, %s(%s)", hint, s, rs); + return img_format("PREF 0x%" PRIx64 ", %s(%s)", + hint_value, s_value, rs); } @@ -12050,11 +11911,10 @@ static char *PREF_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - char *hint = IMMEDIATE(hint_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("PREF %s, %s(%s)", hint, u, rs); + return img_format("PREF 0x%" PRIx64 ", 0x%" PRIx64 "(%s)", + hint_value, u_value, rs); } @@ -12074,11 +11934,9 @@ static char *PREFE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *hint = IMMEDIATE(hint_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("PREFE %s, %s(%s)", hint, s, rs); + return img_format("PREFE 0x%" PRIx64 ", %s(%s)", hint_value, s_value, rs); } @@ -12100,9 +11958,8 @@ static char *PREPEND(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("PREPEND %s, %s, %s", rt, rs, sa); + return img_format("PREPEND %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -12142,9 +11999,8 @@ static char *RDDSP(uint64 instruction, Dis_info *info) uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); const char *rt = GPR(rt_value); - char *mask = IMMEDIATE(mask_value); - return img_format("RDDSP %s, %s", rt, mask); + return img_format("RDDSP %s, 0x%" PRIx64, rt, mask_value); } @@ -12166,9 +12022,8 @@ static char *RDHWR(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); char *hs = CPR(hs_value); - char *sel = IMMEDIATE(sel_value); - return img_format("RDHWR %s, %s, %s", rt, hs, sel); + return img_format("RDHWR %s, %s, 0x%" PRIx64, rt, hs, sel_value); } @@ -12254,9 +12109,8 @@ static char *REPL_PH(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se9_20_19_18_17_16_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); - return img_format("REPL.PH %s, %s", rt, s); + return img_format("REPL.PH %s, %s", rt, s_value); } @@ -12276,9 +12130,8 @@ static char *REPL_QB(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_20_19_18_17_16_15_14_13(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("REPL.QB %s, %s", rt, u); + return img_format("REPL.QB %s, 0x%" PRIx64, rt, u_value); } @@ -12342,8 +12195,7 @@ static char *RESTORE_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - char *u = IMMEDIATE(u_value); - return img_format("RESTORE %s%s", u, + return img_format("RESTORE 0x%" PRIx64 "%s", u_value, save_restore_list(rt_value, count_value, gp_value)); } @@ -12364,8 +12216,7 @@ static char *RESTORE_JRC_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - char *u = IMMEDIATE(u_value); - return img_format("RESTORE.JRC %s%s", u, + return img_format("RESTORE.JRC 0x%" PRIx64 "%s", u_value, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12387,8 +12238,7 @@ static char *RESTORE_JRC_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - char *u = IMMEDIATE(u_value); - return img_format("RESTORE.JRC %s%s", u, + return img_format("RESTORE.JRC 0x%" PRIx64 "%s", u_value, save_restore_list(rt_value, count_value, gp_value)); } @@ -12408,10 +12258,8 @@ static char *RESTOREF(uint64 instruction, Dis_info *info) uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); - char *u = IMMEDIATE(u_value); - char *count = IMMEDIATE(count_value); - return img_format("RESTOREF %s, %s", u, count); + return img_format("RESTOREF 0x%" PRIx64 ", %s", u_value, count_value); } @@ -12477,9 +12325,8 @@ static char *ROTR(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("ROTR %s, %s, %s", rt, rs, shift); + return img_format("ROTR %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -12527,12 +12374,9 @@ static char *ROTX(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - char *shiftx = IMMEDIATE(shiftx_value); - char *stripe = IMMEDIATE(stripe_value); - return img_format("ROTX %s, %s, %s, %s, %s", - rt, rs, shift, shiftx, stripe); + return img_format("ROTX %s, %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, + rt, rs, shift_value, shiftx_value, stripe_value); } @@ -12684,8 +12528,7 @@ static char *SAVE_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - char *u = IMMEDIATE(u_value); - return img_format("SAVE %s%s", u, + return img_format("SAVE 0x%" PRIx64 "%s", u_value, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12707,8 +12550,7 @@ static char *SAVE_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - char *u = IMMEDIATE(u_value); - return img_format("SAVE %s%s", u, + return img_format("SAVE 0x%" PRIx64 "%s", u_value, save_restore_list(rt_value, count_value, gp_value)); } @@ -12728,10 +12570,8 @@ static char *SAVEF(uint64 instruction, Dis_info *info) uint64 count_value = extract_count_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); - char *u = IMMEDIATE(u_value); - char *count = IMMEDIATE(count_value); - return img_format("SAVEF %s, %s", u, count); + return img_format("SAVEF 0x%" PRIx64 ", 0x%" PRIx64, u_value, count_value); } @@ -12752,10 +12592,9 @@ static char *SB_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_1_0(instruction); const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - char *u = IMMEDIATE(u_value); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("SB %s, %s(%s)", rtz3, u, rs3); + return img_format("SB %s, 0x%" PRIx64 "(%s)", rtz3, u_value, rs3); } @@ -12775,9 +12614,8 @@ static char *SB_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("SB %s, %s($%d)", rt, u, 28); + return img_format("SB %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -12798,10 +12636,9 @@ static char *SB_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SB %s, %s(%s)", rt, s, rs); + return img_format("SB %s, %s(%s)", rt, s_value, rs); } @@ -12822,10 +12659,9 @@ static char *SB_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("SB %s, %s(%s)", rt, u, rs); + return img_format("SB %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -12846,10 +12682,9 @@ static char *SBE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SBE %s, %s(%s)", rt, s, rs); + return img_format("SBE %s, %s(%s)", rt, s_value, rs); } @@ -12894,10 +12729,9 @@ static char *SC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SC %s, %s(%s)", rt, s, rs); + return img_format("SC %s, %s(%s)", rt, s_value, rs); } @@ -12918,10 +12752,9 @@ static char *SCD(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_s3(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SCD %s, %s(%s)", rt, s, rs); + return img_format("SCD %s, %s(%s)", rt, s_value, rs); } @@ -12966,10 +12799,9 @@ static char *SCE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SCE %s, %s(%s)", rt, s, rs); + return img_format("SCE %s, %s(%s)", rt, s_value, rs); } @@ -13037,9 +12869,8 @@ static char *SD_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_20_to_3__s3(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("SD %s, %s($%d)", rt, u, 28); + return img_format("SD %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -13060,10 +12891,9 @@ static char *SD_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SD %s, %s(%s)", rt, s, rs); + return img_format("SD %s, %s(%s)", rt, s_value, rs); } @@ -13084,10 +12914,9 @@ static char *SD_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("SD %s, %s(%s)", rt, u, rs); + return img_format("SD %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -13105,9 +12934,8 @@ static char *SDBBP_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_2_1_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("SDBBP %s", code); + return img_format("SDBBP 0x%" PRIx64, code_value); } @@ -13125,9 +12953,8 @@ static char *SDBBP_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("SDBBP %s", code); + return img_format("SDBBP 0x%" PRIx64, code_value); } @@ -13147,9 +12974,8 @@ static char *SDC1_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_2__s2(instruction); const char *ft = FPR(ft_value); - char *u = IMMEDIATE(u_value); - return img_format("SDC1 %s, %s($%d)", ft, u, 28); + return img_format("SDC1 %s, 0x%" PRIx64 "($%d)", ft, u_value, 28); } @@ -13170,10 +12996,9 @@ static char *SDC1_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *ft = FPR(ft_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SDC1 %s, %s(%s)", ft, s, rs); + return img_format("SDC1 %s, %s(%s)", ft, s_value, rs); } @@ -13194,10 +13019,9 @@ static char *SDC1_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *ft = FPR(ft_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("SDC1 %s, %s(%s)", ft, u, rs); + return img_format("SDC1 %s, 0x%" PRIx64 "(%s)", ft, u_value, rs); } @@ -13266,10 +13090,9 @@ static char *SDC2(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); char *cs = CPR(cs_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SDC2 %s, %s(%s)", cs, s, rs); + return img_format("SDC2 %s, %s(%s)", cs, s_value, rs); } @@ -13291,11 +13114,10 @@ static char *SDM(uint64 instruction, Dis_info *info) uint64 count3_value = extract_count3_14_13_12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + uint64 count3 = encode_count3_from_count(count3_value); - return img_format("SDM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("SDM %s, %s(%s), 0x%" PRIx64, rt, s_value, rs, count3); } @@ -13575,9 +13397,8 @@ static char *SEQI(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(u_value); - return img_format("SEQI %s, %s, %s", rt, rs, u); + return img_format("SEQI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -13598,10 +13419,9 @@ static char *SH_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_2_1__s1(instruction); const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - char *u = IMMEDIATE(u_value); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("SH %s, %s(%s)", rtz3, u, rs3); + return img_format("SH %s, 0x%" PRIx64 "(%s)", rtz3, u_value, rs3); } @@ -13621,9 +13441,8 @@ static char *SH_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_1__s1(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("SH %s, %s($%d)", rt, u, 28); + return img_format("SH %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -13644,10 +13463,9 @@ static char *SH_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SH %s, %s(%s)", rt, s, rs); + return img_format("SH %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -13668,10 +13486,9 @@ static char *SH_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("SH %s, %s(%s)", rt, u, rs); + return img_format("SH %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -13692,10 +13509,9 @@ static char *SHE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SHE %s, %s(%s)", rt, s, rs); + return img_format("SHE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -13714,10 +13530,9 @@ static char *SHILO(uint64 instruction, Dis_info *info) int64 shift_value = extract_shift__se5_21_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - char *shift = IMMEDIATE(shift_value); const char *ac = AC(ac_value); - return img_format("SHILO %s, %s", ac, shift); + return img_format("SHILO %s, 0x%" PRIx64, ac, shift_value); } @@ -13761,9 +13576,8 @@ static char *SHLL_PH(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHLL.PH %s, %s, %s", rt, rs, sa); + return img_format("SHLL.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13785,9 +13599,8 @@ static char *SHLL_QB(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHLL.QB %s, %s, %s", rt, rs, sa); + return img_format("SHLL.QB %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13810,9 +13623,8 @@ static char *SHLL_S_PH(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHLL_S.PH %s, %s, %s", rt, rs, sa); + return img_format("SHLL_S.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13834,9 +13646,8 @@ static char *SHLL_S_W(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHLL_S.W %s, %s, %s", rt, rs, sa); + return img_format("SHLL_S.W %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13956,9 +13767,8 @@ static char *SHRA_PH(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHRA.PH %s, %s, %s", rt, rs, sa); + return img_format("SHRA.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13980,9 +13790,8 @@ static char *SHRA_QB(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHRA.QB %s, %s, %s", rt, rs, sa); + return img_format("SHRA.QB %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -14004,9 +13813,8 @@ static char *SHRA_R_PH(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHRA_R.PH %s, %s, %s", rt, rs, sa); + return img_format("SHRA_R.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -14028,9 +13836,8 @@ static char *SHRA_R_QB(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHRA_R.QB %s, %s, %s", rt, rs, sa); + return img_format("SHRA_R.QB %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -14052,9 +13859,8 @@ static char *SHRA_R_W(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHRA_R.W %s, %s, %s", rt, rs, sa); + return img_format("SHRA_R.W %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -14196,9 +14002,8 @@ static char *SHRL_PH(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHRL.PH %s, %s, %s", rt, rs, sa); + return img_format("SHRL.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -14220,9 +14025,8 @@ static char *SHRL_QB(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *sa = IMMEDIATE(sa_value); - return img_format("SHRL.QB %s, %s, %s", rt, rs, sa); + return img_format("SHRL.QB %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -14337,9 +14141,8 @@ static char *SIGRIE(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_18_to_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("SIGRIE %s", code); + return img_format("SIGRIE 0x%" PRIx64, code_value); } @@ -14361,9 +14164,9 @@ static char *SLL_16_(uint64 instruction, Dis_info *info) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); + uint64 shift3 = encode_shift3_from_shift(shift3_value); - return img_format("SLL %s, %s, %s", rt3, rs3, shift3); + return img_format("SLL %s, %s, 0x%" PRIx64, rt3, rs3, shift3); } @@ -14385,9 +14188,8 @@ static char *SLL_32_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("SLL %s, %s, %s", rt, rs, shift); + return img_format("SLL %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -14457,9 +14259,8 @@ static char *SLTI(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(u_value); - return img_format("SLTI %s, %s, %s", rt, rs, u); + return img_format("SLTI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -14481,9 +14282,8 @@ static char *SLTIU(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(u_value); - return img_format("SLTIU %s, %s, %s", rt, rs, u); + return img_format("SLTIU %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -14549,9 +14349,8 @@ static char *SPECIAL2(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); - char *op = IMMEDIATE(op_value); - return img_format("SPECIAL2 %s", op); + return img_format("SPECIAL2 0x%" PRIx64, op_value); } @@ -14617,9 +14416,8 @@ static char *SRA(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("SRA %s, %s, %s", rt, rs, shift); + return img_format("SRA %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -14665,9 +14463,9 @@ static char *SRL_16_(uint64 instruction, Dis_info *info) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); + uint64 shift3 = encode_shift3_from_shift(shift3_value); - return img_format("SRL %s, %s, %s", rt3, rs3, shift3); + return img_format("SRL %s, %s, 0x%" PRIx64, rt3, rs3, shift3); } @@ -14689,9 +14487,8 @@ static char *SRL_32_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *shift = IMMEDIATE(shift_value); - return img_format("SRL %s, %s, %s", rt, rs, shift); + return img_format("SRL %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -15178,10 +14975,9 @@ static char *SW_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_3_2_1_0__s2(instruction); const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - char *u = IMMEDIATE(u_value); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("SW %s, %s(%s)", rtz3, u, rs3); + return img_format("SW %s, 0x%" PRIx64 "(%s)", rtz3, u_value, rs3); } @@ -15202,10 +14998,9 @@ static char *SW_4X4_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_3_8__s2(instruction); const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - char *u = IMMEDIATE(u_value); const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); - return img_format("SW %s, %s(%s)", rtz4, u, rs4); + return img_format("SW %s, 0x%" PRIx64 "(%s)", rtz4, u_value, rs4); } @@ -15225,9 +15020,8 @@ static char *SW_GP16_(uint64 instruction, Dis_info *info) uint64 rtz3_value = extract_rtz3_9_8_7(instruction); const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - char *u = IMMEDIATE(u_value); - return img_format("SW %s, %s($%d)", rtz3, u, 28); + return img_format("SW %s, 0x%" PRIx64 "($%d)", rtz3, u_value, 28); } @@ -15247,9 +15041,8 @@ static char *SW_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_20_to_2__s2(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("SW %s, %s($%d)", rt, u, 28); + return img_format("SW %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -15270,10 +15063,9 @@ static char *SW_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SW %s, %s(%s)", rt, s, rs); + return img_format("SW %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -15293,9 +15085,8 @@ static char *SW_SP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); - return img_format("SW %s, %s($%d)", rt, u, 29); + return img_format("SW %s, 0x%" PRIx64 "($%d)", rt, u_value, 29); } @@ -15316,10 +15107,9 @@ static char *SW_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("SW %s, %s(%s)", rt, u, rs); + return img_format("SW %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -15339,9 +15129,8 @@ static char *SWC1_GP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_to_2__s2(instruction); const char *ft = FPR(ft_value); - char *u = IMMEDIATE(u_value); - return img_format("SWC1 %s, %s($%d)", ft, u, 28); + return img_format("SWC1 %s, 0x%" PRIx64 "($%d)", ft, u_value, 28); } @@ -15362,10 +15151,9 @@ static char *SWC1_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *ft = FPR(ft_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SWC1 %s, %s(%s)", ft, s, rs); + return img_format("SWC1 %s, %" PRId64 "(%s)", ft, s_value, rs); } @@ -15386,10 +15174,9 @@ static char *SWC1_U12_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); const char *ft = FPR(ft_value); - char *u = IMMEDIATE(u_value); const char *rs = GPR(rs_value); - return img_format("SWC1 %s, %s(%s)", ft, u, rs); + return img_format("SWC1 %s, 0x%" PRIx64 "(%s)", ft, u_value, rs); } @@ -15458,10 +15245,9 @@ static char *SWC2(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); char *cs = CPR(cs_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SWC2 %s, %s(%s)", cs, s, rs); + return img_format("SWC2 %s, %" PRId64 "(%s)", cs, s_value, rs); } @@ -15482,10 +15268,9 @@ static char *SWE(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SWE %s, %s(%s)", rt, s, rs); + return img_format("SWE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -15507,11 +15292,11 @@ static char *SWM(uint64 instruction, Dis_info *info) uint64 count3_value = extract_count3_14_13_12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + uint64 count3 = encode_count3_from_count(count3_value); - return img_format("SWM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("SWM %s, %" PRId64 "(%s), 0x%" PRIx64, + rt, s_value, rs, count3); } @@ -15599,9 +15384,8 @@ static char *SYNC(uint64 instruction, Dis_info *info) { uint64 stype_value = extract_stype_20_19_18_17_16(instruction); - char *stype = IMMEDIATE(stype_value); - return img_format("SYNC %s", stype); + return img_format("SYNC 0x%" PRIx64, stype_value); } @@ -15620,10 +15404,9 @@ static char *SYNCI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SYNCI %s(%s)", s, rs); + return img_format("SYNCI %" PRId64 "(%s)", s_value, rs); } @@ -15642,10 +15425,9 @@ static char *SYNCIE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("SYNCIE %s(%s)", s, rs); + return img_format("SYNCIE %" PRId64 "(%s)", s_value, rs); } @@ -15663,9 +15445,8 @@ static char *SYSCALL_16_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_1_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("SYSCALL %s", code); + return img_format("SYSCALL 0x%" PRIx64, code_value); } @@ -15681,9 +15462,8 @@ static char *SYSCALL_32_(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_17_to_0(instruction); - char *code = IMMEDIATE(code_value); - return img_format("SYSCALL %s", code); + return img_format("SYSCALL 0x%" PRIx64, code_value); } @@ -16053,11 +15833,11 @@ static char *UALDM(uint64 instruction, Dis_info *info) uint64 count3_value = extract_count3_14_13_12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + uint64 count3 = encode_count3_from_count(count3_value); - return img_format("UALDM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("UALDM %s, %" PRId64 "(%s), 0x%" PRIx64, + rt, s_value, rs, count3); } @@ -16078,10 +15858,9 @@ static char *UALH(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("UALH %s, %s(%s)", rt, s, rs); + return img_format("UALH %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -16103,11 +15882,11 @@ static char *UALWM(uint64 instruction, Dis_info *info) uint64 count3_value = extract_count3_14_13_12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + uint64 count3 = encode_count3_from_count(count3_value); - return img_format("UALWM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("UALWM %s, %" PRId64 "(%s), 0x%" PRIx64, + rt, s_value, rs, count3); } @@ -16129,11 +15908,11 @@ static char *UASDM(uint64 instruction, Dis_info *info) uint64 count3_value = extract_count3_14_13_12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + uint64 count3 = encode_count3_from_count(count3_value); - return img_format("UASDM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("UASDM %s, %" PRId64 "(%s), 0x%" PRIx64, + rt, s_value, rs, count3); } @@ -16154,10 +15933,9 @@ static char *UASH(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - return img_format("UASH %s, %s(%s)", rt, s, rs); + return img_format("UASH %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -16179,11 +15957,11 @@ static char *UASWM(uint64 instruction, Dis_info *info) uint64 count3_value = extract_count3_14_13_12(instruction); const char *rt = GPR(rt_value); - char *s = IMMEDIATE(s_value); const char *rs = GPR(rs_value); - char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + uint64 count3 = encode_count3_from_count(count3_value); - return img_format("UASWM %s, %s(%s), %s", rt, s, rs, count3); + return img_format("UASWM %s, %" PRId64 "(%s), 0x%" PRIx64, + rt, s_value, rs, count3); } @@ -16201,9 +15979,8 @@ static char *UDI(uint64 instruction, Dis_info *info) { uint64 op_value = extract_op_25_to_3(instruction); - char *op = IMMEDIATE(op_value); - return img_format("UDI %s", op); + return img_format("UDI 0x%" PRIx64, op_value); } @@ -16219,9 +15996,8 @@ static char *WAIT(uint64 instruction, Dis_info *info) { uint64 code_value = extract_code_25_24_23_22_21_20_19_18_17_16(instruction); - char *code = IMMEDIATE(code_value); - return img_format("WAIT %s", code); + return img_format("WAIT 0x%" PRIx64, code_value); } @@ -16241,9 +16017,8 @@ static char *WRDSP(uint64 instruction, Dis_info *info) uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); const char *rt = GPR(rt_value); - char *mask = IMMEDIATE(mask_value); - return img_format("WRDSP %s, %s", rt, mask); + return img_format("WRDSP %s, 0x%" PRIx64, rt, mask_value); } @@ -16333,9 +16108,8 @@ static char *XORI(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value); const char *rs = GPR(rs_value); - char *u = IMMEDIATE(u_value); - return img_format("XORI %s, %s, %s", rt, rs, u); + return img_format("XORI %s, %s, 0x%" PRIx64, rt, rs, u_value); } From patchwork Mon Sep 12 12:26:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973655 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0C624C6FA83 for ; Mon, 12 Sep 2022 12:58:30 +0000 (UTC) Received: from localhost ([::1]:44522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXj1B-0008Fj-3O for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:58:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiaq-0006iR-T3 for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:16 -0400 Received: from mail-eopbgr70093.outbound.protection.outlook.com ([40.107.7.93]:54542 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiao-0006P4-KS for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VpXdwbTuB583IpiEPttTC1LedUhg6Uw9a2lRt9S/Mm1+sNQIzSy1NVC9mBhIOfXHYETH+CYgHNDA936Ws04jQoeK+XfaV5/h6m51csIHUQ7Q3Jpjkshcyihizc9rE8xk1PV1cd7lwmDpCDUQK5v8g9S6WCYITVCWWFE9pl+rx65Cqfeq3z4UkLSz9ZcwMxk5TlsgcCrWAgeUTsJ5cm8UZoUmwVXMRVk8GylO96310QQjzdGn3HOhOkl1to1wTeDF2KTuDQD0yPFQWktMUJgyLmnXzoiQbuBrlKsULycL/CEw4DqfQ9YEzm0cVTELCnMj2iRvls0kyMeEps0RuXQViA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4dJa2Wlt+woJH/b2PK5qmH7Z8sywAkPUf1BDy3gafKk=; b=NWsxNICQn6iOt3sTBPRwqNx/50TJ9+RaLgRSrFNrM5h6wyyxRU/TAPtXnK90Xt1XRLvAXVBPJkcUEuqYyzyV1Hp0zEvXC+hNrW95yex89i66hPnnsonRxKnrqpbTYb5PDBMUdeRbC+p/m7Ny7KfF2MSSS+oOh3E7H2MvxWg3VUTa1S8Ovx/IVz6L6M1ARJiEFd6oHWxzmkHCHzN11xpG7+1wTiXUlQlQkyUjip7j2776PzBYtSNM1lwGds1NxNKoKJ5kRMMlnR5j1xu5x9GSOJCnomUwmZampaw48GVZC5F0R89dpE+TMwGtOMAc3lQ+1Ai/wH+H8mc35/fuO1mB3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4dJa2Wlt+woJH/b2PK5qmH7Z8sywAkPUf1BDy3gafKk=; b=Mn9W24pt9ozeyYMlUWl5VY2+EZRI1g7RRDeTQp2/eIqTjl3NNOBVeK+ljoefIrsFMu6J9hsDomN+55LuLNhX0OqA+12HC45pLy/YzTAVZ6rLN/v9ar8chsQmE0bDcMccTHkFEgLJUTWcQsWkjO0uzQ3G2HA5aI7f3oEdrOBofeg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by DB4PR03MB9481.eurprd03.prod.outlook.com (2603:10a6:10:3f7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:31:10 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:31:10 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 17/24] disas/nanomips: Remove CPR function Date: Mon, 12 Sep 2022 14:26:28 +0200 Message-Id: <20220912122635.74032-18-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|DB4PR03MB9481:EE_ X-MS-Office365-Filtering-Correlation-Id: cd93a2ac-0d6d-4d62-8b62-08da94baac35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LkjvnkaUvErCQTKh9hwQqByVWnim8fL7iy66rAd7yFFduHaN8/6Fwm0cteSQhVBCM1cDRmqi+mNfdBCb+aQh+mKjXg/PIlkStbTTVtb+YvfBQzE7W4Ej1bMdUBlv+qGXVTE/MKWy/lsoMzdBdlirJKuZL1P3XhyQytr/48+MAYyOAMmqq3kevHnenefPFInexopLCBTxpzUK4YrCH95bpHte/t5SFVFp+USgBseR6l3hNF2Ccvi95M2OMOvtsDi7GfkUkFeE9cq1Xg7zqlo/42u6Et5+hCd4xxz+P/kAQn9YzTD2AS5O8XU2GXWbixgdetnXz/MdmESicxqFaOgI29FYxkH0CBtyrU48JF6gdMVOlnqYZme4KJmTDf2dRIYdoBYbcqBtzzUGCV2c7PH/a7mpKDAs1+LQV/RLREZusCNjNvC750O2KNnN+BAZ7hWdxLE8Jm42G5YLnTBuyC6mvLutSy/p8SZvbT/gU8dHF/d9EY5xsvfYM9l99log8GU5iWepxSxNzpIPKwXX/T4tqeh7D/mTq9fzgVwf9LvGQFT83m5tXe1WsI9kqhyRk1v21FmvP/uSF6OAbmVzZcKgPhPmH/EbLPd84yGcOf/tGrsQaU2gunarRMHpmqTGYlh3LMLCiIwTQOZkOF9d4Z2tqt1SKNUB55W7kgVqv5nN339SZ4CxmY9uCrjtZ/WIJJCO4ECsWFKFA7kOBq8Q0rvhQpw/rh8psCr+trkBziOoAL3tObRVtcPHXAd++P6NokKc X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(39830400003)(376002)(346002)(366004)(396003)(38100700002)(26005)(36756003)(6512007)(41300700001)(83380400001)(107886003)(6666004)(2906002)(52116002)(8936002)(2616005)(44832011)(1076003)(186003)(6506007)(30864003)(5660300002)(86362001)(66556008)(66946007)(66476007)(8676002)(6486002)(4326008)(38350700002)(6916009)(316002)(478600001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DsXaCcKU+/rZdJzDMvYNn0R9YQkRUuiyRjkJ4zwabtYu6ZH3U4AB0arM1CK2QGkm4i6sDKwGjux2LyuH7FQ+R0GwLwrmk/pj3FiPPJQpGSTSeocWGg2Lt4QJlAmlH7zYc6a0XKkHe9b/saPsY+wx1L0q7UQ+6WpVORbBA8X+WLd8ofrq6hXh9x02vSfQJ2QpIPtZ3XonPep3sgybPh/sg7mWNaU9QYhXXUx2+96Q9JZ9x2hRPirUR91PPwKvNnPpwFWVECoAA05/YDM7haPCZhcA5Rhc/ac8Hnm7/VXpqpe96AVoKnz74QavMxX8n6c+JVivPOobY7o56VNMfMy9qnkQnnPI1gwKLPD67DhlReGs6oHY6MO6lybVx25eh0Z1Ob+Lj76yKRHu/IZ2+ab7J3pRVRTgY/fka35FFkzenvUAvDP1Q/XZBTeTKM4XIAGdeELst1IQhtJFu5FiVImN54XiSbarBJdot9FK/gYmZhtSbzhbMHoU8W9gi0iSJbIAVMuVWdlue1t2AogkM7gGZfdyBDChHCAAiM+mSwy4ZMjjIaAd8DF9VonZpVTKHyYh5/TS7iuSLelkvgzJeSxevz+ADbO5WA+d0NfWXg+51oVEixQKMEi3No0ESMv/gAbiBVPGnvqqpq4RHELBKp6dP+slmhsQGqWq6W3jTsKk/rNqfsk8tKisiUo+W00xyiygNS6QfBt5SrfDUUe6gMjBvXACQgtTn2/DYVTfBhVr16zBCzebQ2pSIexR18bWMIBrMZPIpea9EJXYxZMkblUb/Z0bSacQSs0hWFfWilG3EggWPxZKUJd6UmjpSX8jZWyoKpSGNZm3v9O3yaayS3y+/WNVIUK1bm7siIdE2a50JbgYPQJo+5wjKREWKesfzE2VvVSnTsfAgjL4ZZ8Gjq5NqMTRSuMSqNuR1hoJI4ZVDyVeTkHqfMI9AIfjwNFZZNavawG4B4CjN81On2Yln58IQWtuf8ij3ndMAMDm7vkkN28IN6AlYCJ4aNpsUUG54YpHD0UQx3HIf1quHOmYV7lbS7cR2kR9yBu+dPCosqcA5RmKe3Ir5DVQqa0ZcZ2YrkvNP2RLXYZ8GyOB6a1QgSmxSlSaOqOyHLGFn2ivPFfK2xxjPeH1yj3Ad8EwP/UWxTtzl/U+3PWmk4aB/99md22TVam5QHtIars7R5ZmJTOi1DbWwr/NPHDImTMTB5ni3OCkKhe18kddO96T4qVDkofJVV+dOhBGbFLXliyBSmIZro7hQuUxWktXRComnH5U2VuI3NyZEmusXdDm4XwjkkyfT4BCaMVXsbyVC29my0mPIGRuTYkLtGR14VKmuFtK+I8befTiaRqH/EEwazloFbjQfeUJXgKm2tOZJ1O6HIHhKO+obKNL+TBzY+99XJGKfwYj3RD/PEeklx76fb4vZsPfeTCMqK8kS7cNiEjlWqMmNChYbEX4h3npp8qRzfKcyi7WGgrw0ypqQk/tPOiBc6an/AC8JL4HvpiIScQuObIC2hi0izDejFje7Q0wpf2q5SYpiumrKNbj3ffd8pmP9PPQOb7FLkG0G3dz8VCMoSJUXsZ1lKPF4TvjhptDLiQ06aujzwi/WqNRQIu2BQGIaqYFUQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd93a2ac-0d6d-4d62-8b62-08da94baac35 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:31:10.2239 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kKRRvxUVUfEQi2CY65axOO10YLeMNnc6kucQQ5Zt3TCVR8Hqd3FUbsYB2LCJ/ZWUkrOkuYaRnep4KZ0AikzZ78gv08qwHXYQRx2DkotQdS0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9481 Received-SPF: pass client-ip=40.107.7.93; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" CPR functions has been removed. Before this patch, we'd been calling img_format twice, the first time through the CPR function to get an appropriate string and the second time to print that formatted string. There's no more need for that. Therefore, calls to CPR are removed, and now we're directly printing "CP" and integer value instead. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 110 +++++++++++++++++++-------------------------- 1 file changed, 45 insertions(+), 65 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 441204bb84..e269f853e6 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -519,13 +519,6 @@ static const char *AC(uint64 reg) } -static char *CPR(uint64 reg) -{ - /* needs more work */ - return img_format("CP%" PRIu64, reg); -} - - static char *ADDRESS(uint64 value, int instruction_size, Dis_info *info) { /* token for string replace */ @@ -2774,10 +2767,9 @@ static char *BC2EQZC(uint64 instruction, Dis_info *info) uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - char *ct = CPR(ct_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BC2EQZC %s, %s", ct, s); + return img_format("BC2EQZC CP%" PRIu64 ", %s", ct_value, s); } @@ -2796,10 +2788,9 @@ static char *BC2NEZC(uint64 instruction, Dis_info *info) uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - char *ct = CPR(ct_value); char *s = ADDRESS(s_value, 4, info); - return img_format("BC2NEZC %s, %s", ct, s); + return img_format("BC2NEZC CP%" PRIu64 ", %s", ct_value, s); } @@ -3403,9 +3394,8 @@ static char *CFC1(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("CFC1 %s, %s", rt, cs); + return img_format("CFC1 %s, CP%" PRIu64, rt, cs_value); } @@ -3425,9 +3415,8 @@ static char *CFC2(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("CFC2 %s, %s", rt, cs); + return img_format("CFC2 %s, CP%" PRIu64, rt, cs_value); } @@ -4889,9 +4878,8 @@ static char *CTC1(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("CTC1 %s, %s", rt, cs); + return img_format("CTC1 %s, CP%" PRIu64, rt, cs_value); } @@ -4911,9 +4899,8 @@ static char *CTC2(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("CTC2 %s, %s", rt, cs); + return img_format("CTC2 %s, CP%" PRIu64, rt, cs_value); } @@ -5745,9 +5732,9 @@ static char *DMFC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("DMFC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("DMFC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -5789,9 +5776,8 @@ static char *DMFC2(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("DMFC2 %s, %s", rt, cs); + return img_format("DMFC2 %s, CP%" PRIu64, rt, cs_value); } @@ -5812,9 +5798,9 @@ static char *DMFGC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("DMFGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("DMFGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -5883,9 +5869,9 @@ static char *DMTC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("DMTC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("DMTC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -5927,9 +5913,8 @@ static char *DMTC2(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("DMTC2 %s, %s", rt, cs); + return img_format("DMTC2 %s, CP%" PRIu64, rt, cs_value); } @@ -5950,9 +5935,9 @@ static char *DMTGC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("DMTGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("DMTGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -8148,10 +8133,10 @@ static char *LDC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *ct = CPR(ct_value); const char *rs = GPR(rs_value); - return img_format("LDC2 %s, %" PRId64 "(%s)", ct, s_value, rs); + return img_format("LDC2 CP%" PRIu64 ", %" PRId64 "(%s)", + ct_value, s_value, rs); } @@ -9089,10 +9074,10 @@ static char *LWC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *ct = CPR(ct_value); const char *rs = GPR(rs_value); - return img_format("LWC2 %s, %" PRId64 "(%s)", ct, s_value, rs); + return img_format("LWC2 CP%" PRIu64 ", %" PRId64 "(%s)", + ct_value, s_value, rs); } @@ -9665,9 +9650,9 @@ static char *MFC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("MFC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("MFC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -9709,9 +9694,8 @@ static char *MFC2(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("MFC2 %s, %s", rt, cs); + return img_format("MFC2 %s, CP%" PRIu64, rt, cs_value); } @@ -9732,9 +9716,9 @@ static char *MFGC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("MFGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("MFGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -9755,9 +9739,9 @@ static char *MFHC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("MFHC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("MFHC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -9799,9 +9783,8 @@ static char *MFHC2(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("MFHC2 %s, %s", rt, cs); + return img_format("MFHC2 %s, CP%" PRIu64, rt, cs_value); } @@ -9822,9 +9805,9 @@ static char *MFHGC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("MFHGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("MFHGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -10391,9 +10374,9 @@ static char *MTC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("MTC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("MTC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -10435,9 +10418,8 @@ static char *MTC2(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("MTC2 %s, %s", rt, cs); + return img_format("MTC2 %s, CP%" PRIu64, rt, cs_value); } @@ -10458,9 +10440,9 @@ static char *MTGC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("MTGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("MTGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -10481,9 +10463,9 @@ static char *MTHC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("MTHC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("MTHC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -10525,9 +10507,8 @@ static char *MTHC2(uint64 instruction, Dis_info *info) uint64 cs_value = extract_cs_20_19_18_17_16(instruction); const char *rt = GPR(rt_value); - char *cs = CPR(cs_value); - return img_format("MTHC2 %s, %s", rt, cs); + return img_format("MTHC2 %s, CP%" PRIu64, rt, cs_value); } @@ -10548,9 +10529,9 @@ static char *MTHGC0(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); const char *rt = GPR(rt_value); - char *c0s = CPR(c0s_value); - return img_format("MTHGC0 %s, %s, 0x%" PRIx64, rt, c0s, sel_value); + return img_format("MTHGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, c0s_value, sel_value); } @@ -12021,9 +12002,9 @@ static char *RDHWR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_13_12_11(instruction); const char *rt = GPR(rt_value); - char *hs = CPR(hs_value); - return img_format("RDHWR %s, %s, 0x%" PRIx64, rt, hs, sel_value); + return img_format("RDHWR %s, CP%" PRIu64 ", 0x%" PRIx64, + rt, hs_value, sel_value); } @@ -13089,10 +13070,9 @@ static char *SDC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *cs = CPR(cs_value); const char *rs = GPR(rs_value); - return img_format("SDC2 %s, %s(%s)", cs, s_value, rs); + return img_format("SDC2 CP%" PRIu64 ", %s(%s)", cs_value, s_value, rs); } @@ -15244,10 +15224,10 @@ static char *SWC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - char *cs = CPR(cs_value); const char *rs = GPR(rs_value); - return img_format("SWC2 %s, %" PRId64 "(%s)", cs, s_value, rs); + return img_format("SWC2 CP%" PRIu64 ", %" PRId64 "(%s)", + cs_value, s_value, rs); } From patchwork Mon Sep 12 12:26:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973635 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 51474ECAAD5 for ; Mon, 12 Sep 2022 12:52:01 +0000 (UTC) Received: from localhost ([::1]:48548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXiuu-0000rt-6p for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:52:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiax-0006nq-KJ for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:27 -0400 Received: from mail-eopbgr70130.outbound.protection.outlook.com ([40.107.7.130]:60486 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiav-0006Rh-1y for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lsX+NMw/CVHyosT5XmYzmd7Oa6f44uF+MAqhrcjLw8ALvUcHfwztluiBnYF9cprPZZraUiZSWzm5AJO4upmmnQPchI4AHAcVl0Z3wwh4WyDSGf1RT6F6vCxDit8FA00xsa1UtBguw/zuVFx5iBbMmIWhcjSn5TtsQyT0prgxf6ciSsxz9wxrw88XuzHz7H9ryTOdbFbNCAi1RNHheH/WkWBVYGbQU7YGqYlIxJT4DDLJNOFiTwyASkMfE8/j0yKoS5+jGsSjI34VsSkP1itJT5FmWoqyw11ZsCpntkXG9cW4cx6yTeCm5Y5AMMDbGw8m+JJHkNC+3/c99eArStA/AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i+JhZElbfZS799djYrCwHoZznXSD4o1pAG+XKnM+gR4=; b=LFOU8fuuQUkE09nL9M2mr0crC7sPdPS3ryx9eBaGwfmEkZ12bm5s8JGMpCm1SCSuZIXmYNhAQtn9CbrwuVDIwhOIWwUo8sjEUTndO8o7UhdIPkiX8C4JI/2G+XNlEMzGe47ixUaxZLcvmWD2gHtgZ51N4MVwUJ6YCka1X/D/SMKN+rbY1m5+0eggL92t5PxlLr01KL23rKyjTi7K680gdF4d3C8SwmObsK4bQVSAbgWbFZECP3dXp+9qxnMSVw71j7vA+K3Z+9LjB9rwDLXKxGn1Tv+FtdsfKg4phZRMagIwmpfftXBtn/S3QBDFytyT3sMIL7C0mZwl6OgPSqBpiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i+JhZElbfZS799djYrCwHoZznXSD4o1pAG+XKnM+gR4=; b=jM3o8hn1suad1EsPKIkYLzyvM6aLqooJ6BEmRJmEQv0VkztoPcqM4n9d5bEiZ2RN/kn85GEDH3IUYQRegksOVLU8m7ad6yRUzjRNUpFZ1SgKfVfSz3H436hha17DK/iY4XV0Htcx24QrKNhazvBt+Lx57Q2HDL4YWhQy4Jnob4c= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by DB4PR03MB9481.eurprd03.prod.outlook.com (2603:10a6:10:3f7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:31:17 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:31:17 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 18/24] disas/nanomips: Prevent memory leaking Date: Mon, 12 Sep 2022 14:26:29 +0200 Message-Id: <20220912122635.74032-19-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|DB4PR03MB9481:EE_ X-MS-Office365-Filtering-Correlation-Id: cfdc4acb-bd99-4bc5-455b-08da94bab091 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C6kGwq12xOy0fmVWTPmWBDjnfkGLRNx47STF8iyFbzy4Mgjv/Pvg3hy+FF/VCSvLml1NxiMHT0mjJ7EVNKYDJiWYhsbb924ESdcChNUNALxbyTb7E50IZewjM7JKzia5Qcowzk5znAXy1vG+56fxm88GEZ1oMLUzzZmUGfY9IDBrp2DNUCsaMo02LScYTrn7D8OZZ25UlgJzJqPFRncvcWQKuIA4TGOhglGo/PKLdK4Q7txHEm5ioDAQpk9hViRQXRThHXgnDxHpHciOgQnXP20DvPXvppBeo63sdyTKUAXiPLRVcJUWcCOy4Y87tXvJzm+mOwS5Ks5IcPLUEfkJ8xRtGGIyItc+nKuP6tZJhWNs1H9ns2wjveZrnyQYDTpx7yhgczIajyik/s9cZgFhWnqIWUWbEsDtWvvjKKalj6CiK8sWuQEIXLvIb3XP2cSgqEMWlxcWQc1W9/wVNWXUieCswn6ns2UWD3iVgHtB5QZ637DoF/HXc4ui233mitTw0Famxs8jygGBoE4+7pk05IGLSKg99fOhWeY3AAbF8mJMSocESWexvqeWclkTYGIm3BIkeNZEKLiGYK+CQoEr5t/lK5pgMh8Q1gLnE4Su1KQKWFpX1Fu4Bz9BjT0vrlc4mNf/ADNdro+0SAZKCaenw3WBxfVXPIaOFbklanxGp/TGseW5c7sJj2qo2hPdcsQEd3tMQm7EhmzjISczeolfz3u8XFErQ0VUp3CKleR7oyQlHd4nci/NqCgi8fwi3rzw X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(39830400003)(376002)(346002)(366004)(396003)(38100700002)(26005)(36756003)(6512007)(41300700001)(83380400001)(107886003)(6666004)(2906002)(52116002)(8936002)(2616005)(44832011)(1076003)(186003)(6506007)(30864003)(5660300002)(86362001)(66556008)(66946007)(66476007)(8676002)(6486002)(4326008)(38350700002)(6916009)(316002)(478600001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: c21caZCq8oXk4aYSssLyk9s2UqVzTxfYnzgdBd7C/FqB2YSDuK8jRAXGv9ipRW14vj1KDYSQZTSUhRZ+lQmU/0ozilP2m9rOOwyrXnAPW8KCCVJB3LQ+IQgBjPRL5SNkXc1LHvggEYeVVoUkN4PWNNpJD2LdpS4lESKPrwHw7SofZETqRNpOlE2U+y3sHRAfunJe/fL/GpOmYCSEJlrUixEfHl7uE1UKxUeoP1KPTvYrAn+tlps/047UwUj3L896wpdCdZbzwiZHaXDEnAOnfFOHAZxZd8GOkAGXIjbPDFhAeBbHhM30zqojAcGt4qBbySn5uqbzEli0NsXw9bcr/Kvht2EuOFeHTyfasFl9JIUW20izrLDyL6A+2+vEGwtnLgofEunGofBad2VLFt6EaDiW7NtIRA3rCQfnRpAMgNPppCUHAnhl3fuN8cb3iINhI4mULXpEhIjIOREiJOyZYj2pbkWRT+yGvKdooUzYrps1XaWAiy5Bn8MVJovuObsepiPTkPwkGL47SaC8FCqHy41nyQE5NpYsbCM08VQDpeulXT5GkNGKzQZFGxxJDtKijrK07Bi5G6oYUdnfE4dIqvadYEQRa9y46ZJXtv9/gdiV7s1Jiw9wmAwAqmHhvy4h5sgoAcnZ/Jh/G16XBtz/p7RgLfn/zUbkcP1G35QvmTo2pQpU59NXX1atOH3wXV04rcilFJrpu3Ny6FfW4MT+5gfR67CBUwd3nDX7uLm5BYCWi2Vfj9BoaMoFxwgMq5Z99vyQbz3N965uHrhU/hxw9T5QsCp8aD2dESmR80/FJ79tODI7mFsVWX8RMYw9ZbXHUhqFp3WfnpMLz2e3bwSjMfR5VWtxpi7B0HFJfTsIfvyq95krZwrUJiIgArovw/H77Mon4KXJWYc0CoMBebtEuA8FNBios+BEcHiS3oE6qdEOm+Ne+nCyKE9hLnoIKpz5eJ9ht8b9OhWcAS5If8dvrlcu5NbZVHN93zprPSRMflsrIsR19yVTRnc73fusaPcjfbQ/mSdnNj2lfj2YF24PtONaHZtc5tQrSXmdIujDgM+uouoYX7pnizucc0XGBUQVyqN7xpP0lK2wsbPY3TeoaJASbAgv47y6M9DnXV3JtPrtUJUPxcOs6pPF9gnNQYCZrftMZDw9NPNhMm7BzX+zdn+U0+MVfHRFoIcbvaDPYToZr0ZFsBqrKQwxJjafNZyAzWGh1os5pyMgxIj5L6uCaefwbYjdSvPYyuaQ3miFSWoy6EWxikKvJy8POyuTlnDmxt/ZwzzMFqSkDL9+L4zHBcLRCBMcalTePA++D1EF4Gs4TxRVVarKyNzB9bjK5R2oHGdg0WiF+yeigJSXw5R38bNRYVXWBlYmIfIWGNprf7fvJE8ElY+Cq+KEd0yqToi24AOb917mNclgg2r4DX1zwOnYcJYWcMJJOPmQ7dpt3lSVr7XsJQITcqo+bMPEzBL3HRjdjn7S5JNAJZR6nZMYjPSKpg1kB1Kh3aByyFwilHgdeCpYKXaXI6G15nZLDyDWE+kchFneZgnKKyhXkX0RbUc+ZcQNBSc11KZnNrTyMDcxK5WSLRK0KflMR3/CNJQ6JoiMds643tdTtgW1Xxb9mw== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfdc4acb-bd99-4bc5-455b-08da94bab091 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:31:17.5047 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GEuOy6nG3scGC63oknXgZ6DFmefCBtNNzDHdjQ2ZYydPuWzLSmQYYAYNeP/CZSmN/OkuuUVEaIUMaugN2p9y9eFa09n4Rw+gI9KySMdq3dA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9481 Received-SPF: pass client-ip=40.107.7.130; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" g_autofree attribute is added for every dynamically allocated string to prevent memory leaking. The implementation of the several functions that work with dynamically allocated strings is slightly changed so we can add those attributes. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 96 ++++++++++++++++++++++++---------------------- 1 file changed, 51 insertions(+), 45 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index e269f853e6..52b3708f75 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -1937,7 +1937,7 @@ static char *ADDIUPC_32_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("ADDIUPC %s, %s", rt, s); } @@ -1959,7 +1959,7 @@ static char *ADDIUPC_48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 6, info); + g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2417,7 +2417,7 @@ static char *ALUIPC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); } @@ -2574,7 +2574,7 @@ static char *BALC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); - char *s = ADDRESS(s_value, 2, info); + g_autofree char *s = ADDRESS(s_value, 2, info); return img_format("BALC %s", s); } @@ -2594,7 +2594,7 @@ static char *BALC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BALC %s", s); } @@ -2639,7 +2639,7 @@ static char *BBEQZC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BBEQZC %s, 0x%" PRIx64 ", %s", rt, bit_value, s); } @@ -2662,7 +2662,7 @@ static char *BBNEZC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BBNEZC %s, 0x%" PRIx64 ", %s", rt, bit_value, s); } @@ -2682,7 +2682,7 @@ static char *BC_16_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); - char *s = ADDRESS(s_value, 2, info); + g_autofree char *s = ADDRESS(s_value, 2, info); return img_format("BC %s", s); } @@ -2702,7 +2702,7 @@ static char *BC_32_(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BC %s", s); } @@ -2724,7 +2724,7 @@ static char *BC1EQZC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); const char *ft = FPR(ft_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BC1EQZC %s, %s", ft, s); } @@ -2746,7 +2746,7 @@ static char *BC1NEZC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); const char *ft = FPR(ft_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BC1NEZC %s, %s", ft, s); } @@ -2767,7 +2767,7 @@ static char *BC2EQZC(uint64 instruction, Dis_info *info) uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BC2EQZC CP%" PRIu64 ", %s", ct_value, s); } @@ -2788,7 +2788,7 @@ static char *BC2NEZC(uint64 instruction, Dis_info *info) uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BC2NEZC CP%" PRIu64 ", %s", ct_value, s); } @@ -2812,7 +2812,7 @@ static char *BEQC_16_(uint64 instruction, Dis_info *info) const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = ADDRESS(u_value, 2, info); + g_autofree char *u = ADDRESS(u_value, 2, info); return img_format("BEQC %s, %s, %s", rs3, rt3, u); } @@ -2836,7 +2836,7 @@ static char *BEQC_32_(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BEQC %s, %s, %s", rs, rt, s); } @@ -2859,7 +2859,7 @@ static char *BEQIC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BEQIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -2881,7 +2881,7 @@ static char *BEQZC_16_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *s = ADDRESS(s_value, 2, info); + g_autofree char *s = ADDRESS(s_value, 2, info); return img_format("BEQZC %s, %s", rt3, s); } @@ -2905,7 +2905,7 @@ static char *BGEC(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BGEC %s, %s, %s", rs, rt, s); } @@ -2928,7 +2928,7 @@ static char *BGEIC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BGEIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -2951,7 +2951,7 @@ static char *BGEIUC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BGEIUC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -2975,7 +2975,7 @@ static char *BGEUC(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BGEUC %s, %s, %s", rs, rt, s); } @@ -2999,7 +2999,7 @@ static char *BLTC(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BLTC %s, %s, %s", rs, rt, s); } @@ -3022,7 +3022,7 @@ static char *BLTIC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BLTIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -3045,7 +3045,7 @@ static char *BLTIUC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BLTIUC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -3069,7 +3069,7 @@ static char *BLTUC(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BLTUC %s, %s, %s", rs, rt, s); } @@ -3093,7 +3093,7 @@ static char *BNEC_16_(uint64 instruction, Dis_info *info) const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *u = ADDRESS(u_value, 2, info); + g_autofree char *u = ADDRESS(u_value, 2, info); return img_format("BNEC %s, %s, %s", rs3, rt3, u); } @@ -3117,7 +3117,7 @@ static char *BNEC_32_(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BNEC %s, %s, %s", rs, rt, s); } @@ -3140,7 +3140,7 @@ static char *BNEIC(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BNEIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); } @@ -3162,7 +3162,7 @@ static char *BNEZC_16_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - char *s = ADDRESS(s_value, 2, info); + g_autofree char *s = ADDRESS(s_value, 2, info); return img_format("BNEZC %s, %s", rt3, s); } @@ -3182,7 +3182,7 @@ static char *BPOSGE32C(uint64 instruction, Dis_info *info) { int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BPOSGE32C %s", s); } @@ -8182,7 +8182,7 @@ static char *LDPC_48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 6, info); + g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("LDPC %s, %s", rt, s); } @@ -9146,7 +9146,7 @@ static char *LWPC_48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 6, info); + g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("LWPC %s, %s", rt, s); } @@ -10131,7 +10131,7 @@ static char *MOVE_BALC(uint64 instruction, Dis_info *info) const char *rd1 = GPR(decode_gpr_gpr1(rd1_value)); const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - char *s = ADDRESS(s_value, 4, info); + g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); } @@ -12176,8 +12176,9 @@ static char *RESTORE_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - return img_format("RESTORE 0x%" PRIx64 "%s", u_value, - save_restore_list(rt_value, count_value, gp_value)); + g_autofree char *save_restore_str = save_restore_list( + rt_value, count_value, gp_value); + return img_format("RESTORE 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -12197,8 +12198,9 @@ static char *RESTORE_JRC_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - return img_format("RESTORE.JRC 0x%" PRIx64 "%s", u_value, - save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); + g_autofree char *save_restore_str = save_restore_list( + encode_rt1_from_rt(rt1_value), count_value, 0); + return img_format("RESTORE.JRC 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -12219,8 +12221,10 @@ static char *RESTORE_JRC_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); + g_autofree char *save_restore_str = save_restore_list( + rt_value, count_value, gp_value); return img_format("RESTORE.JRC 0x%" PRIx64 "%s", u_value, - save_restore_list(rt_value, count_value, gp_value)); + save_restore_str); } @@ -12509,8 +12513,9 @@ static char *SAVE_16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - return img_format("SAVE 0x%" PRIx64 "%s", u_value, - save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); + g_autofree char *save_restore_str = save_restore_list( + encode_rt1_from_rt(rt1_value), count_value, 0); + return img_format("SAVE 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -12531,8 +12536,9 @@ static char *SAVE_32_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - return img_format("SAVE 0x%" PRIx64 "%s", u_value, - save_restore_list(rt_value, count_value, gp_value)); + g_autofree char *save_restore_str = save_restore_list( + rt_value, count_value, gp_value); + return img_format("SAVE 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -13117,7 +13123,7 @@ static char *SDPC_48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 6, info); + g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("SDPC %s, %s", rt, s); } @@ -15296,7 +15302,7 @@ static char *SWPC_48_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); const char *rt = GPR(rt_value); - char *s = ADDRESS(s_value, 6, info); + g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("SWPC %s, %s", rt, s); } @@ -21935,7 +21941,7 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) int status; bfd_byte buffer[2]; uint16_t insn1 = 0, insn2 = 0, insn3 = 0; - char *buf = NULL; + g_autofree char *buf = NULL; info->bytes_per_chunk = 2; info->display_endian = info->endian; From patchwork Mon Sep 12 12:26:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5944CC6FA83 for ; Mon, 12 Sep 2022 13:17:35 +0000 (UTC) Received: from localhost ([::1]:49186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXjJd-0008M2-UX for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 09:17:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXibG-0006q5-QL for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:43 -0400 Received: from mail-eopbgr60115.outbound.protection.outlook.com ([40.107.6.115]:19286 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXibB-0006SV-Ls for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:31:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WlXiwI9mH9eAi1uY/8MrSBHR1EMvHqk90HM31HBBYYeK4ECuWKOrU+RVcssaVszjLwCdmte5ML/JJy+vZPb+jCjyYeU6gZkYIB5y0yR+JihjvXde5HjAvc9yGJPI6F6JJx0E5KUgUgrSgpVIjWWiEGt1TNq1ZPNg+19JB8THUDfKkSJuYgCrtZgF55ca3r86IIh+ukeGFxFyY6/p5CqZRVeVkTEKD6A0LIIgc9Wvlof5Q3+DGZW/7DXRKklurZYT18bA0tYn1SFbOFlgnqXVYMSVTQW/feMIKuEX6Egi8mH+UL3JCs94LrOdVCjE/lQsDH/bY4Sb8X4sVrir3+dukA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tYGgq0NzzMMmLCn8KTLaYXKHM+x2p5yiqka+roGDzdc=; b=VmFgygyYMrUHrRsLgQ/b73SdpH4LvwG4oUtHFm5saOjXszoU0Dgl/OKymky+346n3Vho8/6phiRJtfcgwm9mMCJEZTtPDuCek2uFU4Azw1nDuqtG6VybBdk9ctehEm99W+Q+m6OeCFrSowLJzMMvNe4LGoSP/WoLT++xanQvWLoKfDCm/mthZycUqChGmNGXa47PJqE1LUGC5NPjFbB18vAptcMcctSwNz5MrMTqXOU27sotezt/+l3sYsNr+GFPPJ2XmKTGZJMcZ70OHdGgtFO+zVkJpp4JjA1nEAMv/tMWYcPS9rAcvOaw4Mr8ETw52m5gZwhsetbd0Bx0130+dw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tYGgq0NzzMMmLCn8KTLaYXKHM+x2p5yiqka+roGDzdc=; b=Q6GwpEnjUf3uBBjkGmlwt3Da/3ZywElbMguHvHW0iNswx1na2D03P3z2U418WPH0WPlEbiXMiEVFOVfRTchC0kEYaE6CisFXcbM27VDT7tM+f+TyPSBsEdizMr+SxWznI/R6yEfPQLNnbaY8u5IwLcMwAbVuecP7+5qE2+DPPKU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by DB4PR03MB9481.eurprd03.prod.outlook.com (2603:10a6:10:3f7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:31:32 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:31:32 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 19/24] disas/nanomips: Remove function overloading Date: Mon, 12 Sep 2022 14:26:30 +0200 Message-Id: <20220912122635.74032-20-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|DB4PR03MB9481:EE_ X-MS-Office365-Filtering-Correlation-Id: 136e9a31-6252-48e9-15c6-08da94bab9a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RAd9K6c7DB755Qtb7qW51RI1SHv48JvoU4ttAMfMCpP+XfsrXQKq8h6YPTPprEcNso0BFA4E4ZbXRVA8g8w70/+xE67dlcmv7j4CzDf9V8w26DSmr9U1eWl6DlKRJcJD2VbHyFLbytRZPA6IkvF0f3Z66PK8KHQVj6o6ZEU/kvY5any9SqNLugtHq83qHrDFHQwoZ31faykskOsK1WBx5C+BW00/Wb32pawdrEq6FR3DmaoI3CUMitFFdvRXJr2hF8PRGyVf/v8Ee++YyQPAmgU4Zz98DER9b2JzpKW0UgOIksO7logUsiwIbRCXOgNWg7/Fu3g7Ndu5oIS+9NpgM/Vg9znPi4Fdjboo9E3ioVihnhMsgLvXJCgaUNuOiFds2uPQSrdSi3+pZYeRvd8GTQK6+g5ut+qgmo7NINvs5tp3HL7ccbMQToBsXx8N4hBcsDICSdXJKcS1GxtHeKc47y5wZDT7fTFBVs59Z9Aibg36qEbYs0BZvTO2HWNcJZaAf1HzY6Cqpj+dI8wilOOa13hUVcvw83pkfSWyA+vXhXG9oHzOR91p7FjCkmmXh4U4TWWGFvnOXZxpyQB72jv32V+t4K4+1Ok9fI5nkjYyIxswFWKCdyXgPIDZwXS1ridQTvYxF+/1EuJevDDcBjYe3oYQE+HCtZUS6HNSxYIGM9tB7Y5AcjU9aC3np8If1KNscji3Ar7EVq5LXjehGIsD8srbuanW4ve08gFV59e6MoZfyNuJU3LH7Okom16vzHi0 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(39830400003)(376002)(346002)(366004)(396003)(4744005)(38100700002)(26005)(36756003)(6512007)(41300700001)(83380400001)(107886003)(2906002)(52116002)(8936002)(2616005)(44832011)(1076003)(186003)(6506007)(5660300002)(86362001)(66556008)(66946007)(66476007)(8676002)(6486002)(4326008)(38350700002)(6916009)(316002)(478600001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: g/DKyDMyMicIFCMJ3IVa4sqvP2frmcihshT1aZYDQU0W730GhDJhMfVQFflnI0/7BPtsp22s8CiYiisXe0Rf7CvKSbh0ySwIDmxQXVln5x7/Y22qVHJ1tbST0ExuduAiMCut3HGHKiq4W1aR8dIGn0np2HHsSfvCYQsvuaFSD5JvBGpVdQ9H5kjImJU7RXRPIXfZh1EHaTpUfhUTNWfHf1zOkZ9y5gOg5zfzne1qkYqH876F1KZYS+nmTqjE/C2XM03L0QplfBNclcl/Yr8BW133jXYZu5ylYE/eoOrwAB4lr9ZyGujCjMt3Qv88ED4atkgIQAd4P6QMasU6L0krkFdJHCIAgDof+mgo2o37QoBKciDl9Y8AeSwsHWCeVdxX6wU+U/p50a+iNjLbFNJiUtS4sc06pNIRtrO0/El/nnc4dRJwGFZwEDEBjtSTd7HZXNV6hu9Lv0AchWRR/KRMQRftaA38Epe+38Dre2M9H9UKVPl8MwCmjVniDhWhKgwvVqLUNHrmfLVJJgi7SiGNG5M7XnEpHcQK3b0+At2DguVpwuI6pB0zlEU2mqGT/jOnBAL7GF7yqF5eD0SWTM0JmthZoCfapVwgkjj3+KBxUpjuzfVrGBM1fTJM8PjoA+ZbMXpDaxgwiabVR02+wlOuwFgjoIfERkCtk6uFBQkDFZ+oNGaLs99rrk9Pz1sYxxyRMjBy4G6jux+kDl4WDNI68P/QfFUTSPELvzXdEL1mWS+0L9ZYRPjPw5AvOPKrmJPaEKzgLbwUMNTRXxIr7QvZy9dKsgVsuzAcivCmIjkrHFatEZj3wkiekv9Zyr/ihfYAlplF8lelrQHR+ZJWskdN2xOi2zidIpWUWS4ag59/RLUHIGYzQj6fZXeuX1a87YpKrdKLKsjfcfcknixKxlxuynFBsy6CcLMVlkhAgmkxd8kwS9ItiKFrPqosfd3IZek/fwsF/xuDfIo2JtKF77TcFjpzuYN0bbuD8L2RhILL4+BWoFSmcUKNj49DpB38AnagmB4Iu8vEZIV6SGtn4eDnEYskukiBFOBHeMJiTlE5MA57wdSYxKtH0pjvD1bpuQNGprC7k/11ptJ1aunHDs0k3tW8KFgF8hJKGSwL2pywLp9oH4bL5/FHp/IbqABxoI5eBxJ1idg6NMkiRcrfaf3asmHNw4viWpN+p6+XZyL02Pdk3HTm0LgItE4kJxm8DT6U+tPppK7JFxx06+MKDsoopbSDlhRPv+dzrNdQl9zEjCL4OiF9nsQDJOmTV++HsK3CfWlNYoyBDX+eznYHVjXVa6uk2eXyxy5f4tdf8co8Y5BrEWOunxcdXUViOw2ff7jXMlCcY4TB84B8fwqUS3w4svqp2xF8jLIpSQjE01uzTPIUWnHoMf8fLqvOER3jrRSnctzyWKRVB7dxRrNzK7TvzzZ6NsjGtyqJCYYedU4yFVcVSjUT43QXaZG6enQF01M8nduo9I1VIM1eHHyQ9fLGmqQDsRDzBgZ292oPPOiDI72Bp0DLSC6Sb7Gh4IKGU7XG8h99DGEpv9cm9OFV3Z7a6RuqEFSY5vcTysk8q9E10LtpdklDIyi03h7tUl9IK4gdQqnA1WE80+b5yC/hTKFdkQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 136e9a31-6252-48e9-15c6-08da94bab9a8 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:31:32.7224 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Me6apDoAWbhNJqclHrX81C8Pc2F44qEHErmDn9AqjvmYtY5+ETIjQsn3HRysc7B5/hoHlJ3NAvEYbeti+ZqO9uCkQ4QM8mDpVl9biDUKPjc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9481 Received-SPF: pass client-ip=40.107.6.115; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Disassemble function that calls the other variant of it is deleted. Where it is called, now we're directly calling the other implementation. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 52b3708f75..132cf89f6c 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -21917,11 +21917,6 @@ static const Pool MAJOR[2] = { 0x0 }, /* P16 */ }; -static int Disassemble(const uint16 *data, char **dis, - TABLE_ENTRY_TYPE & type, Dis_info *info) -{ - return Disassemble(data, dis, type, MAJOR, 2, info); -} static int nanomips_dis(char **buf, Dis_info *info, @@ -21932,7 +21927,7 @@ static int nanomips_dis(char **buf, uint16 bits[3] = {one, two, three}; TABLE_ENTRY_TYPE type; - int size = Disassemble(bits, buf, type, info); + int size = Disassemble(bits, buf, type, MAJOR, 2, info); return size; } From patchwork Mon Sep 12 12:26:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973654 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25246ECAAD5 for ; Mon, 12 Sep 2022 12:57:02 +0000 (UTC) Received: from localhost ([::1]:59766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXizk-00068R-VB for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:57:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXibv-0007Xk-Na for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:25 -0400 Received: from mail-eopbgr60137.outbound.protection.outlook.com ([40.107.6.137]:3867 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXibp-0006XE-BF for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IqaYlLlsslAURPCW/DNnzpOIJDVW0B9VLVY4oOhnJZWNy8sgN1bB2TRx5QB06npytkuKT/J+oCrC/LDgcEwztvSDAWnpFI0K63CVXRu5WsDhQiZMpMrz6DBzty7lzuyane8eS84c+nZyjKm932IR24j3k3sTBB2KrpIWopY10anillNgdX/WW6AQcT2YdcIUQGPmcxuYQgRz6oacI0N/11ZA0Pfuv68X27kni1l+EQFPFm6M0sEWGWSbHbiwe5ibvQ5hp/FsEH/CoPaVYcAF69wlDccA6d4fccX4+8G6ePvNr80YG1RuhmqMcs1givifBz4XMph3kez74/3tiDBWew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=I2g6I4fcgujg9aknqUFrSm1OPnWLG2yUs/BGBpmXJHI=; b=AKe+VkgpJmSrZQx4Cjgc5Ioz21nzza5FFdkmLi7RtgJQ9CGYZ6jeXyut/uBIU/qas0BXchZTI+KaANvGmLPFVhciOEhGMIsu1jUae50XHkaJhA/AEDuki/T1TKYBOIjuFSbGJLDXP4lNZhrsAxGHTdokHqvSj8SvdPomdo81N/Q1EC4lT5Ht6ZWK7tNXpKodBNic867HLs1CKqzsLCIrl56zIt3yODZHFqRxDZ0vN33K90obEzXE/27UcVnQfJ/Csm94Q7olsJiNM7I7zudUDHtstlDjqKMYHzpH2q68ai5AhB95CGix3eU2xU+z95JJLXLivfg5DSZwOhk5MYUbSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I2g6I4fcgujg9aknqUFrSm1OPnWLG2yUs/BGBpmXJHI=; b=MDSEbQFfgqAaudSrvTjxkfCV1c03hi3nkj3zN5UWAjM2D0C6FeLEzaTlIQGEcS3vkwhRiDEz5sxWS/+2Dm7S1uVPCG7McVsw3WHVvlEi9G112rqfaojxEJqtaJ0sLsoP4PprRXhuSSpxu57ginQI2UMMu5lV37FprndsrCV+1DA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by DB4PR03MB9481.eurprd03.prod.outlook.com (2603:10a6:10:3f7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:31:46 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:31:46 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 20/24] disas/nanomips: Expand Dis_info struct Date: Mon, 12 Sep 2022 14:26:31 +0200 Message-Id: <20220912122635.74032-21-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|DB4PR03MB9481:EE_ X-MS-Office365-Filtering-Correlation-Id: 711953ee-4f0c-422b-a9ce-08da94bac199 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 677ZpP+1tXB7eMOw3f2bXZOiqLeNgU+zlXM1QUOB8gkKgiT7+3GlC5dU3YFAi+Bak/4k/fOeV+MWgcRr2LfTDC8htY6DBtgmQRDbMuKaDwIaPtLUP3V4lZ1vSYbEZxNSNdmI0qEp8NLI2+AjoOr5aheIJPLaIM1+LJsLfQ7RZNr7UShW71dIKx/U4s5ChfEiT7AlV78k95lkgBR3dUnH6un4YTxOwA7vB2HM/iFOj3O15a31Flxq/WORlZ2sbqPF5dua/JXnKeXRmxQ3oAmLrFx0Egl0cC6rsbLQPp91YNmuIgKHrV3VHLCFRrnwMcRRdss/bK7ZjVb+STFJZV7Z3O0PpgQbc0uq6f5o+N9SHQhT8MCVS0tdx+iS3ttecJ1pGbQhC9PbH5ohyEmjzQ22CY+gjOgNneW/4NltNAfDvXU9lvyd19yPuGu0/TvGNydx64IoeYxNdgw/WGAZ0i7kJtejhtPXmRAVnzvEMOkZuSW0wrTpddER+u8NjztJxHsUk62Y6YgedURRCBXbgOMrB0lTL2jKA2/0+o8m9kk39HS/eglTn9QHF6s7p4LoZRxDep4SfpSVBy7XWhUcpMJv1RbeeeG/6bMN/NuY/j1xGcVSAV2hmcz9xgvJTBV+4il7ps8pllRbVFK/D67+2PTl3E7LeVL1wRgmgdLB74FBMzMeXVMBUZEy/FfK64Fns80M+vDOSQI4D4AbGHGXOnKJCsoHDwBK+7qr+oN7n7W2py5i+IQZfAdZcOy3glGyNO6z X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(39830400003)(376002)(346002)(366004)(396003)(38100700002)(26005)(36756003)(6512007)(41300700001)(83380400001)(107886003)(6666004)(2906002)(52116002)(8936002)(2616005)(44832011)(1076003)(186003)(6506007)(30864003)(5660300002)(86362001)(66556008)(66946007)(66476007)(8676002)(6486002)(4326008)(38350700002)(6916009)(316002)(478600001)(579004)(559001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: it3sFuCsIobqrC2Lu2ErfcXPT9eI5PJNZy/efQLHhlz2msH156uGwCtM91dRZSWY9t4en2sFFDaLY+M8POgVK10V9xzwl5nMRSLKzdzq/eI7GM0bE6u8r4kawTXk2YPLt9IOfnwK941AoqCmXgWnwaaQhOVxx1eqr8/+PK9+F1dPPmZgZSs+/xwdxVIEBuvFMAwhHKk5mdsJyorAqKBMGjqsJ4Yii3+QANngwk45TpnlxIeSu11rT3heWdfhV2no39XNuaMQntjNxcL+EcmyJQsWHbSGVzkZkRXqkvayEb2GFCSy+7hcYIdR3OmBdLtnG08nHIdvOX/l9fNpepqkywMRKSt+WY3mAjdmlgetNEDArDkEfK1nnShzd2kbO/u6A65/cWTkWsQOablz6YdFTTVLOCjQwGDIMBwkzUicd7Y7GGN+n4MsWjblgUJb7eHTKUYQfLvX8xmesMtOIqo+b+yhjHXwZBLLmhhP9xnNqaSOLl1guAPEQkGUMmsRL+R8Iy1mzDI3lzSiXYQc0Z9XtIoakmzdP/FiQ19eA1V8QxjiZmOUhAx9XQ0f282KgPzsYBn16LhCKq2wqp4nuS0d4wr1TY+afEe/asHd3gAL74zYMv6NcpiEB4OrFp71O1zcffC2KC5f0bqW8NxadXPHkVcV8EqLEAIBX5ehiyKMsYHDdUOuVrS4IZvQ8qHPIwA1LRstdI9h/EYilw1nWSbh+3C7ulNIcx/QHepx6ifxkZYKUVXciJ9zzsEkVZCF3Vl27fTOeSKJhEmxaZC0yTrTsOma+J/zBsAj8g6MvNkUkahJ9k7oJj9qG+FjLyfhF6zFHpJsoTHS9rGYZPvXfecxByFkffdYFa22LzzD5mP9stqSB1p5Dlq6HiYGDWH3pN6F9R10/Vc0/lrEltHfH2HoDO8LZZtjJf9AkgYso30uFroldsJAU4HqxKa5p2Cl9LXbHR7UcGTbNDAxUpEXGYo1Px4mqEB2JaaHFTNSUEoEDW66IeqvxSxVzHslfXO4j3ja6hP+nOClG7IhKUCBP2yFoYAR8SNlD5QXRIgz6W3AjE5XPYG6JidW3OacdjQbOHsdlG8V5m/vKdEpb9sxx0fvQ7nWPV/P6KW1XMBKBJ/5to6aqkLmKLMVWGryehk4rUlBcQ7WVwCjFcmQuYbXIXMH0dHx+ioexPn9TXkgMnUyAyX4VCcgEvim0BwIe612R9L32FzibG4/vuhN99EU0MfjnT+1+C6auBqgfmQ9SIKQTaCG3NkbqesY9MPNsSEHeui6MJeGmX8ImfmmIpQZNvsQY76N/zjcCNK//EiCLDBXJCfsy0d46e5musLjdYkh9vZv/94G4mEPG9LRO3AXs9U77XT0+recNJcRQW/L0xbCdoVBaTxdA2a5MP7OpCGZBXk0QgQzUNVXcXDZo+aLpECzMn3/Kdftkc/UUJ5NUKAX7W5fmIT3RnhVPybbZdOXWEDGP4Qz9TGKZuxawAh2ivdmVbqyek7VnJ/CpRbElpoojg+Gb50UNaQFJshY/KRNQv5eH8GnArq7sTKEjml9cAoeOoQZwrrYGu+Rch5nFBakX/gvim7YLVj1Mx+nbTgyvOYajNmRoMsJjNve7UvyxUJT6g== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 711953ee-4f0c-422b-a9ce-08da94bac199 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:31:46.5340 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: t2zXg4xvysdQedTZA30PtUIi8yQRlXF3otFFZ+QNXC3tSPj54XgpFOB6YC9Iwyh8QEVK3LXlSF7ZeGsJPrcUvDQAMJ1UmWbljUhy8scH/m8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9481 Received-SPF: pass client-ip=40.107.6.137; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This patch expands the Dis_info struct, which should hold the necessary data for handling runtime errors. Fields fprintf_func and stream are in charge of error printing. Field buf enables the use of sigsetjmp() and siglongjmp() functions. Support for runtime error handling will be added later. We're filling Dis_info at the entrance of the nanoMIPS disassembler, i.e. print_insn_nanomips. Next, we're adding that information as an argument wherever we need to. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 2708 ++++++++++++++++++++++---------------------- 1 file changed, 1357 insertions(+), 1351 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 132cf89f6c..077dfe0dea 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -72,6 +72,9 @@ enum TABLE_ATTRIBUTE_TYPE { typedef struct Dis_info { img_address m_pc; + fprintf_function fprintf_func; + FILE *stream; + sigjmp_buf buf; } Dis_info; typedef bool (*conditional_function)(uint64 instruction); @@ -124,7 +127,7 @@ static int64 sign_extend(int64 data, int msb) static uint64 renumber_registers(uint64 index, uint64 *register_list, - size_t register_list_size) + size_t register_list_size, Dis_info *info) { if (index < register_list_size) { return register_list[index]; @@ -163,12 +166,12 @@ static uint64 renumber_registers(uint64 index, uint64 *register_list, * - MUL[4X4] * - SW[4X4] */ -static uint64 decode_gpr_gpr4(uint64 d) +static uint64 decode_gpr_gpr4(uint64 d, Dis_info *info) { static uint64 register_list[] = { 8, 9, 10, 11, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23 }; return renumber_registers(d, register_list, - sizeof(register_list) / sizeof(register_list[0])); + sizeof(register_list) / sizeof(register_list[0]), info); } @@ -199,12 +202,12 @@ static uint64 decode_gpr_gpr4(uint64 d) * - MOVEP * - SW[4X4] */ -static uint64 decode_gpr_gpr4_zero(uint64 d) +static uint64 decode_gpr_gpr4_zero(uint64 d, Dis_info *info) { static uint64 register_list[] = { 8, 9, 10, 0, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23 }; return renumber_registers(d, register_list, - sizeof(register_list) / sizeof(register_list[0])); + sizeof(register_list) / sizeof(register_list[0]), info); } @@ -258,11 +261,11 @@ static uint64 decode_gpr_gpr4_zero(uint64 d) * - SW[16] * - XOR[16] */ -static uint64 decode_gpr_gpr3(uint64 d) +static uint64 decode_gpr_gpr3(uint64 d, Dis_info *info) { static uint64 register_list[] = { 16, 17, 18, 19, 4, 5, 6, 7 }; return renumber_registers(d, register_list, - sizeof(register_list) / sizeof(register_list[0])); + sizeof(register_list) / sizeof(register_list[0]), info); } @@ -298,11 +301,11 @@ static uint64 decode_gpr_gpr3(uint64 d) * - SW[16] * - SW[GP16] */ -static uint64 decode_gpr_gpr3_src_store(uint64 d) +static uint64 decode_gpr_gpr3_src_store(uint64 d, Dis_info *info) { static uint64 register_list[] = { 0, 17, 18, 19, 4, 5, 6, 7 }; return renumber_registers(d, register_list, - sizeof(register_list) / sizeof(register_list[0])); + sizeof(register_list) / sizeof(register_list[0]), info); } @@ -328,11 +331,11 @@ static uint64 decode_gpr_gpr3_src_store(uint64 d) * - MOVEP * - MOVEP[REV] */ -static uint64 decode_gpr_gpr2_reg1(uint64 d) +static uint64 decode_gpr_gpr2_reg1(uint64 d, Dis_info *info) { static uint64 register_list[] = { 4, 5, 6, 7 }; return renumber_registers(d, register_list, - sizeof(register_list) / sizeof(register_list[0])); + sizeof(register_list) / sizeof(register_list[0]), info); } @@ -358,11 +361,11 @@ static uint64 decode_gpr_gpr2_reg1(uint64 d) * - MOVEP * - MOVEP[REV] */ -static uint64 decode_gpr_gpr2_reg2(uint64 d) +static uint64 decode_gpr_gpr2_reg2(uint64 d, Dis_info *info) { static uint64 register_list[] = { 5, 6, 7, 8 }; return renumber_registers(d, register_list, - sizeof(register_list) / sizeof(register_list[0])); + sizeof(register_list) / sizeof(register_list[0]), info); } @@ -387,11 +390,11 @@ static uint64 decode_gpr_gpr2_reg2(uint64 d) * * - MOVE.BALC */ -static uint64 decode_gpr_gpr1(uint64 d) +static uint64 decode_gpr_gpr1(uint64 d, Dis_info *info) { static uint64 register_list[] = { 4, 5 }; return renumber_registers(d, register_list, - sizeof(register_list) / sizeof(register_list[0])); + sizeof(register_list) / sizeof(register_list[0]), info); } @@ -450,7 +453,7 @@ static uint64 encode_rt1_from_rt(uint64 d) } -static const char *GPR(uint64 reg) +static const char *GPR(uint64 reg, Dis_info *info) { static const char *gpr_reg[32] = { "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", @@ -468,7 +471,8 @@ static const char *GPR(uint64 reg) } -static char *save_restore_list(uint64 rt, uint64 count, uint64 gp) +static char *save_restore_list(uint64 rt, uint64 count, uint64 gp, + Dis_info *info) { char *reg_list[34]; reg_list[0] = (char *)""; @@ -478,7 +482,7 @@ static char *save_restore_list(uint64 rt, uint64 count, uint64 gp) bool use_gp = gp && (counter == count - 1); uint64 this_rt = use_gp ? 28 : ((rt & 0x10) | (rt + counter)) & 0x1f; /* glib usage below requires casting away const */ - reg_list[counter + 1] = (char *)GPR(this_rt); + reg_list[counter + 1] = (char *)GPR(this_rt, info); } reg_list[count + 1] = NULL; @@ -486,7 +490,7 @@ static char *save_restore_list(uint64 rt, uint64 count, uint64 gp) } -static const char *FPR(uint64 reg) +static const char *FPR(uint64 reg, Dis_info *info) { static const char *fpr_reg[32] = { "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", @@ -504,7 +508,7 @@ static const char *FPR(uint64 reg) } -static const char *AC(uint64 reg) +static const char *AC(uint64 reg, Dis_info *info) { static const char *ac_reg[4] = { "ac0", "ac1", "ac2", "ac3" @@ -1545,8 +1549,8 @@ static char *ABS_D(uint64 instruction, Dis_info *info) uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *fs = FPR(fs_value); - const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value, info); + const char *fd = FPR(fd_value, info); return img_format("ABS.D %s, %s", fd, fs); } @@ -1567,8 +1571,8 @@ static char *ABS_S(uint64 instruction, Dis_info *info) uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *fs = FPR(fs_value); - const char *fd = FPR(fd_value); + const char *fs = FPR(fs_value, info); + const char *fd = FPR(fd_value, info); return img_format("ABS.S %s, %s", fd, fs); } @@ -1589,8 +1593,8 @@ static char *ABSQ_S_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("ABSQ_S.PH %s, %s", rt, rs); } @@ -1611,8 +1615,8 @@ static char *ABSQ_S_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("ABSQ_S.QB %s, %s", rt, rs); } @@ -1633,8 +1637,8 @@ static char *ABSQ_S_W(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("ABSQ_S.W %s, %s", rt, rs); } @@ -1655,7 +1659,7 @@ static char *ACLR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("ACLR 0x%" PRIx64 ", %" PRId64 "(%s)", bit_value, s_value, rs); @@ -1677,9 +1681,9 @@ static char *ADD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADD %s, %s, %s", rd, rs, rt); } @@ -1702,9 +1706,9 @@ static char *ADD_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); - const char *fd = FPR(fd_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); + const char *fd = FPR(fd_value, info); return img_format("ADD.D %s, %s, %s", fd, fs, ft); } @@ -1727,9 +1731,9 @@ static char *ADD_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); - const char *fd = FPR(fd_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); + const char *fd = FPR(fd_value, info); return img_format("ADD.S %s, %s, %s", fd, fs, ft); } @@ -1750,8 +1754,8 @@ static char *ADDIU_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_15_to_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("ADDIU %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -1771,7 +1775,7 @@ static char *ADDIU_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("ADDIU %s, %" PRId64, rt, s_value); } @@ -1791,7 +1795,7 @@ static char *ADDIU_GP48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("ADDIU %s, $%d, %" PRId64, rt, 28, s_value); } @@ -1811,7 +1815,7 @@ static char *ADDIU_GP_B_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("ADDIU %s, $%d, 0x%" PRIx64, rt, 28, u_value); } @@ -1831,7 +1835,7 @@ static char *ADDIU_GP_W_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("ADDIU %s, $%d, 0x%" PRIx64, rt, 28, u_value); } @@ -1852,8 +1856,8 @@ static char *ADDIU_NEG_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); int64 u = neg_copy(u_value); return img_format("ADDIU %s, %s, %" PRId64, rt, rs, u); @@ -1874,7 +1878,7 @@ static char *ADDIU_R1_SP_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_5_4_3_2_1_0__s2(instruction); uint64 rt3_value = extract_rt3_9_8_7(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); return img_format("ADDIU %s, $%d, 0x%" PRIx64, rt3, 29, u_value); } @@ -1895,8 +1899,8 @@ static char *ADDIU_R2_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_2_1_0__s2(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("ADDIU %s, %s, 0x%" PRIx64, rt3, rs3, u_value); } @@ -1915,7 +1919,7 @@ static char *ADDIU_RS5_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_9_8_7_6_5(instruction); int64 s_value = extract_s__se3_4_2_1_0(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("ADDIU %s, %" PRId64, rt, s_value); } @@ -1936,7 +1940,7 @@ static char *ADDIUPC_32_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("ADDIUPC %s, %s", rt, s); @@ -1958,7 +1962,7 @@ static char *ADDIUPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("ADDIUPC %s, %s", rt, s); @@ -1981,9 +1985,9 @@ static char *ADDQ_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDQ.PH %s, %s, %s", rd, rs, rt); } @@ -2006,9 +2010,9 @@ static char *ADDQ_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -2030,9 +2034,9 @@ static char *ADDQ_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDQ_S.W %s, %s, %s", rd, rs, rt); } @@ -2055,9 +2059,9 @@ static char *ADDQH_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDQH.PH %s, %s, %s", rd, rs, rt); } @@ -2080,9 +2084,9 @@ static char *ADDQH_R_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -2105,9 +2109,9 @@ static char *ADDQH_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDQH_R.W %s, %s, %s", rd, rs, rt); } @@ -2130,9 +2134,9 @@ static char *ADDQH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDQH.W %s, %s, %s", rd, rs, rt); } @@ -2154,9 +2158,9 @@ static char *ADDSC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDSC %s, %s, %s", rd, rs, rt); } @@ -2177,9 +2181,9 @@ static char *ADDU_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 rd3_value = extract_rd3_3_2_1(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *rd3 = GPR(decode_gpr_gpr3(rd3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); + const char *rd3 = GPR(decode_gpr_gpr3(rd3_value, info), info); return img_format("ADDU %s, %s, %s", rd3, rs3, rt3); } @@ -2201,9 +2205,9 @@ static char *ADDU_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDU %s, %s, %s", rd, rs, rt); } @@ -2224,8 +2228,8 @@ static char *ADDU_4X4_(uint64 instruction, Dis_info *info) uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); - const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); - const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value, info), info); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value, info), info); return img_format("ADDU %s, %s", rs4, rt4); } @@ -2247,9 +2251,9 @@ static char *ADDU_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDU.PH %s, %s, %s", rd, rs, rt); } @@ -2271,9 +2275,9 @@ static char *ADDU_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDU.QB %s, %s, %s", rd, rs, rt); } @@ -2296,9 +2300,9 @@ static char *ADDU_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDU_S.PH %s, %s, %s", rd, rs, rt); } @@ -2320,9 +2324,9 @@ static char *ADDU_S_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDU_S.QB %s, %s, %s", rd, rs, rt); } @@ -2345,9 +2349,9 @@ static char *ADDUH_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDUH.QB %s, %s, %s", rd, rs, rt); } @@ -2370,9 +2374,9 @@ static char *ADDUH_R_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -2393,9 +2397,9 @@ static char *ADDWC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ADDWC %s, %s, %s", rd, rs, rt); } @@ -2416,7 +2420,7 @@ static char *ALUIPC(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); @@ -2437,8 +2441,8 @@ static char *AND_16_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("AND %s, %s", rs3, rt3); } @@ -2460,9 +2464,9 @@ static char *AND_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("AND %s, %s, %s", rd, rs, rt); } @@ -2483,8 +2487,8 @@ static char *ANDI_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 eu_value = extract_eu_3_2_1_0(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); uint64 eu = encode_eu_from_u_andi16(eu_value); return img_format("ANDI %s, %s, 0x%" PRIx64, rt3, rs3, eu); @@ -2507,8 +2511,8 @@ static char *ANDI_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("ANDI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -2530,8 +2534,8 @@ static char *APPEND(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("APPEND %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -2553,7 +2557,7 @@ static char *ASET(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("ASET 0x%" PRIx64 ", %" PRId64 "(%s)", bit_value, s_value, rs); @@ -2615,8 +2619,8 @@ static char *BALRSC(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("BALRSC %s, %s", rt, rs); } @@ -2638,7 +2642,7 @@ static char *BBEQZC(uint64 instruction, Dis_info *info) uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BBEQZC %s, 0x%" PRIx64 ", %s", rt, bit_value, s); @@ -2661,7 +2665,7 @@ static char *BBNEZC(uint64 instruction, Dis_info *info) uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BBNEZC %s, 0x%" PRIx64 ", %s", rt, bit_value, s); @@ -2723,7 +2727,7 @@ static char *BC1EQZC(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *ft = FPR(ft_value); + const char *ft = FPR(ft_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BC1EQZC %s, %s", ft, s); @@ -2745,7 +2749,7 @@ static char *BC1NEZC(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *ft = FPR(ft_value); + const char *ft = FPR(ft_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BC1NEZC %s, %s", ft, s); @@ -2810,8 +2814,8 @@ static char *BEQC_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s1(instruction); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); g_autofree char *u = ADDRESS(u_value, 2, info); return img_format("BEQC %s, %s, %s", rs3, rt3, u); @@ -2834,8 +2838,8 @@ static char *BEQC_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BEQC %s, %s, %s", rs, rt, s); @@ -2858,7 +2862,7 @@ static char *BEQIC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BEQIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); @@ -2880,7 +2884,7 @@ static char *BEQZC_16_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); g_autofree char *s = ADDRESS(s_value, 2, info); return img_format("BEQZC %s, %s", rt3, s); @@ -2903,8 +2907,8 @@ static char *BGEC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BGEC %s, %s, %s", rs, rt, s); @@ -2927,7 +2931,7 @@ static char *BGEIC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BGEIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); @@ -2950,7 +2954,7 @@ static char *BGEIUC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BGEIUC %s, 0x%" PRIx64 ", %s", rt, u_value, s); @@ -2973,8 +2977,8 @@ static char *BGEUC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BGEUC %s, %s, %s", rs, rt, s); @@ -2997,8 +3001,8 @@ static char *BLTC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BLTC %s, %s, %s", rs, rt, s); @@ -3021,7 +3025,7 @@ static char *BLTIC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BLTIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); @@ -3044,7 +3048,7 @@ static char *BLTIUC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BLTIUC %s, 0x%" PRIx64 ", %s", rt, u_value, s); @@ -3067,8 +3071,8 @@ static char *BLTUC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BLTUC %s, %s, %s", rs, rt, s); @@ -3091,8 +3095,8 @@ static char *BNEC_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s1(instruction); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); g_autofree char *u = ADDRESS(u_value, 2, info); return img_format("BNEC %s, %s, %s", rs3, rt3, u); @@ -3115,8 +3119,8 @@ static char *BNEC_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BNEC %s, %s, %s", rs, rt, s); @@ -3139,7 +3143,7 @@ static char *BNEIC(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); int64 s_value = extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("BNEIC %s, 0x%" PRIx64 ", %s", rt, u_value, s); @@ -3161,7 +3165,7 @@ static char *BNEZC_16_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); g_autofree char *s = ADDRESS(s_value, 2, info); return img_format("BNEZC %s, %s", rt3, s); @@ -3240,7 +3244,7 @@ static char *BRSC(uint64 instruction, Dis_info *info) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("BRSC %s", rs); } @@ -3262,7 +3266,7 @@ static char *CACHE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("CACHE 0x%" PRIx64 ", %s(%s)", op_value, s_value, rs); } @@ -3284,7 +3288,7 @@ static char *CACHEE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("CACHEE 0x%" PRIx64 ", %s(%s)", op_value, s_value, rs); } @@ -3305,8 +3309,8 @@ static char *CEIL_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CEIL.L.D %s, %s", ft, fs); } @@ -3327,8 +3331,8 @@ static char *CEIL_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CEIL.L.S %s, %s", ft, fs); } @@ -3349,8 +3353,8 @@ static char *CEIL_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CEIL.W.D %s, %s", ft, fs); } @@ -3371,8 +3375,8 @@ static char *CEIL_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CEIL.W.S %s, %s", ft, fs); } @@ -3393,7 +3397,7 @@ static char *CFC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("CFC1 %s, CP%" PRIu64, rt, cs_value); } @@ -3414,7 +3418,7 @@ static char *CFC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("CFC2 %s, CP%" PRIu64, rt, cs_value); } @@ -3435,8 +3439,8 @@ static char *CLASS_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CLASS.D %s, %s", ft, fs); } @@ -3457,8 +3461,8 @@ static char *CLASS_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CLASS.S %s, %s", ft, fs); } @@ -3479,8 +3483,8 @@ static char *CLO(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("CLO %s, %s", rt, rs); } @@ -3501,8 +3505,8 @@ static char *CLZ(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("CLZ %s, %s", rt, rs); } @@ -3524,9 +3528,9 @@ static char *CMP_AF_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.AF.D %s, %s, %s", fd, fs, ft); } @@ -3548,9 +3552,9 @@ static char *CMP_AF_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.AF.S %s, %s, %s", fd, fs, ft); } @@ -3572,9 +3576,9 @@ static char *CMP_EQ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.EQ.D %s, %s, %s", fd, fs, ft); } @@ -3594,8 +3598,8 @@ static char *CMP_EQ_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMP.EQ.PH %s, %s", rs, rt); } @@ -3617,9 +3621,9 @@ static char *CMP_EQ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.EQ.S %s, %s, %s", fd, fs, ft); } @@ -3641,9 +3645,9 @@ static char *CMP_LE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.LE.D %s, %s, %s", fd, fs, ft); } @@ -3663,8 +3667,8 @@ static char *CMP_LE_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMP.LE.PH %s, %s", rs, rt); } @@ -3686,9 +3690,9 @@ static char *CMP_LE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.LE.S %s, %s, %s", fd, fs, ft); } @@ -3710,9 +3714,9 @@ static char *CMP_LT_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.LT.D %s, %s, %s", fd, fs, ft); } @@ -3732,8 +3736,8 @@ static char *CMP_LT_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMP.LT.PH %s, %s", rs, rt); } @@ -3755,9 +3759,9 @@ static char *CMP_LT_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.LT.S %s, %s, %s", fd, fs, ft); } @@ -3779,9 +3783,9 @@ static char *CMP_NE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.NE.D %s, %s, %s", fd, fs, ft); } @@ -3803,9 +3807,9 @@ static char *CMP_NE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.NE.S %s, %s, %s", fd, fs, ft); } @@ -3827,9 +3831,9 @@ static char *CMP_OR_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.OR.D %s, %s, %s", fd, fs, ft); } @@ -3851,9 +3855,9 @@ static char *CMP_OR_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.OR.S %s, %s, %s", fd, fs, ft); } @@ -3875,9 +3879,9 @@ static char *CMP_SAF_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SAF.D %s, %s, %s", fd, fs, ft); } @@ -3899,9 +3903,9 @@ static char *CMP_SAF_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SAF.S %s, %s, %s", fd, fs, ft); } @@ -3923,9 +3927,9 @@ static char *CMP_SEQ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SEQ.D %s, %s, %s", fd, fs, ft); } @@ -3947,9 +3951,9 @@ static char *CMP_SEQ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SEQ.S %s, %s, %s", fd, fs, ft); } @@ -3971,9 +3975,9 @@ static char *CMP_SLE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SLE.D %s, %s, %s", fd, fs, ft); } @@ -3995,9 +3999,9 @@ static char *CMP_SLE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SLE.S %s, %s, %s", fd, fs, ft); } @@ -4019,9 +4023,9 @@ static char *CMP_SLT_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SLT.D %s, %s, %s", fd, fs, ft); } @@ -4043,9 +4047,9 @@ static char *CMP_SLT_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SLT.S %s, %s, %s", fd, fs, ft); } @@ -4067,9 +4071,9 @@ static char *CMP_SNE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SNE.D %s, %s, %s", fd, fs, ft); } @@ -4091,9 +4095,9 @@ static char *CMP_SNE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SNE.S %s, %s, %s", fd, fs, ft); } @@ -4115,9 +4119,9 @@ static char *CMP_SOR_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SOR.D %s, %s, %s", fd, fs, ft); } @@ -4139,9 +4143,9 @@ static char *CMP_SOR_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SOR.S %s, %s, %s", fd, fs, ft); } @@ -4163,9 +4167,9 @@ static char *CMP_SUEQ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SUEQ.D %s, %s, %s", fd, fs, ft); } @@ -4187,9 +4191,9 @@ static char *CMP_SUEQ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SUEQ.S %s, %s, %s", fd, fs, ft); } @@ -4211,9 +4215,9 @@ static char *CMP_SULE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SULE.D %s, %s, %s", fd, fs, ft); } @@ -4235,9 +4239,9 @@ static char *CMP_SULE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SULE.S %s, %s, %s", fd, fs, ft); } @@ -4259,9 +4263,9 @@ static char *CMP_SULT_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SULT.D %s, %s, %s", fd, fs, ft); } @@ -4283,9 +4287,9 @@ static char *CMP_SULT_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SULT.S %s, %s, %s", fd, fs, ft); } @@ -4307,9 +4311,9 @@ static char *CMP_SUN_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SUN.D %s, %s, %s", fd, fs, ft); } @@ -4331,9 +4335,9 @@ static char *CMP_SUNE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SUNE.D %s, %s, %s", fd, fs, ft); } @@ -4355,9 +4359,9 @@ static char *CMP_SUNE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SUNE.S %s, %s, %s", fd, fs, ft); } @@ -4379,9 +4383,9 @@ static char *CMP_SUN_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.SUN.S %s, %s, %s", fd, fs, ft); } @@ -4403,9 +4407,9 @@ static char *CMP_UEQ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.UEQ.D %s, %s, %s", fd, fs, ft); } @@ -4427,9 +4431,9 @@ static char *CMP_UEQ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.UEQ.S %s, %s, %s", fd, fs, ft); } @@ -4451,9 +4455,9 @@ static char *CMP_ULE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.ULE.D %s, %s, %s", fd, fs, ft); } @@ -4475,9 +4479,9 @@ static char *CMP_ULE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.ULE.S %s, %s, %s", fd, fs, ft); } @@ -4499,9 +4503,9 @@ static char *CMP_ULT_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.ULT.D %s, %s, %s", fd, fs, ft); } @@ -4523,9 +4527,9 @@ static char *CMP_ULT_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.ULT.S %s, %s, %s", fd, fs, ft); } @@ -4547,9 +4551,9 @@ static char *CMP_UN_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.UN.D %s, %s, %s", fd, fs, ft); } @@ -4571,9 +4575,9 @@ static char *CMP_UNE_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.UNE.D %s, %s, %s", fd, fs, ft); } @@ -4595,9 +4599,9 @@ static char *CMP_UNE_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.UNE.S %s, %s, %s", fd, fs, ft); } @@ -4619,9 +4623,9 @@ static char *CMP_UN_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("CMP.UN.S %s, %s, %s", fd, fs, ft); } @@ -4644,9 +4648,9 @@ static char *CMPGDU_EQ_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPGDU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4669,9 +4673,9 @@ static char *CMPGDU_LE_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPGDU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4694,9 +4698,9 @@ static char *CMPGDU_LT_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPGDU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4719,9 +4723,9 @@ static char *CMPGU_EQ_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPGU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4744,9 +4748,9 @@ static char *CMPGU_LE_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPGU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4769,9 +4773,9 @@ static char *CMPGU_LT_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPGU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4792,8 +4796,8 @@ static char *CMPU_EQ_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPU.EQ.QB %s, %s", rs, rt); } @@ -4814,8 +4818,8 @@ static char *CMPU_LE_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPU.LE.QB %s, %s", rs, rt); } @@ -4836,8 +4840,8 @@ static char *CMPU_LT_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("CMPU.LT.QB %s, %s", rs, rt); } @@ -4877,7 +4881,7 @@ static char *CTC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("CTC1 %s, CP%" PRIu64, rt, cs_value); } @@ -4898,7 +4902,7 @@ static char *CTC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("CTC2 %s, CP%" PRIu64, rt, cs_value); } @@ -4919,8 +4923,8 @@ static char *CVT_D_L(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.D.L %s, %s", ft, fs); } @@ -4941,8 +4945,8 @@ static char *CVT_D_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.D.S %s, %s", ft, fs); } @@ -4963,8 +4967,8 @@ static char *CVT_D_W(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.D.W %s, %s", ft, fs); } @@ -4985,8 +4989,8 @@ static char *CVT_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.L.D %s, %s", ft, fs); } @@ -5007,8 +5011,8 @@ static char *CVT_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.L.S %s, %s", ft, fs); } @@ -5029,8 +5033,8 @@ static char *CVT_S_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.S.D %s, %s", ft, fs); } @@ -5051,8 +5055,8 @@ static char *CVT_S_L(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.S.L %s, %s", ft, fs); } @@ -5073,8 +5077,8 @@ static char *CVT_S_PL(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.S.PL %s, %s", ft, fs); } @@ -5095,8 +5099,8 @@ static char *CVT_S_PU(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.S.PU %s, %s", ft, fs); } @@ -5117,8 +5121,8 @@ static char *CVT_S_W(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.S.W %s, %s", ft, fs); } @@ -5139,8 +5143,8 @@ static char *CVT_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.W.D %s, %s", ft, fs); } @@ -5161,8 +5165,8 @@ static char *CVT_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("CVT.W.S %s, %s", ft, fs); } @@ -5183,7 +5187,7 @@ static char *DADDIU_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DADDIU %s, %s", rt, s_value); } @@ -5205,8 +5209,8 @@ static char *DADDIU_NEG_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); int64 u = neg_copy(u_value); return img_format("DADDIU %s, %s, %" PRId64, rt, rs, u); @@ -5229,8 +5233,8 @@ static char *DADDIU_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DADDIU %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -5252,9 +5256,9 @@ static char *DADD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DADD %s, %s, %s", rd, rs, rt); } @@ -5276,9 +5280,9 @@ static char *DADDU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DADDU %s, %s, %s", rd, rs, rt); } @@ -5299,8 +5303,8 @@ static char *DCLO(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DCLO %s, %s", rt, rs); } @@ -5321,8 +5325,8 @@ static char *DCLZ(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DCLZ %s, %s", rt, rs); } @@ -5344,9 +5348,9 @@ static char *DDIV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DDIV %s, %s, %s", rd, rs, rt); } @@ -5368,9 +5372,9 @@ static char *DDIVU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DDIVU %s, %s, %s", rd, rs, rt); } @@ -5411,8 +5415,8 @@ static char *DEXTM(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 msbd = encode_msbd_from_size(msbd_value); return img_format("DEXTM %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, @@ -5437,8 +5441,8 @@ static char *DEXT(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 msbd = encode_msbd_from_size(msbd_value); return img_format("DEXT %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, @@ -5463,8 +5467,8 @@ static char *DEXTU(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 msbd = encode_msbd_from_size(msbd_value); return img_format("DEXTU %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, @@ -5489,8 +5493,8 @@ static char *DINSM(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); /* !!!!!!!!!! - no conversion function */ return img_format("DINSM %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, @@ -5516,8 +5520,8 @@ static char *DINS(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); /* !!!!!!!!!! - no conversion function */ return img_format("DINS %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, @@ -5543,8 +5547,8 @@ static char *DINSU(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); /* !!!!!!!!!! - no conversion function */ return img_format("DINSU %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, @@ -5567,7 +5571,7 @@ static char *DI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DI %s", rt); } @@ -5589,9 +5593,9 @@ static char *DIV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DIV %s, %s, %s", rd, rs, rt); } @@ -5613,9 +5617,9 @@ static char *DIV_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("DIV.D %s, %s, %s", fd, fs, ft); } @@ -5637,9 +5641,9 @@ static char *DIV_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("DIV.S %s, %s, %s", fd, fs, ft); } @@ -5661,9 +5665,9 @@ static char *DIVU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DIVU %s, %s, %s", rd, rs, rt); } @@ -5686,9 +5690,9 @@ static char *DLSA(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 u2_value = extract_u2_10_9(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DLSA %s, %s, %s, 0x%" PRIx64, rd, rs, rt, u2_value); } @@ -5709,7 +5713,7 @@ static char *DLUI_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); uint64 u_value = extract_u_31_to_0__s32(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DLUI %s, 0x%" PRIx64, rt, u_value); } @@ -5731,7 +5735,7 @@ static char *DMFC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DMFC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -5753,8 +5757,8 @@ static char *DMFC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *fs = FPR(fs_value); + const char *rt = GPR(rt_value, info); + const char *fs = FPR(fs_value, info); return img_format("DMFC1 %s, %s", rt, fs); } @@ -5775,7 +5779,7 @@ static char *DMFC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DMFC2 %s, CP%" PRIu64, rt, cs_value); } @@ -5797,7 +5801,7 @@ static char *DMFGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DMFGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -5820,9 +5824,9 @@ static char *DMOD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DMOD %s, %s, %s", rd, rs, rt); } @@ -5844,9 +5848,9 @@ static char *DMODU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DMODU %s, %s, %s", rd, rs, rt); } @@ -5868,7 +5872,7 @@ static char *DMTC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DMTC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -5890,8 +5894,8 @@ static char *DMTC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *fs = FPR(fs_value); + const char *rt = GPR(rt_value, info); + const char *fs = FPR(fs_value, info); return img_format("DMTC1 %s, %s", rt, fs); } @@ -5912,7 +5916,7 @@ static char *DMTC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DMTC2 %s, CP%" PRIu64, rt, cs_value); } @@ -5934,7 +5938,7 @@ static char *DMTGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DMTGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -5955,7 +5959,7 @@ static char *DMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DMT %s", rt); } @@ -5977,9 +5981,9 @@ static char *DMUH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DMUH %s, %s, %s", rd, rs, rt); } @@ -6001,9 +6005,9 @@ static char *DMUHU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DMUHU %s, %s, %s", rd, rs, rt); } @@ -6025,9 +6029,9 @@ static char *DMUL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DMUL %s, %s, %s", rd, rs, rt); } @@ -6049,9 +6053,9 @@ static char *DMULU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DMULU %s, %s, %s", rd, rs, rt); } @@ -6074,9 +6078,9 @@ static char *DPA_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6098,9 +6102,9 @@ static char *DPAQ_SA_L_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPAQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6122,9 +6126,9 @@ static char *DPAQ_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6146,9 +6150,9 @@ static char *DPAQX_SA_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPAQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6170,9 +6174,9 @@ static char *DPAQX_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPAQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6194,9 +6198,9 @@ static char *DPAU_H_QBL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPAU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6218,9 +6222,9 @@ static char *DPAU_H_QBR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPAU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6242,9 +6246,9 @@ static char *DPAX_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPAX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6266,9 +6270,9 @@ static char *DPS_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPS.W.PH %s, %s, %s", ac, rs, rt); } @@ -6290,9 +6294,9 @@ static char *DPSQ_SA_L_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPSQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6314,9 +6318,9 @@ static char *DPSQ_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPSQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6338,9 +6342,9 @@ static char *DPSQX_SA_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPSQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6362,9 +6366,9 @@ static char *DPSQX_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPSQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6386,9 +6390,9 @@ static char *DPSU_H_QBL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPSU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6410,9 +6414,9 @@ static char *DPSU_H_QBR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPSU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6434,9 +6438,9 @@ static char *DPSX_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DPSX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6458,8 +6462,8 @@ static char *DROTR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DROTR %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6481,8 +6485,8 @@ static char *DROTR32(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DROTR32 %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6504,9 +6508,9 @@ static char *DROTRV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DROTRV %s, %s, %s", rd, rs, rt); } @@ -6529,8 +6533,8 @@ static char *DROTX(uint64 instruction, Dis_info *info) uint64 shiftx_value = extract_shiftx_11_10_9_8_7_6(instruction); uint64 shift_value = extract_shift_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DROTX %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, rt, rs, shift_value, shiftx_value); @@ -6553,8 +6557,8 @@ static char *DSLL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DSLL %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6576,8 +6580,8 @@ static char *DSLL32(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DSLL32 %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6599,9 +6603,9 @@ static char *DSLLV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DSLLV %s, %s, %s", rd, rs, rt); } @@ -6623,8 +6627,8 @@ static char *DSRA(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DSRA %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6646,8 +6650,8 @@ static char *DSRA32(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DSRA32 %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6669,9 +6673,9 @@ static char *DSRAV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DSRAV %s, %s, %s", rd, rs, rt); } @@ -6693,8 +6697,8 @@ static char *DSRL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DSRL %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6716,8 +6720,8 @@ static char *DSRL32(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("DSRL32 %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -6739,9 +6743,9 @@ static char *DSRLV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DSRLV %s, %s, %s", rd, rs, rt); } @@ -6763,9 +6767,9 @@ static char *DSUB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DSUB %s, %s, %s", rd, rs, rt); } @@ -6787,9 +6791,9 @@ static char *DSUBU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("DSUBU %s, %s, %s", rd, rs, rt); } @@ -6809,7 +6813,7 @@ static char *DVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DVPE %s", rt); } @@ -6829,7 +6833,7 @@ static char *DVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("DVP %s", rt); } @@ -6867,7 +6871,7 @@ static char *EI(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("EI %s", rt); } @@ -6887,7 +6891,7 @@ static char *EMT(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("EMT %s", rt); } @@ -6943,7 +6947,7 @@ static char *EVP(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("EVP %s", rt); } @@ -6963,7 +6967,7 @@ static char *EVPE(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("EVPE %s", rt); } @@ -6986,8 +6990,8 @@ static char *EXT(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 msbd = encode_msbd_from_size(msbd_value); return img_format("EXT %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, @@ -7012,9 +7016,9 @@ static char *EXTD(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("EXTD %s, %s, %s, 0x%" PRIx64, rd, rs, rt, shift_value); } @@ -7037,9 +7041,9 @@ static char *EXTD32(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("EXTD32 %s, %s, %s, 0x%" PRIx64, rd, rs, rt, shift_value); } @@ -7061,8 +7065,8 @@ static char *EXTPDP(uint64 instruction, Dis_info *info) uint64 size_value = extract_size_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); return img_format("EXTPDP %s, %s, 0x%" PRIx64, rt, ac, size_value); } @@ -7084,9 +7088,9 @@ static char *EXTPDPV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); return img_format("EXTPDPV %s, %s, %s", rt, ac, rs); } @@ -7108,8 +7112,8 @@ static char *EXTP(uint64 instruction, Dis_info *info) uint64 size_value = extract_size_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); return img_format("EXTP %s, %s, 0x%" PRIx64, rt, ac, size_value); } @@ -7131,9 +7135,9 @@ static char *EXTPV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); return img_format("EXTPV %s, %s, %s", rt, ac, rs); } @@ -7156,8 +7160,8 @@ static char *EXTR_RS_W(uint64 instruction, Dis_info *info) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); return img_format("EXTR_RS.W %s, %s, 0x%" PRIx64, rt, ac, shift_value); } @@ -7180,8 +7184,8 @@ static char *EXTR_R_W(uint64 instruction, Dis_info *info) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); return img_format("EXTR_R.W %s, %s, 0x%" PRIx64, rt, ac, shift_value); } @@ -7204,8 +7208,8 @@ static char *EXTR_S_H(uint64 instruction, Dis_info *info) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); return img_format("EXTR_S.H %s, %s, 0x%" PRIx64, rt, ac, shift_value); } @@ -7228,8 +7232,8 @@ static char *EXTR_W(uint64 instruction, Dis_info *info) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); return img_format("EXTR.W %s, %s, 0x%" PRIx64, rt, ac, shift_value); } @@ -7252,9 +7256,9 @@ static char *EXTRV_RS_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); return img_format("EXTRV_RS.W %s, %s, %s", rt, ac, rs); } @@ -7277,9 +7281,9 @@ static char *EXTRV_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); return img_format("EXTRV_R.W %s, %s, %s", rt, ac, rs); } @@ -7302,9 +7306,9 @@ static char *EXTRV_S_H(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); return img_format("EXTRV_S.H %s, %s, %s", rt, ac, rs); } @@ -7327,9 +7331,9 @@ static char *EXTRV_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); return img_format("EXTRV.W %s, %s, %s", rt, ac, rs); } @@ -7353,9 +7357,9 @@ static char *EXTW(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 shift_value = extract_shift_10_9_8_7_6(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("EXTW %s, %s, %s, 0x%" PRIx64, rd, rs, rt, shift_value); } @@ -7376,8 +7380,8 @@ static char *FLOOR_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("FLOOR.L.D %s, %s", ft, fs); } @@ -7398,8 +7402,8 @@ static char *FLOOR_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("FLOOR.L.S %s, %s", ft, fs); } @@ -7420,8 +7424,8 @@ static char *FLOOR_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("FLOOR.W.D %s, %s", ft, fs); } @@ -7442,8 +7446,8 @@ static char *FLOOR_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("FLOOR.W.S %s, %s", ft, fs); } @@ -7465,9 +7469,9 @@ static char *FORK(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("FORK %s, %s, %s", rd, rs, rt); } @@ -7528,8 +7532,8 @@ static char *INS(uint64 instruction, Dis_info *info) uint64 msbd_value = extract_msbt_10_9_8_7_6(instruction); uint64 lsb_value = extract_lsb_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); /* !!!!!!!!!! - no conversion function */ return img_format("INS %s, %s, 0x%" PRIx64 ", 0x%" PRIx64, @@ -7552,8 +7556,8 @@ static char *INSV(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("INSV %s, %s", rt, rs); } @@ -7591,7 +7595,7 @@ static char *JALRC_16_(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("JALRC $%d, %s", 31, rt); } @@ -7612,8 +7616,8 @@ static char *JALRC_32_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("JALRC %s, %s", rt, rs); } @@ -7634,8 +7638,8 @@ static char *JALRC_HB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("JALRC.HB %s, %s", rt, rs); } @@ -7655,7 +7659,7 @@ static char *JRC(uint64 instruction, Dis_info *info) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("JRC %s", rt); } @@ -7677,8 +7681,8 @@ static char *LB_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_1_0(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("LB %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -7699,7 +7703,7 @@ static char *LB_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LB %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -7721,8 +7725,8 @@ static char *LB_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LB %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -7744,8 +7748,8 @@ static char *LB_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LB %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -7767,8 +7771,8 @@ static char *LBE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LBE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -7790,8 +7794,8 @@ static char *LBU_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_1_0(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("LBU %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -7812,7 +7816,7 @@ static char *LBU_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LBU %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -7834,8 +7838,8 @@ static char *LBU_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LBU %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -7857,8 +7861,8 @@ static char *LBU_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LBU %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -7880,8 +7884,8 @@ static char *LBUE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LBUE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -7903,9 +7907,9 @@ static char *LBUX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LBUX %s, %s(%s)", rd, rs, rt); } @@ -7927,9 +7931,9 @@ static char *LBX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LBX %s, %s(%s)", rd, rs, rt); } @@ -7950,7 +7954,7 @@ static char *LD_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LD %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -7972,8 +7976,8 @@ static char *LD_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LD %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -7995,8 +7999,8 @@ static char *LD_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LD %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -8017,7 +8021,7 @@ static char *LDC1_GP_(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - const char *ft = FPR(ft_value); + const char *ft = FPR(ft_value, info); return img_format("LDC1 %s, 0x%" PRIx64 "($%d)", ft, u_value, 28); } @@ -8039,8 +8043,8 @@ static char *LDC1_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); return img_format("LDC1 %s, %" PRId64 "(%s)", ft, s_value, rs); } @@ -8062,8 +8066,8 @@ static char *LDC1_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); return img_format("LDC1 %s, 0x%" PRIx64 "(%s)", ft, u_value, rs); } @@ -8085,9 +8089,9 @@ static char *LDC1XS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LDC1XS %s, %s(%s)", ft, rs, rt); } @@ -8109,9 +8113,9 @@ static char *LDC1X(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LDC1X %s, %s(%s)", ft, rs, rt); } @@ -8133,7 +8137,7 @@ static char *LDC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("LDC2 CP%" PRIu64 ", %" PRId64 "(%s)", ct_value, s_value, rs); @@ -8157,8 +8161,8 @@ static char *LDM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); return img_format("LDM %s, %" PRId64 "(%s), 0x%" PRIx64, @@ -8181,7 +8185,7 @@ static char *LDPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("LDPC %s, %s", rt, s); @@ -8204,9 +8208,9 @@ static char *LDX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LDX %s, %s(%s)", rd, rs, rt); } @@ -8228,9 +8232,9 @@ static char *LDXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LDXS %s, %s(%s)", rd, rs, rt); } @@ -8252,8 +8256,8 @@ static char *LH_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_2_1__s1(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("LH %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -8274,7 +8278,7 @@ static char *LH_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LH %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -8296,8 +8300,8 @@ static char *LH_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LH %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8319,8 +8323,8 @@ static char *LH_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LH %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -8342,8 +8346,8 @@ static char *LHE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LHE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8365,8 +8369,8 @@ static char *LHU_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_2_1__s1(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("LHU %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -8387,7 +8391,7 @@ static char *LHU_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LHU %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -8409,8 +8413,8 @@ static char *LHU_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LHU %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8432,8 +8436,8 @@ static char *LHU_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LHU %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -8455,8 +8459,8 @@ static char *LHUE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LHUE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8478,9 +8482,9 @@ static char *LHUX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LHUX %s, %s(%s)", rd, rs, rt); } @@ -8502,9 +8506,9 @@ static char *LHUXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LHUXS %s, %s(%s)", rd, rs, rt); } @@ -8526,9 +8530,9 @@ static char *LHXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LHXS %s, %s(%s)", rd, rs, rt); } @@ -8550,9 +8554,9 @@ static char *LHX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LHX %s, %s(%s)", rd, rs, rt); } @@ -8573,7 +8577,7 @@ static char *LI_16_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 eu_value = extract_eu_6_5_4_3_2_1_0(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); int64 eu = encode_eu_from_s_li16(eu_value); return img_format("LI %s, %" PRId64, rt3, eu); @@ -8595,7 +8599,7 @@ static char *LI_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LI %s, %" PRId64, rt, s_value); } @@ -8617,8 +8621,8 @@ static char *LL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LL %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8640,8 +8644,8 @@ static char *LLD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_s3(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LLD %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8663,9 +8667,9 @@ static char *LLDP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - const char *rt = GPR(rt_value); - const char *ru = GPR(ru_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ru = GPR(ru_value, info); + const char *rs = GPR(rs_value, info); return img_format("LLDP %s, %s, (%s)", rt, ru, rs); } @@ -8687,8 +8691,8 @@ static char *LLE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LLE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8710,9 +8714,9 @@ static char *LLWP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - const char *rt = GPR(rt_value); - const char *ru = GPR(ru_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ru = GPR(ru_value, info); + const char *rs = GPR(rs_value, info); return img_format("LLWP %s, %s, (%s)", rt, ru, rs); } @@ -8734,9 +8738,9 @@ static char *LLWPE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - const char *rt = GPR(rt_value); - const char *ru = GPR(ru_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ru = GPR(ru_value, info); + const char *rs = GPR(rs_value, info); return img_format("LLWPE %s, %s, (%s)", rt, ru, rs); } @@ -8759,9 +8763,9 @@ static char *LSA(uint64 instruction, Dis_info *info) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 u2_value = extract_u2_10_9(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LSA %s, %s, %s, 0x%" PRIx64, rd, rs, rt, u2_value); } @@ -8782,7 +8786,7 @@ static char *LUI(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se31_0_11_to_2_20_to_12_s12(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LUI %s, %%hi(%" PRId64 ")", rt, s_value); } @@ -8804,8 +8808,8 @@ static char *LW_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s2(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("LW %s, 0x%" PRIx64 "(%s)", rt3, u_value, rs3); } @@ -8827,8 +8831,8 @@ static char *LW_4X4_(uint64 instruction, Dis_info *info) uint64 rs4_value = extract_rs4_4_2_1_0(instruction); uint64 u_value = extract_u_3_8__s2(instruction); - const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); - const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value, info), info); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value, info), info); return img_format("LW %s, 0x%" PRIx64 "(%s)", rt4, u_value, rs4); } @@ -8849,7 +8853,7 @@ static char *LW_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LW %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -8870,7 +8874,7 @@ static char *LW_GP16_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); return img_format("LW %s, 0x%" PRIx64 "($%d)", rt3, u_value, 28); } @@ -8892,8 +8896,8 @@ static char *LW_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LW %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -8914,7 +8918,7 @@ static char *LW_SP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LW %s, 0x%" PRIx64 "($%d)", rt, u_value, 29); } @@ -8936,8 +8940,8 @@ static char *LW_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LW %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -8958,7 +8962,7 @@ static char *LWC1_GP_(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - const char *ft = FPR(ft_value); + const char *ft = FPR(ft_value, info); return img_format("LWC1 %s, 0x%" PRIx64 "($%d)", ft, u_value, 28); } @@ -8980,8 +8984,8 @@ static char *LWC1_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); return img_format("LWC1 %s, %" PRId64 "(%s)", ft, s_value, rs); } @@ -9003,8 +9007,8 @@ static char *LWC1_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); return img_format("LWC1 %s, 0x%" PRIx64 "(%s)", ft, u_value, rs); } @@ -9026,9 +9030,9 @@ static char *LWC1X(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LWC1X %s, %s(%s)", ft, rs, rt); } @@ -9050,9 +9054,9 @@ static char *LWC1XS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LWC1XS %s, %s(%s)", ft, rs, rt); } @@ -9074,7 +9078,7 @@ static char *LWC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("LWC2 CP%" PRIu64 ", %" PRId64 "(%s)", ct_value, s_value, rs); @@ -9097,8 +9101,8 @@ static char *LWE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LWE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -9121,8 +9125,8 @@ static char *LWM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); return img_format("LWM %s, %" PRId64 "(%s), 0x%" PRIx64, @@ -9145,7 +9149,7 @@ static char *LWPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("LWPC %s, %s", rt, s); @@ -9167,7 +9171,7 @@ static char *LWU_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("LWU %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -9189,8 +9193,8 @@ static char *LWU_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LWU %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -9212,8 +9216,8 @@ static char *LWU_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("LWU %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -9235,9 +9239,9 @@ static char *LWUX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LWUX %s, %s(%s)", rd, rs, rt); } @@ -9259,9 +9263,9 @@ static char *LWUXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LWUXS %s, %s(%s)", rd, rs, rt); } @@ -9283,9 +9287,9 @@ static char *LWX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LWX %s, %s(%s)", rd, rs, rt); } @@ -9307,9 +9311,9 @@ static char *LWXS_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 rd3_value = extract_rd3_3_2_1(instruction); - const char *rd3 = GPR(decode_gpr_gpr3(rd3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - uint64 rt3 = decode_gpr_gpr3(rt3_value); + const char *rd3 = GPR(decode_gpr_gpr3(rd3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); + uint64 rt3 = decode_gpr_gpr3(rt3_value, info); return img_format("LWXS %s, %s(0x%" PRIx64 ")", rd3, rs3, rt3); } @@ -9331,9 +9335,9 @@ static char *LWXS_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("LWXS %s, %s(%s)", rd, rs, rt); } @@ -9356,9 +9360,9 @@ static char *MADD_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MADD %s, %s, %s", ac, rs, rt); } @@ -9380,9 +9384,9 @@ static char *MADDF_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MADDF.D %s, %s, %s", fd, fs, ft); } @@ -9404,9 +9408,9 @@ static char *MADDF_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MADDF.S %s, %s, %s", fd, fs, ft); } @@ -9429,9 +9433,9 @@ static char *MADDU_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MADDU %s, %s, %s", ac, rs, rt); } @@ -9454,9 +9458,9 @@ static char *MAQ_S_W_PHL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MAQ_S.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9479,9 +9483,9 @@ static char *MAQ_S_W_PHR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MAQ_S.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9504,9 +9508,9 @@ static char *MAQ_SA_W_PHL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MAQ_SA.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9529,9 +9533,9 @@ static char *MAQ_SA_W_PHR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MAQ_SA.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9553,9 +9557,9 @@ static char *MAX_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MAX.D %s, %s, %s", fd, fs, ft); } @@ -9577,9 +9581,9 @@ static char *MAX_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MAX.S %s, %s, %s", fd, fs, ft); } @@ -9601,9 +9605,9 @@ static char *MAXA_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MAXA.D %s, %s, %s", fd, fs, ft); } @@ -9625,9 +9629,9 @@ static char *MAXA_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MAXA.S %s, %s, %s", fd, fs, ft); } @@ -9649,7 +9653,7 @@ static char *MFC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MFC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -9671,8 +9675,8 @@ static char *MFC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *fs = FPR(fs_value); + const char *rt = GPR(rt_value, info); + const char *fs = FPR(fs_value, info); return img_format("MFC1 %s, %s", rt, fs); } @@ -9693,7 +9697,7 @@ static char *MFC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MFC2 %s, CP%" PRIu64, rt, cs_value); } @@ -9715,7 +9719,7 @@ static char *MFGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MFGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -9738,7 +9742,7 @@ static char *MFHC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MFHC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -9760,8 +9764,8 @@ static char *MFHC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *fs = FPR(fs_value); + const char *rt = GPR(rt_value, info); + const char *fs = FPR(fs_value, info); return img_format("MFHC1 %s, %s", rt, fs); } @@ -9782,7 +9786,7 @@ static char *MFHC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MFHC2 %s, CP%" PRIu64, rt, cs_value); } @@ -9804,7 +9808,7 @@ static char *MFHGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MFHGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -9825,8 +9829,8 @@ static char *MFHI_DSP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); return img_format("MFHI %s, %s", rt, ac); } @@ -9849,7 +9853,7 @@ static char *MFHTR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MFHTR %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, rt, c0s_value, u_value, sel_value); @@ -9870,8 +9874,8 @@ static char *MFLO_DSP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(rt_value); - const char *ac = AC(ac_value); + const char *rt = GPR(rt_value, info); + const char *ac = AC(ac_value, info); return img_format("MFLO %s, %s", rt, ac); } @@ -9894,7 +9898,7 @@ static char *MFTR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MFTR %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, rt, c0s_value, u_value, sel_value); @@ -9917,9 +9921,9 @@ static char *MIN_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MIN.D %s, %s, %s", fd, fs, ft); } @@ -9941,9 +9945,9 @@ static char *MIN_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MIN.S %s, %s, %s", fd, fs, ft); } @@ -9965,9 +9969,9 @@ static char *MINA_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MINA.D %s, %s, %s", fd, fs, ft); } @@ -9989,9 +9993,9 @@ static char *MINA_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MINA.S %s, %s, %s", fd, fs, ft); } @@ -10013,9 +10017,9 @@ static char *MOD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MOD %s, %s, %s", rd, rs, rt); } @@ -10037,9 +10041,9 @@ static char *MODSUB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MODSUB %s, %s, %s", rd, rs, rt); } @@ -10061,9 +10065,9 @@ static char *MODU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MODU %s, %s, %s", rd, rs, rt); } @@ -10084,8 +10088,8 @@ static char *MOV_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("MOV.D %s, %s", ft, fs); } @@ -10106,8 +10110,8 @@ static char *MOV_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("MOV.S %s, %s", ft, fs); } @@ -10129,8 +10133,8 @@ static char *MOVE_BALC(uint64 instruction, Dis_info *info) uint64 rd1_value = extract_rdl_25_24(instruction); int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); - const char *rd1 = GPR(decode_gpr_gpr1(rd1_value)); - const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); + const char *rd1 = GPR(decode_gpr_gpr1(rd1_value, info), info); + const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value, info), info); g_autofree char *s = ADDRESS(s_value, 4, info); return img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); @@ -10153,11 +10157,11 @@ static char *MOVEP(uint64 instruction, Dis_info *info) uint64 rd2_value = extract_rd2_3_8(instruction); uint64 rsz4_value = extract_rsz4_4_2_1_0(instruction); - const char *rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value)); - const char *re2 = GPR(decode_gpr_gpr2_reg2(rd2_value)); + const char *rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value, info), info); + const char *re2 = GPR(decode_gpr_gpr2_reg2(rd2_value, info), info); /* !!!!!!!!!! - no conversion function */ - const char *rsz4 = GPR(decode_gpr_gpr4_zero(rsz4_value)); - const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); + const char *rsz4 = GPR(decode_gpr_gpr4_zero(rsz4_value, info), info); + const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value, info), info); return img_format("MOVEP %s, %s, %s, %s", rd2, re2, rsz4, rtz4); /* hand edited */ @@ -10180,10 +10184,10 @@ static char *MOVEP_REV_(uint64 instruction, Dis_info *info) uint64 rd2_value = extract_rd2_3_8(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); - const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); - const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); - const char *rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value)); - const char *rs2 = GPR(decode_gpr_gpr2_reg2(rd2_value)); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value, info), info); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value, info), info); + const char *rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value, info), info); + const char *rs2 = GPR(decode_gpr_gpr2_reg2(rd2_value, info), info); /* !!!!!!!!!! - no conversion function */ return img_format("MOVEP %s, %s, %s, %s", rs4, rt4, rd2, rs2); @@ -10206,8 +10210,8 @@ static char *MOVE(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 rs_value = extract_rs_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("MOVE %s, %s", rt, rs); } @@ -10229,9 +10233,9 @@ static char *MOVN(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MOVN %s, %s, %s", rd, rs, rt); } @@ -10253,9 +10257,9 @@ static char *MOVZ(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MOVZ %s, %s, %s", rd, rs, rt); } @@ -10277,9 +10281,9 @@ static char *MSUB_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MSUB %s, %s, %s", ac, rs, rt); } @@ -10301,9 +10305,9 @@ static char *MSUBF_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MSUBF.D %s, %s, %s", fd, fs, ft); } @@ -10325,9 +10329,9 @@ static char *MSUBF_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MSUBF.S %s, %s, %s", fd, fs, ft); } @@ -10349,9 +10353,9 @@ static char *MSUBU_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MSUBU %s, %s, %s", ac, rs, rt); } @@ -10373,7 +10377,7 @@ static char *MTC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MTC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -10395,8 +10399,8 @@ static char *MTC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *fs = FPR(fs_value); + const char *rt = GPR(rt_value, info); + const char *fs = FPR(fs_value, info); return img_format("MTC1 %s, %s", rt, fs); } @@ -10417,7 +10421,7 @@ static char *MTC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MTC2 %s, CP%" PRIu64, rt, cs_value); } @@ -10439,7 +10443,7 @@ static char *MTGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MTGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -10462,7 +10466,7 @@ static char *MTHC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MTHC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -10484,8 +10488,8 @@ static char *MTHC1(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *fs = FPR(fs_value); + const char *rt = GPR(rt_value, info); + const char *fs = FPR(fs_value, info); return img_format("MTHC1 %s, %s", rt, fs); } @@ -10506,7 +10510,7 @@ static char *MTHC2(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MTHC2 %s, CP%" PRIu64, rt, cs_value); } @@ -10528,7 +10532,7 @@ static char *MTHGC0(uint64 instruction, Dis_info *info) uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MTHGC0 %s, CP%" PRIu64 ", 0x%" PRIx64, rt, c0s_value, sel_value); @@ -10549,8 +10553,8 @@ static char *MTHI_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rs = GPR(rs_value); - const char *ac = AC(ac_value); + const char *rs = GPR(rs_value, info); + const char *ac = AC(ac_value, info); return img_format("MTHI %s, %s", rs, ac); } @@ -10570,8 +10574,8 @@ static char *MTHLIP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rs = GPR(rs_value); - const char *ac = AC(ac_value); + const char *rs = GPR(rs_value, info); + const char *ac = AC(ac_value, info); return img_format("MTHLIP %s, %s", rs, ac); } @@ -10594,7 +10598,7 @@ static char *MTHTR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MTHTR %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, rt, c0s_value, u_value, sel_value); @@ -10615,8 +10619,8 @@ static char *MTLO_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rs = GPR(rs_value); - const char *ac = AC(ac_value); + const char *rs = GPR(rs_value, info); + const char *ac = AC(ac_value, info); return img_format("MTLO %s, %s", rs, ac); } @@ -10639,7 +10643,7 @@ static char *MTTR(uint64 instruction, Dis_info *info) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("MTTR %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, rt, c0s_value, u_value, sel_value); @@ -10662,9 +10666,9 @@ static char *MUH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MUH %s, %s, %s", rd, rs, rt); } @@ -10686,9 +10690,9 @@ static char *MUHU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MUHU %s, %s, %s", rd, rs, rt); } @@ -10710,9 +10714,9 @@ static char *MUL_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MUL %s, %s, %s", rd, rs, rt); } @@ -10733,8 +10737,8 @@ static char *MUL_4X4_(uint64 instruction, Dis_info *info) uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); - const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); - const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value, info), info); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value, info), info); return img_format("MUL %s, %s", rs4, rt4); } @@ -10756,9 +10760,9 @@ static char *MUL_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MUL.D %s, %s, %s", fd, fs, ft); } @@ -10781,9 +10785,9 @@ static char *MUL_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MUL.PH %s, %s, %s", rd, rs, rt); } @@ -10806,9 +10810,9 @@ static char *MUL_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MUL_S.PH %s, %s, %s", rd, rs, rt); } @@ -10830,9 +10834,9 @@ static char *MUL_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("MUL.S %s, %s, %s", fd, fs, ft); } @@ -10855,9 +10859,9 @@ static char *MULEQ_S_W_PHL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULEQ_S.W.PHL %s, %s, %s", rd, rs, rt); } @@ -10880,9 +10884,9 @@ static char *MULEQ_S_W_PHR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULEQ_S.W.PHR %s, %s, %s", rd, rs, rt); } @@ -10905,9 +10909,9 @@ static char *MULEU_S_PH_QBL(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULEU_S.PH.QBL %s, %s, %s", rd, rs, rt); } @@ -10930,9 +10934,9 @@ static char *MULEU_S_PH_QBR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULEU_S.PH.QBR %s, %s, %s", rd, rs, rt); } @@ -10955,9 +10959,9 @@ static char *MULQ_RS_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULQ_RS.PH %s, %s, %s", rd, rs, rt); } @@ -10980,9 +10984,9 @@ static char *MULQ_RS_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULQ_RS.W %s, %s, %s", rd, rs, rt); } @@ -11005,9 +11009,9 @@ static char *MULQ_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -11030,9 +11034,9 @@ static char *MULQ_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULQ_S.W %s, %s, %s", rd, rs, rt); } @@ -11055,9 +11059,9 @@ static char *MULSA_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULSA.W.PH %s, %s, %s", ac, rs, rt); } @@ -11080,9 +11084,9 @@ static char *MULSAQ_S_W_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULSAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -11104,9 +11108,9 @@ static char *MULT_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULT %s, %s, %s", ac, rs, rt); } @@ -11128,9 +11132,9 @@ static char *MULTU_DSP_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ac = AC(ac_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULTU %s, %s, %s", ac, rs, rt); } @@ -11152,9 +11156,9 @@ static char *MULU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("MULU %s, %s, %s", rd, rs, rt); } @@ -11175,8 +11179,8 @@ static char *NEG_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("NEG.D %s, %s", ft, fs); } @@ -11197,8 +11201,8 @@ static char *NEG_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("NEG.S %s, %s", ft, fs); } @@ -11256,9 +11260,9 @@ static char *NOR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("NOR %s, %s, %s", rd, rs, rt); } @@ -11279,8 +11283,8 @@ static char *NOT_16_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("NOT %s, %s", rt3, rs3); } @@ -11301,8 +11305,8 @@ static char *OR_16_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); return img_format("OR %s, %s", rs3, rt3); } @@ -11324,9 +11328,9 @@ static char *OR_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("OR %s, %s, %s", rd, rs, rt); } @@ -11348,8 +11352,8 @@ static char *ORI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("ORI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -11372,9 +11376,9 @@ static char *PACKRL_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("PACKRL.PH %s, %s, %s", rd, rs, rt); } @@ -11415,9 +11419,9 @@ static char *PICK_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("PICK.PH %s, %s, %s", rd, rs, rt); } @@ -11440,9 +11444,9 @@ static char *PICK_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("PICK.QB %s, %s, %s", rd, rs, rt); } @@ -11464,8 +11468,8 @@ static char *PRECEQ_W_PHL(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEQ.W.PHL %s, %s", rt, rs); } @@ -11487,8 +11491,8 @@ static char *PRECEQ_W_PHR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEQ.W.PHR %s, %s", rt, rs); } @@ -11510,8 +11514,8 @@ static char *PRECEQU_PH_QBLA(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEQU.PH.QBLA %s, %s", rt, rs); } @@ -11533,8 +11537,8 @@ static char *PRECEQU_PH_QBL(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEQU.PH.QBL %s, %s", rt, rs); } @@ -11556,8 +11560,8 @@ static char *PRECEQU_PH_QBRA(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEQU.PH.QBRA %s, %s", rt, rs); } @@ -11579,8 +11583,8 @@ static char *PRECEQU_PH_QBR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEQU.PH.QBR %s, %s", rt, rs); } @@ -11603,8 +11607,8 @@ static char *PRECEU_PH_QBLA(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEU.PH.QBLA %s, %s", rt, rs); } @@ -11626,8 +11630,8 @@ static char *PRECEU_PH_QBL(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEU.PH.QBL %s, %s", rt, rs); } @@ -11650,8 +11654,8 @@ static char *PRECEU_PH_QBRA(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEU.PH.QBRA %s, %s", rt, rs); } @@ -11673,8 +11677,8 @@ static char *PRECEU_PH_QBR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECEU.PH.QBR %s, %s", rt, rs); } @@ -11697,9 +11701,9 @@ static char *PRECR_QB_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("PRECR.QB.PH %s, %s, %s", rd, rs, rt); } @@ -11722,8 +11726,8 @@ static char *PRECR_SRA_PH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECR_SRA.PH.W %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -11746,8 +11750,8 @@ static char *PRECR_SRA_R_PH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PRECR_SRA_R.PH.W %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -11770,9 +11774,9 @@ static char *PRECRQ_PH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("PRECRQ.PH.W %s, %s, %s", rd, rs, rt); } @@ -11795,9 +11799,9 @@ static char *PRECRQ_QB_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("PRECRQ.QB.PH %s, %s, %s", rd, rs, rt); } @@ -11820,9 +11824,9 @@ static char *PRECRQ_RS_PH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("PRECRQ_RS.PH.W %s, %s, %s", rd, rs, rt); } @@ -11845,9 +11849,9 @@ static char *PRECRQU_S_QB_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("PRECRQU_S.QB.PH %s, %s, %s", rd, rs, rt); } @@ -11869,7 +11873,7 @@ static char *PREF_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("PREF 0x%" PRIx64 ", %s(%s)", hint_value, s_value, rs); @@ -11892,7 +11896,7 @@ static char *PREF_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("PREF 0x%" PRIx64 ", 0x%" PRIx64 "(%s)", hint_value, u_value, rs); @@ -11915,7 +11919,7 @@ static char *PREFE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("PREFE 0x%" PRIx64 ", %s(%s)", hint_value, s_value, rs); } @@ -11937,8 +11941,8 @@ static char *PREPEND(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("PREPEND %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -11958,8 +11962,8 @@ static char *RADDU_W_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("RADDU.W.QB %s, %s", rt, rs); } @@ -11979,7 +11983,7 @@ static char *RDDSP(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("RDDSP %s, 0x%" PRIx64, rt, mask_value); } @@ -12001,7 +12005,7 @@ static char *RDHWR(uint64 instruction, Dis_info *info) uint64 hs_value = extract_hs_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("RDHWR %s, CP%" PRIu64 ", 0x%" PRIx64, rt, hs_value, sel_value); @@ -12023,8 +12027,8 @@ static char *RDPGPR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("RDPGPR %s, %s", rt, rs); } @@ -12045,8 +12049,8 @@ static char *RECIP_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("RECIP.D %s, %s", ft, fs); } @@ -12067,8 +12071,8 @@ static char *RECIP_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("RECIP.S %s, %s", ft, fs); } @@ -12089,7 +12093,7 @@ static char *REPL_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se9_20_19_18_17_16_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("REPL.PH %s, %s", rt, s_value); } @@ -12110,7 +12114,7 @@ static char *REPL_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_19_18_17_16_15_14_13(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("REPL.QB %s, 0x%" PRIx64, rt, u_value); } @@ -12131,8 +12135,8 @@ static char *REPLV_PH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("REPLV.PH %s, %s", rt, rs); } @@ -12152,8 +12156,8 @@ static char *REPLV_QB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("REPLV.QB %s, %s", rt, rs); } @@ -12177,7 +12181,7 @@ static char *RESTORE_32_(uint64 instruction, Dis_info *info) uint64 gp_value = extract_gp_2(instruction); g_autofree char *save_restore_str = save_restore_list( - rt_value, count_value, gp_value); + rt_value, count_value, gp_value, info); return img_format("RESTORE 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -12199,7 +12203,7 @@ static char *RESTORE_JRC_16_(uint64 instruction, Dis_info *info) uint64 count_value = extract_count_3_2_1_0(instruction); g_autofree char *save_restore_str = save_restore_list( - encode_rt1_from_rt(rt1_value), count_value, 0); + encode_rt1_from_rt(rt1_value), count_value, 0, info); return img_format("RESTORE.JRC 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -12222,7 +12226,7 @@ static char *RESTORE_JRC_32_(uint64 instruction, Dis_info *info) uint64 gp_value = extract_gp_2(instruction); g_autofree char *save_restore_str = save_restore_list( - rt_value, count_value, gp_value); + rt_value, count_value, gp_value, info); return img_format("RESTORE.JRC 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -12263,8 +12267,8 @@ static char *RINT_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("RINT.D %s, %s", ft, fs); } @@ -12285,8 +12289,8 @@ static char *RINT_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("RINT.S %s, %s", ft, fs); } @@ -12308,8 +12312,8 @@ static char *ROTR(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("ROTR %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -12331,9 +12335,9 @@ static char *ROTRV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("ROTRV %s, %s, %s", rd, rs, rt); } @@ -12357,8 +12361,8 @@ static char *ROTX(uint64 instruction, Dis_info *info) uint64 stripe_value = extract_stripe_6(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("ROTX %s, %s, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64, rt, rs, shift_value, shiftx_value, stripe_value); @@ -12380,8 +12384,8 @@ static char *ROUND_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("ROUND.L.D %s, %s", ft, fs); } @@ -12402,8 +12406,8 @@ static char *ROUND_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("ROUND.L.S %s, %s", ft, fs); } @@ -12424,8 +12428,8 @@ static char *ROUND_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("ROUND.W.D %s, %s", ft, fs); } @@ -12446,8 +12450,8 @@ static char *ROUND_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("ROUND.W.S %s, %s", ft, fs); } @@ -12468,8 +12472,8 @@ static char *RSQRT_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("RSQRT.D %s, %s", ft, fs); } @@ -12490,8 +12494,8 @@ static char *RSQRT_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("RSQRT.S %s, %s", ft, fs); } @@ -12514,7 +12518,7 @@ static char *SAVE_16_(uint64 instruction, Dis_info *info) uint64 count_value = extract_count_3_2_1_0(instruction); g_autofree char *save_restore_str = save_restore_list( - encode_rt1_from_rt(rt1_value), count_value, 0); + encode_rt1_from_rt(rt1_value), count_value, 0, info); return img_format("SAVE 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -12537,7 +12541,7 @@ static char *SAVE_32_(uint64 instruction, Dis_info *info) uint64 gp_value = extract_gp_2(instruction); g_autofree char *save_restore_str = save_restore_list( - rt_value, count_value, gp_value); + rt_value, count_value, gp_value, info); return img_format("SAVE 0x%" PRIx64 "%s", u_value, save_restore_str); } @@ -12578,8 +12582,8 @@ static char *SB_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_1_0(instruction); - const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("SB %s, 0x%" PRIx64 "(%s)", rtz3, u_value, rs3); } @@ -12600,7 +12604,7 @@ static char *SB_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("SB %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -12622,8 +12626,8 @@ static char *SB_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SB %s, %s(%s)", rt, s_value, rs); } @@ -12645,8 +12649,8 @@ static char *SB_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SB %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -12668,8 +12672,8 @@ static char *SBE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SBE %s, %s(%s)", rt, s_value, rs); } @@ -12691,9 +12695,9 @@ static char *SBX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SBX %s, %s(%s)", rd, rs, rt); } @@ -12715,8 +12719,8 @@ static char *SC(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SC %s, %s(%s)", rt, s_value, rs); } @@ -12738,8 +12742,8 @@ static char *SCD(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_s3(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SCD %s, %s(%s)", rt, s_value, rs); } @@ -12761,9 +12765,9 @@ static char *SCDP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - const char *rt = GPR(rt_value); - const char *ru = GPR(ru_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ru = GPR(ru_value, info); + const char *rs = GPR(rs_value, info); return img_format("SCDP %s, %s, (%s)", rt, ru, rs); } @@ -12785,8 +12789,8 @@ static char *SCE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_s2(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SCE %s, %s(%s)", rt, s_value, rs); } @@ -12808,9 +12812,9 @@ static char *SCWP(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - const char *rt = GPR(rt_value); - const char *ru = GPR(ru_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ru = GPR(ru_value, info); + const char *rs = GPR(rs_value, info); return img_format("SCWP %s, %s, (%s)", rt, ru, rs); } @@ -12832,9 +12836,9 @@ static char *SCWPE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ru_value = extract_ru_7_6_5_4_3(instruction); - const char *rt = GPR(rt_value); - const char *ru = GPR(ru_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *ru = GPR(ru_value, info); + const char *rs = GPR(rs_value, info); return img_format("SCWPE %s, %s, (%s)", rt, ru, rs); } @@ -12855,7 +12859,7 @@ static char *SD_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("SD %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -12877,8 +12881,8 @@ static char *SD_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SD %s, %s(%s)", rt, s_value, rs); } @@ -12900,8 +12904,8 @@ static char *SD_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SD %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -12960,7 +12964,7 @@ static char *SDC1_GP_(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - const char *ft = FPR(ft_value); + const char *ft = FPR(ft_value, info); return img_format("SDC1 %s, 0x%" PRIx64 "($%d)", ft, u_value, 28); } @@ -12982,8 +12986,8 @@ static char *SDC1_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); return img_format("SDC1 %s, %s(%s)", ft, s_value, rs); } @@ -13005,8 +13009,8 @@ static char *SDC1_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); return img_format("SDC1 %s, 0x%" PRIx64 "(%s)", ft, u_value, rs); } @@ -13028,9 +13032,9 @@ static char *SDC1X(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SDC1X %s, %s(%s)", ft, rs, rt); } @@ -13052,9 +13056,9 @@ static char *SDC1XS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SDC1XS %s, %s(%s)", ft, rs, rt); } @@ -13076,7 +13080,7 @@ static char *SDC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("SDC2 CP%" PRIu64 ", %s(%s)", cs_value, s_value, rs); } @@ -13099,8 +13103,8 @@ static char *SDM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); return img_format("SDM %s, %s(%s), 0x%" PRIx64, rt, s_value, rs, count3); @@ -13122,7 +13126,7 @@ static char *SDPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("SDPC %s, %s", rt, s); @@ -13145,9 +13149,9 @@ static char *SDXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SDXS %s, %s(%s)", rd, rs, rt); } @@ -13169,9 +13173,9 @@ static char *SDX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SDX %s, %s(%s)", rd, rs, rt); } @@ -13192,8 +13196,8 @@ static char *SEB(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SEB %s, %s", rt, rs); } @@ -13214,8 +13218,8 @@ static char *SEH(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SEH %s, %s", rt, rs); } @@ -13237,9 +13241,9 @@ static char *SEL_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("SEL.D %s, %s, %s", fd, fs, ft); } @@ -13261,9 +13265,9 @@ static char *SEL_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("SEL.S %s, %s, %s", fd, fs, ft); } @@ -13285,9 +13289,9 @@ static char *SELEQZ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("SELEQZ.D %s, %s, %s", fd, fs, ft); } @@ -13309,9 +13313,9 @@ static char *SELEQZ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("SELEQZ.S %s, %s, %s", fd, fs, ft); } @@ -13333,9 +13337,9 @@ static char *SELNEZ_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("SELNEZ.D %s, %s, %s", fd, fs, ft); } @@ -13357,9 +13361,9 @@ static char *SELNEZ_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("SELNEZ.S %s, %s, %s", fd, fs, ft); } @@ -13381,8 +13385,8 @@ static char *SEQI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SEQI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -13404,8 +13408,8 @@ static char *SH_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_2_1__s1(instruction); - const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("SH %s, 0x%" PRIx64 "(%s)", rtz3, u_value, rs3); } @@ -13426,7 +13430,7 @@ static char *SH_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("SH %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -13448,8 +13452,8 @@ static char *SH_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SH %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -13471,8 +13475,8 @@ static char *SH_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SH %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -13494,8 +13498,8 @@ static char *SHE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -13516,7 +13520,7 @@ static char *SHILO(uint64 instruction, Dis_info *info) int64 shift_value = extract_shift__se5_21_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(ac_value); + const char *ac = AC(ac_value, info); return img_format("SHILO %s, 0x%" PRIx64, ac, shift_value); } @@ -13537,8 +13541,8 @@ static char *SHILOV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rs = GPR(rs_value); - const char *ac = AC(ac_value); + const char *rs = GPR(rs_value, info); + const char *ac = AC(ac_value, info); return img_format("SHILOV %s, %s", ac, rs); } @@ -13560,8 +13564,8 @@ static char *SHLL_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHLL.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13583,8 +13587,8 @@ static char *SHLL_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHLL.QB %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13607,8 +13611,8 @@ static char *SHLL_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHLL_S.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13630,8 +13634,8 @@ static char *SHLL_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHLL_S.W %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13654,9 +13658,9 @@ static char *SHLLV_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHLLV.PH %s, %s, %s", rd, rt, rs); } @@ -13678,9 +13682,9 @@ static char *SHLLV_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHLLV.QB %s, %s, %s", rd, rt, rs); } @@ -13703,9 +13707,9 @@ static char *SHLLV_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHLLV_S.PH %s, %s, %s", rd, rt, rs); } @@ -13727,9 +13731,9 @@ static char *SHLLV_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHLLV_S.W %s, %s, %s", rd, rt, rs); } @@ -13751,8 +13755,8 @@ static char *SHRA_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRA.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13774,8 +13778,8 @@ static char *SHRA_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRA.QB %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13797,8 +13801,8 @@ static char *SHRA_R_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRA_R.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13820,8 +13824,8 @@ static char *SHRA_R_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRA_R.QB %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13843,8 +13847,8 @@ static char *SHRA_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12_11(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRA_R.W %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -13866,9 +13870,9 @@ static char *SHRAV_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRAV.PH %s, %s, %s", rd, rt, rs); } @@ -13890,9 +13894,9 @@ static char *SHRAV_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRAV.QB %s, %s, %s", rd, rt, rs); } @@ -13914,9 +13918,9 @@ static char *SHRAV_R_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRAV_R.PH %s, %s, %s", rd, rt, rs); } @@ -13938,9 +13942,9 @@ static char *SHRAV_R_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRAV_R.QB %s, %s, %s", rd, rt, rs); } @@ -13962,9 +13966,9 @@ static char *SHRAV_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRAV_R.W %s, %s, %s", rd, rt, rs); } @@ -13986,8 +13990,8 @@ static char *SHRL_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRL.PH %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -14009,8 +14013,8 @@ static char *SHRL_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRL.QB %s, %s, 0x%" PRIx64, rt, rs, sa_value); } @@ -14033,9 +14037,9 @@ static char *SHRLV_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRLV.PH %s, %s, %s", rd, rt, rs); } @@ -14057,9 +14061,9 @@ static char *SHRLV_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rd = GPR(rd_value, info); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SHRLV.QB %s, %s, %s", rd, rt, rs); } @@ -14081,9 +14085,9 @@ static char *SHX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SHX %s, %s(%s)", rd, rs, rt); } @@ -14105,9 +14109,9 @@ static char *SHXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SHXS %s, %s(%s)", rd, rs, rt); } @@ -14148,8 +14152,8 @@ static char *SLL_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 shift3_value = extract_shift3_2_1_0(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); uint64 shift3 = encode_shift3_from_shift(shift3_value); return img_format("SLL %s, %s, 0x%" PRIx64, rt3, rs3, shift3); @@ -14172,8 +14176,8 @@ static char *SLL_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SLL %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -14195,9 +14199,9 @@ static char *SLLV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SLLV %s, %s, %s", rd, rs, rt); } @@ -14219,9 +14223,9 @@ static char *SLT(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SLT %s, %s, %s", rd, rs, rt); } @@ -14243,8 +14247,8 @@ static char *SLTI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SLTI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -14266,8 +14270,8 @@ static char *SLTIU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SLTIU %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -14289,9 +14293,9 @@ static char *SLTU(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SLTU %s, %s, %s", rd, rs, rt); } @@ -14313,9 +14317,9 @@ static char *SOV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SOV %s, %s, %s", rd, rs, rt); } @@ -14355,8 +14359,8 @@ static char *SQRT_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("SQRT.D %s, %s", ft, fs); } @@ -14377,8 +14381,8 @@ static char *SQRT_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("SQRT.S %s, %s", ft, fs); } @@ -14400,8 +14404,8 @@ static char *SRA(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SRA %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -14423,9 +14427,9 @@ static char *SRAV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SRAV %s, %s, %s", rd, rs, rt); } @@ -14447,8 +14451,8 @@ static char *SRL_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 shift3_value = extract_shift3_2_1_0(instruction); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); uint64 shift3 = encode_shift3_from_shift(shift3_value); return img_format("SRL %s, %s, 0x%" PRIx64, rt3, rs3, shift3); @@ -14471,8 +14475,8 @@ static char *SRL_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SRL %s, %s, 0x%" PRIx64, rt, rs, shift_value); } @@ -14494,9 +14498,9 @@ static char *SRLV(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SRLV %s, %s, %s", rd, rs, rt); } @@ -14518,9 +14522,9 @@ static char *SUB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUB %s, %s, %s", rd, rs, rt); } @@ -14542,9 +14546,9 @@ static char *SUB_D(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("SUB.D %s, %s, %s", fd, fs, ft); } @@ -14566,9 +14570,9 @@ static char *SUB_S(uint64 instruction, Dis_info *info) uint64 fs_value = extract_fs_20_19_18_17_16(instruction); uint64 fd_value = extract_fd_15_14_13_12_11(instruction); - const char *fd = FPR(fd_value); - const char *fs = FPR(fs_value); - const char *ft = FPR(ft_value); + const char *fd = FPR(fd_value, info); + const char *fs = FPR(fs_value, info); + const char *ft = FPR(ft_value, info); return img_format("SUB.S %s, %s, %s", fd, fs, ft); } @@ -14590,9 +14594,9 @@ static char *SUBQ_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBQ.PH %s, %s, %s", rd, rs, rt); } @@ -14615,9 +14619,9 @@ static char *SUBQ_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -14640,9 +14644,9 @@ static char *SUBQ_S_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBQ_S.W %s, %s, %s", rd, rs, rt); } @@ -14665,9 +14669,9 @@ static char *SUBQH_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBQH.PH %s, %s, %s", rd, rs, rt); } @@ -14690,9 +14694,9 @@ static char *SUBQH_R_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -14715,9 +14719,9 @@ static char *SUBQH_R_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBQH_R.W %s, %s, %s", rd, rs, rt); } @@ -14740,9 +14744,9 @@ static char *SUBQH_W(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBQH.W %s, %s, %s", rd, rs, rt); } @@ -14764,9 +14768,9 @@ static char *SUBU_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 rd3_value = extract_rd3_3_2_1(instruction); - const char *rd3 = GPR(decode_gpr_gpr3(rd3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rd3 = GPR(decode_gpr_gpr3(rd3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); return img_format("SUBU %s, %s, %s", rd3, rs3, rt3); } @@ -14788,9 +14792,9 @@ static char *SUBU_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBU %s, %s, %s", rd, rs, rt); } @@ -14812,9 +14816,9 @@ static char *SUBU_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBU.PH %s, %s, %s", rd, rs, rt); } @@ -14836,9 +14840,9 @@ static char *SUBU_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBU.QB %s, %s, %s", rd, rs, rt); } @@ -14861,9 +14865,9 @@ static char *SUBU_S_PH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBU_S.PH %s, %s, %s", rd, rs, rt); } @@ -14886,9 +14890,9 @@ static char *SUBU_S_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBU_S.QB %s, %s, %s", rd, rs, rt); } @@ -14911,9 +14915,9 @@ static char *SUBUH_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBUH.QB %s, %s, %s", rd, rs, rt); } @@ -14936,9 +14940,9 @@ static char *SUBUH_R_QB(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SUBUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -14960,8 +14964,8 @@ static char *SW_16_(uint64 instruction, Dis_info *info) uint64 rs3_value = extract_rs3_6_5_4(instruction); uint64 u_value = extract_u_3_2_1_0__s2(instruction); - const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value, info), info); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); return img_format("SW %s, 0x%" PRIx64 "(%s)", rtz3, u_value, rs3); } @@ -14983,8 +14987,8 @@ static char *SW_4X4_(uint64 instruction, Dis_info *info) uint64 rs4_value = extract_rs4_4_2_1_0(instruction); uint64 u_value = extract_u_3_8__s2(instruction); - const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value, info), info); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value, info), info); return img_format("SW %s, 0x%" PRIx64 "(%s)", rtz4, u_value, rs4); } @@ -15005,7 +15009,7 @@ static char *SW_GP16_(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); uint64 rtz3_value = extract_rtz3_9_8_7(instruction); - const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value, info), info); return img_format("SW %s, 0x%" PRIx64 "($%d)", rtz3, u_value, 28); } @@ -15026,7 +15030,7 @@ static char *SW_GP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("SW %s, 0x%" PRIx64 "($%d)", rt, u_value, 28); } @@ -15048,8 +15052,8 @@ static char *SW_S9_(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SW %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -15070,7 +15074,7 @@ static char *SW_SP_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("SW %s, 0x%" PRIx64 "($%d)", rt, u_value, 29); } @@ -15092,8 +15096,8 @@ static char *SW_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SW %s, 0x%" PRIx64 "(%s)", rt, u_value, rs); } @@ -15114,7 +15118,7 @@ static char *SWC1_GP_(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); - const char *ft = FPR(ft_value); + const char *ft = FPR(ft_value, info); return img_format("SWC1 %s, 0x%" PRIx64 "($%d)", ft, u_value, 28); } @@ -15136,8 +15140,8 @@ static char *SWC1_S9_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); return img_format("SWC1 %s, %" PRId64 "(%s)", ft, s_value, rs); } @@ -15159,8 +15163,8 @@ static char *SWC1_U12_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); return img_format("SWC1 %s, 0x%" PRIx64 "(%s)", ft, u_value, rs); } @@ -15182,9 +15186,9 @@ static char *SWC1X(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SWC1X %s, %s(%s)", ft, rs, rt); } @@ -15206,9 +15210,9 @@ static char *SWC1XS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ft_value = extract_ft_15_14_13_12_11(instruction); - const char *ft = FPR(ft_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *ft = FPR(ft_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SWC1XS %s, %s(%s)", ft, rs, rt); } @@ -15230,7 +15234,7 @@ static char *SWC2(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("SWC2 CP%" PRIu64 ", %" PRId64 "(%s)", cs_value, s_value, rs); @@ -15253,8 +15257,8 @@ static char *SWE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("SWE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -15277,8 +15281,8 @@ static char *SWM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); return img_format("SWM %s, %" PRId64 "(%s), 0x%" PRIx64, @@ -15301,7 +15305,7 @@ static char *SWPC_48_(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); g_autofree char *s = ADDRESS(s_value, 6, info); return img_format("SWPC %s, %s", rt, s); @@ -15324,9 +15328,9 @@ static char *SWX(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SWX %s, %s(%s)", rd, rs, rt); } @@ -15348,9 +15352,9 @@ static char *SWXS(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("SWXS %s, %s(%s)", rd, rs, rt); } @@ -15390,7 +15394,7 @@ static char *SYNCI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("SYNCI %" PRId64 "(%s)", s_value, rs); } @@ -15411,7 +15415,7 @@ static char *SYNCIE(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rs = GPR(rs_value); + const char *rs = GPR(rs_value, info); return img_format("SYNCIE %" PRId64 "(%s)", s_value, rs); } @@ -15468,8 +15472,8 @@ static char *TEQ(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("TEQ %s, %s", rs, rt); } @@ -15706,8 +15710,8 @@ static char *TNE(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("TNE %s, %s", rs, rt); } @@ -15728,8 +15732,8 @@ static char *TRUNC_L_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("TRUNC.L.D %s, %s", ft, fs); } @@ -15750,8 +15754,8 @@ static char *TRUNC_L_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("TRUNC.L.S %s, %s", ft, fs); } @@ -15772,8 +15776,8 @@ static char *TRUNC_W_D(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("TRUNC.W.D %s, %s", ft, fs); } @@ -15794,8 +15798,8 @@ static char *TRUNC_W_S(uint64 instruction, Dis_info *info) uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); - const char *ft = FPR(ft_value); - const char *fs = FPR(fs_value); + const char *ft = FPR(ft_value, info); + const char *fs = FPR(fs_value, info); return img_format("TRUNC.W.S %s, %s", ft, fs); } @@ -15818,8 +15822,8 @@ static char *UALDM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); return img_format("UALDM %s, %" PRId64 "(%s), 0x%" PRIx64, @@ -15843,8 +15847,8 @@ static char *UALH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("UALH %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -15867,8 +15871,8 @@ static char *UALWM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); return img_format("UALWM %s, %" PRId64 "(%s), 0x%" PRIx64, @@ -15893,8 +15897,8 @@ static char *UASDM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); return img_format("UASDM %s, %" PRId64 "(%s), 0x%" PRIx64, @@ -15918,8 +15922,8 @@ static char *UASH(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("UASH %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -15942,8 +15946,8 @@ static char *UASWM(uint64 instruction, Dis_info *info) int64 s_value = extract_s__se8_15_7_6_5_4_3_2_1_0(instruction); uint64 count3_value = extract_count3_14_13_12(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); return img_format("UASWM %s, %" PRId64 "(%s), 0x%" PRIx64, @@ -16002,7 +16006,7 @@ static char *WRDSP(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); - const char *rt = GPR(rt_value); + const char *rt = GPR(rt_value, info); return img_format("WRDSP %s, 0x%" PRIx64, rt, mask_value); } @@ -16023,8 +16027,8 @@ static char *WRPGPR(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("WRPGPR %s, %s", rt, rs); } @@ -16045,8 +16049,8 @@ static char *XOR_16_(uint64 instruction, Dis_info *info) uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); - const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value, info), info); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value, info), info); return img_format("XOR %s, %s", rs3, rt3); } @@ -16068,9 +16072,9 @@ static char *XOR_32_(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 rd_value = extract_rd_15_14_13_12_11(instruction); - const char *rd = GPR(rd_value); - const char *rs = GPR(rs_value); - const char *rt = GPR(rt_value); + const char *rd = GPR(rd_value, info); + const char *rs = GPR(rs_value, info); + const char *rt = GPR(rt_value, info); return img_format("XOR %s, %s, %s", rd, rs, rt); } @@ -16092,8 +16096,8 @@ static char *XORI(uint64 instruction, Dis_info *info) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3_2_1_0(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("XORI %s, %s, 0x%" PRIx64, rt, rs, u_value); } @@ -16113,8 +16117,8 @@ static char *YIELD(uint64 instruction, Dis_info *info) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rt = GPR(rt_value); - const char *rs = GPR(rs_value); + const char *rt = GPR(rt_value, info); + const char *rs = GPR(rs_value, info); return img_format("YIELD %s, %s", rt, rs); } @@ -21949,6 +21953,8 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) Dis_info disassm_info; disassm_info.m_pc = memaddr; + disassm_info.fprintf_func = info->fprintf_func; + disassm_info.stream = info->stream; status = (*info->read_memory_func)(memaddr, buffer, 2, info); if (status != 0) { From patchwork Mon Sep 12 12:26:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00E2AC6FA83 for ; Mon, 12 Sep 2022 12:59:51 +0000 (UTC) Received: from localhost ([::1]:57490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXj2V-0002JT-4U for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 08:59:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXibx-0007YD-LS for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:27 -0400 Received: from mail-eopbgr60137.outbound.protection.outlook.com ([40.107.6.137]:3867 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXibv-0006XE-Ue for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ivCgWFlpFBMviG1kkafr7v0BcjjMGktCr2zuHtK8pumC9TmSsLnlMpcr63IgVjUa29j75pmhzJsm+r+zpnzHEh93cdy/K2RaeqnU/Iyz/uYBUMiGdcNIMGQapqSJ2x10eSCLqGe1HAsCbIQooSt2XvggbypZQGXl+t3OP27tzESSFV4RVMTVo57SMwWEGrgPuSJvOp6uL70PGO960snfTlcF+7HRtO+RJ9E5TGB5728iG5z7tjlyYhyAe/jNw70cb5CsO+crueiyOsHBLbumTe52edLytfk0UZfTfoUEulntG3AtaPr2Tbjyh3JecprvrUMlwJLwO3xakSdy9zwQHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Z0mMFLdwjvvJ7iEv/azxSSN0sv3dqttk1cTguc11cu0=; b=MNS6TBB9nzUfC5VW9yf8pzqyfPQbqnm+ksFBfJ4SBUZzTYIjtpzoRelT/ejyEswcu4Ddpb72qRW2d07EPmMsL6ts+OnPListpG7QmOO+KHTtpCYFysIAFo0uq3T9Tp188cll1QqWQObUeQ4/McGiMzbB2NnktWqNRC5DxX9UXU/MDz0uTMZx4cEIUMefHtyvMgxmbbeopG17jO6mN5T62bf3E0ob4XM45M9/n4mGyQdMrsfF6Q1NtfvyzH4jgAy1n17xzitxPG6ZWZjvZk225PIoB3T2qx2R2goyTmGmAz0gMQVCyl9yhwIcFhbU1XZT9MImngUrNdzsCjBfePm37A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z0mMFLdwjvvJ7iEv/azxSSN0sv3dqttk1cTguc11cu0=; b=huB1Vp9+UqRqiVE6XJ31WyhySVTiQDIw9qvkYg1T9fMYfYv87K+oyPiqAI5YqD3Zo/KIlwtW6wNBnKdpf+PevxH1ozclnZwrJ1nWFSzoUKQrvboICNekdwPKL82j6r/fLchUsFdTQwD06aPBs7DoPv8uyvQl5M5iNVN3vOWpVl0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by DB4PR03MB9481.eurprd03.prod.outlook.com (2603:10a6:10:3f7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:32:17 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:32:17 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 21/24] disas/nanomips: Replace exception handling Date: Mon, 12 Sep 2022 14:26:32 +0200 Message-Id: <20220912122635.74032-22-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|DB4PR03MB9481:EE_ X-MS-Office365-Filtering-Correlation-Id: dccb2e8c-5e43-45a8-3036-08da94bad430 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9B3s0SqSQr/XFjawz3OXzu1RmE+nmzwy9hwBibSsXyRCGn7pF51LQGyGafGsJZ/nbJsono8QB6QS4aoMlvQmTFqOxDreC7pXf4+YCgyMArqe4FCfRMQzOMrXa8u8Axna0M5Ey96qeqvcZ9hox5l2pRBQXmNSzOMcTlAfZ/3TxLZxccmC81aiQ5QJ1bEe0UYt4e1Dmlb60p7SmqJ0mCJkg3GptexhLyNQI+4MIZ45tYkmEDSHzmf7NznDPzu7Zh5xNLdKy87NBFNZ9o+4Zj+DIgjWp+TTIbm1/J9HKMjvNw70LuYxzWr5wI1RG0Pka2t1tBqrkkQwbcsSZVUeCwgr/eAqNzQOihxwe7OCKi+liKZlmLt89rhnFVz/leTBUdZHhGPRwcDGTUNBNklvO/J1e6hKqRMOGupPT12AleGbE7tBL7/LJB1sRZ9t7nQxch9j9uaKKkqMr8QGVNtFTXqyqPxWpdhK1pcTU7jS4oty0vX0eevi9vton/3zvAZO6qmKMK094/zWZIRa3RVl6I5xuScKj1vl6dNMrUCOZWQtE62Ifo+b0TCKppPqbvMqIhitKqukZYzJVqzLla3wUbpjb8SH6rF7lGYrvt1jI8cYdTOtkhEudCwhmUrnlPwceZAjZ5kNrxk5cLype21ge6SJSrJt4HCtnpg3KXQvbNC1l2c2jaDD/bT18s2+m/6gJPA698N6gpL9mMPbelALnX6I78FStFDXUvEO3JaNm7As2rbwiBR4k1k/GH4eE10WaDcM X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(39830400003)(376002)(346002)(366004)(396003)(38100700002)(26005)(36756003)(6512007)(41300700001)(83380400001)(107886003)(6666004)(2906002)(52116002)(8936002)(2616005)(44832011)(1076003)(186003)(6506007)(5660300002)(86362001)(66556008)(66946007)(66476007)(8676002)(6486002)(4326008)(38350700002)(6916009)(316002)(478600001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KEXf20L3WJ7+8UgtFyzPH72M0V6vW/iD+y/ITGo7JB3a6F///NbMWtYvXdfHYe0Iquwng/ST2DGwuisg3oCUQqOJC5VeT3NCN8IsbayHHHNXqoFs56j7uj2lGdHdi9cCcnQ8D5Ah7DD+Fy2JAdi0zyPvR5lEiyQ6aHvPed2HPQQQGGthCuMi/0RDNFDb4kKFBJSdogvtFdu3fQeFMGiQbQaQ+aLGsadLXtDRbSHzFuZLZV4NPNcdDWitNOvroYqiAAWtllhzXtHfSbJuw+KRRpx6nnW4vuQRlgIpQ1/xG2sw9f40YR4dH1yU0RMKcj36MS7tRmH4CcybxHkmnPkbhC4XjyRwKHaHIcI/Oistw98ZwMQZkmuK4S4J7gFXvOJsrynQ4+gKqrJdezopROBaPHOi2kPzBXbh+198ZdBCOk+6BeXpRWcggJTUBUDsmxDiS4f2l5sE19Qnvw2/AFWRUpMaoZPKxI3Bi5wx9Pcy8O6jrpmxmwYV7Mprt0Ys6qrswHUouOiOgYN7wiqTcuCWUfSvm22k/LNjlLxUnVuqXLucbtthe8mWPCTtuGfll4H8qAsST1HaR3+Pzg1J1tyKi1/XUnU856qaoPtm1swqad2DPHIDmEYt33EU4d7mT0Yu/7chBDHsIt9+4Dz+ibQO4L7rDTwCZ9BtJq1O8POvG/6j5f2hSs+zm+R5LYWI7z6QQt+HemmLf1KKNFKPRzdWox7lTB3tVJhr2fYatu1vfu7GsKK0L7zeP8YznRxyOzcPhyTm8k0bynWxtFoYmOLzfakXWO2XUTnIf7weQ4fzCpv39Hf7LnS06jB5N310sbcjFe+3AAqVDzoHLHDnnfmcg6K55ptMDxdV/diRUm9ZN+FnMqsAmLIt9Fvsmz8lkl/xw4fKyzuOcCSgaQOOlVgczHBJEAtfT/eF/EETBWqlA3Qt5py6u3E2RYj4H44v6JXLiy3kaSFIFCQONAIANFucWHWF7w8/KmimS/VqQPa0Ti94ff/1RQ1SszIpWc6TcPNSMco6Buyv5RWlfByxX1LJelPjjZWF8Y64+8qkZIdVeTwHDcFdFQAVPyHCbZaVDrabinPslYWbTznh/9KAHaU8PgRKSOSkjhguBLSeZH0fRtvFqNwoNtCWb1weYQqisPNLciumCEXzuKSQ/0KgXGjrLN9nXrdAMf7pnjwLL1gnO44TBsvZnOECImC+fbP8llOg0gablZnS11soEJ0Wtwy7zA1Fgcuza+nqrECayEYqsPvRNBRzZOpZ+Llu8mDOKpnThKIq9M7KSi8vHpRQ4/VpsLqAkzEL6ellv/e1eroxh1jQWuzioA5Rp8MZkqcCpA5WJa4r3SVq6QcQw9UEsR1exliWCclzGLIMCrwjRcWKclp1nN15sNT/DprWbXRgtadqevXzjqF3haZHrshbxIy9pByi2xqMmlgyc486ag8zTggefA1QtTrJ6Q6tYC04hHdbUWR/EqgEqqIGnW9eOJ2eW3WM9hqK7Yhw+bytukjydAIiHf7FE4NkX3O+zaMXPi/agv4wCDUymAwcXplW87Lj+NDzKWsZeUsxEc6ANRCSIOfhcDkryPDM5UmmnNMHfMKeM82whTtzXEjlJmg4rz+0+g== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: dccb2e8c-5e43-45a8-3036-08da94bad430 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:32:17.2352 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lCbfXOrjZ1KyG3NxvllCzfAT0ZINAaVMccNSCw77r1loGJ5qsnwLS7/CIQ3a91tAF5rRzht+55feJi4e9T4SIoqWSc4soMzHbm9Jn/Hu91A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9481 Received-SPF: pass client-ip=40.107.6.137; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Since there's no support for exception handling in C, the try-catch blocks have been deleted, and throw clauses are replaced. When a runtime error happens, we're printing out the error message. Disassembling of the current instruction interrupts. This behavior is achieved by adding sigsetjmp() to discard further disassembling after the error message prints and by adding the siglongjmp() function to imitate throwing an error. The goal was to maintain the same output as it was. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 100 ++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 55 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 077dfe0dea..0121d5da61 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -31,7 +31,6 @@ #include "disas/dis-asm.h" #include -#include #include #include @@ -133,10 +132,9 @@ static uint64 renumber_registers(uint64 index, uint64 *register_list, return register_list[index]; } - throw std::runtime_error(img_format( - "Invalid register mapping index %" PRIu64 - ", size of list = %zu", - index, register_list_size)); + info->fprintf_func(info->stream, "Invalid register mapping index %" PRIu64 + ", size of list = %zu", index, register_list_size); + siglongjmp(info->buf, 1); } @@ -466,8 +464,9 @@ static const char *GPR(uint64 reg, Dis_info *info) return gpr_reg[reg]; } - throw std::runtime_error(img_format("Invalid GPR register index %" PRIu64, - reg)); + info->fprintf_func(info->stream, "Invalid GPR register index %" PRIu64, + reg); + siglongjmp(info->buf, 1); } @@ -503,8 +502,9 @@ static const char *FPR(uint64 reg, Dis_info *info) return fpr_reg[reg]; } - throw std::runtime_error(img_format("Invalid FPR register index %" PRIu64, - reg)); + info->fprintf_func(info->stream, "Invalid FPR register index %" PRIu64, + reg); + siglongjmp(info->buf, 1); } @@ -518,8 +518,9 @@ static const char *AC(uint64 reg, Dis_info *info) return ac_reg[reg]; } - throw std::runtime_error(img_format("Invalid AC register index %" PRIu64, - reg)); + info->fprintf_func(info->stream, "Invalid AC register index %" PRIu64, + reg); + siglongjmp(info->buf, 1); } @@ -562,55 +563,38 @@ static int Disassemble(const uint16 *data, char **dis, TABLE_ENTRY_TYPE & type, const Pool *table, int table_size, Dis_info *info) { - try - { - for (int i = 0; i < table_size; i++) { - uint64 op_code = extract_op_code_value(data, - table[i].instructions_size); - if ((op_code & table[i].mask) == table[i].value) { - /* possible match */ - conditional_function cond = table[i].condition; - if ((cond == NULL) || cond(op_code)) { - try - { - if (table[i].type == pool) { - return Disassemble(data, dis, type, - table[i].next_table, - table[i].next_table_size, - info); - } else if ((table[i].type == instruction) || - (table[i].type == call_instruction) || - (table[i].type == branch_instruction) || - (table[i].type == return_instruction)) { - disassembly_function dis_fn = table[i].disassembly; - if (dis_fn == 0) { - *dis = g_strdup( - "disassembler failure - bad table entry"); - return -6; - } - type = table[i].type; - *dis = dis_fn(op_code, info); - return table[i].instructions_size; - } else { - *dis = g_strdup("reserved instruction"); - return -2; - } - } - catch (std::runtime_error & e) - { - *dis = g_strdup(e.what()); - return -3; /* runtime error */ + for (int i = 0; i < table_size; i++) { + uint64 op_code = extract_op_code_value(data, + table[i].instructions_size); + if ((op_code & table[i].mask) == table[i].value) { + /* possible match */ + conditional_function cond = table[i].condition; + if ((cond == NULL) || cond(op_code)) { + if (table[i].type == pool) { + return Disassemble(data, dis, type, + table[i].next_table, + table[i].next_table_size, + info); + } else if ((table[i].type == instruction) || + (table[i].type == call_instruction) || + (table[i].type == branch_instruction) || + (table[i].type == return_instruction)) { + disassembly_function dis_fn = table[i].disassembly; + if (dis_fn == 0) { + *dis = g_strdup( + "disassembler failure - bad table entry"); + return -6; } + type = table[i].type; + *dis = dis_fn(op_code, info); + return table[i].instructions_size; + } else { + *dis = g_strdup("reserved instruction"); + return -2; } } } } - catch (std::exception & e) - { - *dis = g_strdup(e.what()); - return -4; /* runtime error */ - } - *dis = g_strdup("failed to disassemble"); return -1; /* failed to disassemble */ } @@ -22004,6 +21988,12 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) (*info->fprintf_func)(info->stream, " "); } + /* Handle runtime errors. */ + if (sigsetjmp(disassm_info.buf, 0) != 0) { + info->insn_type = dis_noninsn; + return insn3 ? 6 : insn2 ? 4 : 2; + } + int length = nanomips_dis(&buf, &disassm_info, insn1, insn2, insn3); /* FIXME: Should probably use a hash table on the major opcode here. */ From patchwork Mon Sep 12 12:26:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973660 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F8D1C6FA83 for ; Mon, 12 Sep 2022 13:03:40 +0000 (UTC) Received: from localhost ([::1]:51038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXj6B-0006hl-1z for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 09:03:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXic1-0007Z0-17 for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:29 -0400 Received: from mail-eopbgr70122.outbound.protection.outlook.com ([40.107.7.122]:61667 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXibz-0006aE-Gz for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NITWAJcgwB6TyPVKDudKDLmXxTJFLApgLLjF/DgPj5HlnG0j1W6ywcRKW8khgDeWz+B2kG3z6jCw9d8xjVgjjKPbNqk8fKvg4oC6/mNZdYjvBzPGM0Bc32mDIZ57y4pAwhRgB/Vlnf+v+Qh64AxHiL05IS8b2lCkCrG8YhoEY0gXNZmcb2l1U+S3jygv78CWDs34J/oaRFKzBKEOqyEifGZerLJhNKpTMV73XmfKGpygiw2XRMrQK8RcOat3RQ66R8p8cT46Gp5BpG8EixX4IiKtEWL0TYMntUkQ9JF2p0Ne7KEvrhtz5J5I+slxH82wcgTufW7TAKocPSAL7kp0pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cI7pCniV1thh+YoW1Q64i525O2Fc3LeB+R3tqvLqwpE=; b=GCHJsrUBuBSxS5O2L0Lm/XyAoOw2edsAhaXhFNuhzXkwZFk5q9hM66D5IKCPzziknM/2AapIjEkhMePsuOimmuyAUQ2ODCAqJT9RUMj8u+UY8tqbWLN/RHhlu/JO+Nl11g+OOd2Bz1S8HXBIK2YqTsrelm708sFcuIunUzBRJdZFdI1cYkV27Ix3ljgV2reTNmDW7oUVomwWkTRu0+M7V+oXEIawiAxH7/NDNELWcEDYgCeDedLQoXRONrs1tOEJevvYKjJ3tVWzJBPc4hGN4VbfMXWRNidQmq6jUZVWwyP0SlVQrD7rGpUH5uVKxaj03ISAKfoZgH/Mo875/99gYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cI7pCniV1thh+YoW1Q64i525O2Fc3LeB+R3tqvLqwpE=; b=ZMDEhxW/d+hnNBULLp9Bl9DoDvjcVPYpH/VQY216xzYGj7eenrAwjN5Wu5ULuvEBcqJOsGSVikypgVFpRqIwuey0qxUy13bblneyMKJLccO08/yl/N+Y4YyVHICwJ711l/GI85uhDuG42x0lC2GLwtOLaRADhITqMtHTfe1ZvSY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:32:24 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:32:24 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 22/24] disas/nanomips: Replace Cpp enums for C enums Date: Mon, 12 Sep 2022 14:26:33 +0200 Message-Id: <20220912122635.74032-23-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: dc359bba-77f5-44ad-aecb-08da94bad890 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WzteyT1vZWvgqUdeLeY6WRqmpP/fFhcTpWoiCFkOYBK7QXC8Z47XnD9vZeek0K8cxqNtKJ00ffmlJkii3lQVVTuCX1zAtb5Wqil/ryXP/NOAB3tLElE95YgSzNb0twLi+bZTU2Ag+WryTo1VW/FX1ZdQ0+Fd1ysExORB3BOH1Bj6Yzi2qnseDiNo+/MUytG9gjM2vGv+IPJUxw7v4xtZOHzOPc+15lb0YDz6GcnGUGuvLbrI2ptWC/6DF+bdsbt6ef/ZhCozS1EeARFrdFmnEYzXPckMLowO4dA2eKTzS2xZQKGjtPtEUzM1sGvR8C0V/tHomAkLyqoW25xpPtACKWq62kVX+YTuUOYnF9EM2yTZx5EChJHjdH46S5R2VBplFS4UYIApmfgeTYIeI/PKlxskuInYtOED9ewuPuSX9F8K7eXBLZTd4MX9bMKzemhT7YUkIzRxkyT7/S99dwzE/qvXMINwdsR3lr5dOEKA74NHueKZydrMs40TjOXWoevqdGxa6hmLf6msScM7ie8ZiCVZdlqA1IRHwQK8fMVmI5Cz9QASCecuTgMv/usxe6IJuArIIVzYJzdpnzSXgSvLRPBZm8v3Iy8lGlqXYLx+rUR7XDqs3ycZBJkz8+aShZ31gdtjIHM5kpVm6z1t+lxKgsnFejbA2F+uIeWPiBQ3xHRMKNo2vqaU3P+fzpKTeQMXLbohtpdUZmeC0oRSdvZhk5zc3s30XWZTeJUHiONnu9z5VEuzWoRytjBkJnGDjDL9 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(5660300002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(107886003)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Z8FHC1r33D9qhFqCyVuHNjTgRWRtQeB+5GVmgmjY4y+M6SSI9V4Ocz++zPU5xRuMzb3C3hHtbGNOlS1oeJ+QZ2xMjFJybeygjvu8th20tjQxAFrH+7Hd/X1e1qbnC+/mOetxZgegfosiu3AEycvkfVsQseKNe812GBrP008tJqRfQFqFvvXjTNEIqThB6Ms+2XK3MJAySnZ7pccM58Y+WC/LuO1xNO54QfU54yy1L4rIsKyloU8SHf6iDBD/qqZhLGouzPogXPGBSMBDP2upPxYBWQcbOCXNCll+YwSvJvfRIwC+N1tGyGIjpa7ScovGbN+TUgJymzX5VLzPDCssFt9bDw6BEFcmyAD616NZEzV9spG8Qyv+RQABQOb2R4r7NLYesfEFFJ05WpTgE7BUKGAnEHj+abQwDqXWqGeHbKzdtPOQgBC8JivgBQN4PTsm5Q3hIy20g6FSMDUNHDemjsoD6gGPHLKW5iPdUrlGV2y2GVnA25oCcjoi3tTw0TpamZCEWp2hP7W3tg/cgsDDvwNX0zz1j2JYp33MBW/gJ4AFI2i9HV3IKGHeWiq46efYfvD2Ue3yQdyHna0AISXtTR2drkgjcN3wMjpUpn5V7qi6JS77RkoGQamIxucct4+FU7/IFORKpbjZT6ouhsWkI5bILzZsirercdjOeCCth6iELEr7NP9QggZM1K1T9CQYlvZf/hd/HheX0FOnkNV1pZXahIMfCIYF6g0cBgCoVZ36ZpegvZORg3wmwGSCOhE3bkiBJ10s5w52SEoEoJWKi2/aQMiXCFZk9WIjkgjHADyFG7rFa4/stc/o2kw7YCtiRodaZk4OrLbzKM0hitJLb3aFmEM9qM+FPieOTXf0PPT0GB/0Y/HCFz8OYHl8K2D6w1x84nS4bm3uU1nAHSu2rd1F8Ahw+sCmO8LOCAhm/LUjO2XCnoSbm4iA4MhgvlZ2SGhO+tTPaCXJZ7an9q6SuwRam8AdrH0Ro/LPGYczs6t7NYRwQsx8ryzPcMjK8XzUWh3lXphQnkh9qqff3C3w7d/FPErVwRcQdjH6M168gJfRfj7bbO1m7T4TZjHS3FRSdirm12agHq3rvHw1DNPlA3IpeSHjfgObyHt/LblGM9l5QJ7u0BMNQkN25irL4zWJgfsFOwFQfugbGUe+X06FAFG7VXGc6okrRLxuoWeFBBSmN3oS3MHKQAAHy9VWPy+vIydAhShGsqsPKqf9KQmYcS+9EjQuWnKSrlP0ZYdpTmA2EN42OdYzVxhdymDw+m6NpiivuOVPiR2FBL310XyFCgkJdMxKq8xXKSqOsiZC4IWxeEItE3zFDJm50d5v3Df7qRqL9GcEUuKxXB1uqGlX6JkBcPCUu/ca7TjkBqAOiVhCmHDOBgCzEgFo/L7ckK5zclAGQmv+VnTMMs88mheH2vAjlYv2haIpZtvTmMkvgccs0BH+KXSNqsmnR78/lvcqKsvJuj0kjqDMBVQtq6iAdliHybSTUNXNDhQjjyiB5AXOC/WifnE5UsRCj9dys4vTAY2VG+zJMD7hWk1Oo708w5iXqB34nxJ4J6/CpM0mvtF4WLxaIWB5jyurFaVzEZ1yiZMdTLSypnXRNejx0N/TKA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc359bba-77f5-44ad-aecb-08da94bad890 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:32:24.6253 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HDFj9PsT13sX4atcMyk1c/PcMC2XjRevlE//ryzYrfL9jiePWiWO/e/4mU7xbvMl8leIAYogcHx7Wli+4RkpZirkZvirMNFXBCZ2qDMCCB0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.122; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Change enums to typedef enums to keep naming clear. Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 0121d5da61..7e45897f9c 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -40,16 +40,16 @@ typedef uint32_t uint32; typedef uint16_t uint16; typedef uint64_t img_address; -enum TABLE_ENTRY_TYPE { +typedef enum { instruction, call_instruction, branch_instruction, return_instruction, reserved_block, pool, -}; +} TABLE_ENTRY_TYPE; -enum TABLE_ATTRIBUTE_TYPE { +typedef enum { MIPS64_ = 0x00000001, XNP_ = 0x00000002, XMMS_ = 0x00000004, @@ -67,7 +67,7 @@ enum TABLE_ATTRIBUTE_TYPE { TLB_ = 0x00004000, MVH_ = 0x00008000, ALL_ATTRIBUTES = 0xffffffffull, -}; +} TABLE_ATTRIBUTE_TYPE; typedef struct Dis_info { img_address m_pc; From patchwork Mon Sep 12 12:26:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 521FFECAAD5 for ; Mon, 12 Sep 2022 13:05:09 +0000 (UTC) Received: from localhost ([::1]:33000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXj7c-0000ac-EB for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 09:05:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXic7-0007eW-UK for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:42 -0400 Received: from mail-eopbgr70132.outbound.protection.outlook.com ([40.107.7.132]:50574 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXic6-0006at-BQ for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RchyM0RTlHSUbl+z24sII2BgaENRT8oOP/B30/VB4rJ4BKFCP7OWDIUYKYY8Yy3WbW5gB3McK/+W5AHUjbg3FlGAaTrgDgRcNmB1t3SCruuaZd+l77zb1G2xFxmUE5bC6wdcUzsknUR4M1NVqgLF9+EoyOafqQu64ZncN091jSKHLw+EoE6WG5GbjTC0s9LpknzU3wSl0rdPC7rFmFUoMHB8WO9uiJfK1PR0Gxpi8jN5ckFQCwHZof2PGpoQoFAJzYTUS5FEyoVzBWPtIDmvOrzR+iDby0tkb455EI6yR8JXD41Oc6Iun/IC7asEJBdPVUweSAYYYNNgr+pODNFgnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CEurgNoRCpAvIXmnYGPzlxWrcjtvuqNr2BUqC7ayMWQ=; b=Ib7+ejvy2oJFiIQR8FmB57kN+Sxd8pq233xPSzHRWLGblvlIHzunMoUyjt+3BdMd1rmt8o5qIlo+eNzn40XJB4ABzqJ5OAFWo5bsL0AaJn7Fyvyem7h+UHQd7+8c55aXvfonf8sQ17i/iL7AXkmRy40/yNZeoc3LE0fMD+/QL44YmTtx+twE6IJ0rqK34ecF70myxdC+7F9NesT+QgYnlcDylmUSQDIZ+biOl3QftDyJ1ayEhG8tK2lBSMsyeozT5mj9lE3YZurKNnzAlglS+aKVdFkTN2j/OOLEJ2uawuxnDyyOguJBWSRd5bwiVGVGewoiLqqooujraIHFVqUDDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CEurgNoRCpAvIXmnYGPzlxWrcjtvuqNr2BUqC7ayMWQ=; b=XppZxSoGQ3pJ/GWCMHbVMdFSA+Mxri6fmllUWERYrBOzqtd/LQfTn/tdnxl5hGWr4G1WUvUkSE4ooqojUb4sekDTjtZHxUrOAgOtY1MNeq4sfWVJ+zxQNyl5ymM27b/fNQoqG2Y3xkeI8uiU05RB2X5jReyAvD5nTW9xS8HbV6o= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:32:31 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:32:31 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 23/24] disas/nanomips: Remove argument passing by ref Date: Mon, 12 Sep 2022 14:26:34 +0200 Message-Id: <20220912122635.74032-24-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 1dacd64c-645e-4195-3148-08da94badcb3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Wjv7JiN2dNKZboL/S5Qzy8wy46aVasahP1aPmdvau8puf6EsCnOxcImppuRd3IlyLZbvktmY4jir1WOz6ZRsKbzCtifkecrAMQGUEnDnX2yUU6rkLa74vjAfiAFVPsWQcriLTfI77zLI7sWmNcsiQzZFVEgStQo/rllYRU5HQ3pl2QEt1Paov/rX+fayglEzITMk+0Wr9EuncWnE44kKCQc6RKQIQ8M1pZt+0KYYAbPYypjm4fhtG04SOsMGJIT3jNKtLUqiEvd+lY7dZckDxeXJ3J5prdjsmkWcl44ZUYA+eo4y2fYlrCIfNE3odtoBFxDOvf5Jo9BGOBtBAvANJtIpmTsJwqY9FA3C9vJW831c6jyUkS1X4+9XVarLLz2l48k0MP5AbtBXkBSgRVMULuYURav0DIxiyorA+hRz77fEXQ2M+9EtNSgkmeMq7JBnDaMHcAcywdIwXuhG2eav/VMAe6b7Odu67bJyNT48Ev/bSeeoQ3uk1kJI+gzV8m/NLWClH3elEAjK31yPp3boZL/2fQGr+EQmoAEWe4etYMmeocDKQcq09VA6+t8evZHbnO5RjI7KX+gzf03XpULgxoyQHppazRQgfDnsZfFhHqTWb+074UyrJHqZG7yKIajEgEJOPzUDP1mNWOK0ZoJWr58c5FGhul6/Om4o8s+ta4cuE8mKTk4kot1AQWcJwWHVzoKTvSY8BA6lbVfktXqv73gqlfchBNaIzQ/EXkO/XatktAiOrXacK2hvclezS1tH X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(5660300002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(107886003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1AOhLqS3AJWOodz2JDpY8+DA8+vhJTawPC8avqu9vNh2u7axfTlQ+pKI+ZRfNrX4i3aeSazFF10vZ3r/Zjpj4icKo844jKQUox+QhHNua7IX6rQzJq2GGfwmRGl7ZNPniKB5agYFV6YJoN/p3s3Ani6XCJPvitrCug1EsVnnNz2vxTxd5TPnL4NZR+NrKK6ly6FVRY7WRbS80Mpn971lnqqKtJeu/f23C8Cu/2QFV/qmRPzER2UUeHPXACYs/x/juLH6j/0ILHpdaIbwhjZUsc+zZTW3GtamiJQVQmd4fZfJ0z3jzAAVIK53QFi74R7TJNIoLGkaSCIO5tAygbnaNXf0FVpW8uDq8eSWncYtKT9dKmnCJU81ySzgxsARfjCqdNm1vH2gDc/p/Ri/e/DoIIh6vKFCoP4mBXx0DPIgVUltiUAEkTv6FkTfGgx9lDCNofbKstyOoX3+rVafmYRruW59uisqXIa+xTGGxDPtIj6lq1IOlymVipJG0PDHUcCytODaLU43c2XzDNWTF52wLPJlu/RMgTFL927/rK5yS2iRCoc8UAs3AmNwp9WYaXBkTex417lEjlbAzmcDFXXPbWdgLdjqJIZjgbuptsUNWnKN5P/rNIgUC1lFnk1+obtsAp2G0JbiEoAzDhu21b6lQq1E5Mv/yYtCkENXpuClUS53Vd5VjhXi/M0/mGg+JTgHiu6jMiFuLsuGGKkZqhNUlQ4SG+uWDKgQJeFmGq4vJdUpp/k0sjymGuZ/QA/3KuRX3OHoxUIYJu5HwaulyTSoalr3qPA1MaNUi1Y7WpmXoa9fZUcitS0ThaiWO63lkVkpIxgkkwO/R3rm0qFS8Ypqk43L5dQTS9z9bRg+lmGWiAzs8T6bMTEO+nh7HqmIa6R5fbj9Qr3XZiSnpkIem7oCWxx/xOpd8xFjIIGJkME7vjW0XFLCAnrSTaejduop2FkC/5i4lielwltKFy364A9MtU9XCiteeTf70Mj961GBfHdIhFC3L8MPBQprnsyalGNmw01ljfTyIOO1zpITr6B40+jYJ0Lv9+d/sKeK5GSgkUSRoNyhSfmn3gFvQ4rHvhSy+OhvOqShoqV5T1lTkVzdB5YzjDG/Fz77tR9EyAidS3+RO1FF7jp4ggcUmPOQxLv7pQ+4NRJNGSGrDWutSeVX+0OAciH8623RgcKyEjNfKznt1/pnOBHnaulrJAsLd5S8JAJADmxtX7OqkIpihAm0bJYZfYDN4bxaay0Yi2W4fPNI2ELYl4vIDlsWDW/dP/ItP1AlD+7ADenjI5lv8XTII17l3yz25HdF5a4FZhuKeohpcGE11qm1QDGV6uCq0PRTitWNV9ANPuD3H25SYoFxlTxsiMwGyO3dyvviYHuIGHQyVtdtb/rhT8IjwT8g8nu2SfyBreE/gJ7i+ir0bvtBYgYCkCtP6bWXAehMFYGMAEMw4K+bX8ao4J1+Hccpv/slC8vvDPgSMhZQB/ssNw3drwe9PHSoYEe8A4iWxkmfl4tSB6LWlAO7YaRpw19LnnFua+8XsbHkQcshBV6a/bNZ0mExdFEnFOy+0q6vxXTwfQyKZ1DVBkcNJPEIf8z2wh2tcm8SDfiA7EjRncZBV/bzWQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1dacd64c-645e-4195-3148-08da94badcb3 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:32:31.5155 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pmeZbygTSVRwT9ZO5xEzoeMeklHQg9nugs//ATZERhW7TlhH7hTlDCUef9LY3Hx/Um1ZIjst/YnKhJ6or7MCFbgNzjQtDOwCTt5GfPDXWOM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.132; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Replaced argument passing by reference with passing by address. Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson --- disas/nanomips.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 7e45897f9c..0b5648a7cc 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -560,7 +560,7 @@ static uint64 extract_op_code_value(const uint16 *data, int size) * disassembly string - on error will constain error string */ static int Disassemble(const uint16 *data, char **dis, - TABLE_ENTRY_TYPE & type, const Pool *table, + TABLE_ENTRY_TYPE *type, const Pool *table, int table_size, Dis_info *info) { for (int i = 0; i < table_size; i++) { @@ -585,7 +585,7 @@ static int Disassemble(const uint16 *data, char **dis, "disassembler failure - bad table entry"); return -6; } - type = table[i].type; + *type = table[i].type; *dis = dis_fn(op_code, info); return table[i].instructions_size; } else { @@ -21915,7 +21915,7 @@ static int nanomips_dis(char **buf, uint16 bits[3] = {one, two, three}; TABLE_ENTRY_TYPE type; - int size = Disassemble(bits, buf, type, MAJOR, 2, info); + int size = Disassemble(bits, buf, &type, MAJOR, 2, info); return size; } From patchwork Mon Sep 12 12:26:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12973666 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BED5BECAAD5 for ; Mon, 12 Sep 2022 13:22:20 +0000 (UTC) Received: from localhost ([::1]:55844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXjOF-0004UM-RC for qemu-devel@archiver.kernel.org; Mon, 12 Sep 2022 09:22:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXicI-0007fP-6v for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:50 -0400 Received: from mail-eopbgr70118.outbound.protection.outlook.com ([40.107.7.118]:30439 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXicF-0006b3-9c for qemu-devel@nongnu.org; Mon, 12 Sep 2022 08:32:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YIaTMHZ4RH+QGfAjqn7zZXkyU9BhXObZeEOlniAb3WjXdBupWlXjIcNBLmpPnJSf9/7N2CJNkZj9SvACvzhGRqin2DOXH2wqDsn8DPq9SAVVhoaiKxYWZKQlOZDfkLBXD/xK1n9mXcAaDJuVQB2EHM5TPXoYsZ78Ai+6Kv09FtvOANutAUDK/VC3zgGBe4AepENGS8GvxJKHyG+Eff1lKqcXXHV5ZJ0JlbXpeEV+rrhCT7sUJct4ZvSHnkJm4N+C6D9WUwUxf2ATDFjiZpf8rL9sboMEStjc22vFs1bPQKyXFjyho70oU1FlrB+05HdGwXROh9fkzqwnvDmkttaEmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kMlcJUVYCt3Lm+2rl3tGWUBLdrPGpCyzUuBost9me58=; b=E1V1rto6JmDwoBGW+zeGDW0PnA+9MLZm90WrjpPwHRl4frn794erMzz3pRXFbgVe15YXmrAoZXVoaYpqmy/u4eHAWt/66k5Q/xLNizMWTqHi7lXRcVn2UViKq8f/sxMv4c2/r2GaLFyFUE5F+t2SdAyQqwtfbq77zzSzYzd64+GOtoOHW/KtOl5siXq6UheAqcjCRWsrQjE7T+KQP/4Tda+eWWdHI7wL6HQfRm/Ull3RtV6KNI1p81DFeSURCopyNLXh0MEXZ5thrucBL6Mg4512goqoIkllocpTF9l9hNpBtTtNF3TaoR5i3NDZXhodg2CaSsi4fa/PipCjoYrd9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=syrmia.com; dmarc=pass action=none header.from=syrmia.com; dkim=pass header.d=syrmia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kMlcJUVYCt3Lm+2rl3tGWUBLdrPGpCyzUuBost9me58=; b=x3tgfbXN8xbECWtyfsq6s7Cr1mJpTwRevALhSG+jZd2tm119eBY7Nlxf3yVGvg+XmXNCE4OtzLieyDtf2IGd4vkoaKmnoyoG7VoTqlP0ShjCNTcrSHa/lt3HrWRtEthfaDO0xD0TE64ypwYooctTEqeol/s7f/Nuh7L590touyM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) by AS8PR03MB7603.eurprd03.prod.outlook.com (2603:10a6:20b:34e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 12:32:40 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::6dde:d3f:2ed9:e27c%6]) with mapi id 15.20.5612.022; Mon, 12 Sep 2022 12:32:40 +0000 From: Milica Lazarevic To: thuth@redhat.com Cc: qemu-devel@nongnu.org, cfontana@suse.de, berrange@redhat.com, pbonzini@redhat.com, vince.delvecchio@mediatek.com, richard.henderson@linaro.org, peter.maydell@linaro.org, djordje.todorovic@syrmia.com, mips32r2@gmail.com, dragan.mladjenovic@syrmia.com, Milica Lazarevic Subject: [PATCH v3 24/24] disas/nanomips: Rename nanomips.cpp to nanomips.c Date: Mon, 12 Sep 2022 14:26:35 +0200 Message-Id: <20220912122635.74032-25-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220912122635.74032-1-milica.lazarevic@syrmia.com> References: <20220912122635.74032-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VI1PR08CA0145.eurprd08.prod.outlook.com (2603:10a6:800:d5::23) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR03MB6045:EE_|AS8PR03MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 35bcea2c-3e26-4007-c719-08da94bae212 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jy9rbhMYknjX84NFuMhIvkWA4jNtBPxIAAbYkhqEAzSUnDrDGDQI7kJyauHLtXNyjtkBn6+Nu9NBfaD6DcxIwgItoNiYS/EvdSprd+zdHq7J314pq7CZugdRI00LPITR4OCpdzRw2kTfqOOZIvUXSn36anVJOPYwHEyZTRHdHJe5H5D5qyNHrNrac4qKrqKI0qG6Zq53VogKMS16V3P3p/6kAQakUtXTa8RWrapIOdClsacLRTE1Og0lX1LhepmUACofAgSnSpZopruac9rL1DgT7Cjm55yyGuIWYywpYH5nZGS7S5u5vbWxVy8xAMgAznx7lCzycf4X9f+YSG4ecme4AjKIW9d/7jIT7qbdmsqh+/Wg8Vo/twjJZJEXu8rrAsBNolBGBAUL48QbjdJM7uO3S4regNIhi3S/qQP2WjEzIhXyeDiWUih1r8CE8RIHTrBTquIm2cEcVwgOW9vm0S11rkicrwZH0wBOlFuugRhGNdP1Dj8CgWJ6L46g77T+oq0o9fskA8pvrKGuxDgU2ez+TdhXxWlPeiz7Jan63TtjTAfmjH3kJ5OJAp03J20SEAgZRSRiRArEh8Er8JLCQAX6GYByCDwzL9I7HOfEhjA3zvPK6mSqNqQg3nGtCP+wvbDFa9gWUz2PUMrV/HfuLWDUZ3bkzJuXBNX9xmxYv/z87cRBdGA9LXgMss/jhVQluEIZe97L3nCjN+tLGtv+djd8qPEJ9di21syD3Gik2A4fG8ly0A9vAWRldswAbqmG X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR03MB6045.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(376002)(346002)(396003)(366004)(39840400004)(38100700002)(38350700002)(44832011)(83380400001)(2616005)(186003)(1076003)(8936002)(4326008)(66476007)(66946007)(316002)(8676002)(2906002)(6916009)(5660300002)(36756003)(66556008)(6506007)(41300700001)(6486002)(478600001)(26005)(6512007)(52116002)(86362001)(107886003)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sYPKXm+1+1OqkiG1/lr1zxTZrC7sUzlsri9Y4UZsLFrD2efimxkLE+H5PLQFmZvz1M3FAcYv7bRx/Tko4FSfR7gjQkkdP6fCOwCvkyDBOWN4MKbcC21mgJEEXSVi7ad8cPDzDsu/z5ZAsZWfGaA1qnWF2cvPPR/M2OpyHdYFT5k11YU8VJmIjHFaWWgn7zS/v48IqtMIdAE4fZX+7wN7AnpcSpZIVmTW/fEaWejIFXtJcHoYAowvugR4d2NpaZWg7QjzdolwksieIFWDLp+3vCIaLMUcZS0kOfYT8EdZRCWhl/17sdNGbQTX6kgj7O43f+UO9pWGHO50Dn1GD2msUl1vsOi2AwryEeti66m6KstdB8vayUkZhGN9b4NuV9H3Y62zWHhDACKFFjXAsGR8VEmf9jcWnkuW5Db2mIn8F9QFDEHCht/PH1B7YYSYum9dFjC8HIVmLgDpBz1J8yGdh/FDq8xorOL8ZFFihjb+z2ENJVUNnCX0ntvqJeLMgFYMg6HhFT1QMSl/V3HHuWhjRmFeMJoo6HnRP9J+85pQt2he9YogSLe9PmTOJFn5qFpdMRJ8xKDs4R56BOVOT5nY0ZNNsqnrpwHhEX94F+dP/+2s5U9/lF6QkRBs3bGn22O9X0vl8ppU53slUZZqncmQcoLoQNSkO/9ISkSIAllCwDdCmZLIDdS0ZcMrd1DmpPzDFUt7FCbDV7neSc7Q3ljOcjavAmIvf6JNqDRODv5/GZHoYjwTSzRVYVt8iqQ3ywgKKHVByqyIUHQBW5dCvGPGiDlJ2H/Yj8OlKw3LVPYLlIpMmQYbrAquGxT/7bKjyliDnvF45SUn5o5J55FaNCuJZOTLJ3go9+G+DlF+IES938xW9SqKuTQqQHOmQQaSnEY4EkHFu3cHiKZQimUYwIu+exiRyvaSsgBNbnIy6KeKkI9tMaSyyyH8a6h9xlTCs/TfojR1RPEjWrqEOECv3T9oYSBeh4M3BJXB5/xztBRLE8oNBbNNiW7iiFvRWkhBQFBUYV4lYGsm116G5k6TZwmO0OgZ6xsn7zcN/Ii6glF3ZUH6Yy9SMA/vop1cpw2fc0QoIUUyh686w0cEgA6nTwDNt9Bw/eH3T0muYsfFy40F3tfZZCurNIi+4z9bYugbng99nlxkmaMDbvhK9YEve0oZAWDjHZjEfMtj04up78lWv130uLMHXjcFOw35t4zVmp+r1YErr0ZEZJVu9zOWJSguafKK0pA8NhT818EYamFrKuQ1HJB2QBsTE306mJYM7cdFjd1uUSN84NSXBj+Qn/rASNjKCnlYNmzPFDrdRwxkPSHzExi34+0YGnFf2KYvww8ncuLwT1/UcLJOpC3SHxMXjZ/A9k3pa5dJNMFfCjjVm7QqK7hJdVn4+DZtW5v8YrYWywU1o8TJIqvcZ0OXmj2ODmiCx2FlL0K8l0iPptSjnCHdYhh3FaS45QjDoqn35OTgUNDFXwnUbuUmA9kosb6N2uHVaQHgUNjZMB0KQxoEVxWr6VObS4dAygGVUZBpnz1cBdd0obxHZBxHBR+cQCHoiv96Z0E4m9pp0ZuIJI+XLf4/sMaL0AFES1tzzRnzsJd2Dh8HAk1e1HsYgwzp1okqKg== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35bcea2c-3e26-4007-c719-08da94bae212 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 12:32:40.5305 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lt8jAiCL+rGo7hFCrWZXvkRz0URBBmSCWET+xOdV1g/Ny+HNDMFa+lqBUSr+pkne4p3B34p8SQ0JcsJ4huLrThIs46dlEbusAxvVEnLpIcs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7603 Received-SPF: pass client-ip=40.107.7.118; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Now that everything has been converted to C code the nanomips.cpp file has been renamed. Therefore, meson.build file is also changed. Signed-off-by: Milica Lazarevic Reviewed-by: Richard Henderson --- disas/meson.build | 2 +- disas/{nanomips.cpp => nanomips.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename disas/{nanomips.cpp => nanomips.c} (100%) diff --git a/disas/meson.build b/disas/meson.build index ba22f7cbcd..1977f5cd92 100644 --- a/disas/meson.build +++ b/disas/meson.build @@ -5,7 +5,7 @@ common_ss.add(when: 'CONFIG_HPPA_DIS', if_true: files('hppa.c')) common_ss.add(when: 'CONFIG_M68K_DIS', if_true: files('m68k.c')) common_ss.add(when: 'CONFIG_MICROBLAZE_DIS', if_true: files('microblaze.c')) common_ss.add(when: 'CONFIG_MIPS_DIS', if_true: files('mips.c')) -common_ss.add(when: 'CONFIG_NANOMIPS_DIS', if_true: files('nanomips.cpp')) +common_ss.add(when: 'CONFIG_NANOMIPS_DIS', if_true: files('nanomips.c')) common_ss.add(when: 'CONFIG_NIOS2_DIS', if_true: files('nios2.c')) common_ss.add(when: 'CONFIG_RISCV_DIS', if_true: files('riscv.c')) common_ss.add(when: 'CONFIG_SH4_DIS', if_true: files('sh4.c')) diff --git a/disas/nanomips.cpp b/disas/nanomips.c similarity index 100% rename from disas/nanomips.cpp rename to disas/nanomips.c