From patchwork Mon Aug 15 07:26:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943227 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 87880C00140 for ; Mon, 15 Aug 2022 07:42:53 +0000 (UTC) Received: from localhost ([::1]:47564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUkN-0001G0-Lv for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:42:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUW3-0007Pd-RP for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:28:04 -0400 Received: from mail-vi1eur05on2097.outbound.protection.outlook.com ([40.107.21.97]:18016 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 1oNUVy-0000JK-O0 for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:28:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n/zgtL1ShD5IAQK8b9b7EvM2Wa+vqEizp/089SgUkh+H16bQlxneuwchAPk6P07bVt9QExQA7tvdWn0TkwSid1pH20fiCceWZR16NGmBi/x9knimYQKCAZi4ajjn+n/6tjUPI6KxFRbO8avacyPPUbrRd+PEVGxC8UFLrs+58a09YUO+Bg8IPzKyZbbyeroN0Os2K+I1miChUv1f38AwWtPQX+XN88G4LNNIVkvqvCJk4VWRqWVriGUbvnB/tZkPn1fAzK8R7QVkuCA7Af6jsAg8Q0tQfmrhU3d+ejCIi+4Gcu90QGdRkGSEEj9p8QP7Fg/2aBX/W++xCHbKptr33w== 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=pbgdtwgEjygcdJvV2ROqCWe7W6cnGPVcCa86i8eV3Os=; b=CvQeiYfkT5LC6E8uErJS4lYjPht0TwXsomiFjCkEPXkHePjx6N7s8RUc+r1biBy2c0MrtctgJ3CYTjxSkk/xhBvyxHaUzEpiwHb1A4A2hUiIFUnyP9T/5qW6H1acOAI/tLoco85kCxV+7g/aHLubZ0a2ZBKlkH1iL9b8Q6ZsWl3nHeG3dSo5KJOPJ0oLfjv4mxef4GlRSfwa2ahvzZopq+D9bmyQyiN6ib9YEySdTLc2aMODnkxbcVIe9i4yjOPEHAIi2GynC2wJEGe5AMOHusNsaEAPihcphrV3iDS6pQt/kwIrT5fjRMrpaOtlinnCVuawnmi1/TYMlIgET4TVSg== 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=pbgdtwgEjygcdJvV2ROqCWe7W6cnGPVcCa86i8eV3Os=; b=iCodk7kHmjAmS/+/PKz0I06Ea2xGuvZw2wCsjcPi03FvIl2YFo1Wj7EpkNyYCNGIg5dToIUUuplgKDudmfNTCL4/QZVvfCaV8pcgU+tTajdxIAT3XMm0INcxB/68HLGnEYIWyPXNUSJ6yptGK826Rmt77DS4/q00NOcGsUIRW1E= 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 PA4PR03MB8134.eurprd03.prod.outlook.com (2603:10a6:102:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Mon, 15 Aug 2022 07:27:09 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:27:09 +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 01/20] disas/nanomips: Remove namespace img Date: Mon, 15 Aug 2022 09:26:10 +0200 Message-Id: <20220815072629.12865-2-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28968eaa-8dc6-4de8-0ecf-08da7e8f8fdd X-MS-TrafficTypeDiagnostic: PA4PR03MB8134:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6DrOgBlpvNhaRTY4/JbGbOgPCiQMWmSquoe5fOZECn3hUdiUlnOXRZL1hVOmTsgZGUFn/gTGxtmC+1nrvzYpZSkP2DZNGInPbvdGHQ3Txmtl5VI/gCasszbr7EKumaZq/OulMJGbvPiDz+PrH6RIDUkazmsODyZOfuwE18QxL2DktevkgBhFbwPTJB6SOMEsG2fs4ytmU8Es1nP6XwAUotUOiHNKWfswWU1TSxdc7xOEqQiztoOKHMrAGjv2tiNxj2mbJMPEVPHgTuQj1CNz4ied/sTYGbNtYNjwYVo/pqCuoSxJQKReULOq2iHovMkEzNQ0PRSeiNu3isc69ZFsCgcGs847nYe9LRCtzY7ttGZlpKRPyJpthKDla5cS0DayWAP0wAhloer+SMdMTwjQbQJeQdO342jelmJ6d51vE7n/aqrpw4gR+sT2nSjbC5JW7QhY6Xp8tFwpxu+S4CK6D9uk+XEf1TJiJe9kpeLFWWmu+R3i6hZ2ok7XJ/2ZXx6zHu0NnDuoNyIYGrxP2G+/iMJkeeBZv3NeU1KjdocHoD/Opst2cevBKIbL4M25NOqgY7qKcPFBCND6xDu4H5k04xZEVpjShmkOJ1RGJHs/mEMSVZWxeGnlZ8WXQmX9O/TKpyxFb4G9Ems0cp+5k10GHbsqj30BIYp4lizgPooYsZVQ7pjoEMcozQPjtFqj41im+TPZYGe8rLasZUCjbyFsgZQFKbv+tkjdmtf6HsdPKxckitQJW7SL92uPSV71t4LN3szYWGr95e4ywqr5s0r2Zxi4RP7KDZ/47UGHISZS7sk= 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)(396003)(346002)(376002)(366004)(86362001)(2616005)(6666004)(186003)(316002)(41300700001)(107886003)(44832011)(8676002)(30864003)(36756003)(8936002)(83380400001)(1076003)(4326008)(66556008)(5660300002)(66476007)(66946007)(38100700002)(26005)(2906002)(6916009)(38350700002)(478600001)(6486002)(6512007)(6506007)(52116002)(579004)(559001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: P1jZyEwTZGYkG2OwIw5xfBf+6eGOFsQa4dDqarx1v81SDK75W0TO2ejm4dpVYco6cAtk0lqlrhrtb1J1nLeSoWdJq6Mz1BRthwISkE8sJv1KREIatud5pxr6W+5cECE47/dyDHI+6KW+J8mWzwX7wm1NiHyPLo2ERwO4CVqMSAneSueVxEwFRotfgYzMttEe0n/GLnRHMuwS90+Xd3WeyDxLwkTuDy8xdHqDyBazbSfYxs4bssBC5tko4aPYPMeVjHie4wIlfyF50aBsUSXnZWQND2eS3tRH4gpBKozZQdalKHfGhEoWrgAqoq87IO+oseYmsHefCToIsyuktc1BTyraSRPj1h4uDOpt2yGXOanUexpo+Y+okRozL+oKjwgfzRL7KOylZtv2RQba96SiEaQNV7KnQwmbbbSzcaVg7hyNvrbLVdtUKh/ijdXU8fHlvwfeDUyYM+aDSuUMnuD/4nHSifyP9sx4yEq+j2rIOrziaIA7cptjDwTfAWn5TmdIHkModmA+34+jhJQnzXmNFPLid2xsIUHwP/AbL9Y5kIOtBzXh2bbVDIjbuou1nfnOYN0yEt1GGIOpuzox2Onzicjdg0iAukq7QeMUhf0URoCR1erEYtmTlKx1jQKG+q9DPCFoOz5n/ibG/ik6C/XEebYHQVToriDIprCwCpBCcgGY8Y3MQsoNbryBrHbnSfnrAAyZbR/Nf6kyboZ2yOasGM9jhnOLvCe0wh0PZH/bZrqROGXU/r3HVsgjCQuI9E9nKQQg7ip/93X9iROKyT+TedgGxXr4w2vongAvO1xXZ2n4k+K2FVxDKiiz5VSNwC3nIf0eX/dJK9mTIkioj6gTInm+jKLvPyCPeApmtpJs//3QgmkiOOYCLjxUkFm6JPEAp363ohmaS2Hr6kE41w0R1tQziQbeRCe3NbOQnQYoI/yPMd407SG/KdbDAWuS3YNVh7O6LmMhO01hTW+2caKsnmS9k/mYdKVLQot/RdNIkCiTrYzsVRiQjoolYHGYQariAD2O7fsWRVeiUx/3QZrGQbUfZwQi3xaQwBiT9xs979ZmtD7QX4th1CUZ1znu5Sj3TUfyXPLAG6e0HYpIyY4PPWNyY4xUxDoxYUwkXC3Kh7SFDjv0oPVhFF/1Rpn9bemJSpxQWvUDkGz16pIOPpL7XgYPgU0z/eoyaToBByUOMpe/oEau7xgk5wgzfV9coGoTaTk8f9wdoNn+EwhVZAVppaf46z+7ChVouAmHggUodfKIJAnXELzgxgPN3wUGEB6wHGMNCbTuVYxj6nC0jHHOiQA6FxpYVUQ65U9rkDhvujSQ9HzBfeyx0ETApMtJ22/ZaLlJ3rDAG4owGEz/BzDup6o0MpDYalsoylGhZpBdiO1x81RLnAF1UvUaC/p0ikAqo2TiW0qC+ow/Xblgjh0wA3K3MHmhuWY82QUGvs18y2Z9A3Bd7UvcxSojsbBNk7LXA02yWH58BKbuw/88VbGxr/PuUMQyqgK/SW2WskcW87g14P0hlVMcCIPTuEO4Mu9OKKzuSzNHmnPnOMpYt2y4i5gS/xjoX5D1gJBqtB6CHS609P6Gxq/KU9l6eghkgjA/bZ3Lpl0mslyszBW9Og6P1A== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28968eaa-8dc6-4de8-0ecf-08da7e8f8fdd X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:27:08.9148 (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: TJKai8qsP52X0CtWMkdZmen63vPKe30RJoh6EObClbSiqZJEiFOEJS8OqPLV2kbJeh4QdCrMGcm77f5U91z7QOSc+X+MgZAY6ji+O8PIZ4Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB8134 Received-SPF: pass client-ip=40.107.21.97; 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 --- disas/nanomips.cpp | 1433 ++++++++++++++++++++++---------------------- disas/nanomips.h | 10 +- 2 files changed, 713 insertions(+), 730 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 9be8df75dd..96b7bfd83b 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,27 +723,27 @@ 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); } @@ -764,9 +751,9 @@ 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 img_as_char(TOKEN_REPLACE) + to_string(address); */ return to_string(address); } @@ -1807,7 +1794,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 +1816,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 +1838,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 +1860,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 +1882,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 +1905,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 +1928,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 +1953,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 +1978,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 +2001,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 +2022,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 +2043,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 +2064,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 +2085,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 +2108,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 +2129,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 +2152,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 +2172,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 +2194,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 +2216,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 +2240,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 +2265,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 +2289,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 +2314,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 +2339,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 +2364,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 +2389,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 +2413,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 +2436,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 +2460,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 +2482,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 +2506,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 +2530,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 +2555,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 +2579,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 +2604,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 +2629,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 +2652,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 +2674,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 +2695,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 +2719,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 +2742,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 +2766,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 +2790,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 +2814,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 +2834,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 +2854,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 +2876,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 +2900,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 +2924,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 +2944,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 +2964,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 +2986,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 +3008,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 +3030,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 +3052,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 +3076,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 +3100,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 +3124,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 +3146,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 +3170,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 +3194,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 +3218,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 +3242,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 +3266,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 +3290,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 +3314,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 +3338,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 +3362,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 +3386,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 +3410,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 +3432,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 +3452,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 +3472,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 +3492,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 +3512,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 +3536,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 +3560,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 +3582,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 +3604,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 +3626,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 +3648,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 +3670,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 +3692,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 +3714,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 +3736,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 +3758,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 +3780,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 +3804,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 +3828,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 +3852,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 +3873,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 +3897,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 +3921,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 +3942,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 +3966,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 +3990,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 +4011,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 +4035,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 +4059,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 +4083,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 +4107,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 +4131,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 +4155,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 +4179,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 +4203,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 +4227,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 +4251,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 +4275,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 +4299,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 +4323,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 +4347,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 +4371,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 +4395,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 +4419,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 +4443,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 +4467,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 +4491,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 +4515,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 +4539,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 +4563,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 +4587,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 +4611,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 +4635,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 +4659,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 +4683,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 +4707,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 +4731,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 +4755,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 +4779,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 +4803,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 +4827,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 +4851,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 +4875,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 +4899,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 +4924,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 +4949,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 +4974,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 +4999,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 +5024,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 +5049,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 +5071,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 +5093,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 +5115,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 +5135,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 +5157,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 +5179,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 +5201,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 +5223,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 +5245,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 +5267,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 +5289,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 +5311,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 +5333,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 +5355,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 +5377,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 +5399,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 +5421,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 +5443,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 +5465,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 +5489,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 +5513,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 +5537,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 +5561,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 +5583,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 +5605,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 +5629,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 +5653,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 +5697,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 +5723,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 +5749,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 +5776,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 +5804,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 +5832,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 +5853,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 +5877,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 +5901,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 +5925,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 +5949,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 +5975,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 +5997,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 +6021,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 +6043,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 +6065,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 +6089,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 +6113,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 +6137,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 +6161,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 +6183,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 +6205,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 +6229,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 +6249,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 +6273,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 +6297,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 +6321,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 +6345,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 +6370,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 +6394,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 +6418,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 +6442,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 +6466,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 +6490,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 +6514,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 +6538,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 +6562,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 +6586,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 +6610,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 +6634,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 +6658,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 +6682,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 +6706,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 +6730,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 +6754,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 +6778,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 +6802,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 +6828,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 +6852,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 +6876,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 +6900,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 +6924,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 +6948,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 +6972,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 +6996,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 +7020,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 +7044,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 +7068,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 +7092,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 +7112,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 +7132,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 +7170,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 +7190,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 +7246,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 +7266,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 +7292,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 +7318,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 +7344,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 +7368,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 +7392,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 +7416,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 +7440,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 +7465,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 +7490,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 +7515,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 +7540,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 +7565,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 +7590,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 +7615,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 +7640,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 +7667,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 +7689,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 +7711,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 +7733,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 +7755,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 +7779,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 +7799,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 +7819,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 +7846,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 +7868,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 +7906,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 +7928,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 +7950,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 +7970,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 +7994,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 +8016,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 +8040,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 +8064,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 +8088,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 +8112,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 +8134,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 +8158,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 +8182,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 +8206,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 +8230,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 +8254,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 +8276,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 +8300,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 +8324,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 +8346,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 +8370,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 +8394,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 +8418,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 +8442,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 +8466,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 +8492,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 +8514,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 +8538,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 +8562,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 +8586,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 +8608,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 +8632,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 +8656,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 +8680,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 +8704,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 +8726,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 +8750,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 +8774,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 +8798,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 +8822,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 +8846,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 +8870,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 +8894,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 +8916,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 +8938,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 +8962,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 +8986,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 +9010,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 +9034,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 +9058,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 +9082,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 +9108,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 +9130,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 +9154,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 +9178,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 +9200,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 +9222,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 +9246,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 +9268,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 +9292,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 +9314,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 +9338,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 +9362,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 +9386,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 +9410,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 +9434,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 +9458,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 +9484,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 +9506,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 +9528,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 +9552,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 +9576,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 +9600,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 +9624,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 +9648,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 +9672,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 +9696,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 +9721,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 +9745,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 +9769,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 +9794,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 +9819,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 +9844,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 +9869,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 +9894,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 +9918,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 +9942,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 +9966,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 +9990,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 +10014,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 +10036,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 +10058,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 +10082,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 +10106,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 +10128,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 +10150,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 +10174,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 +10195,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 +10221,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 +10242,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 +10268,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 +10292,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 +10316,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 +10340,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 +10364,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 +10388,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 +10412,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 +10436,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 +10458,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 +10480,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 +10504,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 +10530,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 +10557,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 +10580,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 +10604,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 +10628,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 +10652,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 +10676,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 +10700,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 +10724,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 +10748,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 +10770,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 +10792,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 +10816,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 +10840,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 +10862,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 +10884,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 +10908,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 +10929,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 +10950,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 +10976,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 +10997,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 +11023,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 +11047,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 +11071,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 +11095,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 +11117,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 +11141,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 +11166,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 +11191,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 +11215,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 +11240,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 +11265,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 +11290,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 +11315,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 +11340,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 +11365,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 +11390,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 +11415,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 +11440,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 +11465,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 +11489,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 +11513,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 +11537,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 +11559,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 +11581,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 +11641,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 +11663,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 +11685,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 +11709,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 +11733,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 +11758,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 +11801,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 +11826,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 +11849,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 +11872,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 +11895,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 +11918,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 +11941,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 +11964,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 +11988,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 +12011,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 +12035,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 +12058,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 +12083,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 +12108,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 +12133,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 +12158,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 +12183,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 +12208,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 +12233,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 +12257,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 +12281,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 +12305,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 +12329,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 +12350,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 +12371,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 +12395,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 +12417,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 +12439,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 +12461,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 +12483,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 +12505,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 +12527,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 +12548,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 +12570,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 +12592,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 +12615,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 +12638,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 +12660,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 +12682,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 +12706,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 +12730,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 +12758,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 +12781,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 +12803,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 +12825,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 +12847,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 +12869,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 +12891,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 +12912,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 +12935,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 +12958,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 +12982,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 +13004,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 +13028,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 +13052,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 +13076,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 +13100,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 +13124,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 +13148,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 +13172,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 +13196,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 +13220,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 +13244,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 +13266,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 +13290,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 +13314,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 +13334,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 +13354,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 +13376,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 +13400,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 +13424,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 +13448,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 +13472,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 +13496,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 +13522,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 +13544,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 +13568,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 +13592,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 +13614,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 +13636,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 +13660,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 +13684,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 +13708,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 +13732,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 +13756,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 +13780,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 +13804,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 +13828,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 +13850,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 +13874,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 +13898,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 +13922,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 +13944,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 +13966,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 +13990,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 +14014,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 +14039,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 +14063,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 +14088,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 +14112,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 +14137,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 +14161,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 +14185,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 +14209,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 +14233,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 +14257,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 +14281,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 +14305,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 +14329,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 +14353,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 +14377,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 +14401,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 +14425,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 +14449,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 +14474,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 +14498,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 +14522,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 +14546,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 +14566,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 +14590,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 +14614,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 +14638,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 +14662,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 +14686,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 +14710,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 +14734,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 +14758,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 +14778,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 +14800,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 +14822,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 +14846,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 +14870,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 +14894,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 +14918,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 +14942,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 +14966,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 +14990,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 +15014,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 +15038,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 +15063,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 +15088,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 +15113,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 +15138,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 +15163,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 +15188,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 +15212,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 +15236,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 +15260,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 +15284,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 +15309,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 +15334,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 +15359,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 +15384,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 +15408,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 +15432,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 +15454,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 +15476,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 +15500,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 +15522,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 +15546,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 +15568,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 +15592,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 +15616,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 +15640,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 +15664,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 +15688,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 +15712,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 +15738,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 +15760,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 +15784,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 +15808,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 +15828,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 +15850,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 +15872,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 +15892,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 +15910,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 +15932,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 +16170,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 +16192,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 +16214,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 +16236,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 +16258,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 +16284,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 +16308,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 +16334,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 +16360,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 +16384,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 +16410,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 +16430,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 +16448,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 +16470,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 +16492,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 +16514,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 +16538,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 +16562,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 +16583,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 Aug 15 07:26:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943209 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 4A23BC25B0D for ; Mon, 15 Aug 2022 07:34:34 +0000 (UTC) Received: from localhost ([::1]:36188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUcL-0001lW-2Q for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:34:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUVy-0007NM-Em for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:27:58 -0400 Received: from mail-vi1eur05on2097.outbound.protection.outlook.com ([40.107.21.97]:18016 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 1oNUVw-0000JK-HP for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:27:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PNts+aD1me9oe+f73dpOx8yxEX9xdj7yQSgLQ0J2MP0MAiK2KkFNObvtx37TQsD88utV1do+vxyN+7THH+ValmrWQRpY1adDutBaMoaHPgkRkVvJfberalGz200JwcRbg4yzLkFzym7fcJsavA+6zl9sAYXGZTUVf1/EVxOQzVSRBloWEKqMe/6eo1PbMkZh0ezL8LohEjiBZ7euab8Bd116XU6s2Cet4TtPqr3EZbVXZiTRf+4xUxBFBw0U1flW4hmZNfjMy7vtiSb6mHrBQAwoXKgupxkUxLuoXGPRjUi9rNRF9zWKkfkmTtcyNe9RH954QwF1O0pdCO5xTXPtzQ== 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=jrqMb7EmACoUQUeawI7QfJY6WHlZEc6lsT+wVeC4jD4=; b=RojlDPckkEcNkYLClfrsBAHtTQq099eCDzkWaTUAZjOvc3q6xe6jv4k+lzDCTKspgt1kF5VyvYgzF/WGrGOCbsfZM3J+a5heAz9RVAuk3j12josUcItOUXNQG2Te7DFlOEVgOK6/ygVOXlkCO+CwGzcDZ2J1R4LmDxgspiYebWtLa9/lj+3cwlsaFVhjDNtb3U7cBEQ2d0AcDnXXGTrwuZ7ZoIHgvRDRaGaxkSmy5zNIedUxNl+46F049ySkgS/0lgiJlASKzP7IwJh9DowxbIfkb3uiVF6Zad/brmtXqhwjItIzHUz8quGT6ox57y82U0ADnUu5jKxszO3hnTXO/Q== 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=jrqMb7EmACoUQUeawI7QfJY6WHlZEc6lsT+wVeC4jD4=; b=SwI0hq5T/gwkD6pGenUtxfeBMMxoZ/BoCapEeqNt87/Xkrvuugq39ul/qgJTO2s5J4jLYoElF9h4FvpfeJ6gKZ5LZcQgLg0uvCsROOSIsU+EqZcOe0ay/P6VnvnJIUIJRpdwz2S8OHxNu5OA3lpPsj5Wo6kG8um7cB5mvQbllk8= 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 PA4PR03MB8134.eurprd03.prod.outlook.com (2603:10a6:102:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Mon, 15 Aug 2022 07:27:19 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:27:19 +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 02/20] disas/nanomips: Extract enums out of the NMD class Date: Mon, 15 Aug 2022 09:26:11 +0200 Message-Id: <20220815072629.12865-3-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 944e8924-6323-4e36-5795-08da7e8f9658 X-MS-TrafficTypeDiagnostic: PA4PR03MB8134:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: by++KZO7henB9ZKIbmllzuf1uauhgeA988bvEtQteyl33KXwPUxumGKUPyycbmxKWX8qtMw0knrypAtGKoNnkgaw1qlhge+uW2Qq0HRc1T5O0sUTlOaR+cTYARb0FzBvagUV6BrmhL2yCgnmTEubb6bimR/D+cCf02hZvLLHVG+3FG7lFTD6hELQ5V6lJEEPUcr1nnMEDLh9HrriQISUKv+DVtkD/X6D2cH2qohhos+hzbvSLtNN9UKdAEscPkYrbLfdZD7iCTVZQ0XgY5unUAxsS4p2amxU3T/29gEzsCmdELlcuLNyPJzQitghC8MfBnBNmsdrRIhlXc6JafKhdjvJdk8QI7zWqXrMok/lgzReqn4I259cOiTLqmerYDSl60Gulx7G7s+dSgpNrwc3f8rDlwIqYAoFOQSY4GhxcSBYJt8StR/aj7Q1e1O2MoJnekgH44ip9Vpyf2XuKcO5+nwKN2CTICx9IhDN0FvSrTOn6L9D1mHzDG9zHKKY5JnFjy9k+4JnlrUbXCOD08WSBFCd13thFkKJCYE5ZTrWNOY/3coYb2Zdfbntos70y04OaJtIPDEf5VDnqA2I8EEyTWIj8dYwA0ZHe9g/ZDMC7Y6t5XeKhOI62mqGpjVdWIZ2O23c3H6zFPJLII/7cvGbVDHfn20MsuNElux2nCsxQtghhEdH+Zy6tMWsAmWtO64bYG3yF5MjyJOcf5xXXiwbTXIBpwgye6CjGDYov1k01WjSfiB8C2dRxNKzP32S+7KTeoPaeYPMqaKOcX3RMS9ek3J6RlLJjErXh0dDNP9UOnk= 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)(396003)(346002)(376002)(366004)(86362001)(2616005)(6666004)(186003)(316002)(41300700001)(107886003)(44832011)(8676002)(36756003)(8936002)(83380400001)(1076003)(4326008)(66556008)(5660300002)(66476007)(66946007)(38100700002)(26005)(2906002)(6916009)(38350700002)(478600001)(6486002)(6512007)(6506007)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B1OXrwEHu5uVNYTviUFEACmyoeWdPN2dKn4zQNWX3SUbHaD9W1wMS57jVwhVrEmElDslqbB+k0DDadOxSowx/hZpS4U0b9d5C5n/pStDsyT13UtXpceWA7nMzbRmA0uWFN6uqEaJs51uVuGV+MjAk7Qza8aMvC38aWVzRfGxIrf35Z2JyND3NL9dF6Jnv/+WEUXEdWMVFO9veKxdrGiEqaOeXBn3bdnFcyyJhZ2+7ONIUpqaGsHYNcrZH+kJdfbu9XjkG+rrAzQSTyuhQ3XFe4k22qW/BUxXL/8fOvDBYp2ARdlVF9d7wkICk/iT9CUWQrOWxK8QdQVWV5haQjMw01Gb9WdhYqYDiDgp0f9naNBHJVTWatX/qZn6heohAqOlxeAZNr9QiaDtCbULyMriB0RuV/RqJObnpczaiHzxw48U+Zb0YN6Ma1FY0QIBwKHjRszkvOskgEsrx1mmsd6341Np0uwJq0RwNNyf46fvVQ4rwmSuoaMgtMgwiVERT6LkFpoQl+GmOMTERwex5lO8tuulk6F9zutoxQyGGHNHgoZ9/wRHQm9u+RLDGywfO7B785q/NjJ9Mv54Z7xmf7u9OQsR2IxitxQea8Ru0KU22U+tY1HpKkATKj9InmkhPPlbX1W0lOoumZKM7a2F0f/wWdz0K9kAGEd/2pozjjCpN5ieZz6XrEAeMpJgsreaT1JpXHC7A+1W/C8tY2qFYLP59VfipVxoIJfITNaAToqi6/dljbxCA9TyBgrA51i7Xi9JGShFyJ1zqhUFAYkRYkRkq00+7tIt1AjljaB1WyLvSKsvYo1jog564uBgbwISoVXmvzoOdS3yRw0BvWgcJOA0hc3DERu3VFEt9SqfdjKKvDUfhOZbaBLxQlX1UAKadGkonnKPnoXC7Nqt2Vfiyh47l/to0IwFhKnXYSt6UT6VbrkFNBE14TBpBK1SIYhWhX+oOfbbbJ3D2mA6+Fmt1ANRLDbB1z/iDe5zEahEG5v+DNr7BgA6AdnZ5owwZQ2El1NwbMPLZACadqi0wkmcf/A305xRniGhD4WbR+zlH6j+LruttGQQOblec7btQqZ66Rql+ZjfOSgVjUXOYLBAwSwBfW+Sja79VnrsVdh3Elii9+ITMaCRNzbxd3dePSXGV1y90vw+qEN5vf9qF0uiBBWLp3zRMe/ODadKTCL9ExdOX8WKvo1nKlCOewRQN2JYxOVJwaICYN2uKPTnPEdsYEy4ZdQPdJpMqcMn/44sk6sHvldjDZbdDpzuuHoxWGEmYBqSGvcCBxSrxy3g/m9XQfcQ0fLXViab6z7F8DGJSxddnptgtuAXe0FDXEx3LWWRC1RcO6mEhuy/Yn7A3Vu0OC9+bTXpjfTfNZKbquYBXrruVV1S2NYXZKDxghL+JgP17TcQntpYrefpBWHX65iqkxQBQ3KeCx/5nk8P8I2vzpMxUyYPWzr/B4SFDpiivAHjg5HiLXAcKDIWWjOkv/eoPl88lW55Z7vNtfTzS/HyfWZiu/CHCXu58SNkksvND9Pag2iz78cM0eQ7IWS2F1Ksj0ZDRZPwL2uEw/LstLJFZ0qwHqUsqrT4k2hXoi7LgzCo9FQdbaY385+t9EMMVHs0MpQTNA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 944e8924-6323-4e36-5795-08da7e8f9658 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:27:19.5391 (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: xnCHoKMcrAwqlu+shpzp1bEioCJ+ziYTI2c8YRn3VfhgU/lMHUYOCcuKZga2gk9osji52UDdiQjggVBIPM4w1rMszgvZxN46s400z+H8n9g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB8134 Received-SPF: pass client-ip=40.107.21.97; 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" 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 --- 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 96b7bfd83b..00e489fd59 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()); @@ -774,7 +774,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); } @@ -792,7 +792,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 Aug 15 07:26:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943210 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 EEA5AC00140 for ; Mon, 15 Aug 2022 07:34:49 +0000 (UTC) Received: from localhost ([::1]:36664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUca-00024f-Uh for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:34:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUW6-0007Pu-1n for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:28:06 -0400 Received: from mail-vi1eur05on2097.outbound.protection.outlook.com ([40.107.21.97]:18016 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 1oNUW3-0000JK-VW for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:28:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D8yWR2e0q5fTR+NKkgFfR7wYf8WLO5fhvjZ5TpmqOcUjAZZ5pqla/qOKOa5gzst6CfSgkDZziO9I2Cw5a50qqiKkmbD5hXNPYpFWN0F5O/Ws6dU/3MrJNhoXHm1e7F1zbuvZBZ/SoYMojmmtMgg/fes7Iugvdc4KBcJ4xCS1uGjBYwj3F7QT8zXumTDI6zbupF8cfPqFILFOGOhbRvN3oO74GBSmw7NuhlJfLPlomSpbXbrafWjptSId7GOJ+BK3sShqyR+IclX/BSe1IW1EZN8d+vfyRFZgOzmvH+EgSgt4RJfr91vtCxJmBkxe0rpu0ir2MBhB1SX0GVcnbUQjmA== 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=IgKMYpoW+cvkSCoAV83VaxCuznQr60QY7mP5UAy+wa0=; b=V49ratVSVCKoRAAF1j7somZ0tulTdeZWHMEPSoBM9oGWnP1wwhDMuBv61CmyQSYNUVfn/tFRRI0g2mfgdPRJkowxOSw3A69RPk+oGAhf/E4G4OpJGClPtphX9Emdf0LwV6pCBhizcqjkD271kx0G6/VAsZ+96kj5pEf83/n1VMh8OAeBytyLYfYEhaU18CmWeSgZIyek2DHTYcNvR/pKFC/ouKLNtZfCK1MHC41SN5Q7CMkKYbh64v2nFd5A+zh463Eiv07x8dzxnU32srgXxs/YZ22RngAwRMA5ISloffFce4OOhEW4VcGsRPYs7w1mfQ5vw2ZXXnRzQoJVHpRVOA== 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=IgKMYpoW+cvkSCoAV83VaxCuznQr60QY7mP5UAy+wa0=; b=Y9Cwmb0cyxypRBMGOKvUlXjTxhIY7HTRC1qHDcLKnamAvJva7h3IiHI9W9Tt0jB+0TvUEu7pZBoBCBNeLZysHzZ2WzjmxfHwCujUvoZ8OpZdkxaJ+yxUstBrTxATIjv0WwZREajU7eY5SVFzJhLIZ3HvXXqfBk1tz59nDxJnzI8= 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 PA4PR03MB8134.eurprd03.prod.outlook.com (2603:10a6:102:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Mon, 15 Aug 2022 07:27:58 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:27:58 +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 03/20] disas/nanomips: Delete NMD class fields Date: Mon, 15 Aug 2022 09:26:12 +0200 Message-Id: <20220815072629.12865-4-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1a20c08c-c758-4bf9-433e-08da7e8fad99 X-MS-TrafficTypeDiagnostic: PA4PR03MB8134:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GWgczglQ0qi69V87q/n+DY9GXh8a3BoutjUD06FommCeJ+qJh5ZGeyqi4sts71OAaQH7r/UM0XtskKjKHfJSEBQvPSMPAYMfcM+oTwVuxzhfSX3dhOYnrjEHZI71q+DGNFfMho7gOeyfaT0X2QxJDFkKNRKVHIBbJQKqorWNx7ZWsGoaxEW8k7JYoyTN8zV1ew68Sllf7KzcchuAoOVwjTerb6KMGbe14bmq3c0Fta3adDF+o/aLnGi14aPmabaZ6RmQuyaNUJexy6vFgfo3tZP4vpNO7B8qRwr1imdqUjJV1TqbpYhWhnW0Dn8JbmD9Kwbz/mcfR8pplfTaKk9hYtPjX6Ber5c+Qfg9dM5bE7IFDJvAcZ+RqCned7RB/ffTu4Y4sKxAorIZ7LPMgK0XqEFLNSEzTDJc8jR8m/aAGr2r6hh0O9+j5B2KF+mw++kBmuqGaLQGyWW2HbZs1VSW7zOtzdLi27sY7vFrNwH/p4rjbxWIznjjKPXw1+CgjGxEAtRclnxu4XksylAGnBKrAvE3rqgZBbnblNkOguSQYm3acGyhAg2PiCf9gFquj2T9hgsDk+WIt7ZCDnfSpj+PGIAaU0withLhmtRheCDOUnUiJPEx93wAJa8vyjzv9fSDRgalQ+bF0Me9UVOIj57IXa1xH3dsgaLkYCRAYjDQiiu4NpRLRYSYR1vemMGaZOOMFNWu+8vVQwThh1WsYiN7pQ1BilImEoQpo0XB0qwrICQlXZY4YbtRwvF8xM7r6fyDc6471Qadet4pnEBgIl8QymA4AWYgYVNjufpHTXnC+W0= 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)(376002)(366004)(346002)(39830400003)(136003)(396003)(38100700002)(2906002)(26005)(66556008)(5660300002)(66946007)(66476007)(6512007)(52116002)(6506007)(38350700002)(6916009)(478600001)(6486002)(107886003)(41300700001)(186003)(86362001)(2616005)(6666004)(316002)(83380400001)(4326008)(1076003)(8676002)(44832011)(8936002)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yJGz/NO5ygwnlE487Jxl8u49njSOzjmg31Q75b1MxK9cPtimCbnS72GqkuN263qZMiwDSdDcCGqXFI8qTf92qfGT96oWwuD5fHAeJ1LR18kpArFDmNilGbvNWtxadJsh/WruYlgENr9nIH3nvHbgMrfMk8iufaTyKo1WMn8ahhgLnBQcTyUs+9R0gnJVCbqzkB1Pau6ebTkP0/R4wGuEv0b0AVVEfD7Bqf+uqpttmJq0UcYFmS09qkWdiUvIBY32hJCeGyT0X4X1FlzciPvTfY8ZSBAYeXnHVmhCjX1CE9eIrVLBz0shtgL3ToyDaqyEeovJwiq6Q9S0yZXv6HtdahBDZPhWyMjADh2HViYKTvOAg6PBHCZF/qE3QRl3dtSzMDir1+043h4ugaNs58FJgxqOc6E/oZjkyEMXn0Gz5lmM+Nnoqa5rTN9rypf2ekUhn7F94mGfucSSuk68dgG0wpDNLoVbBjalfjej0zVtXSm8GiF6kyE7GXqaeD3rSjRlVp6NQxvZ3Rd3CxDbTrx5F2q/JGjVoVMgxzQ49uLpr5PK3j+c6fMU5LsIGb5Fmp1lEynOmIgLAtUUF2/p+65rNrsY+hF/E4fVqG6s9GL8whHgifsjCyWTUcfSut7nPiiRPp2oaeTRb5s5NVKMLWvvD4Ry9JvAYQIqt6JfNbefqPK7X5UDIR4w5WSA4N4iNrFM7Maw4FkyCjXo8kTdqKApHGdSAeY3g24UHgNXB5kWRzkNZb3fhvqmtq4eghkq64cRH9id7j4ARRKn9bLHq2LKxy+WtggVxKvUm1Hm1+qaKEBKmCVVczLQ5jRPlXG5Cd6KOsCUSaBKjV6/5Tp0eyIEXRRxAOuswbYqLo8lW+NcyNmRzXUPqxsoyORyQKKzxnnR5SdeitceLTnAjHZLr5Lv4ELZyRig/BNm1SIwY5WRjm24lHwHaWOGKG3zbd+3YJFAHHg2xpmjkfU0oYWWZ0Q00fa/3mcCgmsFX5mEP/ZW61S6WejUNLJlyJvZVDCV/ddo98wO5o9TvGIL0hlFlwpMpY76R6LClOgYmTmy4zFUXE+nWSVj5R91frJ9IirdxKBSjiKNJmaJC6f7/w7VkMzhkQWqdqR4EXes5P1PgKBUrQIL7lMldrPN/9r0hQzpU4GvedPc/aTH8/k8dy0Kp0FXXZdDL092djTargdd/zlt9HL0Kp8R+V84Q03NqPJkQWcDmKPdKuCEmwFIBRzAlPWvYFMOvJOk4cnJxZmVI4vfhsOh7QvzLlmizJVPIOJPz2loJBLvDTxc1Ib2NoUxXaQ8A0SW7mirt/A0czLgRrBnJOW7upn2Ce96OK4K/EszoFEXMe2AK4iCBpgBywgGgQTwNLJaGTtxG2Ue5xRlSahA1lAnaG8wC9tu/Sfns0ey1GopeEN12w9aI71gB4qlmkW9Pmm3+ld8/8R6kBPNayP9VZARkZLypblaq1zzC1L2TZNA9PMXFtzJhP4s0Aui4xEyQPqtk6xE1nb/m4B4PcR8aqwThNpzdl79H+DCevbCNS8zr1xBheKxWoyOpg6sgZujN8RCHWL+WYwhkai4rlcrEPqpGeovf1qiqpXvPFu2TqOUS7rPsx/DxtSTwUXJyVRB5w== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a20c08c-c758-4bf9-433e-08da7e8fad99 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:27:58.5365 (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: CCgk++TW41rvf3XrimkSvPwWN8udpOBAAwU1Biblstf+e/rQGolexOrdM+TRpIAleTDRQVa5k3/qEXkcZrUl78hfHQRV44vjUqIzImTGW3Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB8134 Received-SPF: pass client-ip=40.107.21.97; 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" Class fields have been replaced with the public static variables. Therefore, there is no more need for a constructor. The main goal is to remove NMD class completely. Signed-off-by: Milica Lazarevic Reviewed-by: Philippe Mathieu-Daudé --- disas/nanomips.cpp | 6 +++++- disas/nanomips.h | 9 --------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 00e489fd59..2cbaa122ae 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -40,6 +40,8 @@ #define IMGASSERTONCE(test) +static img_address m_pc; +static TABLE_ATTRIBUTE_TYPE m_requested_instruction_categories; int nanomips_dis(char *buf, unsigned address, @@ -51,7 +53,9 @@ int nanomips_dis(char *buf, uint16 bits[3] = {one, two, three}; TABLE_ENTRY_TYPE type; - NMD d(address, ALL_ATTRIBUTES); + m_pc = address; + m_requested_instruction_categories = ALL_ATTRIBUTES; + NMD d; int size = d.Disassemble(bits, disasm, type); strcpy(buf, disasm.c_str()); diff --git a/disas/nanomips.h b/disas/nanomips.h index f65a0957b8..9858740bf3 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -65,20 +65,11 @@ class NMD { public: - NMD(img_address pc, TABLE_ATTRIBUTE_TYPE requested_instruction_categories) - : m_pc(pc) - , m_requested_instruction_categories(requested_instruction_categories) - { - } - int Disassemble(const uint16 *data, std::string & dis, TABLE_ENTRY_TYPE & type); 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 Aug 15 07: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: 12943232 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 98BC0C00140 for ; Mon, 15 Aug 2022 07:50:37 +0000 (UTC) Received: from localhost ([::1]:56606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUrs-0007jp-Kg for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:50:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUWp-0007fd-PG for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:28:51 -0400 Received: from mail-eopbgr80100.outbound.protection.outlook.com ([40.107.8.100]:2713 helo=EUR04-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 1oNUWl-0000T1-28 for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:28:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R61hHjF1pHHN4OvoRaWtsin4LD3iUfZkK1OwvohSKDKbk94l39g1cj+Yh1Hl0TDJbZyz54xYMwYWv/A4zGItCSoTgcmZisMdgqSbFPlw12El9PSaY5VYSqEvQUFHOzm1eHa0wUmibLyJFzj5VzQNkQum6dRorVe87iEhGQdQMUReBXLPG81Zg+q+vynKA7vKsevH8I3F3nGpY4ACYY4syuCS8ZGVmV1b2WYBxlMQGHIkwTgVsQRIC3pZCsWZ/kbNBKufVIn4935bjDYm0FU3DBcn2ybleF2i5vrTQwpsZGidLLWQPP63PjRjBsBBkZJfIxAM156B+WS6VrJhp5AUBQ== 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=C3GMzuKFc9pt7GXKKc3whJfDMS5sj/OSXW4CMmqqEks=; b=m3+w5tz0HEcV1indfZVVRdDT9aTxwwWPWRx4BPH0cBa0wWuJEW7JJFr3CPI2cQMbhFdrn5+aAIKHKyAPAWIiH8k3nJmt9e7OnTADsTahvxz1la0SjWGMc1fjGxYMZV+uH0GPFSlyhiSGsadiQJHDnD2McRSsliMD9sn2h++qC1KsnVLzTqjXY4riyHGlinALUaYsJiUV8taSNlFZ/WFOWQu7C8KnFpRSN2XpFRPDWvWzpXjUL4Y+g9W0XRG0zQE3nFcs22Q0rUaO+w+D4ybO5d2dT40TRUnBuw9wZgFanhqGpjaXw2vmhlg9onXkkvYt5+Os3B0Oyelc6BUldFvYKg== 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=C3GMzuKFc9pt7GXKKc3whJfDMS5sj/OSXW4CMmqqEks=; b=pYYTEEc+UpJbEtcLjvZachTZZmKvowa3q8K6mWELClotuvSWqBY3Yf2RPW6Aj3FN6nUVR9EAo/HZLTtYHV4D6GqF2yKirkTPtsPKQGPcTayKKeycWV7tWZDr5Aa0nj6xajFAxOngWUS0dPCaZtwbkI9oVp8BpD2WILIbHQinW/s= 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 PA4PR03MB8134.eurprd03.prod.outlook.com (2603:10a6:102:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Mon, 15 Aug 2022 07:28:12 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:28: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 Subject: [PATCH 04/20] disas/nanomips: Remove helper methods from class Date: Mon, 15 Aug 2022 09:26:13 +0200 Message-Id: <20220815072629.12865-5-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0f1201a3-10a6-4178-d6dd-08da7e8fb58a X-MS-TrafficTypeDiagnostic: PA4PR03MB8134:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R/lwUW4bCwCQIuoXMXLyYkTB6SIT0M2gmS4VBLipM8X4HyflT909ZtqUX8sr3hTWTZpDZRNN65GgrYiO1u7MfLJhFAPmlb1mZpWL/vjimBkkUB3okV2Wy6xQnZFVnTG8eFasWGGOeBioOtDpntPkSs6fU4ii3Sz3V6E1VR72Z3RtC6ufMDRvYsrSRYGrsuLvqSTLjLT8doY4YN65hPynFWLD1eX+F348hhGGPXe2dizj0d4G4SjpMgyGDkmoKPEv9F+3srNNWngbbJUebgP/jLBjDb3ZJqYryQNu5ZtJAKdHcKqR8AOjhwf1FQ/eAlU0WesCFIJf/PJMUgiNMIjJlduqtGAT1qDv03C5VP6bJZDKr5mb5uAYCoNjKsQraL8mgCtWo8RGdB6FJZT9cYr32mtqSZhZ4RBfkfr2bW/5341+U8Tm49sbndku+8DAUb4CjhKfrqEpF5vTRMdo7WD7tBWYlLLEgmYctl2IK6XT5K1AejRTfYfi8ecubLmLUa101SJQu4Ghsgop/SJT190BQw5gTvMlzIbt+oAccaRrBatgwvUGKPQYixNlRx4ZLumqsxT12F+lV2dCGP1/FFQrgGf5L09KcTXFMTwZnULDXj9EDoH3kmfoF9LB0tKg3wkIhuHe/Xin0kGkRMQF46trGNBFKhX/ubL4QIUcwsobgPXFgLmEa8lCFsrIctal4/z0mLRvHKJp1Yyj/ZnsUTSUAEzjfnfZqDEECLpuo9AuWpywyLU+RSAQLaCHD0bf+GrPJJ68I4Sxe8H0QWOdiu9XS2nGQrWs9mKH3TA107FjweY= 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)(376002)(366004)(346002)(39830400003)(136003)(396003)(38100700002)(2906002)(26005)(66556008)(5660300002)(66946007)(66476007)(6512007)(52116002)(6506007)(38350700002)(6916009)(478600001)(6486002)(107886003)(41300700001)(186003)(86362001)(2616005)(316002)(83380400001)(4326008)(1076003)(8676002)(44832011)(8936002)(30864003)(36756003)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7sXKdAOkF32yroa7/+web6eWeqlzckMCx4GDn8s0M1lxKzZhQ8u/oYQAK9hQQWFkX44NIs9IwZvj5yavT4vsdxFn6intn5bvA93R9vAVsvazlEgGzWfIPFaus+lWA6dAZiVcwAcnafiujHRM0O4Q+amxVGhtNJ4WBQvuqIupayFUuEecepu6CBoHIM8DpUy8nbWXl8dZE+RjJj6FjucRMoW4p8p1f2ddv4pDYwsxSia9LiN8QkSvCyFxF8BuXmR+XzMzExX3gJ5JtFNOhIP6+ozPZvQZLfad1KZdCn3e4/d5hZbChsb0hC4MkOEs9uxXZ+elGA+dr6GRrcNW8PAXaVklqQzZxq8q1hNYFzdusGMbgFOMBS/AGJz8CWH3mc6c0NW5RzrMU5+uuaNvnND8f5HcqhdH41/u5dYu3pAB+CaUt+vuVxUla9X3LOC0bZrjRfb49A7XleRrqb+Yl0aPiRv9n1iAigE5OLa+54ROju713K/LFL2C7d7R56g1XmDkBiQ4T7g69F+tFsI1BOzvvxbK05vnK6YxmnqBRNRlwBeuTJfpX4HP/FS6tRFZfo7pK+diinhbknPjR6p7c88sZsQlVjgcGZ2ppuyWAsEhV+xw+OVLQKWRg/uXJil3+H3BhHAo96WSLHVq9MLkLibyBW1z3GCnzqe7zaZG57dkwBxZytakurfVb5Icf2/irg/GdA+9xbLjWTQ4Hq1QOtXha/NvCeVkZf2zSDi1CYaTEmaGWeK5o1m/OgB7jA33XY6j813NviMvx9NTICE4SdQ+sb67wEJIK4hsFNjVZ21tf73nljbGjPpIWDKAjW+g65D8kPYuKbur6hg1mAJ8bzusIv2z51KFENNQ5i8JvfDvZC5YnDmihdBl44u4dQ30IshQKPx1mujuWrPf/CSOB7MAjSa4i6OcoMXrUo9sYzyzSZqzIjrkLTJXZ9+vgurpfYXIemnY5pCoKSlG0vlApvi8Tj2d+sxwnZ0RosPw3CxRmdlSw0zaVnHMBJJrQ1a9SDqdFGeUyHUejBM3TuTDEKi+pu/Ec/H4AJmMzjfIaz6vt2+vTLui8AbiUNGzY+aXladEl9gfyBo4s9EBN5NvBdBneouQN2ccE/DH8q1XSAwuzSfhsk7iAlqPWSvrgNtj5Qx7NDlQwz9/UqYCWNWUaVUL1IRjnddKyOpdhDLzVqlWop6L6ShvuCsTwrE6pfrGcAh6yplK0LI+nJ4jsgRJzhEpT5Sme8yO1CwxqUp5BJZlKX0y5Cc5RB5ofSdW+5WZ29XBCZk14c+rSgb93AgWqW2q+TMf/Dg9Np239oqgX+PWJwgVQf1hO1HAb5dTcxXRBZcyC7ehxxM4k5Z6LeSRrc2oBMIVA02v2wefjBR3xL1JNv8B+LNPR3C7QPbyXrM84jgUbSoQ2HnhnVpPQbV+Wdd9YhDhch2SZJLDUSycq2r9lAL//qy2QvcHqRD1dGgY/vfwWWRGaH793vflWa0NEJFy6c+Csj3PKaRJlwDHn6ODQMW1su7wNWHW6ro7l1R7EANQFVfGMfCZ/S9TpcHumodPFGJVmls1aRor+1kPGqtctEuM9HXCEY+oD9ttJcj/y8i2HvkaiDRtMFsink7w9UTOTg== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f1201a3-10a6-4178-d6dd-08da7e8fb58a X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:28:11.9419 (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: QqszsCzVFcC7jdnBagLvzZrTVMWiN0JlyLbdx/6RBcnnbLRBlL4/Fkeq76B2sPJb1N93UNBwRxB7j+3lv4dN1BmZ3v3WCgvC2l8PUBqmVA8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB8134 Received-SPF: pass client-ip=40.107.8.100; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-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" 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 Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth --- disas/nanomips.cpp | 322 +++++++++++++++++++++------------------------ disas/nanomips.h | 144 -------------------- 2 files changed, 151 insertions(+), 315 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 2cbaa122ae..039c353d0b 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -273,7 +273,7 @@ int64 sign_extend(int64 data, int msb) } -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) { @@ -288,7 +288,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: * @@ -313,7 +313,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 }; @@ -323,7 +323,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: * @@ -349,7 +349,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 }; @@ -359,7 +359,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: * @@ -408,7 +408,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, @@ -417,7 +417,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: @@ -448,7 +448,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, @@ -457,7 +457,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: * @@ -478,7 +478,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, @@ -487,7 +487,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: * @@ -508,7 +508,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, @@ -517,7 +517,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: * @@ -537,7 +537,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, @@ -545,73 +545,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; @@ -619,21 +606,21 @@ uint64 NMD::encode_shift3_from_shift(uint64 d) /* special value for load literal */ -int64 NMD::encode_eu_from_s_li16(uint64 d) +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) { @@ -646,42 +633,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", @@ -699,7 +665,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", @@ -717,7 +697,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" @@ -732,26 +712,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) +static std::string ADDRESS(uint64 value, int instruction_size) { /* token for string replace */ /* const char TOKEN_REPLACE = (char)0xa2; */ @@ -862,7 +842,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); @@ -870,7 +850,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); @@ -878,7 +858,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; @@ -886,7 +866,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); @@ -894,7 +874,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); @@ -902,7 +882,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; @@ -910,7 +890,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); @@ -919,7 +899,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; @@ -929,7 +909,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); @@ -937,7 +917,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); @@ -946,7 +926,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); @@ -954,7 +934,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); @@ -962,7 +942,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; @@ -970,7 +950,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); @@ -978,7 +958,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); @@ -986,7 +966,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; @@ -997,7 +977,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; @@ -1007,7 +987,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); @@ -1015,7 +995,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); @@ -1023,7 +1003,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); @@ -1031,7 +1011,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; @@ -1039,7 +1019,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); @@ -1047,7 +1027,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); @@ -1055,7 +1035,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); @@ -1063,7 +1043,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); @@ -1071,7 +1051,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; @@ -1081,7 +1061,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); @@ -1089,7 +1069,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); @@ -1097,7 +1077,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); @@ -1105,7 +1085,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); @@ -1113,7 +1093,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); @@ -1121,7 +1101,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); @@ -1129,7 +1109,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; @@ -1137,7 +1117,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; @@ -1145,7 +1125,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); @@ -1153,7 +1133,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; @@ -1161,7 +1141,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); @@ -1169,7 +1149,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); @@ -1177,7 +1157,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); @@ -1185,7 +1165,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); @@ -1193,7 +1173,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); @@ -1201,7 +1181,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); @@ -1210,7 +1190,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; @@ -1220,7 +1200,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); @@ -1228,7 +1208,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); @@ -1237,7 +1217,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); @@ -1245,7 +1225,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); @@ -1253,7 +1233,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); @@ -1262,7 +1242,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; @@ -1271,7 +1251,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); @@ -1279,7 +1259,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); @@ -1287,7 +1267,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; @@ -1297,7 +1277,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); @@ -1305,7 +1285,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); @@ -1313,7 +1293,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); @@ -1323,7 +1303,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); @@ -1331,7 +1311,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); @@ -1339,7 +1319,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); @@ -1347,7 +1327,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); @@ -1355,7 +1335,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); @@ -1363,7 +1343,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); @@ -1371,7 +1351,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); @@ -1379,7 +1359,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); @@ -1387,7 +1367,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); @@ -1395,7 +1375,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); @@ -1403,7 +1383,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); @@ -1412,7 +1392,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); @@ -1420,7 +1400,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; @@ -1428,7 +1408,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); @@ -1436,7 +1416,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; @@ -1446,7 +1426,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); @@ -1454,7 +1434,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; @@ -1462,7 +1442,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); @@ -1470,7 +1450,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); @@ -1478,7 +1458,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); @@ -1486,7 +1466,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); @@ -1494,7 +1474,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); @@ -1502,7 +1482,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; @@ -1510,7 +1490,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); @@ -1518,7 +1498,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); @@ -1526,7 +1506,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); @@ -1534,7 +1514,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; @@ -1542,7 +1522,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; @@ -1552,7 +1532,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); @@ -1560,7 +1540,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; @@ -1570,7 +1550,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); @@ -1578,7 +1558,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; @@ -1586,7 +1566,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); @@ -1594,7 +1574,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); @@ -1602,7 +1582,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); @@ -1610,7 +1590,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; @@ -1620,7 +1600,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); @@ -1628,7 +1608,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; @@ -1637,7 +1617,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); @@ -1645,7 +1625,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; @@ -1653,7 +1633,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); @@ -1662,7 +1642,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); @@ -1670,7 +1650,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); @@ -1678,7 +1658,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; @@ -1686,7 +1666,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); @@ -1696,7 +1676,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 9858740bf3..a795ed44e8 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -89,150 +89,6 @@ private: int Disassemble(const uint16 *data, std::string & dis, TABLE_ENTRY_TYPE & type, const Pool *table, int table_size); - 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); - - 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 Aug 15 07:26:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943238 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 0939BC00140 for ; Mon, 15 Aug 2022 07:56:51 +0000 (UTC) Received: from localhost ([::1]:36978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUxu-0005Nm-0E for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:56:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUWs-0007gN-27 for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:28:55 -0400 Received: from mail-eopbgr80100.outbound.protection.outlook.com ([40.107.8.100]:2713 helo=EUR04-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 1oNUWq-0000T1-2d for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:28:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mq4Pr/yt1bPsV1d9WLBneIgMVkbrmebkvpxsAhevr/DahRRUA8d2ipuIXHVNvs3eClTVKs0HuTdBdGKRsIjz6VdujQX3YNu/99101GdeBb1HT/bTeau8bdoUc7Tknpv99yu1mm8EzBtcxpzPcYN0W3fsJEPqVt8+fmGW6d6pi1HYVFBjU7Ii4xroNc0hkXqbPCmtBV551+Z3Wjv0cinpotFGs7iA3SBZloZUyoM6MYDlV6r5YUgt0fMxGPJUITBLsyiMMSPYcwUs6uiaHZdDXd2+usyrI9DKtU/BSHbN8jmcphcv/hf0flsJG2RD4lhAKU4gJjSjtKv3oh9k8/Yiuw== 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=aKdLuxf+1qu6S4A10AVye5tA+WvOVyNBAyNZikqlRUk=; b=kuMD8BH+HeD8Tl0mzil9+IfD3ZN6cE8L/iemjWGJYHwe5iBINQYYc/Sv2/dbwFYG+iMz1+yi30R77X1tsUHjqYkBcwgeZShF1OByNtWsr8f4cbNYYlXe49Zzd/CjSvrZ0RqW4KSO7ov0ZODmfPLkCX8dzEfo8qdjLZmVcAAMbftW4exac5fzWUuZ0DS8oWUTgzBKstqg6U9MAAqS9m883g2HRcmqzz8OuDvKWfT/SsRPJBGR8DowhyRQeAB7+ITMbnHOeUo5ECzHie8VCah3KVZRbnluK7ce3lf70t9GtGiNneJo9aFxpL540vvOptow9m19m2M6ZcXn9pLz6UGBoQ== 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=aKdLuxf+1qu6S4A10AVye5tA+WvOVyNBAyNZikqlRUk=; b=s5kFAQrKfpPgicNybtLNpfTZ98T1CAy4vFn2zlC0wBoCgsjVhFTNSSaGzZyBMQRVOxiG7G3IchuW6gA1VCDqfOyEMML8LovKUg062CJXknHIZk67Y68QrHYla5YXiI4+OaGJpIABCjDpyrXUIOOgvvhZurtaohsaAy+EmKK/LQM= 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 PA4PR03MB8134.eurprd03.prod.outlook.com (2603:10a6:102:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Mon, 15 Aug 2022 07:28:43 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:28:43 +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 05/20] disas/nanomips: Remove __cond methods from class Date: Mon, 15 Aug 2022 09:26:14 +0200 Message-Id: <20220815072629.12865-6-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a79356db-4816-4589-aa5a-08da7e8fc82f X-MS-TrafficTypeDiagnostic: PA4PR03MB8134:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HiSmmQSKjE/IUld2fnYwQkrhY9SwTS9RaIBESRls/1E49c4nn1EbOn6Jnmxdg4mlpkmKPlwkj2YX4maqbNqTWz+DuVTx2E28meHA7PxirC12n9nvI47zF7wlkAFta2vdC8QSRlMehW3VAtIOxBmOtdB9N/q920c6Fu4vXAESJVropC3EryDVb3eThlfdnyrSecTkfGF3p4JbEgT0gz+lgSf5XwA36Mup6W1e+YllfQiuRkoEZ9zFvKYCP1aQFTg9NURsjxVvBr+wRzGaHNn51P3uHXU0FwmvhSM0fXswTvEidr0vofpj8X7Gm2s23+kdi+As7WiRa7aGXDd5EMzg/Ugi/wEuSlU4K5U4c5PVfAonFS/hifg9myP3fDTZ6CfktIvOhT7XD2/W80MEjzjgRQ9r++WdZcCdW8rM5K/pTx2m8qRxo7TXRBr3KlgXwhxkzAAiXY/UtSMuzw2lQHBS/ZLr8jnqjV3tsKma6kBpClQ34nkFStP6etcshPbU09t8rDX/fnGJKGA47j78DPOyNpQWHaPA6xc9+weg24zeXkYoW29LKnqkvbua9kCTQ5xfQ7f+IhPrhM+Yqx55T08+Rfp865qUik/uo5YMSkYduwEa11pmJvlpkF1Cvd7Mk0XxmYk4tYHhBQyedRnitNCryx8ntDB5e8whr51T4y0Gd8xwOXt630+SiLkRWTKxwQa3TgqZIKPE/ZhlCOqJ2HIgT88NRso5aloQgk/fAgjX5N9YNBx0K2d+iu0lKr3pF+Hibs0U5LOUj8D0OEfWVRAopnLS00yLIYTDSTSFe8BkOSs= 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)(376002)(366004)(346002)(39830400003)(136003)(396003)(38100700002)(2906002)(26005)(66556008)(5660300002)(66946007)(66476007)(6512007)(52116002)(6506007)(38350700002)(6916009)(478600001)(6486002)(107886003)(41300700001)(186003)(86362001)(2616005)(6666004)(316002)(83380400001)(4326008)(1076003)(8676002)(44832011)(8936002)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iEAODVEk4PrXkIQQJaJ++vMzKpg185Cykq8b+LBpjT3yw7N7t7hWWe2UTQaNwJCymcR2yvXn//50Y0ew6U86n0/nSJiSpq+mbFJw0j/FRUOPzahLJMGsofkdEGJL3P194hlNqNmfUTlg7ZtEr5SdJQuHwBbCqTdQ40zDyAklyJZmx3YZWlcbaameeq/FcVlthM+WteWOXXx73/r42F3B7Dn4BfQ4Km6GX+YPqCOA4KmNin9rxwqGislq053MdNwuNBc0Rslz6aerklF53KoWKKPifUL3EU9h9Dr91SyFK83VNRLrdvBNo+rYobpQfQ+YbKwmEtULfrhLW7dQXSC7kB1NcAczTOSZgjaxtAkchXMBsJfxSxoQOZLwHmLVstvk0tVMGViU2zR+PI96PMua2g/RYemnBY6NGqsoK9LG6fUbWQOkPfeNGhEnxHuQzbR6bvlbfDEuBkiqwZLBYgVkHK+IE2hXsYAAMlGmdtLkCDsM2Qm/jDv+qAnd1uEabWp6OdOcT5D0W6qUXOL1K5NSsb2iWGdpgjjnycJQ5ySJrDLT6snGcbsQxEz2zO5vT800esNMl8ne2Qault6isVLZlbTzm4LHwzPp2dLkeKZzn+uyG5H5drhFm0TgwovQRQDTaDx2zEK5LQt0U6FT/ByUK+0RJ2cCB3OJ7vEKlyraUk5Zr7gGoHuVVsuOZuPtzBZBJf1Jibtmp13qqMJGYBJaM8eV+SHqNrxk3VHJWpBMRL7HZvjLw9gcWPwlS0BquePze5hiskf+kt5aGWatKX3LyRuOJxBg2eAtsaI41J5XMtKaR0ijTKyr7EFX3fmMaD7/+CTnD0S6UhH1LF3c18S7uLf/z/ajRNa/36rUZgofYWOtJ4wUswr/ezSW4gpqybYaZHZr9Tk1mppuVt9XrcIy5n2+Y7iZzep4E9Cw1PYgLtooI4pjZi3/sZ+zctB8yh20S0sz5MJEFih32avSb9zCu7op7R/p0CjYucmAQY0rtY3NuwMqLMxQkVpqwB9VNBzkm7YPrfjvZv/TtgepyJg9mp2fZCtrZrgQvnMzocaCTOzNqcGzSz3OXoulOOBw99Ua9Kb2HScU+EAU9IWcbeX7nu4kPQ66nobCWAcu+6uAGOgdpcTwyWAGO/n8/0YAd7juG36kk9lbGqYeu7E7xOUBSURONEqSXhuwvvjvnaZ1cPLX2f6Mwg7+3Msq0bRZrmUSCnJeQ84ERG3Gr6bmb85PMIFgMB4dUPcjfrwgt2OdNDBBjfnwGCY3NO7pML66cEJ4vHZkUUopLamLcRACPwyVmHt2nwPi1O1kgzzYAjZfu0DEpF1k8DQmtzshdtuLMla1mJt5j1eFfekMNAmVvqX1vedtikw2DbgRfpGQZEz2URh/XQZUQzQ8uAiQZwHXCePb2ktqAWbzPxQerF5Z6oYHMRTHiJSLp22wYg3XE30Wb8EikWymkK1ErpxrZmek1fXL7miCn9Zp+ll7vTVMuuXUM2RMdDbayigbA04R008yuwooqphgiSiELcc0NMvCaAzRQCwoLKLoEvcTQgN8OnFWEuBx0U9ngZZW7Y8B2E5s0PT2yiTsgt3keMMXwpvDaVPxaJstyUBzX2uE2yXm7Ti5vA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: a79356db-4816-4589-aa5a-08da7e8fc82f X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:28:43.1586 (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: HVjBUElPPFTV/Z3iqkSGithLf9uLn5N7oJln1/0NInfahTvx51EHljdxFrQmPz7h1aO/DTZQJqfRkII6EMrKY3STHafP+iqRr08Bx9DnGIs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB8134 Received-SPF: pass client-ip=40.107.8.100; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-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" 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é --- 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 039c353d0b..9e720d0e8d 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -787,7 +787,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 == 0) || (cond)(op_code)) { try { if (table[i].type == pool) { @@ -1685,28 +1685,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); @@ -1715,7 +1715,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); @@ -1724,35 +1724,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; @@ -16705,7 +16705,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] */ }; @@ -16803,7 +16803,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 */ }; @@ -21348,7 +21348,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] */ }; @@ -21560,7 +21560,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 */ }; @@ -21732,7 +21732,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 */ }; @@ -22080,7 +22080,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 */ }; @@ -22146,7 +22146,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] */ }; @@ -22183,10 +22183,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] */ }; @@ -22196,7 +22196,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 a795ed44e8..0e6670adf5 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -31,6 +31,8 @@ typedef uint32_t uint32; typedef uint16_t uint16; typedef uint64_t img_address; +typedef bool(*conditional_function)(uint64 instruction); + enum TABLE_ENTRY_TYPE { instruction, call_instruction, @@ -71,7 +73,6 @@ public: private: typedef std::string(NMD:: *disassembly_function)(uint64 instruction); - typedef bool(NMD:: *conditional_function)(uint64 instruction); struct Pool { TABLE_ENTRY_TYPE type; @@ -89,17 +90,6 @@ private: int Disassemble(const uint16 *data, std::string & dis, TABLE_ENTRY_TYPE & type, const Pool *table, int table_size); - 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); std::string ABS_S(uint64 instruction); std::string ABSQ_S_PH(uint64 instruction); From patchwork Mon Aug 15 07:26:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943242 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 1D0C9C00140 for ; Mon, 15 Aug 2022 08:03:30 +0000 (UTC) Received: from localhost ([::1]:46932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNV4L-00044U-3T for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 04:03:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUXv-0008P8-TY for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:04 -0400 Received: from mail-eopbgr80122.outbound.protection.outlook.com ([40.107.8.122]:52230 helo=EUR04-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 1oNUXo-0000jm-Pd for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:29:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i1fVU+ActMb7dkDRWz9alHdAixdT5bFMdXMk4Ls+rRTUBvTXViTIS9iY8oc7GmuLYMumpZ44v9VmUfcEhyPirJLShJqtd01GfJbpt/tpcSby2OXuzS1DWVZSjDKreey7kZT/BqoKNL6Rf3dmVECTW4BZh4Nu3aQYuIyTb22VWzkXKODfuKOBfXLCrVt0s71G6T9jMdlOLY9LX5E1ozCNVRfC4C7P1FvUzrD/8VnrzFg5jDgzY1axgRsj0ysVCK3F76Jf1hS6chKda5ZYZ1zMuupw2wXc4BcBjHA7sd6UySmSVz8I1Iddbqm2RrXNt3HOuBGlFwAKxeKwPfT130l/pg== 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=aLpbHY4YXtoxwlWv7Kf55ISJCiNm8QezPzw4w7/yLyQ=; b=F2/FlWwgZQF08cYGiaTfX67EiVWDQVsILnMZ5qGaFv2NTOQlY0vsy6/Rc35UbvXVSQLuOh/DbW55CYjOwEcuj7xWGuSp2bUiogtu8UZr3OuwWr3/aVAVo6ZgsbPRLDA8QSDYWuFttZGRbHwPzfjRzS9xBs63qZBQmCzh1ucAw3gOEeFa9QAdBUbfWWvCkFpVg2XQhrIRfjLp66rdMPh/j4CHyjdFRU21F02t6Cu1dWwdkHNK9aHGQE/zbgAQah5bcfXiyt2Rzr7irpTR5h/fibI31UJ3suZFXLUbSt6bUXnrvlYSfJOOSCcRIvUeDyALqqcJihZfHCst8GGuBzAetA== 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=aLpbHY4YXtoxwlWv7Kf55ISJCiNm8QezPzw4w7/yLyQ=; b=XL/37sr1XWNsCaMLZxzjXkOdqzNd53yPvWRGhxo1sPCTdCyMgX27muOoL5Gk/zKJp2nquCEzWL2VKTGHfBGrQWbJAVVHPcE3x7M5ktzvx6lPDCdfhE8Y+gevqVsZSyHcrLbGdea7pc1od+BLcVf7bO8KAyOK7jj9/4XlMp/kp5s= 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 PA4PR03MB8134.eurprd03.prod.outlook.com (2603:10a6:102:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Mon, 15 Aug 2022 07:28:50 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:28:49 +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 06/20] disas/nanomips: Remove disasm methods from class Date: Mon, 15 Aug 2022 09:26:15 +0200 Message-Id: <20220815072629.12865-7-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0c9cb135-143b-497f-3091-08da7e8fcc14 X-MS-TrafficTypeDiagnostic: PA4PR03MB8134:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gugCrptfvv6gkR88e3AQqtFVlnDBoGsiNG73bhCAgBzHvkuzHJsOw+EOF9/hmHEGCuj11An46sm73Q44e022AFfCZDRS2vdQlQQvcylKpeJQWEWEc/ZLd4Ga2aYMDf58L4Zi37ltiqZLFSUKaIZXB2G70m8M8FCx+hrpOvjW4pnpPvA9OXknrPyopHEbWwbgp8/h+o/+NH6CeNEtlXPGdwgqH9VkSt9BAIHnhlEW4nMgXEziWnHI8HVtit0lRS9R+Wa7+z9XLNVxWb/B3HzUzxi2+KKUyd4aBB1Qvme3k6X4nzvklenn4GEBmu4pocVxoPUAjjpoYGq+UzrbTNGm0pore1GkBLYtlsOyNqNZj3S+ygwSOYz0b3NIrnCjOXqSpGqepys3Mic6VMkBYJoNpZyDmlw48P5p4HgCedvYe8Zs2AtlMevbCEFyM0nOLCXAM0Am3CGu9OhvopLNUsT0EkTD0mjEcpbIFvPnYsHbWK3TTh25TDkfQXd4tmuvz2KaDozo6a2/OikF1CSURyKTItLQuFIYTWdoMwsc3FPdPMLM0zlRa0FpawCE/9VzvNTAyOfxd+X+/dt3gc6efXDKwmCIg0mbZndAa+mAREKo5A/ZjoKrnWlC4E83si7CX7Vv30zZf2hHcSwCkTKY0QyrVCPeXb0Hz+F3FJ3YljSUOQdqDZvNWZEXaKAEIph/kQWciL+goX7b7DJuqQqRbkaJARK/iCEFKOWKZm6c01+eldN69z/eVjkvBesghf+Et529XTNuqBDO8S0UaLDFYWlwLtaDlC0seXoJ5MvPumJsj+Y= 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)(376002)(366004)(346002)(39830400003)(136003)(396003)(38100700002)(2906002)(26005)(66556008)(5660300002)(66946007)(66476007)(6512007)(52116002)(6506007)(38350700002)(6916009)(478600001)(6486002)(107886003)(41300700001)(186003)(86362001)(2616005)(6666004)(316002)(83380400001)(4326008)(1076003)(8676002)(44832011)(8936002)(30864003)(36756003)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /6EkAZjzBsNp10+YhGSM6f21BgzaMMjG9L1Ff4OURpMph6EKbpNq3IYiwg0bMStLYU5J/yMP0UdW84pecV0hQr+4YL4AU5Jc+EySOxGqxxdWjwSMlCBGs58ymqT1PdXurIr8T7JJtcq3igd4Ui7qHDrCb6wV/2lra1gqBKviAXxPwWUh6NemWUbPxhDg6l8EQy7eboJ8mZVIrG4xz/zRfjYJWHIcAAIZT2A04Io+5KaqENX1XqhnyUpVrXel2TrRSWk7sLu9Co/2JtpwiZ/cdobL1MP1R0srthAoNw2FdD8hKR+FMmyH5MmKoA2rQpVeUpis1mfHxvc4vnE3FcdCyz26Yjf8U3DpPgutZGDw7tE8Uc+6Xy48v3lGi1cHCi1yFkKFdeHw7LrqIR2OCoQMq1Qcbneq5oJNwTSDFqtrX/QC/PS/I9sr/AEhdJ96UfCAYjGFj4YEKmMSIGcI8vpMFQP7hJLzArTnG14AYFYSalDaMl8nVN2NxHsgWip+/yoHo2c09Pd8w5TNy8FOqtGdxizRLrwe2Y5wjeFFWLeLRwZAxZCKOVo0ZQPdaUohM9ejc8L0EIzqGe3VpkqjPyAgElFj50X1Z1omXAqntj1B/6ULLJ9lqeuZdmyzxNdNjfVXNhqya8XgAav+sIBmz4chzx1lJE88SlTVlFiBEfYpifVp7eTBTEzI/iINPPKmFkFCr+0W1HtFd1V6R2lYgWSiu28EKuLP0G52EtHpxMccWcY/DbjpruF8TMF0OW89d76ZMoYZkb/HTmFHsOqExkaO15gIrP8w6kIPmk2BDC1qD4DvKwJHlFWK7kxFbk8wBBsBw+G2NBazEmhScsRVYF72KBntI/+GuMF/XGPD9ledCpz2FK/ZALjeaEc/a2efDogM1AaceaowcGuyaGsk4+aFTgGA0gmGlTethgXMyz5dCBaNvoKS2Hv13/i+rkydGJLQSVB3RV+sg46z0L3Dd6TcxgJGWg8TN0/f6S32q5cKUcMqIIjdBDxPF/9kI9kJVP+0Q/5iiOidimDvpYTaD1nsHY9vGWdQ5+xE0kfrzH8r4nE1EotmQPTT7kFB/fkq+cWl1+6TxVGjCVdRawpUiL+GoZoVUc+TbHYn5c0mpIg6Zmhm4GTBwTxAlf3OddBWl9/sJ59mUrM7T6H/Id38hw2Ip6GviGIUm5inaUhc7Lhbigct1sn5XA1gwHtb445O9d9BSSrYNMFiB6yJRr+MjAuOl0QeQjX0F28UVTwtmDxiLXrleqMQMLDFb4HQu1JIbwVChm7unFLmBN6elo3X2yIVCVXnKG7Dgb5C+fbMugrqb8MT8i9Pxjdj+WXaJQ7oRBcppfTHp45RJagLZHoEPw5LupMzFZuQENoxoBTNg0PIuEc9GRkA/S+Yo80GFDBIOW9vbe7gP4hnsmHfPDDOpc3fXyhMBas5rhmqWkfsSAqjCHDO5Er6RYpuUlHm1EqTBZJ9FXCdLxVwlU0dUDYITu91X29nGHoINvbp4vcogmTVaHboCXYPUHEv0ko1wYpP9Hh4gtrMhftDnofAEUUbZGHsJuVg+qNQU4datf9HbniiTsxnRIU83ZTtrMRhT+vOjw7JZqnZM5NsI9uVyGnaHNYOyQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c9cb135-143b-497f-3091-08da7e8fcc14 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:28:49.9082 (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: ICwc0Pvvs1/huepJX2S4sdjOGBcDHyPC9ihuORONOyZ2CFCUaS323UmIqgqQQqDgujAq/Yy1FgtGiFVK/iL0ZQy+bfQS/JXSslRc/596Lgw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB8134 Received-SPF: pass client-ip=40.107.8.122; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-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" 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é --- disas/nanomips.cpp | 2546 ++++++++++++++++++++++---------------------- disas/nanomips.h | 640 +---------- 2 files changed, 1274 insertions(+), 1912 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 9e720d0e8d..205c4f3143 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -815,7 +815,7 @@ int NMD::Disassemble(const uint16 * data, std::string & dis, return -6; } type = table[i].type; - dis = (this->*dis_fn)(op_code); + dis = (dis_fn)(op_code); return table[i].instructions_size; } else { dis = "reserved instruction"; @@ -1770,7 +1770,7 @@ static bool SLTU_cond(uint64 instruction) * fs ----- * fd ----- */ -std::string NMD::ABS_D(uint64 instruction) +static std::string ABS_D(uint64 instruction) { uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1792,7 +1792,7 @@ std::string NMD::ABS_D(uint64 instruction) * fd ----- * fs ----- */ -std::string NMD::ABS_S(uint64 instruction) +static std::string ABS_S(uint64 instruction) { uint64 fd_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1814,7 +1814,7 @@ std::string NMD::ABS_S(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_PH(uint64 instruction) +static std::string ABSQ_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1836,7 +1836,7 @@ std::string NMD::ABSQ_S_PH(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_QB(uint64 instruction) +static std::string ABSQ_S_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1858,7 +1858,7 @@ std::string NMD::ABSQ_S_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ABSQ_S_W(uint64 instruction) +static std::string ABSQ_S_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1879,7 +1879,7 @@ std::string NMD::ABSQ_S_W(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ACLR(uint64 instruction) +static std::string ACLR(uint64 instruction) { uint64 bit_value = extract_bit_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1902,7 +1902,7 @@ std::string NMD::ACLR(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADD(uint64 instruction) +static std::string ADD(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1927,7 +1927,7 @@ std::string NMD::ADD(uint64 instruction) * fs ----- * fd ----- */ -std::string NMD::ADD_D(uint64 instruction) +static std::string ADD_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1952,7 +1952,7 @@ std::string NMD::ADD_D(uint64 instruction) * fs ----- * fd ----- */ -std::string NMD::ADD_S(uint64 instruction) +static std::string ADD_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -1975,7 +1975,7 @@ std::string NMD::ADD_S(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_32_(uint64 instruction) +static std::string ADDIU_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -1998,7 +1998,7 @@ std::string NMD::ADDIU_32_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_48_(uint64 instruction) +static std::string ADDIU_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -2019,7 +2019,7 @@ std::string NMD::ADDIU_48_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP48_(uint64 instruction) +static std::string ADDIU_GP48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -2040,7 +2040,7 @@ std::string NMD::ADDIU_GP48_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP_B_(uint64 instruction) +static std::string ADDIU_GP_B_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -2061,7 +2061,7 @@ std::string NMD::ADDIU_GP_B_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_GP_W_(uint64 instruction) +static std::string ADDIU_GP_W_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -2082,7 +2082,7 @@ std::string NMD::ADDIU_GP_W_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_NEG_(uint64 instruction) +static std::string ADDIU_NEG_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2105,7 +2105,7 @@ std::string NMD::ADDIU_NEG_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_R1_SP_(uint64 instruction) +static std::string ADDIU_R1_SP_(uint64 instruction) { uint64 u_value = extract_u_5_4_3_2_1_0__s2(instruction); uint64 rt3_value = extract_rt3_9_8_7(instruction); @@ -2126,7 +2126,7 @@ std::string NMD::ADDIU_R1_SP_(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::ADDIU_R2_(uint64 instruction) +static std::string ADDIU_R2_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2148,7 +2148,7 @@ std::string NMD::ADDIU_R2_(uint64 instruction) * rt ----- * s - --- */ -std::string NMD::ADDIU_RS5_(uint64 instruction) +static std::string ADDIU_RS5_(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); int64 s_value = extract_s__se3_4_2_1_0(instruction); @@ -2170,7 +2170,7 @@ std::string NMD::ADDIU_RS5_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDIUPC_32_(uint64 instruction) +static std::string ADDIUPC_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); int64 s_value = extract_s__se21_0_20_to_1_s1(instruction); @@ -2192,7 +2192,7 @@ std::string NMD::ADDIUPC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDIUPC_48_(uint64 instruction) +static std::string ADDIUPC_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -2214,7 +2214,7 @@ std::string NMD::ADDIUPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQ_PH(uint64 instruction) +static std::string ADDQ_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2239,7 +2239,7 @@ std::string NMD::ADDQ_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQ_S_PH(uint64 instruction) +static std::string ADDQ_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2263,7 +2263,7 @@ std::string NMD::ADDQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQ_S_W(uint64 instruction) +static std::string ADDQ_S_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2288,7 +2288,7 @@ std::string NMD::ADDQ_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQH_PH(uint64 instruction) +static std::string ADDQH_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2313,7 +2313,7 @@ std::string NMD::ADDQH_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQH_R_PH(uint64 instruction) +static std::string ADDQH_R_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2338,7 +2338,7 @@ std::string NMD::ADDQH_R_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQH_R_W(uint64 instruction) +static std::string ADDQH_R_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2363,7 +2363,7 @@ std::string NMD::ADDQH_R_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDQH_W(uint64 instruction) +static std::string ADDQH_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2387,7 +2387,7 @@ std::string NMD::ADDQH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDSC(uint64 instruction) +static std::string ADDSC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2410,7 +2410,7 @@ std::string NMD::ADDSC(uint64 instruction) * rs3 --- * rd3 --- */ -std::string NMD::ADDU_16_(uint64 instruction) +static std::string ADDU_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2434,7 +2434,7 @@ std::string NMD::ADDU_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_32_(uint64 instruction) +static std::string ADDU_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2458,7 +2458,7 @@ std::string NMD::ADDU_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_4X4_(uint64 instruction) +static std::string ADDU_4X4_(uint64 instruction) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -2480,7 +2480,7 @@ std::string NMD::ADDU_4X4_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_PH(uint64 instruction) +static std::string ADDU_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2504,7 +2504,7 @@ std::string NMD::ADDU_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_QB(uint64 instruction) +static std::string ADDU_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2529,7 +2529,7 @@ std::string NMD::ADDU_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_S_PH(uint64 instruction) +static std::string ADDU_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2553,7 +2553,7 @@ std::string NMD::ADDU_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDU_S_QB(uint64 instruction) +static std::string ADDU_S_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2578,7 +2578,7 @@ std::string NMD::ADDU_S_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDUH_QB(uint64 instruction) +static std::string ADDUH_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2603,7 +2603,7 @@ std::string NMD::ADDUH_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDUH_R_QB(uint64 instruction) +static std::string ADDUH_R_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2626,7 +2626,7 @@ std::string NMD::ADDUH_R_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ADDWC(uint64 instruction) +static std::string ADDWC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2650,7 +2650,7 @@ std::string NMD::ADDWC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ALUIPC(uint64 instruction) +static std::string ALUIPC(uint64 instruction) { 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); @@ -2671,7 +2671,7 @@ std::string NMD::ALUIPC(uint64 instruction) * rs3 --- * eu ---- */ -std::string NMD::AND_16_(uint64 instruction) +static std::string AND_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2693,7 +2693,7 @@ std::string NMD::AND_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::AND_32_(uint64 instruction) +static std::string AND_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2716,7 +2716,7 @@ std::string NMD::AND_32_(uint64 instruction) * rs3 --- * eu ---- */ -std::string NMD::ANDI_16_(uint64 instruction) +static std::string ANDI_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -2740,7 +2740,7 @@ std::string NMD::ANDI_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ANDI_32_(uint64 instruction) +static std::string ANDI_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2764,7 +2764,7 @@ std::string NMD::ANDI_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::APPEND(uint64 instruction) +static std::string APPEND(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2788,7 +2788,7 @@ std::string NMD::APPEND(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ASET(uint64 instruction) +static std::string ASET(uint64 instruction) { uint64 bit_value = extract_bit_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2812,7 +2812,7 @@ std::string NMD::ASET(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BALC_16_(uint64 instruction) +static std::string BALC_16_(uint64 instruction) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); @@ -2832,7 +2832,7 @@ std::string NMD::BALC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BALC_32_(uint64 instruction) +static std::string BALC_32_(uint64 instruction) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); @@ -2852,7 +2852,7 @@ std::string NMD::BALC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BALRSC(uint64 instruction) +static std::string BALRSC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -2874,7 +2874,7 @@ std::string NMD::BALRSC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BBEQZC(uint64 instruction) +static std::string BBEQZC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); @@ -2898,7 +2898,7 @@ std::string NMD::BBEQZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BBNEZC(uint64 instruction) +static std::string BBNEZC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 bit_value = extract_bit_16_15_14_13_12_11(instruction); @@ -2922,7 +2922,7 @@ std::string NMD::BBNEZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC_16_(uint64 instruction) +static std::string BC_16_(uint64 instruction) { int64 s_value = extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1(instruction); @@ -2942,7 +2942,7 @@ std::string NMD::BC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC_32_(uint64 instruction) +static std::string BC_32_(uint64 instruction) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); @@ -2962,7 +2962,7 @@ std::string NMD::BC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC1EQZC(uint64 instruction) +static std::string BC1EQZC(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -2984,7 +2984,7 @@ std::string NMD::BC1EQZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC1NEZC(uint64 instruction) +static std::string BC1NEZC(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -3006,7 +3006,7 @@ std::string NMD::BC1NEZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC2EQZC(uint64 instruction) +static std::string BC2EQZC(uint64 instruction) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -3028,7 +3028,7 @@ std::string NMD::BC2EQZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BC2NEZC(uint64 instruction) +static std::string BC2NEZC(uint64 instruction) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -3050,7 +3050,7 @@ std::string NMD::BC2NEZC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BEQC_16_(uint64 instruction) +static std::string BEQC_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -3074,7 +3074,7 @@ std::string NMD::BEQC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BEQC_32_(uint64 instruction) +static std::string BEQC_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3098,7 +3098,7 @@ std::string NMD::BEQC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BEQIC(uint64 instruction) +static std::string BEQIC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3122,7 +3122,7 @@ std::string NMD::BEQIC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BEQZC_16_(uint64 instruction) +static std::string BEQZC_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); @@ -3144,7 +3144,7 @@ std::string NMD::BEQZC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BGEC(uint64 instruction) +static std::string BGEC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3168,7 +3168,7 @@ std::string NMD::BGEC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BGEIC(uint64 instruction) +static std::string BGEIC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3192,7 +3192,7 @@ std::string NMD::BGEIC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BGEIUC(uint64 instruction) +static std::string BGEIUC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3216,7 +3216,7 @@ std::string NMD::BGEIUC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BGEUC(uint64 instruction) +static std::string BGEUC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3240,7 +3240,7 @@ std::string NMD::BGEUC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BLTC(uint64 instruction) +static std::string BLTC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3264,7 +3264,7 @@ std::string NMD::BLTC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BLTIC(uint64 instruction) +static std::string BLTIC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3288,7 +3288,7 @@ std::string NMD::BLTIC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BLTIUC(uint64 instruction) +static std::string BLTIUC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3312,7 +3312,7 @@ std::string NMD::BLTIUC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BLTUC(uint64 instruction) +static std::string BLTUC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3336,7 +3336,7 @@ std::string NMD::BLTUC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BNEC_16_(uint64 instruction) +static std::string BNEC_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -3360,7 +3360,7 @@ std::string NMD::BNEC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BNEC_32_(uint64 instruction) +static std::string BNEC_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3384,7 +3384,7 @@ std::string NMD::BNEC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BNEIC(uint64 instruction) +static std::string BNEIC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_16_15_14_13_12_11(instruction); @@ -3408,7 +3408,7 @@ std::string NMD::BNEIC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BNEZC_16_(uint64 instruction) +static std::string BNEZC_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); int64 s_value = extract_s__se7_0_6_5_4_3_2_1_s1(instruction); @@ -3430,7 +3430,7 @@ std::string NMD::BNEZC_16_(uint64 instruction) * s[13:1] ------------- * s[14] - */ -std::string NMD::BPOSGE32C(uint64 instruction) +static std::string BPOSGE32C(uint64 instruction) { int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); @@ -3450,7 +3450,7 @@ std::string NMD::BPOSGE32C(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BREAK_16_(uint64 instruction) +static std::string BREAK_16_(uint64 instruction) { uint64 code_value = extract_code_2_1_0(instruction); @@ -3470,7 +3470,7 @@ std::string NMD::BREAK_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BREAK_32_(uint64 instruction) +static std::string BREAK_32_(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); @@ -3490,7 +3490,7 @@ std::string NMD::BREAK_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::BRSC(uint64 instruction) +static std::string BRSC(uint64 instruction) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3510,7 +3510,7 @@ std::string NMD::BRSC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CACHE(uint64 instruction) +static std::string CACHE(uint64 instruction) { uint64 op_value = extract_op_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3534,7 +3534,7 @@ std::string NMD::CACHE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CACHEE(uint64 instruction) +static std::string CACHEE(uint64 instruction) { uint64 op_value = extract_op_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3558,7 +3558,7 @@ std::string NMD::CACHEE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CEIL_L_D(uint64 instruction) +static std::string CEIL_L_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3580,7 +3580,7 @@ std::string NMD::CEIL_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CEIL_L_S(uint64 instruction) +static std::string CEIL_L_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3602,7 +3602,7 @@ std::string NMD::CEIL_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CEIL_W_D(uint64 instruction) +static std::string CEIL_W_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3624,7 +3624,7 @@ std::string NMD::CEIL_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CEIL_W_S(uint64 instruction) +static std::string CEIL_W_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3646,7 +3646,7 @@ std::string NMD::CEIL_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CFC1(uint64 instruction) +static std::string CFC1(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -3668,7 +3668,7 @@ std::string NMD::CFC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CFC2(uint64 instruction) +static std::string CFC2(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -3690,7 +3690,7 @@ std::string NMD::CFC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CLASS_D(uint64 instruction) +static std::string CLASS_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3712,7 +3712,7 @@ std::string NMD::CLASS_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CLASS_S(uint64 instruction) +static std::string CLASS_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3734,7 +3734,7 @@ std::string NMD::CLASS_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CLO(uint64 instruction) +static std::string CLO(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3756,7 +3756,7 @@ std::string NMD::CLO(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CLZ(uint64 instruction) +static std::string CLZ(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3778,7 +3778,7 @@ std::string NMD::CLZ(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_AF_D(uint64 instruction) +static std::string CMP_AF_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3802,7 +3802,7 @@ std::string NMD::CMP_AF_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_AF_S(uint64 instruction) +static std::string CMP_AF_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3826,7 +3826,7 @@ std::string NMD::CMP_AF_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_EQ_D(uint64 instruction) +static std::string CMP_EQ_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3849,7 +3849,7 @@ std::string NMD::CMP_EQ_D(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMP_EQ_PH(uint64 instruction) +static std::string CMP_EQ_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3871,7 +3871,7 @@ std::string NMD::CMP_EQ_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_EQ_S(uint64 instruction) +static std::string CMP_EQ_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3895,7 +3895,7 @@ std::string NMD::CMP_EQ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_LE_D(uint64 instruction) +static std::string CMP_LE_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3918,7 +3918,7 @@ std::string NMD::CMP_LE_D(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMP_LE_PH(uint64 instruction) +static std::string CMP_LE_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -3940,7 +3940,7 @@ std::string NMD::CMP_LE_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_LE_S(uint64 instruction) +static std::string CMP_LE_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3964,7 +3964,7 @@ std::string NMD::CMP_LE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_LT_D(uint64 instruction) +static std::string CMP_LT_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -3987,7 +3987,7 @@ std::string NMD::CMP_LT_D(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMP_LT_PH(uint64 instruction) +static std::string CMP_LT_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4009,7 +4009,7 @@ std::string NMD::CMP_LT_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_LT_S(uint64 instruction) +static std::string CMP_LT_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4033,7 +4033,7 @@ std::string NMD::CMP_LT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_NE_D(uint64 instruction) +static std::string CMP_NE_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4057,7 +4057,7 @@ std::string NMD::CMP_NE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_NE_S(uint64 instruction) +static std::string CMP_NE_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4081,7 +4081,7 @@ std::string NMD::CMP_NE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_OR_D(uint64 instruction) +static std::string CMP_OR_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4105,7 +4105,7 @@ std::string NMD::CMP_OR_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_OR_S(uint64 instruction) +static std::string CMP_OR_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4129,7 +4129,7 @@ std::string NMD::CMP_OR_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SAF_D(uint64 instruction) +static std::string CMP_SAF_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4153,7 +4153,7 @@ std::string NMD::CMP_SAF_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SAF_S(uint64 instruction) +static std::string CMP_SAF_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4177,7 +4177,7 @@ std::string NMD::CMP_SAF_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SEQ_D(uint64 instruction) +static std::string CMP_SEQ_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4201,7 +4201,7 @@ std::string NMD::CMP_SEQ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SEQ_S(uint64 instruction) +static std::string CMP_SEQ_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4225,7 +4225,7 @@ std::string NMD::CMP_SEQ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SLE_D(uint64 instruction) +static std::string CMP_SLE_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4249,7 +4249,7 @@ std::string NMD::CMP_SLE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SLE_S(uint64 instruction) +static std::string CMP_SLE_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4273,7 +4273,7 @@ std::string NMD::CMP_SLE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SLT_D(uint64 instruction) +static std::string CMP_SLT_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4297,7 +4297,7 @@ std::string NMD::CMP_SLT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SLT_S(uint64 instruction) +static std::string CMP_SLT_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4321,7 +4321,7 @@ std::string NMD::CMP_SLT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SNE_D(uint64 instruction) +static std::string CMP_SNE_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4345,7 +4345,7 @@ std::string NMD::CMP_SNE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SNE_S(uint64 instruction) +static std::string CMP_SNE_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4369,7 +4369,7 @@ std::string NMD::CMP_SNE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SOR_D(uint64 instruction) +static std::string CMP_SOR_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4393,7 +4393,7 @@ std::string NMD::CMP_SOR_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SOR_S(uint64 instruction) +static std::string CMP_SOR_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4417,7 +4417,7 @@ std::string NMD::CMP_SOR_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUEQ_D(uint64 instruction) +static std::string CMP_SUEQ_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4441,7 +4441,7 @@ std::string NMD::CMP_SUEQ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUEQ_S(uint64 instruction) +static std::string CMP_SUEQ_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4465,7 +4465,7 @@ std::string NMD::CMP_SUEQ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SULE_D(uint64 instruction) +static std::string CMP_SULE_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4489,7 +4489,7 @@ std::string NMD::CMP_SULE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SULE_S(uint64 instruction) +static std::string CMP_SULE_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4513,7 +4513,7 @@ std::string NMD::CMP_SULE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SULT_D(uint64 instruction) +static std::string CMP_SULT_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4537,7 +4537,7 @@ std::string NMD::CMP_SULT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SULT_S(uint64 instruction) +static std::string CMP_SULT_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4561,7 +4561,7 @@ std::string NMD::CMP_SULT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUN_D(uint64 instruction) +static std::string CMP_SUN_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4585,7 +4585,7 @@ std::string NMD::CMP_SUN_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUNE_D(uint64 instruction) +static std::string CMP_SUNE_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4609,7 +4609,7 @@ std::string NMD::CMP_SUNE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUNE_S(uint64 instruction) +static std::string CMP_SUNE_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4633,7 +4633,7 @@ std::string NMD::CMP_SUNE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_SUN_S(uint64 instruction) +static std::string CMP_SUN_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4657,7 +4657,7 @@ std::string NMD::CMP_SUN_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UEQ_D(uint64 instruction) +static std::string CMP_UEQ_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4681,7 +4681,7 @@ std::string NMD::CMP_UEQ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UEQ_S(uint64 instruction) +static std::string CMP_UEQ_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4705,7 +4705,7 @@ std::string NMD::CMP_UEQ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_ULE_D(uint64 instruction) +static std::string CMP_ULE_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4729,7 +4729,7 @@ std::string NMD::CMP_ULE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_ULE_S(uint64 instruction) +static std::string CMP_ULE_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4753,7 +4753,7 @@ std::string NMD::CMP_ULE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_ULT_D(uint64 instruction) +static std::string CMP_ULT_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4777,7 +4777,7 @@ std::string NMD::CMP_ULT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_ULT_S(uint64 instruction) +static std::string CMP_ULT_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4801,7 +4801,7 @@ std::string NMD::CMP_ULT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UN_D(uint64 instruction) +static std::string CMP_UN_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4825,7 +4825,7 @@ std::string NMD::CMP_UN_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UNE_D(uint64 instruction) +static std::string CMP_UNE_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4849,7 +4849,7 @@ std::string NMD::CMP_UNE_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UNE_S(uint64 instruction) +static std::string CMP_UNE_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4873,7 +4873,7 @@ std::string NMD::CMP_UNE_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMP_UN_S(uint64 instruction) +static std::string CMP_UN_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -4898,7 +4898,7 @@ std::string NMD::CMP_UN_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_EQ_QB(uint64 instruction) +static std::string CMPGDU_EQ_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4923,7 +4923,7 @@ std::string NMD::CMPGDU_EQ_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_LE_QB(uint64 instruction) +static std::string CMPGDU_LE_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4948,7 +4948,7 @@ std::string NMD::CMPGDU_LE_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGDU_LT_QB(uint64 instruction) +static std::string CMPGDU_LT_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4973,7 +4973,7 @@ std::string NMD::CMPGDU_LT_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGU_EQ_QB(uint64 instruction) +static std::string CMPGU_EQ_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -4998,7 +4998,7 @@ std::string NMD::CMPGU_EQ_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGU_LE_QB(uint64 instruction) +static std::string CMPGU_LE_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5023,7 +5023,7 @@ std::string NMD::CMPGU_LE_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CMPGU_LT_QB(uint64 instruction) +static std::string CMPGU_LT_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5047,7 +5047,7 @@ std::string NMD::CMPGU_LT_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMPU_EQ_QB(uint64 instruction) +static std::string CMPU_EQ_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5069,7 +5069,7 @@ std::string NMD::CMPU_EQ_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMPU_LE_QB(uint64 instruction) +static std::string CMPU_LE_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5091,7 +5091,7 @@ std::string NMD::CMPU_LE_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::CMPU_LT_QB(uint64 instruction) +static std::string CMPU_LT_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5113,7 +5113,7 @@ std::string NMD::CMPU_LT_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::COP2_1(uint64 instruction) +static std::string COP2_1(uint64 instruction) { uint64 cofun_value = extract_cofun_25_24_23(instruction); @@ -5133,7 +5133,7 @@ std::string NMD::COP2_1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CTC1(uint64 instruction) +static std::string CTC1(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -5155,7 +5155,7 @@ std::string NMD::CTC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CTC2(uint64 instruction) +static std::string CTC2(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -5177,7 +5177,7 @@ std::string NMD::CTC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_D_L(uint64 instruction) +static std::string CVT_D_L(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5199,7 +5199,7 @@ std::string NMD::CVT_D_L(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_D_S(uint64 instruction) +static std::string CVT_D_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5221,7 +5221,7 @@ std::string NMD::CVT_D_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_D_W(uint64 instruction) +static std::string CVT_D_W(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5243,7 +5243,7 @@ std::string NMD::CVT_D_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_L_D(uint64 instruction) +static std::string CVT_L_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5265,7 +5265,7 @@ std::string NMD::CVT_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_L_S(uint64 instruction) +static std::string CVT_L_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5287,7 +5287,7 @@ std::string NMD::CVT_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_D(uint64 instruction) +static std::string CVT_S_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5309,7 +5309,7 @@ std::string NMD::CVT_S_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_L(uint64 instruction) +static std::string CVT_S_L(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5331,7 +5331,7 @@ std::string NMD::CVT_S_L(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_PL(uint64 instruction) +static std::string CVT_S_PL(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5353,7 +5353,7 @@ std::string NMD::CVT_S_PL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_PU(uint64 instruction) +static std::string CVT_S_PU(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5375,7 +5375,7 @@ std::string NMD::CVT_S_PU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_S_W(uint64 instruction) +static std::string CVT_S_W(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5397,7 +5397,7 @@ std::string NMD::CVT_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_W_D(uint64 instruction) +static std::string CVT_W_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5419,7 +5419,7 @@ std::string NMD::CVT_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::CVT_W_S(uint64 instruction) +static std::string CVT_W_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5441,7 +5441,7 @@ std::string NMD::CVT_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADDIU_48_(uint64 instruction) +static std::string DADDIU_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -5463,7 +5463,7 @@ std::string NMD::DADDIU_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADDIU_NEG_(uint64 instruction) +static std::string DADDIU_NEG_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5487,7 +5487,7 @@ std::string NMD::DADDIU_NEG_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADDIU_U12_(uint64 instruction) +static std::string DADDIU_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5511,7 +5511,7 @@ std::string NMD::DADDIU_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADD(uint64 instruction) +static std::string DADD(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5535,7 +5535,7 @@ std::string NMD::DADD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DADDU(uint64 instruction) +static std::string DADDU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5559,7 +5559,7 @@ std::string NMD::DADDU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DCLO(uint64 instruction) +static std::string DCLO(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5581,7 +5581,7 @@ std::string NMD::DCLO(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DCLZ(uint64 instruction) +static std::string DCLZ(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5603,7 +5603,7 @@ std::string NMD::DCLZ(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DDIV(uint64 instruction) +static std::string DDIV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5627,7 +5627,7 @@ std::string NMD::DDIV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DDIVU(uint64 instruction) +static std::string DDIVU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5651,7 +5651,7 @@ std::string NMD::DDIVU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DERET(uint64 instruction) +static std::string DERET(uint64 instruction) { (void)instruction; @@ -5669,7 +5669,7 @@ std::string NMD::DERET(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DEXTM(uint64 instruction) +static std::string DEXTM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5695,7 +5695,7 @@ std::string NMD::DEXTM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DEXT(uint64 instruction) +static std::string DEXT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5721,7 +5721,7 @@ std::string NMD::DEXT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DEXTU(uint64 instruction) +static std::string DEXTU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5747,7 +5747,7 @@ std::string NMD::DEXTU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DINSM(uint64 instruction) +static std::string DINSM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5775,7 +5775,7 @@ std::string NMD::DINSM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DINS(uint64 instruction) +static std::string DINS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5803,7 +5803,7 @@ std::string NMD::DINS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DINSU(uint64 instruction) +static std::string DINSU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5831,7 +5831,7 @@ std::string NMD::DINSU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DI(uint64 instruction) +static std::string DI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -5851,7 +5851,7 @@ std::string NMD::DI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DIV(uint64 instruction) +static std::string DIV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5875,7 +5875,7 @@ std::string NMD::DIV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DIV_D(uint64 instruction) +static std::string DIV_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5899,7 +5899,7 @@ std::string NMD::DIV_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DIV_S(uint64 instruction) +static std::string DIV_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -5923,7 +5923,7 @@ std::string NMD::DIV_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DIVU(uint64 instruction) +static std::string DIVU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5947,7 +5947,7 @@ std::string NMD::DIVU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DLSA(uint64 instruction) +static std::string DLSA(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -5973,7 +5973,7 @@ std::string NMD::DLSA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DLUI_48_(uint64 instruction) +static std::string DLUI_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); uint64 u_value = extract_u_31_to_0__s32(instruction); @@ -5995,7 +5995,7 @@ std::string NMD::DLUI_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMFC0(uint64 instruction) +static std::string DMFC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6019,7 +6019,7 @@ std::string NMD::DMFC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMFC1(uint64 instruction) +static std::string DMFC1(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -6041,7 +6041,7 @@ std::string NMD::DMFC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMFC2(uint64 instruction) +static std::string DMFC2(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -6063,7 +6063,7 @@ std::string NMD::DMFC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMFGC0(uint64 instruction) +static std::string DMFGC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6087,7 +6087,7 @@ std::string NMD::DMFGC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMOD(uint64 instruction) +static std::string DMOD(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6111,7 +6111,7 @@ std::string NMD::DMOD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMODU(uint64 instruction) +static std::string DMODU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6135,7 +6135,7 @@ std::string NMD::DMODU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMTC0(uint64 instruction) +static std::string DMTC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6159,7 +6159,7 @@ std::string NMD::DMTC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMTC1(uint64 instruction) +static std::string DMTC1(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -6181,7 +6181,7 @@ std::string NMD::DMTC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMTC2(uint64 instruction) +static std::string DMTC2(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -6203,7 +6203,7 @@ std::string NMD::DMTC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMTGC0(uint64 instruction) +static std::string DMTGC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -6227,7 +6227,7 @@ std::string NMD::DMTGC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMT(uint64 instruction) +static std::string DMT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -6247,7 +6247,7 @@ std::string NMD::DMT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMUH(uint64 instruction) +static std::string DMUH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6271,7 +6271,7 @@ std::string NMD::DMUH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMUHU(uint64 instruction) +static std::string DMUHU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6295,7 +6295,7 @@ std::string NMD::DMUHU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMUL(uint64 instruction) +static std::string DMUL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6319,7 +6319,7 @@ std::string NMD::DMUL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DMULU(uint64 instruction) +static std::string DMULU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6344,7 +6344,7 @@ std::string NMD::DMULU(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::DPA_W_PH(uint64 instruction) +static std::string DPA_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6368,7 +6368,7 @@ std::string NMD::DPA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAQ_SA_L_W(uint64 instruction) +static std::string DPAQ_SA_L_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6392,7 +6392,7 @@ std::string NMD::DPAQ_SA_L_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAQ_S_W_PH(uint64 instruction) +static std::string DPAQ_S_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6416,7 +6416,7 @@ std::string NMD::DPAQ_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAQX_SA_W_PH(uint64 instruction) +static std::string DPAQX_SA_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6440,7 +6440,7 @@ std::string NMD::DPAQX_SA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAQX_S_W_PH(uint64 instruction) +static std::string DPAQX_S_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6464,7 +6464,7 @@ std::string NMD::DPAQX_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAU_H_QBL(uint64 instruction) +static std::string DPAU_H_QBL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6488,7 +6488,7 @@ std::string NMD::DPAU_H_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAU_H_QBR(uint64 instruction) +static std::string DPAU_H_QBR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6512,7 +6512,7 @@ std::string NMD::DPAU_H_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPAX_W_PH(uint64 instruction) +static std::string DPAX_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6536,7 +6536,7 @@ std::string NMD::DPAX_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPS_W_PH(uint64 instruction) +static std::string DPS_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6560,7 +6560,7 @@ std::string NMD::DPS_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSQ_SA_L_W(uint64 instruction) +static std::string DPSQ_SA_L_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6584,7 +6584,7 @@ std::string NMD::DPSQ_SA_L_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSQ_S_W_PH(uint64 instruction) +static std::string DPSQ_S_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6608,7 +6608,7 @@ std::string NMD::DPSQ_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSQX_SA_W_PH(uint64 instruction) +static std::string DPSQX_SA_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6632,7 +6632,7 @@ std::string NMD::DPSQX_SA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSQX_S_W_PH(uint64 instruction) +static std::string DPSQX_S_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6656,7 +6656,7 @@ std::string NMD::DPSQX_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSU_H_QBL(uint64 instruction) +static std::string DPSU_H_QBL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6680,7 +6680,7 @@ std::string NMD::DPSU_H_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSU_H_QBR(uint64 instruction) +static std::string DPSU_H_QBR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6704,7 +6704,7 @@ std::string NMD::DPSU_H_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DPSX_W_PH(uint64 instruction) +static std::string DPSX_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6728,7 +6728,7 @@ std::string NMD::DPSX_W_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DROTR(uint64 instruction) +static std::string DROTR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6752,7 +6752,7 @@ std::string NMD::DROTR(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DROTR32(uint64 instruction) +static std::string DROTR32(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6776,7 +6776,7 @@ std::string NMD::DROTR32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DROTRV(uint64 instruction) +static std::string DROTRV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6800,7 +6800,7 @@ std::string NMD::DROTRV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DROTX(uint64 instruction) +static std::string DROTX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6826,7 +6826,7 @@ std::string NMD::DROTX(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSLL(uint64 instruction) +static std::string DSLL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6850,7 +6850,7 @@ std::string NMD::DSLL(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSLL32(uint64 instruction) +static std::string DSLL32(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6874,7 +6874,7 @@ std::string NMD::DSLL32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSLLV(uint64 instruction) +static std::string DSLLV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6898,7 +6898,7 @@ std::string NMD::DSLLV(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSRA(uint64 instruction) +static std::string DSRA(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6922,7 +6922,7 @@ std::string NMD::DSRA(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSRA32(uint64 instruction) +static std::string DSRA32(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6946,7 +6946,7 @@ std::string NMD::DSRA32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSRAV(uint64 instruction) +static std::string DSRAV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6970,7 +6970,7 @@ std::string NMD::DSRAV(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSRL(uint64 instruction) +static std::string DSRL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -6994,7 +6994,7 @@ std::string NMD::DSRL(uint64 instruction) * rs ----- * shift ----- */ -std::string NMD::DSRL32(uint64 instruction) +static std::string DSRL32(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7018,7 +7018,7 @@ std::string NMD::DSRL32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSRLV(uint64 instruction) +static std::string DSRLV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7042,7 +7042,7 @@ std::string NMD::DSRLV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSUB(uint64 instruction) +static std::string DSUB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7066,7 +7066,7 @@ std::string NMD::DSUB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DSUBU(uint64 instruction) +static std::string DSUBU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7090,7 +7090,7 @@ std::string NMD::DSUBU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DVPE(uint64 instruction) +static std::string DVPE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7110,7 +7110,7 @@ std::string NMD::DVPE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::DVP(uint64 instruction) +static std::string DVP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7130,7 +7130,7 @@ std::string NMD::DVP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EHB(uint64 instruction) +static std::string EHB(uint64 instruction) { (void)instruction; @@ -7148,7 +7148,7 @@ std::string NMD::EHB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EI(uint64 instruction) +static std::string EI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7168,7 +7168,7 @@ std::string NMD::EI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EMT(uint64 instruction) +static std::string EMT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7188,7 +7188,7 @@ std::string NMD::EMT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ERET(uint64 instruction) +static std::string ERET(uint64 instruction) { (void)instruction; @@ -7206,7 +7206,7 @@ std::string NMD::ERET(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ERETNC(uint64 instruction) +static std::string ERETNC(uint64 instruction) { (void)instruction; @@ -7224,7 +7224,7 @@ std::string NMD::ERETNC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EVP(uint64 instruction) +static std::string EVP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7244,7 +7244,7 @@ std::string NMD::EVP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EVPE(uint64 instruction) +static std::string EVPE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -7264,7 +7264,7 @@ std::string NMD::EVPE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXT(uint64 instruction) +static std::string EXT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7290,7 +7290,7 @@ std::string NMD::EXT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTD(uint64 instruction) +static std::string EXTD(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7316,7 +7316,7 @@ std::string NMD::EXTD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTD32(uint64 instruction) +static std::string EXTD32(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7342,7 +7342,7 @@ std::string NMD::EXTD32(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTPDP(uint64 instruction) +static std::string EXTPDP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 size_value = extract_size_20_19_18_17_16(instruction); @@ -7366,7 +7366,7 @@ std::string NMD::EXTPDP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTPDPV(uint64 instruction) +static std::string EXTPDPV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7390,7 +7390,7 @@ std::string NMD::EXTPDPV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTP(uint64 instruction) +static std::string EXTP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 size_value = extract_size_20_19_18_17_16(instruction); @@ -7414,7 +7414,7 @@ std::string NMD::EXTP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::EXTPV(uint64 instruction) +static std::string EXTPV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7439,7 +7439,7 @@ std::string NMD::EXTPV(uint64 instruction) * shift ----- * ac -- */ -std::string NMD::EXTR_RS_W(uint64 instruction) +static std::string EXTR_RS_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7464,7 +7464,7 @@ std::string NMD::EXTR_RS_W(uint64 instruction) * shift ----- * ac -- */ -std::string NMD::EXTR_R_W(uint64 instruction) +static std::string EXTR_R_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7489,7 +7489,7 @@ std::string NMD::EXTR_R_W(uint64 instruction) * shift ----- * ac -- */ -std::string NMD::EXTR_S_H(uint64 instruction) +static std::string EXTR_S_H(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7514,7 +7514,7 @@ std::string NMD::EXTR_S_H(uint64 instruction) * shift ----- * ac -- */ -std::string NMD::EXTR_W(uint64 instruction) +static std::string EXTR_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 shift_value = extract_shift_20_19_18_17_16(instruction); @@ -7539,7 +7539,7 @@ std::string NMD::EXTR_W(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::EXTRV_RS_W(uint64 instruction) +static std::string EXTRV_RS_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7564,7 +7564,7 @@ std::string NMD::EXTRV_RS_W(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::EXTRV_R_W(uint64 instruction) +static std::string EXTRV_R_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7589,7 +7589,7 @@ std::string NMD::EXTRV_R_W(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::EXTRV_S_H(uint64 instruction) +static std::string EXTRV_S_H(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7614,7 +7614,7 @@ std::string NMD::EXTRV_S_H(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::EXTRV_W(uint64 instruction) +static std::string EXTRV_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7639,7 +7639,7 @@ std::string NMD::EXTRV_W(uint64 instruction) * rd ----- * shift ----- */ -std::string NMD::EXTW(uint64 instruction) +static std::string EXTW(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7665,7 +7665,7 @@ std::string NMD::EXTW(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FLOOR_L_D(uint64 instruction) +static std::string FLOOR_L_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7687,7 +7687,7 @@ std::string NMD::FLOOR_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FLOOR_L_S(uint64 instruction) +static std::string FLOOR_L_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7709,7 +7709,7 @@ std::string NMD::FLOOR_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FLOOR_W_D(uint64 instruction) +static std::string FLOOR_W_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7731,7 +7731,7 @@ std::string NMD::FLOOR_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FLOOR_W_S(uint64 instruction) +static std::string FLOOR_W_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -7753,7 +7753,7 @@ std::string NMD::FLOOR_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::FORK(uint64 instruction) +static std::string FORK(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7777,7 +7777,7 @@ std::string NMD::FORK(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::HYPCALL(uint64 instruction) +static std::string HYPCALL(uint64 instruction) { uint64 code_value = extract_code_17_to_0(instruction); @@ -7797,7 +7797,7 @@ std::string NMD::HYPCALL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::HYPCALL_16_(uint64 instruction) +static std::string HYPCALL_16_(uint64 instruction) { uint64 code_value = extract_code_1_0(instruction); @@ -7817,7 +7817,7 @@ std::string NMD::HYPCALL_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::INS(uint64 instruction) +static std::string INS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7844,7 +7844,7 @@ std::string NMD::INS(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::INSV(uint64 instruction) +static std::string INSV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7866,7 +7866,7 @@ std::string NMD::INSV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::IRET(uint64 instruction) +static std::string IRET(uint64 instruction) { (void)instruction; @@ -7884,7 +7884,7 @@ std::string NMD::IRET(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::JALRC_16_(uint64 instruction) +static std::string JALRC_16_(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); @@ -7904,7 +7904,7 @@ std::string NMD::JALRC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::JALRC_32_(uint64 instruction) +static std::string JALRC_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7926,7 +7926,7 @@ std::string NMD::JALRC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::JALRC_HB(uint64 instruction) +static std::string JALRC_HB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -7948,7 +7948,7 @@ std::string NMD::JALRC_HB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::JRC(uint64 instruction) +static std::string JRC(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); @@ -7968,7 +7968,7 @@ std::string NMD::JRC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LB_16_(uint64 instruction) +static std::string LB_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -7992,7 +7992,7 @@ std::string NMD::LB_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LB_GP_(uint64 instruction) +static std::string LB_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -8014,7 +8014,7 @@ std::string NMD::LB_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LB_S9_(uint64 instruction) +static std::string LB_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8038,7 +8038,7 @@ std::string NMD::LB_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LB_U12_(uint64 instruction) +static std::string LB_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8062,7 +8062,7 @@ std::string NMD::LB_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBE(uint64 instruction) +static std::string LBE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8086,7 +8086,7 @@ std::string NMD::LBE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBU_16_(uint64 instruction) +static std::string LBU_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8110,7 +8110,7 @@ std::string NMD::LBU_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBU_GP_(uint64 instruction) +static std::string LBU_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -8132,7 +8132,7 @@ std::string NMD::LBU_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBU_S9_(uint64 instruction) +static std::string LBU_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8156,7 +8156,7 @@ std::string NMD::LBU_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBU_U12_(uint64 instruction) +static std::string LBU_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8180,7 +8180,7 @@ std::string NMD::LBU_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBUE(uint64 instruction) +static std::string LBUE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8204,7 +8204,7 @@ std::string NMD::LBUE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBUX(uint64 instruction) +static std::string LBUX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8228,7 +8228,7 @@ std::string NMD::LBUX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LBX(uint64 instruction) +static std::string LBX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8252,7 +8252,7 @@ std::string NMD::LBX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LD_GP_(uint64 instruction) +static std::string LD_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); @@ -8274,7 +8274,7 @@ std::string NMD::LD_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LD_S9_(uint64 instruction) +static std::string LD_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8298,7 +8298,7 @@ std::string NMD::LD_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LD_U12_(uint64 instruction) +static std::string LD_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8322,7 +8322,7 @@ std::string NMD::LD_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1_GP_(uint64 instruction) +static std::string LDC1_GP_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -8344,7 +8344,7 @@ std::string NMD::LDC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1_S9_(uint64 instruction) +static std::string LDC1_S9_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8368,7 +8368,7 @@ std::string NMD::LDC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1_U12_(uint64 instruction) +static std::string LDC1_U12_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8392,7 +8392,7 @@ std::string NMD::LDC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1XS(uint64 instruction) +static std::string LDC1XS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8416,7 +8416,7 @@ std::string NMD::LDC1XS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC1X(uint64 instruction) +static std::string LDC1X(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8440,7 +8440,7 @@ std::string NMD::LDC1X(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDC2(uint64 instruction) +static std::string LDC2(uint64 instruction) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8464,7 +8464,7 @@ std::string NMD::LDC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDM(uint64 instruction) +static std::string LDM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8490,7 +8490,7 @@ std::string NMD::LDM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDPC_48_(uint64 instruction) +static std::string LDPC_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -8512,7 +8512,7 @@ std::string NMD::LDPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDX(uint64 instruction) +static std::string LDX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8536,7 +8536,7 @@ std::string NMD::LDX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LDXS(uint64 instruction) +static std::string LDXS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8560,7 +8560,7 @@ std::string NMD::LDXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LH_16_(uint64 instruction) +static std::string LH_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8584,7 +8584,7 @@ std::string NMD::LH_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LH_GP_(uint64 instruction) +static std::string LH_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -8606,7 +8606,7 @@ std::string NMD::LH_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LH_S9_(uint64 instruction) +static std::string LH_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8630,7 +8630,7 @@ std::string NMD::LH_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LH_U12_(uint64 instruction) +static std::string LH_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8654,7 +8654,7 @@ std::string NMD::LH_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHE(uint64 instruction) +static std::string LHE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8678,7 +8678,7 @@ std::string NMD::LHE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHU_16_(uint64 instruction) +static std::string LHU_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -8702,7 +8702,7 @@ std::string NMD::LHU_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHU_GP_(uint64 instruction) +static std::string LHU_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -8724,7 +8724,7 @@ std::string NMD::LHU_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHU_S9_(uint64 instruction) +static std::string LHU_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8748,7 +8748,7 @@ std::string NMD::LHU_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHU_U12_(uint64 instruction) +static std::string LHU_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8772,7 +8772,7 @@ std::string NMD::LHU_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHUE(uint64 instruction) +static std::string LHUE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8796,7 +8796,7 @@ std::string NMD::LHUE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHUX(uint64 instruction) +static std::string LHUX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8820,7 +8820,7 @@ std::string NMD::LHUX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHUXS(uint64 instruction) +static std::string LHUXS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8844,7 +8844,7 @@ std::string NMD::LHUXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHXS(uint64 instruction) +static std::string LHXS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8868,7 +8868,7 @@ std::string NMD::LHXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LHX(uint64 instruction) +static std::string LHX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8892,7 +8892,7 @@ std::string NMD::LHX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LI_16_(uint64 instruction) +static std::string LI_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 eu_value = extract_eu_6_5_4_3_2_1_0(instruction); @@ -8914,7 +8914,7 @@ std::string NMD::LI_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LI_48_(uint64 instruction) +static std::string LI_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -8936,7 +8936,7 @@ std::string NMD::LI_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LL(uint64 instruction) +static std::string LL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8960,7 +8960,7 @@ std::string NMD::LL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLD(uint64 instruction) +static std::string LLD(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -8984,7 +8984,7 @@ std::string NMD::LLD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLDP(uint64 instruction) +static std::string LLDP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9008,7 +9008,7 @@ std::string NMD::LLDP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLE(uint64 instruction) +static std::string LLE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9032,7 +9032,7 @@ std::string NMD::LLE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLWP(uint64 instruction) +static std::string LLWP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9056,7 +9056,7 @@ std::string NMD::LLWP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LLWPE(uint64 instruction) +static std::string LLWPE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9080,7 +9080,7 @@ std::string NMD::LLWPE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LSA(uint64 instruction) +static std::string LSA(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9106,7 +9106,7 @@ std::string NMD::LSA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LUI(uint64 instruction) +static std::string LUI(uint64 instruction) { 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); @@ -9128,7 +9128,7 @@ std::string NMD::LUI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_16_(uint64 instruction) +static std::string LW_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -9152,7 +9152,7 @@ std::string NMD::LW_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_4X4_(uint64 instruction) +static std::string LW_4X4_(uint64 instruction) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -9176,7 +9176,7 @@ std::string NMD::LW_4X4_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_GP_(uint64 instruction) +static std::string LW_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -9198,7 +9198,7 @@ std::string NMD::LW_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_GP16_(uint64 instruction) +static std::string LW_GP16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); @@ -9220,7 +9220,7 @@ std::string NMD::LW_GP16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_S9_(uint64 instruction) +static std::string LW_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9244,7 +9244,7 @@ std::string NMD::LW_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_SP_(uint64 instruction) +static std::string LW_SP_(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); @@ -9266,7 +9266,7 @@ std::string NMD::LW_SP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LW_U12_(uint64 instruction) +static std::string LW_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9290,7 +9290,7 @@ std::string NMD::LW_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1_GP_(uint64 instruction) +static std::string LWC1_GP_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -9312,7 +9312,7 @@ std::string NMD::LWC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1_S9_(uint64 instruction) +static std::string LWC1_S9_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9336,7 +9336,7 @@ std::string NMD::LWC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1_U12_(uint64 instruction) +static std::string LWC1_U12_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9360,7 +9360,7 @@ std::string NMD::LWC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1X(uint64 instruction) +static std::string LWC1X(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9384,7 +9384,7 @@ std::string NMD::LWC1X(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC1XS(uint64 instruction) +static std::string LWC1XS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9408,7 +9408,7 @@ std::string NMD::LWC1XS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWC2(uint64 instruction) +static std::string LWC2(uint64 instruction) { uint64 ct_value = extract_ct_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9432,7 +9432,7 @@ std::string NMD::LWC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWE(uint64 instruction) +static std::string LWE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9456,7 +9456,7 @@ std::string NMD::LWE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWM(uint64 instruction) +static std::string LWM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9482,7 +9482,7 @@ std::string NMD::LWM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWPC_48_(uint64 instruction) +static std::string LWPC_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -9504,7 +9504,7 @@ std::string NMD::LWPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWU_GP_(uint64 instruction) +static std::string LWU_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -9526,7 +9526,7 @@ std::string NMD::LWU_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWU_S9_(uint64 instruction) +static std::string LWU_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9550,7 +9550,7 @@ std::string NMD::LWU_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWU_U12_(uint64 instruction) +static std::string LWU_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9574,7 +9574,7 @@ std::string NMD::LWU_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWUX(uint64 instruction) +static std::string LWUX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9598,7 +9598,7 @@ std::string NMD::LWUX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWUXS(uint64 instruction) +static std::string LWUXS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9622,7 +9622,7 @@ std::string NMD::LWUXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWX(uint64 instruction) +static std::string LWX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9646,7 +9646,7 @@ std::string NMD::LWX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWXS_16_(uint64 instruction) +static std::string LWXS_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -9670,7 +9670,7 @@ std::string NMD::LWXS_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::LWXS_32_(uint64 instruction) +static std::string LWXS_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9695,7 +9695,7 @@ std::string NMD::LWXS_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MADD_DSP_(uint64 instruction) +static std::string MADD_DSP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9719,7 +9719,7 @@ std::string NMD::MADD_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MADDF_D(uint64 instruction) +static std::string MADDF_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9743,7 +9743,7 @@ std::string NMD::MADDF_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MADDF_S(uint64 instruction) +static std::string MADDF_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9768,7 +9768,7 @@ std::string NMD::MADDF_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MADDU_DSP_(uint64 instruction) +static std::string MADDU_DSP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9793,7 +9793,7 @@ std::string NMD::MADDU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAQ_S_W_PHL(uint64 instruction) +static std::string MAQ_S_W_PHL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9818,7 +9818,7 @@ std::string NMD::MAQ_S_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAQ_S_W_PHR(uint64 instruction) +static std::string MAQ_S_W_PHR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9843,7 +9843,7 @@ std::string NMD::MAQ_S_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAQ_SA_W_PHL(uint64 instruction) +static std::string MAQ_SA_W_PHL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9868,7 +9868,7 @@ std::string NMD::MAQ_SA_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAQ_SA_W_PHR(uint64 instruction) +static std::string MAQ_SA_W_PHR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -9892,7 +9892,7 @@ std::string NMD::MAQ_SA_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAX_D(uint64 instruction) +static std::string MAX_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9916,7 +9916,7 @@ std::string NMD::MAX_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAX_S(uint64 instruction) +static std::string MAX_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9940,7 +9940,7 @@ std::string NMD::MAX_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAXA_D(uint64 instruction) +static std::string MAXA_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9964,7 +9964,7 @@ std::string NMD::MAXA_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MAXA_S(uint64 instruction) +static std::string MAXA_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -9988,7 +9988,7 @@ std::string NMD::MAXA_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFC0(uint64 instruction) +static std::string MFC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10012,7 +10012,7 @@ std::string NMD::MFC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFC1(uint64 instruction) +static std::string MFC1(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10034,7 +10034,7 @@ std::string NMD::MFC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFC2(uint64 instruction) +static std::string MFC2(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10056,7 +10056,7 @@ std::string NMD::MFC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFGC0(uint64 instruction) +static std::string MFGC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10080,7 +10080,7 @@ std::string NMD::MFGC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHC0(uint64 instruction) +static std::string MFHC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10104,7 +10104,7 @@ std::string NMD::MFHC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHC1(uint64 instruction) +static std::string MFHC1(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10126,7 +10126,7 @@ std::string NMD::MFHC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHC2(uint64 instruction) +static std::string MFHC2(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10148,7 +10148,7 @@ std::string NMD::MFHC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHGC0(uint64 instruction) +static std::string MFHGC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10171,7 +10171,7 @@ std::string NMD::MFHGC0(uint64 instruction) * rt ----- * ac -- */ -std::string NMD::MFHI_DSP_(uint64 instruction) +static std::string MFHI_DSP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10193,7 +10193,7 @@ std::string NMD::MFHI_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFHTR(uint64 instruction) +static std::string MFHTR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10218,7 +10218,7 @@ std::string NMD::MFHTR(uint64 instruction) * rt ----- * ac -- */ -std::string NMD::MFLO_DSP_(uint64 instruction) +static std::string MFLO_DSP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10240,7 +10240,7 @@ std::string NMD::MFLO_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MFTR(uint64 instruction) +static std::string MFTR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10266,7 +10266,7 @@ std::string NMD::MFTR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MIN_D(uint64 instruction) +static std::string MIN_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10290,7 +10290,7 @@ std::string NMD::MIN_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MIN_S(uint64 instruction) +static std::string MIN_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10314,7 +10314,7 @@ std::string NMD::MIN_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MINA_D(uint64 instruction) +static std::string MINA_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10338,7 +10338,7 @@ std::string NMD::MINA_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MINA_S(uint64 instruction) +static std::string MINA_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10362,7 +10362,7 @@ std::string NMD::MINA_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOD(uint64 instruction) +static std::string MOD(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10386,7 +10386,7 @@ std::string NMD::MOD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MODSUB(uint64 instruction) +static std::string MODSUB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10410,7 +10410,7 @@ std::string NMD::MODSUB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MODU(uint64 instruction) +static std::string MODU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10434,7 +10434,7 @@ std::string NMD::MODU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOV_D(uint64 instruction) +static std::string MOV_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10456,7 +10456,7 @@ std::string NMD::MOV_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOV_S(uint64 instruction) +static std::string MOV_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10478,7 +10478,7 @@ std::string NMD::MOV_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVE_BALC(uint64 instruction) +static std::string MOVE_BALC(uint64 instruction) { uint64 rtz4_value = extract_rtz4_27_26_25_23_22_21(instruction); uint64 rd1_value = extract_rdl_25_24(instruction); @@ -10502,7 +10502,7 @@ std::string NMD::MOVE_BALC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVEP(uint64 instruction) +static std::string MOVEP(uint64 instruction) { uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction); uint64 rd2_value = extract_rd2_3_8(instruction); @@ -10529,7 +10529,7 @@ std::string NMD::MOVEP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVEP_REV_(uint64 instruction) +static std::string MOVEP_REV_(uint64 instruction) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rd2_value = extract_rd2_3_8(instruction); @@ -10556,7 +10556,7 @@ std::string NMD::MOVEP_REV_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVE(uint64 instruction) +static std::string MOVE(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 rs_value = extract_rs_4_3_2_1_0(instruction); @@ -10578,7 +10578,7 @@ std::string NMD::MOVE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVN(uint64 instruction) +static std::string MOVN(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10602,7 +10602,7 @@ std::string NMD::MOVN(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MOVZ(uint64 instruction) +static std::string MOVZ(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10626,7 +10626,7 @@ std::string NMD::MOVZ(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MSUB_DSP_(uint64 instruction) +static std::string MSUB_DSP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10650,7 +10650,7 @@ std::string NMD::MSUB_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MSUBF_D(uint64 instruction) +static std::string MSUBF_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10674,7 +10674,7 @@ std::string NMD::MSUBF_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MSUBF_S(uint64 instruction) +static std::string MSUBF_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10698,7 +10698,7 @@ std::string NMD::MSUBF_S(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MSUBU_DSP_(uint64 instruction) +static std::string MSUBU_DSP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -10722,7 +10722,7 @@ std::string NMD::MSUBU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTC0(uint64 instruction) +static std::string MTC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10746,7 +10746,7 @@ std::string NMD::MTC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTC1(uint64 instruction) +static std::string MTC1(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10768,7 +10768,7 @@ std::string NMD::MTC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTC2(uint64 instruction) +static std::string MTC2(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10790,7 +10790,7 @@ std::string NMD::MTC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTGC0(uint64 instruction) +static std::string MTGC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10814,7 +10814,7 @@ std::string NMD::MTGC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHC0(uint64 instruction) +static std::string MTHC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10838,7 +10838,7 @@ std::string NMD::MTHC0(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHC1(uint64 instruction) +static std::string MTHC1(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -10860,7 +10860,7 @@ std::string NMD::MTHC1(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHC2(uint64 instruction) +static std::string MTHC2(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 cs_value = extract_cs_20_19_18_17_16(instruction); @@ -10882,7 +10882,7 @@ std::string NMD::MTHC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHGC0(uint64 instruction) +static std::string MTHGC0(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10905,7 +10905,7 @@ std::string NMD::MTHGC0(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MTHI_DSP_(uint64 instruction) +static std::string MTHI_DSP_(uint64 instruction) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10926,7 +10926,7 @@ std::string NMD::MTHI_DSP_(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MTHLIP(uint64 instruction) +static std::string MTHLIP(uint64 instruction) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10948,7 +10948,7 @@ std::string NMD::MTHLIP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTHTR(uint64 instruction) +static std::string MTHTR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -10973,7 +10973,7 @@ std::string NMD::MTHTR(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MTLO_DSP_(uint64 instruction) +static std::string MTLO_DSP_(uint64 instruction) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -10995,7 +10995,7 @@ std::string NMD::MTLO_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MTTR(uint64 instruction) +static std::string MTTR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 c0s_value = extract_c0s_20_19_18_17_16(instruction); @@ -11021,7 +11021,7 @@ std::string NMD::MTTR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUH(uint64 instruction) +static std::string MUH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11045,7 +11045,7 @@ std::string NMD::MUH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUHU(uint64 instruction) +static std::string MUHU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11069,7 +11069,7 @@ std::string NMD::MUHU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_32_(uint64 instruction) +static std::string MUL_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11093,7 +11093,7 @@ std::string NMD::MUL_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_4X4_(uint64 instruction) +static std::string MUL_4X4_(uint64 instruction) { uint64 rt4_value = extract_rt4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -11115,7 +11115,7 @@ std::string NMD::MUL_4X4_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_D(uint64 instruction) +static std::string MUL_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11140,7 +11140,7 @@ std::string NMD::MUL_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_PH(uint64 instruction) +static std::string MUL_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11165,7 +11165,7 @@ std::string NMD::MUL_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_S_PH(uint64 instruction) +static std::string MUL_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11189,7 +11189,7 @@ std::string NMD::MUL_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MUL_S(uint64 instruction) +static std::string MUL_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11214,7 +11214,7 @@ std::string NMD::MUL_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULEQ_S_W_PHL(uint64 instruction) +static std::string MULEQ_S_W_PHL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11239,7 +11239,7 @@ std::string NMD::MULEQ_S_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULEQ_S_W_PHR(uint64 instruction) +static std::string MULEQ_S_W_PHR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11264,7 +11264,7 @@ std::string NMD::MULEQ_S_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULEU_S_PH_QBL(uint64 instruction) +static std::string MULEU_S_PH_QBL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11289,7 +11289,7 @@ std::string NMD::MULEU_S_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULEU_S_PH_QBR(uint64 instruction) +static std::string MULEU_S_PH_QBR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11314,7 +11314,7 @@ std::string NMD::MULEU_S_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULQ_RS_PH(uint64 instruction) +static std::string MULQ_RS_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11339,7 +11339,7 @@ std::string NMD::MULQ_RS_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULQ_RS_W(uint64 instruction) +static std::string MULQ_RS_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11364,7 +11364,7 @@ std::string NMD::MULQ_RS_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULQ_S_PH(uint64 instruction) +static std::string MULQ_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11389,7 +11389,7 @@ std::string NMD::MULQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULQ_S_W(uint64 instruction) +static std::string MULQ_S_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11414,7 +11414,7 @@ std::string NMD::MULQ_S_W(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MULSA_W_PH(uint64 instruction) +static std::string MULSA_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11439,7 +11439,7 @@ std::string NMD::MULSA_W_PH(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MULSAQ_S_W_PH(uint64 instruction) +static std::string MULSAQ_S_W_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11463,7 +11463,7 @@ std::string NMD::MULSAQ_S_W_PH(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MULT_DSP_(uint64 instruction) +static std::string MULT_DSP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11487,7 +11487,7 @@ std::string NMD::MULT_DSP_(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::MULTU_DSP_(uint64 instruction) +static std::string MULTU_DSP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11511,7 +11511,7 @@ std::string NMD::MULTU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::MULU(uint64 instruction) +static std::string MULU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11535,7 +11535,7 @@ std::string NMD::MULU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NEG_D(uint64 instruction) +static std::string NEG_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11557,7 +11557,7 @@ std::string NMD::NEG_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NEG_S(uint64 instruction) +static std::string NEG_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -11579,7 +11579,7 @@ std::string NMD::NEG_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NOP_16_(uint64 instruction) +static std::string NOP_16_(uint64 instruction) { (void)instruction; @@ -11597,7 +11597,7 @@ std::string NMD::NOP_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NOP_32_(uint64 instruction) +static std::string NOP_32_(uint64 instruction) { (void)instruction; @@ -11615,7 +11615,7 @@ std::string NMD::NOP_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NOR(uint64 instruction) +static std::string NOR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11639,7 +11639,7 @@ std::string NMD::NOR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::NOT_16_(uint64 instruction) +static std::string NOT_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -11661,7 +11661,7 @@ std::string NMD::NOT_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::OR_16_(uint64 instruction) +static std::string OR_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -11683,7 +11683,7 @@ std::string NMD::OR_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::OR_32_(uint64 instruction) +static std::string OR_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11707,7 +11707,7 @@ std::string NMD::OR_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ORI(uint64 instruction) +static std::string ORI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11732,7 +11732,7 @@ std::string NMD::ORI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PACKRL_PH(uint64 instruction) +static std::string PACKRL_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11756,7 +11756,7 @@ std::string NMD::PACKRL_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PAUSE(uint64 instruction) +static std::string PAUSE(uint64 instruction) { (void)instruction; @@ -11775,7 +11775,7 @@ std::string NMD::PAUSE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PICK_PH(uint64 instruction) +static std::string PICK_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11800,7 +11800,7 @@ std::string NMD::PICK_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PICK_QB(uint64 instruction) +static std::string PICK_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11825,7 +11825,7 @@ std::string NMD::PICK_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQ_W_PHL(uint64 instruction) +static std::string PRECEQ_W_PHL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11848,7 +11848,7 @@ std::string NMD::PRECEQ_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQ_W_PHR(uint64 instruction) +static std::string PRECEQ_W_PHR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11871,7 +11871,7 @@ std::string NMD::PRECEQ_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBLA(uint64 instruction) +static std::string PRECEQU_PH_QBLA(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11894,7 +11894,7 @@ std::string NMD::PRECEQU_PH_QBLA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBL(uint64 instruction) +static std::string PRECEQU_PH_QBL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11917,7 +11917,7 @@ std::string NMD::PRECEQU_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBRA(uint64 instruction) +static std::string PRECEQU_PH_QBRA(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11940,7 +11940,7 @@ std::string NMD::PRECEQU_PH_QBRA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEQU_PH_QBR(uint64 instruction) +static std::string PRECEQU_PH_QBR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11964,7 +11964,7 @@ std::string NMD::PRECEQU_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBLA(uint64 instruction) +static std::string PRECEU_PH_QBLA(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -11987,7 +11987,7 @@ std::string NMD::PRECEU_PH_QBLA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBL(uint64 instruction) +static std::string PRECEU_PH_QBL(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12011,7 +12011,7 @@ std::string NMD::PRECEU_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBRA(uint64 instruction) +static std::string PRECEU_PH_QBRA(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12034,7 +12034,7 @@ std::string NMD::PRECEU_PH_QBRA(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECEU_PH_QBR(uint64 instruction) +static std::string PRECEU_PH_QBR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12057,7 +12057,7 @@ std::string NMD::PRECEU_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECR_QB_PH(uint64 instruction) +static std::string PRECR_QB_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12082,7 +12082,7 @@ std::string NMD::PRECR_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECR_SRA_PH_W(uint64 instruction) +static std::string PRECR_SRA_PH_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12107,7 +12107,7 @@ std::string NMD::PRECR_SRA_PH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECR_SRA_R_PH_W(uint64 instruction) +static std::string PRECR_SRA_R_PH_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12132,7 +12132,7 @@ std::string NMD::PRECR_SRA_R_PH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_PH_W(uint64 instruction) +static std::string PRECRQ_PH_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12157,7 +12157,7 @@ std::string NMD::PRECRQ_PH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_QB_PH(uint64 instruction) +static std::string PRECRQ_QB_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12182,7 +12182,7 @@ std::string NMD::PRECRQ_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECRQ_RS_PH_W(uint64 instruction) +static std::string PRECRQ_RS_PH_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12207,7 +12207,7 @@ std::string NMD::PRECRQ_RS_PH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PRECRQU_S_QB_PH(uint64 instruction) +static std::string PRECRQU_S_QB_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12231,7 +12231,7 @@ std::string NMD::PRECRQU_S_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PREF_S9_(uint64 instruction) +static std::string PREF_S9_(uint64 instruction) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12255,7 +12255,7 @@ std::string NMD::PREF_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PREF_U12_(uint64 instruction) +static std::string PREF_U12_(uint64 instruction) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12279,7 +12279,7 @@ std::string NMD::PREF_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PREFE(uint64 instruction) +static std::string PREFE(uint64 instruction) { uint64 hint_value = extract_hint_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12303,7 +12303,7 @@ std::string NMD::PREFE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::PREPEND(uint64 instruction) +static std::string PREPEND(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12326,7 +12326,7 @@ std::string NMD::PREPEND(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::RADDU_W_QB(uint64 instruction) +static std::string RADDU_W_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12347,7 +12347,7 @@ std::string NMD::RADDU_W_QB(uint64 instruction) * rt ----- * mask ------- */ -std::string NMD::RDDSP(uint64 instruction) +static std::string RDDSP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); @@ -12369,7 +12369,7 @@ std::string NMD::RDDSP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RDHWR(uint64 instruction) +static std::string RDHWR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 hs_value = extract_hs_20_19_18_17_16(instruction); @@ -12393,7 +12393,7 @@ std::string NMD::RDHWR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RDPGPR(uint64 instruction) +static std::string RDPGPR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12415,7 +12415,7 @@ std::string NMD::RDPGPR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RECIP_D(uint64 instruction) +static std::string RECIP_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12437,7 +12437,7 @@ std::string NMD::RECIP_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RECIP_S(uint64 instruction) +static std::string RECIP_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12459,7 +12459,7 @@ std::string NMD::RECIP_S(uint64 instruction) * rt ----- * s ---------- */ -std::string NMD::REPL_PH(uint64 instruction) +static std::string REPL_PH(uint64 instruction) { 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); @@ -12481,7 +12481,7 @@ std::string NMD::REPL_PH(uint64 instruction) * rt ----- * u -------- */ -std::string NMD::REPL_QB(uint64 instruction) +static std::string REPL_QB(uint64 instruction) { 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); @@ -12503,7 +12503,7 @@ std::string NMD::REPL_QB(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::REPLV_PH(uint64 instruction) +static std::string REPLV_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12524,7 +12524,7 @@ std::string NMD::REPLV_PH(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::REPLV_QB(uint64 instruction) +static std::string REPLV_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12546,7 +12546,7 @@ std::string NMD::REPLV_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RESTORE_32_(uint64 instruction) +static std::string RESTORE_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 count_value = extract_count_19_18_17_16(instruction); @@ -12569,7 +12569,7 @@ std::string NMD::RESTORE_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RESTORE_JRC_16_(uint64 instruction) +static std::string RESTORE_JRC_16_(uint64 instruction) { uint64 rt1_value = extract_rtl_11(instruction); uint64 u_value = extract_u_7_6_5_4__s4(instruction); @@ -12591,7 +12591,7 @@ std::string NMD::RESTORE_JRC_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RESTORE_JRC_32_(uint64 instruction) +static std::string RESTORE_JRC_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 count_value = extract_count_19_18_17_16(instruction); @@ -12614,7 +12614,7 @@ std::string NMD::RESTORE_JRC_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RESTOREF(uint64 instruction) +static std::string RESTOREF(uint64 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); @@ -12636,7 +12636,7 @@ std::string NMD::RESTOREF(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RINT_D(uint64 instruction) +static std::string RINT_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12658,7 +12658,7 @@ std::string NMD::RINT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RINT_S(uint64 instruction) +static std::string RINT_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12680,7 +12680,7 @@ std::string NMD::RINT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROTR(uint64 instruction) +static std::string ROTR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12704,7 +12704,7 @@ std::string NMD::ROTR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROTRV(uint64 instruction) +static std::string ROTRV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12728,7 +12728,7 @@ std::string NMD::ROTRV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROTX(uint64 instruction) +static std::string ROTX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12757,7 +12757,7 @@ std::string NMD::ROTX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROUND_L_D(uint64 instruction) +static std::string ROUND_L_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12779,7 +12779,7 @@ std::string NMD::ROUND_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROUND_L_S(uint64 instruction) +static std::string ROUND_L_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12801,7 +12801,7 @@ std::string NMD::ROUND_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROUND_W_D(uint64 instruction) +static std::string ROUND_W_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12823,7 +12823,7 @@ std::string NMD::ROUND_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::ROUND_W_S(uint64 instruction) +static std::string ROUND_W_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12845,7 +12845,7 @@ std::string NMD::ROUND_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RSQRT_D(uint64 instruction) +static std::string RSQRT_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12867,7 +12867,7 @@ std::string NMD::RSQRT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::RSQRT_S(uint64 instruction) +static std::string RSQRT_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -12889,7 +12889,7 @@ std::string NMD::RSQRT_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SAVE_16_(uint64 instruction) +static std::string SAVE_16_(uint64 instruction) { uint64 rt1_value = extract_rtl_11(instruction); uint64 u_value = extract_u_7_6_5_4__s4(instruction); @@ -12911,7 +12911,7 @@ std::string NMD::SAVE_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SAVE_32_(uint64 instruction) +static std::string SAVE_32_(uint64 instruction) { uint64 count_value = extract_count_19_18_17_16(instruction); uint64 rt_value = extract_rt_25_24_23_22_21(instruction); @@ -12934,7 +12934,7 @@ std::string NMD::SAVE_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SAVEF(uint64 instruction) +static std::string SAVEF(uint64 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); @@ -12956,7 +12956,7 @@ std::string NMD::SAVEF(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SB_16_(uint64 instruction) +static std::string SB_16_(uint64 instruction) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -12980,7 +12980,7 @@ std::string NMD::SB_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SB_GP_(uint64 instruction) +static std::string SB_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); @@ -13002,7 +13002,7 @@ std::string NMD::SB_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SB_S9_(uint64 instruction) +static std::string SB_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13026,7 +13026,7 @@ std::string NMD::SB_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SB_U12_(uint64 instruction) +static std::string SB_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13050,7 +13050,7 @@ std::string NMD::SB_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SBE(uint64 instruction) +static std::string SBE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13074,7 +13074,7 @@ std::string NMD::SBE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SBX(uint64 instruction) +static std::string SBX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13098,7 +13098,7 @@ std::string NMD::SBX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SC(uint64 instruction) +static std::string SC(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13122,7 +13122,7 @@ std::string NMD::SC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCD(uint64 instruction) +static std::string SCD(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13146,7 +13146,7 @@ std::string NMD::SCD(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCDP(uint64 instruction) +static std::string SCDP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13170,7 +13170,7 @@ std::string NMD::SCDP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCE(uint64 instruction) +static std::string SCE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13194,7 +13194,7 @@ std::string NMD::SCE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCWP(uint64 instruction) +static std::string SCWP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13218,7 +13218,7 @@ std::string NMD::SCWP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SCWPE(uint64 instruction) +static std::string SCWPE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13242,7 +13242,7 @@ std::string NMD::SCWPE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SD_GP_(uint64 instruction) +static std::string SD_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_3__s3(instruction); @@ -13264,7 +13264,7 @@ std::string NMD::SD_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SD_S9_(uint64 instruction) +static std::string SD_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13288,7 +13288,7 @@ std::string NMD::SD_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SD_U12_(uint64 instruction) +static std::string SD_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13312,7 +13312,7 @@ std::string NMD::SD_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDBBP_16_(uint64 instruction) +static std::string SDBBP_16_(uint64 instruction) { uint64 code_value = extract_code_2_1_0(instruction); @@ -13332,7 +13332,7 @@ std::string NMD::SDBBP_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDBBP_32_(uint64 instruction) +static std::string SDBBP_32_(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); @@ -13352,7 +13352,7 @@ std::string NMD::SDBBP_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1_GP_(uint64 instruction) +static std::string SDC1_GP_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -13374,7 +13374,7 @@ std::string NMD::SDC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1_S9_(uint64 instruction) +static std::string SDC1_S9_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13398,7 +13398,7 @@ std::string NMD::SDC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1_U12_(uint64 instruction) +static std::string SDC1_U12_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13422,7 +13422,7 @@ std::string NMD::SDC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1X(uint64 instruction) +static std::string SDC1X(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13446,7 +13446,7 @@ std::string NMD::SDC1X(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC1XS(uint64 instruction) +static std::string SDC1XS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13470,7 +13470,7 @@ std::string NMD::SDC1XS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDC2(uint64 instruction) +static std::string SDC2(uint64 instruction) { uint64 cs_value = extract_cs_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13494,7 +13494,7 @@ std::string NMD::SDC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDM(uint64 instruction) +static std::string SDM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13520,7 +13520,7 @@ std::string NMD::SDM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDPC_48_(uint64 instruction) +static std::string SDPC_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -13542,7 +13542,7 @@ std::string NMD::SDPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDXS(uint64 instruction) +static std::string SDXS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13566,7 +13566,7 @@ std::string NMD::SDXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SDX(uint64 instruction) +static std::string SDX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13590,7 +13590,7 @@ std::string NMD::SDX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEB(uint64 instruction) +static std::string SEB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13612,7 +13612,7 @@ std::string NMD::SEB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEH(uint64 instruction) +static std::string SEH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13634,7 +13634,7 @@ std::string NMD::SEH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEL_D(uint64 instruction) +static std::string SEL_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13658,7 +13658,7 @@ std::string NMD::SEL_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEL_S(uint64 instruction) +static std::string SEL_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13682,7 +13682,7 @@ std::string NMD::SEL_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SELEQZ_D(uint64 instruction) +static std::string SELEQZ_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13706,7 +13706,7 @@ std::string NMD::SELEQZ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SELEQZ_S(uint64 instruction) +static std::string SELEQZ_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13730,7 +13730,7 @@ std::string NMD::SELEQZ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SELNEZ_D(uint64 instruction) +static std::string SELNEZ_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13754,7 +13754,7 @@ std::string NMD::SELNEZ_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SELNEZ_S(uint64 instruction) +static std::string SELNEZ_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -13778,7 +13778,7 @@ std::string NMD::SELNEZ_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SEQI(uint64 instruction) +static std::string SEQI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13802,7 +13802,7 @@ std::string NMD::SEQI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SH_16_(uint64 instruction) +static std::string SH_16_(uint64 instruction) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -13826,7 +13826,7 @@ std::string NMD::SH_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SH_GP_(uint64 instruction) +static std::string SH_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_1__s1(instruction); @@ -13848,7 +13848,7 @@ std::string NMD::SH_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SH_S9_(uint64 instruction) +static std::string SH_S9_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13872,7 +13872,7 @@ std::string NMD::SH_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SH_U12_(uint64 instruction) +static std::string SH_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13896,7 +13896,7 @@ std::string NMD::SH_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHE(uint64 instruction) +static std::string SHE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13920,7 +13920,7 @@ std::string NMD::SHE(uint64 instruction) * shift ------ * ac -- */ -std::string NMD::SHILO(uint64 instruction) +static std::string SHILO(uint64 instruction) { int64 shift_value = extract_shift__se5_21_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -13942,7 +13942,7 @@ std::string NMD::SHILO(uint64 instruction) * rs ----- * ac -- */ -std::string NMD::SHILOV(uint64 instruction) +static std::string SHILOV(uint64 instruction) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); @@ -13964,7 +13964,7 @@ std::string NMD::SHILOV(uint64 instruction) * rs ----- * sa ---- */ -std::string NMD::SHLL_PH(uint64 instruction) +static std::string SHLL_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -13988,7 +13988,7 @@ std::string NMD::SHLL_PH(uint64 instruction) * rs ----- * sa --- */ -std::string NMD::SHLL_QB(uint64 instruction) +static std::string SHLL_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14013,7 +14013,7 @@ std::string NMD::SHLL_QB(uint64 instruction) * rs ----- * sa ---- */ -std::string NMD::SHLL_S_PH(uint64 instruction) +static std::string SHLL_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14037,7 +14037,7 @@ std::string NMD::SHLL_S_PH(uint64 instruction) * rs ----- * sa ----- */ -std::string NMD::SHLL_S_W(uint64 instruction) +static std::string SHLL_S_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14062,7 +14062,7 @@ std::string NMD::SHLL_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHLLV_PH(uint64 instruction) +static std::string SHLLV_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14086,7 +14086,7 @@ std::string NMD::SHLLV_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHLLV_QB(uint64 instruction) +static std::string SHLLV_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14111,7 +14111,7 @@ std::string NMD::SHLLV_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHLLV_S_PH(uint64 instruction) +static std::string SHLLV_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14135,7 +14135,7 @@ std::string NMD::SHLLV_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHLLV_S_W(uint64 instruction) +static std::string SHLLV_S_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14159,7 +14159,7 @@ std::string NMD::SHLLV_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_PH(uint64 instruction) +static std::string SHRA_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14183,7 +14183,7 @@ std::string NMD::SHRA_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_QB(uint64 instruction) +static std::string SHRA_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14207,7 +14207,7 @@ std::string NMD::SHRA_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_PH(uint64 instruction) +static std::string SHRA_R_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14231,7 +14231,7 @@ std::string NMD::SHRA_R_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_QB(uint64 instruction) +static std::string SHRA_R_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14255,7 +14255,7 @@ std::string NMD::SHRA_R_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRA_R_W(uint64 instruction) +static std::string SHRA_R_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14279,7 +14279,7 @@ std::string NMD::SHRA_R_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_PH(uint64 instruction) +static std::string SHRAV_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14303,7 +14303,7 @@ std::string NMD::SHRAV_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_QB(uint64 instruction) +static std::string SHRAV_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14327,7 +14327,7 @@ std::string NMD::SHRAV_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_PH(uint64 instruction) +static std::string SHRAV_R_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14351,7 +14351,7 @@ std::string NMD::SHRAV_R_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_QB(uint64 instruction) +static std::string SHRAV_R_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14375,7 +14375,7 @@ std::string NMD::SHRAV_R_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRAV_R_W(uint64 instruction) +static std::string SHRAV_R_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14399,7 +14399,7 @@ std::string NMD::SHRAV_R_W(uint64 instruction) * rs ----- * sa ---- */ -std::string NMD::SHRL_PH(uint64 instruction) +static std::string SHRL_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14423,7 +14423,7 @@ std::string NMD::SHRL_PH(uint64 instruction) * rs ----- * sa --- */ -std::string NMD::SHRL_QB(uint64 instruction) +static std::string SHRL_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14448,7 +14448,7 @@ std::string NMD::SHRL_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRLV_PH(uint64 instruction) +static std::string SHRLV_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14472,7 +14472,7 @@ std::string NMD::SHRLV_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHRLV_QB(uint64 instruction) +static std::string SHRLV_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14496,7 +14496,7 @@ std::string NMD::SHRLV_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHX(uint64 instruction) +static std::string SHX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14520,7 +14520,7 @@ std::string NMD::SHX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SHXS(uint64 instruction) +static std::string SHXS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14544,7 +14544,7 @@ std::string NMD::SHXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SIGRIE(uint64 instruction) +static std::string SIGRIE(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); @@ -14564,7 +14564,7 @@ std::string NMD::SIGRIE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLL_16_(uint64 instruction) +static std::string SLL_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -14588,7 +14588,7 @@ std::string NMD::SLL_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLL_32_(uint64 instruction) +static std::string SLL_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14612,7 +14612,7 @@ std::string NMD::SLL_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLLV(uint64 instruction) +static std::string SLLV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14636,7 +14636,7 @@ std::string NMD::SLLV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLT(uint64 instruction) +static std::string SLT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14660,7 +14660,7 @@ std::string NMD::SLT(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLTI(uint64 instruction) +static std::string SLTI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14684,7 +14684,7 @@ std::string NMD::SLTI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLTIU(uint64 instruction) +static std::string SLTIU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14708,7 +14708,7 @@ std::string NMD::SLTIU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SLTU(uint64 instruction) +static std::string SLTU(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14732,7 +14732,7 @@ std::string NMD::SLTU(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SOV(uint64 instruction) +static std::string SOV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14756,7 +14756,7 @@ std::string NMD::SOV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SPECIAL2(uint64 instruction) +static std::string SPECIAL2(uint64 instruction) { uint64 op_value = extract_op_25_to_3(instruction); @@ -14776,7 +14776,7 @@ std::string NMD::SPECIAL2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SQRT_D(uint64 instruction) +static std::string SQRT_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14798,7 +14798,7 @@ std::string NMD::SQRT_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SQRT_S(uint64 instruction) +static std::string SQRT_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14820,7 +14820,7 @@ std::string NMD::SQRT_S(uint64 instruction) * rd ----- * sa ----- */ -std::string NMD::SRA(uint64 instruction) +static std::string SRA(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14844,7 +14844,7 @@ std::string NMD::SRA(uint64 instruction) * rt ----- * rd ----- */ -std::string NMD::SRAV(uint64 instruction) +static std::string SRAV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14868,7 +14868,7 @@ std::string NMD::SRAV(uint64 instruction) * rt ----- * rd ----- */ -std::string NMD::SRL_16_(uint64 instruction) +static std::string SRL_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -14892,7 +14892,7 @@ std::string NMD::SRL_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SRL_32_(uint64 instruction) +static std::string SRL_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14916,7 +14916,7 @@ std::string NMD::SRL_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SRLV(uint64 instruction) +static std::string SRLV(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14940,7 +14940,7 @@ std::string NMD::SRLV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUB(uint64 instruction) +static std::string SUB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -14964,7 +14964,7 @@ std::string NMD::SUB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUB_D(uint64 instruction) +static std::string SUB_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -14988,7 +14988,7 @@ std::string NMD::SUB_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUB_S(uint64 instruction) +static std::string SUB_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -15012,7 +15012,7 @@ std::string NMD::SUB_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQ_PH(uint64 instruction) +static std::string SUBQ_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15037,7 +15037,7 @@ std::string NMD::SUBQ_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQ_S_PH(uint64 instruction) +static std::string SUBQ_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15062,7 +15062,7 @@ std::string NMD::SUBQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQ_S_W(uint64 instruction) +static std::string SUBQ_S_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15087,7 +15087,7 @@ std::string NMD::SUBQ_S_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQH_PH(uint64 instruction) +static std::string SUBQH_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15112,7 +15112,7 @@ std::string NMD::SUBQH_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQH_R_PH(uint64 instruction) +static std::string SUBQH_R_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15137,7 +15137,7 @@ std::string NMD::SUBQH_R_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQH_R_W(uint64 instruction) +static std::string SUBQH_R_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15162,7 +15162,7 @@ std::string NMD::SUBQH_R_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBQH_W(uint64 instruction) +static std::string SUBQH_W(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15186,7 +15186,7 @@ std::string NMD::SUBQH_W(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_16_(uint64 instruction) +static std::string SUBU_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -15210,7 +15210,7 @@ std::string NMD::SUBU_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_32_(uint64 instruction) +static std::string SUBU_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15234,7 +15234,7 @@ std::string NMD::SUBU_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_PH(uint64 instruction) +static std::string SUBU_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15258,7 +15258,7 @@ std::string NMD::SUBU_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_QB(uint64 instruction) +static std::string SUBU_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15283,7 +15283,7 @@ std::string NMD::SUBU_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_S_PH(uint64 instruction) +static std::string SUBU_S_PH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15308,7 +15308,7 @@ std::string NMD::SUBU_S_PH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBU_S_QB(uint64 instruction) +static std::string SUBU_S_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15333,7 +15333,7 @@ std::string NMD::SUBU_S_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBUH_QB(uint64 instruction) +static std::string SUBUH_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15358,7 +15358,7 @@ std::string NMD::SUBUH_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SUBUH_R_QB(uint64 instruction) +static std::string SUBUH_R_QB(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15382,7 +15382,7 @@ std::string NMD::SUBUH_R_QB(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_16_(uint64 instruction) +static std::string SW_16_(uint64 instruction) { uint64 rtz3_value = extract_rtz3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -15406,7 +15406,7 @@ std::string NMD::SW_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_4X4_(uint64 instruction) +static std::string SW_4X4_(uint64 instruction) { uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction); uint64 rs4_value = extract_rs4_4_2_1_0(instruction); @@ -15430,7 +15430,7 @@ std::string NMD::SW_4X4_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_GP16_(uint64 instruction) +static std::string SW_GP16_(uint64 instruction) { uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction); uint64 rtz3_value = extract_rtz3_9_8_7(instruction); @@ -15452,7 +15452,7 @@ std::string NMD::SW_GP16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_GP_(uint64 instruction) +static std::string SW_GP_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_20_to_2__s2(instruction); @@ -15474,7 +15474,7 @@ std::string NMD::SW_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_S9_(uint64 instruction) +static std::string SW_S9_(uint64 instruction) { 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); @@ -15498,7 +15498,7 @@ std::string NMD::SW_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_SP_(uint64 instruction) +static std::string SW_SP_(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); uint64 u_value = extract_u_4_3_2_1_0__s2(instruction); @@ -15520,7 +15520,7 @@ std::string NMD::SW_SP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SW_U12_(uint64 instruction) +static std::string SW_U12_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15544,7 +15544,7 @@ std::string NMD::SW_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1_GP_(uint64 instruction) +static std::string SWC1_GP_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_2__s2(instruction); @@ -15566,7 +15566,7 @@ std::string NMD::SWC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1_S9_(uint64 instruction) +static std::string SWC1_S9_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15590,7 +15590,7 @@ std::string NMD::SWC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1_U12_(uint64 instruction) +static std::string SWC1_U12_(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15614,7 +15614,7 @@ std::string NMD::SWC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1X(uint64 instruction) +static std::string SWC1X(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15638,7 +15638,7 @@ std::string NMD::SWC1X(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC1XS(uint64 instruction) +static std::string SWC1XS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15662,7 +15662,7 @@ std::string NMD::SWC1XS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWC2(uint64 instruction) +static std::string SWC2(uint64 instruction) { uint64 cs_value = extract_cs_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15686,7 +15686,7 @@ std::string NMD::SWC2(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWE(uint64 instruction) +static std::string SWE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15710,7 +15710,7 @@ std::string NMD::SWE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWM(uint64 instruction) +static std::string SWM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15736,7 +15736,7 @@ std::string NMD::SWM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWPC_48_(uint64 instruction) +static std::string SWPC_48_(uint64 instruction) { uint64 rt_value = extract_rt_41_40_39_38_37(instruction); int64 s_value = extract_s__se31_15_to_0_31_to_16(instruction); @@ -15758,7 +15758,7 @@ std::string NMD::SWPC_48_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWX(uint64 instruction) +static std::string SWX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15782,7 +15782,7 @@ std::string NMD::SWX(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SWXS(uint64 instruction) +static std::string SWXS(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15806,7 +15806,7 @@ std::string NMD::SWXS(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SYNC(uint64 instruction) +static std::string SYNC(uint64 instruction) { uint64 stype_value = extract_stype_20_19_18_17_16(instruction); @@ -15826,7 +15826,7 @@ std::string NMD::SYNC(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SYNCI(uint64 instruction) +static std::string SYNCI(uint64 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); @@ -15848,7 +15848,7 @@ std::string NMD::SYNCI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SYNCIE(uint64 instruction) +static std::string SYNCIE(uint64 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); @@ -15870,7 +15870,7 @@ std::string NMD::SYNCIE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::SYSCALL_16_(uint64 instruction) +static std::string SYSCALL_16_(uint64 instruction) { uint64 code_value = extract_code_1_0(instruction); @@ -15888,7 +15888,7 @@ std::string NMD::SYSCALL_16_(uint64 instruction) * 00000000000010 * code ------------------ */ -std::string NMD::SYSCALL_32_(uint64 instruction) +static std::string SYSCALL_32_(uint64 instruction) { uint64 code_value = extract_code_17_to_0(instruction); @@ -15908,7 +15908,7 @@ std::string NMD::SYSCALL_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TEQ(uint64 instruction) +static std::string TEQ(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -15930,7 +15930,7 @@ std::string NMD::TEQ(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGINV(uint64 instruction) +static std::string TLBGINV(uint64 instruction) { (void)instruction; @@ -15948,7 +15948,7 @@ std::string NMD::TLBGINV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGINVF(uint64 instruction) +static std::string TLBGINVF(uint64 instruction) { (void)instruction; @@ -15966,7 +15966,7 @@ std::string NMD::TLBGINVF(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGP(uint64 instruction) +static std::string TLBGP(uint64 instruction) { (void)instruction; @@ -15984,7 +15984,7 @@ std::string NMD::TLBGP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGR(uint64 instruction) +static std::string TLBGR(uint64 instruction) { (void)instruction; @@ -16002,7 +16002,7 @@ std::string NMD::TLBGR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGWI(uint64 instruction) +static std::string TLBGWI(uint64 instruction) { (void)instruction; @@ -16020,7 +16020,7 @@ std::string NMD::TLBGWI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBGWR(uint64 instruction) +static std::string TLBGWR(uint64 instruction) { (void)instruction; @@ -16038,7 +16038,7 @@ std::string NMD::TLBGWR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBINV(uint64 instruction) +static std::string TLBINV(uint64 instruction) { (void)instruction; @@ -16056,7 +16056,7 @@ std::string NMD::TLBINV(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBINVF(uint64 instruction) +static std::string TLBINVF(uint64 instruction) { (void)instruction; @@ -16074,7 +16074,7 @@ std::string NMD::TLBINVF(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBP(uint64 instruction) +static std::string TLBP(uint64 instruction) { (void)instruction; @@ -16092,7 +16092,7 @@ std::string NMD::TLBP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBR(uint64 instruction) +static std::string TLBR(uint64 instruction) { (void)instruction; @@ -16110,7 +16110,7 @@ std::string NMD::TLBR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBWI(uint64 instruction) +static std::string TLBWI(uint64 instruction) { (void)instruction; @@ -16128,7 +16128,7 @@ std::string NMD::TLBWI(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TLBWR(uint64 instruction) +static std::string TLBWR(uint64 instruction) { (void)instruction; @@ -16146,7 +16146,7 @@ std::string NMD::TLBWR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TNE(uint64 instruction) +static std::string TNE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16168,7 +16168,7 @@ std::string NMD::TNE(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TRUNC_L_D(uint64 instruction) +static std::string TRUNC_L_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16190,7 +16190,7 @@ std::string NMD::TRUNC_L_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TRUNC_L_S(uint64 instruction) +static std::string TRUNC_L_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16212,7 +16212,7 @@ std::string NMD::TRUNC_L_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TRUNC_W_D(uint64 instruction) +static std::string TRUNC_W_D(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16234,7 +16234,7 @@ std::string NMD::TRUNC_W_D(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::TRUNC_W_S(uint64 instruction) +static std::string TRUNC_W_S(uint64 instruction) { uint64 ft_value = extract_ft_25_24_23_22_21(instruction); uint64 fs_value = extract_fs_20_19_18_17_16(instruction); @@ -16256,7 +16256,7 @@ std::string NMD::TRUNC_W_S(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UALDM(uint64 instruction) +static std::string UALDM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16282,7 +16282,7 @@ std::string NMD::UALDM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UALH(uint64 instruction) +static std::string UALH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16306,7 +16306,7 @@ std::string NMD::UALH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UALWM(uint64 instruction) +static std::string UALWM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16332,7 +16332,7 @@ std::string NMD::UALWM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UASDM(uint64 instruction) +static std::string UASDM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16358,7 +16358,7 @@ std::string NMD::UASDM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UASH(uint64 instruction) +static std::string UASH(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16382,7 +16382,7 @@ std::string NMD::UASH(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UASWM(uint64 instruction) +static std::string UASWM(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16408,7 +16408,7 @@ std::string NMD::UASWM(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::UDI(uint64 instruction) +static std::string UDI(uint64 instruction) { uint64 op_value = extract_op_25_to_3(instruction); @@ -16426,7 +16426,7 @@ std::string NMD::UDI(uint64 instruction) * 001000 1100001101111111 * code ---------- */ -std::string NMD::WAIT(uint64 instruction) +static std::string WAIT(uint64 instruction) { uint64 code_value = extract_code_25_24_23_22_21_20_19_18_17_16(instruction); @@ -16446,7 +16446,7 @@ std::string NMD::WAIT(uint64 instruction) * rt ----- * mask ------- */ -std::string NMD::WRDSP(uint64 instruction) +static std::string WRDSP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 mask_value = extract_mask_20_19_18_17_16_15_14(instruction); @@ -16468,7 +16468,7 @@ std::string NMD::WRDSP(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::WRPGPR(uint64 instruction) +static std::string WRPGPR(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16490,7 +16490,7 @@ std::string NMD::WRPGPR(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::XOR_16_(uint64 instruction) +static std::string XOR_16_(uint64 instruction) { uint64 rt3_value = extract_rt3_9_8_7(instruction); uint64 rs3_value = extract_rs3_6_5_4(instruction); @@ -16512,7 +16512,7 @@ std::string NMD::XOR_16_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::XOR_32_(uint64 instruction) +static std::string XOR_32_(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16536,7 +16536,7 @@ std::string NMD::XOR_32_(uint64 instruction) * rs ----- * rd ----- */ -std::string NMD::XORI(uint64 instruction) +static std::string XORI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16559,7 +16559,7 @@ std::string NMD::XORI(uint64 instruction) * rt ----- * rs ----- */ -std::string NMD::YIELD(uint64 instruction) +static std::string YIELD(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -16676,26 +16676,26 @@ std::string NMD::YIELD(uint64 instruction) 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] */ }; @@ -16705,47 +16705,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 */ }; @@ -16790,10 +16790,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 */ }; @@ -16803,7 +16803,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 */ }; @@ -16813,13 +16813,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, @@ -16828,22 +16828,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, @@ -16852,10 +16852,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, @@ -16864,10 +16864,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, @@ -16876,10 +16876,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, @@ -16888,10 +16888,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, @@ -16900,10 +16900,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, @@ -16912,10 +16912,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, @@ -16924,7 +16924,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, @@ -16936,10 +16936,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, @@ -16948,7 +16948,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, @@ -16960,10 +16960,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, @@ -16972,22 +16972,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, @@ -16996,7 +16996,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, @@ -17017,13 +17017,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, @@ -17032,7 +17032,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, @@ -17041,13 +17041,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, @@ -17056,7 +17056,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, @@ -17080,7 +17080,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, @@ -17104,7 +17104,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, @@ -17128,7 +17128,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, @@ -17176,7 +17176,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, @@ -17198,183 +17198,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, @@ -17384,17 +17384,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, @@ -17403,10 +17403,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, @@ -17415,10 +17415,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, @@ -17430,10 +17430,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, @@ -17442,13 +17442,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, @@ -17457,7 +17457,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, @@ -17466,13 +17466,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, @@ -17481,7 +17481,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, @@ -17490,13 +17490,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, @@ -17505,7 +17505,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, @@ -17514,13 +17514,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, @@ -17529,7 +17529,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, @@ -17538,13 +17538,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, @@ -17553,7 +17553,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, @@ -17562,13 +17562,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, @@ -17577,7 +17577,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, @@ -17586,13 +17586,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, @@ -17601,7 +17601,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, @@ -17610,13 +17610,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, @@ -17634,13 +17634,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, @@ -17658,13 +17658,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, @@ -17676,19 +17676,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, @@ -17706,13 +17706,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, @@ -17730,13 +17730,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, @@ -17754,13 +17754,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, @@ -17772,7 +17772,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, @@ -17782,52 +17782,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 */ }; @@ -17846,40 +17846,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 */ }; @@ -17896,26 +17896,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, @@ -17928,46 +17928,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 */ }; @@ -17984,16 +17984,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 */ }; @@ -18028,112 +18028,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 */ }; @@ -18156,10 +18156,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, @@ -18180,10 +18180,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, @@ -18204,7 +18204,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, @@ -18252,7 +18252,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, @@ -18267,16 +18267,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, @@ -18291,16 +18291,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, @@ -18318,16 +18318,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, @@ -18342,7 +18342,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, @@ -18366,16 +18366,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, @@ -18390,7 +18390,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, @@ -18420,10 +18420,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, @@ -18462,16 +18462,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, @@ -18486,7 +18486,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, @@ -18516,7 +18516,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, @@ -18544,16 +18544,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, @@ -18568,16 +18568,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, @@ -18592,10 +18592,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, @@ -18616,10 +18616,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, @@ -18653,7 +18653,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, @@ -18677,7 +18677,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, @@ -18744,10 +18744,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 */ }; @@ -18757,7 +18757,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, @@ -18781,7 +18781,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, @@ -18802,10 +18802,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, @@ -18826,7 +18826,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, @@ -18870,10 +18870,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 */ }; @@ -18883,10 +18883,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, @@ -18939,13 +18939,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, @@ -18967,13 +18967,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, @@ -18992,42 +18992,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, @@ -19051,7 +19051,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, @@ -19063,13 +19063,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, @@ -19078,7 +19078,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, @@ -19099,7 +19099,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, @@ -19111,33 +19111,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, @@ -19172,19 +19172,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] */ }; @@ -19197,53 +19197,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, @@ -19259,72 +19259,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, @@ -19343,17 +19343,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, @@ -19363,27 +19363,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, @@ -19393,17 +19393,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, @@ -19413,17 +19413,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, @@ -19433,7 +19433,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, @@ -19443,7 +19443,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, @@ -19453,7 +19453,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, @@ -19463,17 +19463,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, @@ -19483,10 +19483,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 */ }; @@ -19689,170 +19689,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 */ }; @@ -19907,7 +19907,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, @@ -19931,7 +19931,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, @@ -19955,10 +19955,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, @@ -19967,7 +19967,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, @@ -19979,10 +19979,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, @@ -19991,7 +19991,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, @@ -20003,7 +20003,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, @@ -20027,7 +20027,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, @@ -20055,10 +20055,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, @@ -20071,10 +20071,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, @@ -20087,10 +20087,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, @@ -20103,13 +20103,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, @@ -20119,13 +20119,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, @@ -20279,64 +20279,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, @@ -20354,13 +20354,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, @@ -20379,64 +20379,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, @@ -20454,13 +20454,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, @@ -20538,13 +20538,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, @@ -20565,10 +20565,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, @@ -20589,10 +20589,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, @@ -20613,10 +20613,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, @@ -20637,10 +20637,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, @@ -20661,10 +20661,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, @@ -20685,10 +20685,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, @@ -20709,10 +20709,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, @@ -20842,7 +20842,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, @@ -20866,7 +20866,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, @@ -21147,10 +21147,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, @@ -21203,27 +21203,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, @@ -21233,23 +21233,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, @@ -21265,16 +21265,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, @@ -21293,134 +21293,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, @@ -21433,10 +21433,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, @@ -21449,10 +21449,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, @@ -21477,10 +21477,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, @@ -21517,22 +21517,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, @@ -21541,10 +21541,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, @@ -21557,20 +21557,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, @@ -21583,10 +21583,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, @@ -21599,34 +21599,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, @@ -21651,40 +21651,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 */ }; @@ -21719,30 +21719,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, @@ -21791,19 +21791,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, @@ -21891,60 +21891,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 */ }; @@ -21975,7 +21975,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, @@ -21999,7 +21999,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, @@ -22051,10 +22051,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] */ }; @@ -22067,10 +22067,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] */ }; @@ -22080,33 +22080,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] */ }; @@ -22126,7 +22126,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] */ }; @@ -22136,24 +22136,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, @@ -22163,30 +22163,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] */ }; @@ -22203,20 +22203,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, @@ -22229,13 +22229,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, @@ -22245,13 +22245,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, @@ -22279,40 +22279,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, @@ -22321,10 +22321,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, @@ -22348,13 +22348,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 0e6670adf5..d27711b4e2 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -32,6 +32,7 @@ typedef uint16_t uint16; typedef uint64_t img_address; typedef bool(*conditional_function)(uint64 instruction); +typedef std::string(*disassembly_function)(uint64 instruction); enum TABLE_ENTRY_TYPE { instruction, @@ -72,8 +73,6 @@ public: private: - typedef std::string(NMD:: *disassembly_function)(uint64 instruction); - struct Pool { TABLE_ENTRY_TYPE type; struct Pool *next_table; @@ -90,643 +89,6 @@ private: int Disassemble(const uint16 *data, std::string & dis, TABLE_ENTRY_TYPE & type, const Pool *table, int table_size); - 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); - static Pool P_SYSCALL[2]; static Pool P_RI[4]; static Pool P_ADDIU[2]; From patchwork Mon Aug 15 07:26:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943226 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 75476C00140 for ; Mon, 15 Aug 2022 07:41:54 +0000 (UTC) Received: from localhost ([::1]:47042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUjR-0000tt-Da for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:41:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUY1-0008Po-1o for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:05 -0400 Received: from mail-eopbgr80122.outbound.protection.outlook.com ([40.107.8.122]:52230 helo=EUR04-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 1oNUXw-0000jm-7T for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UhyyQazO3KZtEhQ5W9AGN3+A7Q2Tf6Fo+SIgaZcKS0X3rLlR6vg8wMQWhXXcl4K+gykiToZjFIcgzxGiCwSFQj//SKWR9r6mogcXdT1zATzMzmtFD1D5PxKNe9v0ndsPO+j7dtJkAXbJ2yz5cNLKAWfiVimO3UfwtfgOAun+AYMi0jywudyxkkNpRFoT4Y+5t+J0DRfXWe13hMhOwGWrh8Y0TT8U+cunHPZ+v59s4OgahAaiQ3tJSj+B426pgeWZ1XBA0X9QpZPwLIB2+3YeG3PvWeeBEqQBQO523drqCHaj83cmt37c0GAoqUnREhPt1C6jx6fOTzT0RQdpXgQDLA== 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=lD5b2/sz0Py2pT9CVbKmSQgDbv2uOIY7PBJ0yDfeL+Y=; b=Wz+bFBnpihOv6utf/2fLRO08QJewv0SndWlnuNAFDge/xxSdJzqKSvD5T2efuAi4+vymLcLr1Wxxp3SVLjCW2xje3x0mqPVyquUah7yE0F4E9fvFu6Fr+fMtMW0ZuMVo3Ua7GPgGHDUdkTeT6KjKv4Zx9LvrlUmknSb8qWlDWTKGsIPL++hP9IspGCZPg3inj+/3wBsbEV4XiPGNVZZfOtLvfoHCCWSXNxWbFpDcMLUbDD37XZnttJb4VAW/MLucIi5C59rd0sv8HMk4panfGFXAOFFtP/rzKqUJvNWLZw55IHGEcAQFI84KyfcSdjIV0qUbPLSS782b3Jm+yGsgyg== 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=lD5b2/sz0Py2pT9CVbKmSQgDbv2uOIY7PBJ0yDfeL+Y=; b=a9XE6rL0zKucZmMN8hmhYR82l9Fk9fUuaaK/keN0q/IATG1RFmmIowiceM7Gj3tFYiPIp0YRECRCnQjExS8M9YKLqskwgDDhRCnsgZiEOcBTcGdpEHdrambHE1tBdW/vWX9hjG37wk+2Zyu8XaDklH5HEWZWWw//F/WbfH6p9x0= 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 PA4PR03MB8134.eurprd03.prod.outlook.com (2603:10a6:102:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Mon, 15 Aug 2022 07:29:30 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:29:30 +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 07/20] disas/nanomips: Remove Pool tables from the class Date: Mon, 15 Aug 2022 09:26:16 +0200 Message-Id: <20220815072629.12865-8-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c2f1ee26-2192-4649-853f-08da7e8fe424 X-MS-TrafficTypeDiagnostic: PA4PR03MB8134:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gJfmhgOEAcQl3fa/terAEe08SK3OZcylz1GFY/5ZaA58P742ieVXoodQ+BbrK51t2zNWsTy0uLddStnLUxmYdXXZxpdz13ywdmczRaBlCSusS6LmadlwIQ1TRnlXzxbkoxfA2rwJgRM4rLPDddWWRpOI8Hz1bWGYbrGdLRMcUOwIGo0imFqPq3GKjNCLN3OwW5+H5MK8bpb+rwTqjw8ZH3Oi1FS5UX7dm4jJaajbYQOPzI8V6+d51l5wAak/X/lRwWx5kTi4kJ4x9qDm8zfCtgIACo1pHOgsClAaKuJizMPitTXrp6Unl65aoFuSi9k9+VIwCMeyij4ZfJY6cDQPlTDlQNHI9k9juWz4UJPvoy7DezBg4IXlsOxYdr8iyOoH+igBi9WdJUnVJ7KQIXo4b29Q4NyQhXs5WIubxZPmOBxp5P0tGr05ZXorI9iXz2kAogBC6kcn7whuNPQO+Q8pTnPZzxnbv3UySnFhvCukjisLtggUypPLxJTnhhEWXpnWGzqrMfM9h3F4f+1WZq5bxYTXfsLKVdf1dTLD6+IRu3TZWhjqYuvtcdqqiheywX5SCXUE472non2yACWyYG4siU4hF2FPYOQfZN/sj4d3AeeChhJA8aLUzIgBHam6YbhCxBYCkme2/3TlzzwI7kRI3Fjh7HXtE6F3i+S8AYxqNkP68YBzdlzUGNHqG95swvHa5oZNOAfc7O1g3FymEjNgdhNaYYuhN3IgCy133dhl36hLzBylaHrX+9aj4nOV7URM64Ey+yS1Vh53HufKqiToTOWNrdiotBHXqBnmBNfJ9KU= 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)(376002)(366004)(346002)(39830400003)(136003)(396003)(38100700002)(2906002)(26005)(66556008)(5660300002)(66946007)(66476007)(6512007)(52116002)(6506007)(38350700002)(6916009)(478600001)(6486002)(107886003)(41300700001)(186003)(86362001)(2616005)(6666004)(316002)(83380400001)(4326008)(1076003)(8676002)(44832011)(8936002)(30864003)(36756003)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eZ11LvEu3FYM17+COmLyjUxurYKAuXabogKKCXkxFHvvVo55K1+S8ki8/psbIhn9NEwQ0V8EjB1/PCZ+r7CJfUGCFc+5E2vFRcVpthVBal0zMaOJFWVsrSMiH3CNMM/SQjUE77j+MINOj6Qcyu/OLKiLwlcAsxEmR2JFQBRU8dRaFqjC6un9FTLSPZy8R7vBndHuYbeXNUNz0unqIFTu5LobuZd1ZBH3yX92xL/BKMl+Yz4/AOXe/2uKxzVUdzodvw2ho1tsPSbvxuJQy97HjYLrypuE0vgumZC1HOvldNeGrpQF9oSjQWdfiFzF0w76VAo+q6nfes+fldmaVdg2gQxMi5UMCt/gav9hugj5IphT6M5sETGzCjhYyxoM74rdtkDEkADLy5v6vxMe0XC8ankgFKN913YpYqcuCTZhVF4MyVxesZxlX8F9bTfoaZ6SetQtxu8IguZZHbk8aY3MgZpiD9bxNgajRJutd8xsWYhvMCB1Y9/+2/GduNXaOAl0VAHJ/6NTfR7jv0QzE4x65z+r93YZdoSA/KCPZB0BUFKzBjYnCH44OF9cePXUtJcmhOCthMUSe/tD3pgp6BxvZxtQAwo5ikrxsAfvYMcCXJFPBBJj9n+JFs2qejMtLG5hG4s9ZJZHaNkPXquWHblZYf/ZOLHEf+hUug26whHfV/ms+1JE8p2fVC6F16ayL0PjrAt962haV9vHePBAH9Za2AaiHXKag9rthqER6P6HmCCYp4huhoqr14YEm1O2W+VtVgtETU11brk5Qd1GA7ys2o+EWRdMy3MNHrMDXxy9iz9PQPBGsoWFoT8XRZhGvxGekLQKG3Py5MKSICqaUrejfVPu7979voHfjPiG8o+WZKHfvz43+24WEllyL7MJ2i9V8TaaOcQ2s8LXo9S3oT7j+J8F8lpRYbgLlHvzlH3cpPDVBZjcoXAblzMvwfgZOdc85RoLIM5ybEcItK2zEgZJFX8O1MqhtbIzOrYZm4VATDXaMXjLUq8R/BY+90IzjNdOdZMmvBalzCCpu+uGIp8lhhrW7SUzVSkTQHBInk+xY+6c6oAJ3UvEEZjOofwwTiIlSHdv1+xymk+ufphulBSpSzkC+s4SJIcEwJCIrC+YWcESNdHmYE8HWB4U0MOKRkVIzhvM4Jyr6Ly0rZ5F3HGTgE66e99T/TUtZBUqMhP2n7h6pCLylAzFY5bRIVbYgJxvkfUBC6NMh4be//VZwTb+Jvlhmy+Jkm9ak1HPwNP+537EP/llMNNtnkLLJxjG6y29NJbZR2x9UugMqWURoqti2kDoWw2gkh1hbe+MHyohbOHBGwtzdAlJQMXZdxja+fKZNJnuIwGMrZJa3HePS4RPiK4H2FKF2/WHk0sPokURuc5cK2jRHEDrawQdh5taXU2qJezvMTLOCB0DNDfWnVK99p9G4V4ZXp1BsbFYO2USIDsZHxO91R+Bkp06oy/L7HGXhvntEXWFI77RaQdEVwDd8zu9uNoiycav6UOkUR0BhKE3HbXaOz/RyvtZeU4pdLg8Q+Is8w1I/u27yxPj2cbAJGXX2WoWi0r00lw14Xxt8r7Wg27s4zdOwIc+dFkKwp78s9PwfmJJnXWOcAl5Ec0DMA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2f1ee26-2192-4649-853f-08da7e8fe424 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:29:30.0774 (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: 0qIJK3/q4UKP/I7XKdijWzoxcSNZlTp2s00tzkLkYHhRAoTPDiK35X7vFbiTAO95q+sVHT+E9TzQeqncSKwzUQpbl+n2ODT0BAhnFgwijpI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB8134 Received-SPF: pass client-ip=40.107.8.122; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-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" Pool tables are no longer declared as static fields of the NMD class but as global static variables. 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é --- 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 205c4f3143..c35ece428c 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -757,13 +757,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) -{ - return Disassemble(data, dis, type, MAJOR, 2); -} - - /* * Recurse through tables until the instruction is found then return * the string and size @@ -16674,7 +16667,7 @@ static std::string YIELD(uint64 instruction) * */ -NMD::Pool NMD::P_SYSCALL[2] = { +static struct Pool P_SYSCALL[2] = { { instruction , 0 , 0 , 32, 0xfffc0000, 0x00080000, &SYSCALL_32_ , 0, 0x0 }, /* SYSCALL[32] */ @@ -16684,7 +16677,7 @@ NMD::Pool NMD::P_SYSCALL[2] = { }; -NMD::Pool NMD::P_RI[4] = { +static struct Pool P_RI[4] = { { instruction , 0 , 0 , 32, 0xfff80000, 0x00000000, &SIGRIE , 0, 0x0 }, /* SIGRIE */ @@ -16700,7 +16693,7 @@ NMD::Pool NMD::P_RI[4] = { }; -NMD::Pool NMD::P_ADDIU[2] = { +static struct Pool P_ADDIU[2] = { { pool , P_RI , 4 , 32, 0xffe00000, 0x00000000, 0 , 0, 0x0 }, /* P.RI */ @@ -16710,7 +16703,7 @@ NMD::Pool NMD::P_ADDIU[2] = { }; -NMD::Pool NMD::P_TRAP[2] = { +static struct Pool P_TRAP[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x20000000, &TEQ , 0, XMMS_ }, /* TEQ */ @@ -16720,7 +16713,7 @@ NMD::Pool NMD::P_TRAP[2] = { }; -NMD::Pool NMD::P_CMOVE[2] = { +static struct Pool P_CMOVE[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x20000210, &MOVZ , 0, 0x0 }, /* MOVZ */ @@ -16730,7 +16723,7 @@ NMD::Pool NMD::P_CMOVE[2] = { }; -NMD::Pool NMD::P_D_MT_VPE[2] = { +static struct Pool P_D_MT_VPE[2] = { { instruction , 0 , 0 , 32, 0xfc1f3fff, 0x20010ab0, &DMT , 0, MT_ }, /* DMT */ @@ -16740,7 +16733,7 @@ NMD::Pool NMD::P_D_MT_VPE[2] = { }; -NMD::Pool NMD::P_E_MT_VPE[2] = { +static struct Pool P_E_MT_VPE[2] = { { instruction , 0 , 0 , 32, 0xfc1f3fff, 0x20010eb0, &EMT , 0, MT_ }, /* EMT */ @@ -16750,7 +16743,7 @@ NMD::Pool NMD::P_E_MT_VPE[2] = { }; -NMD::Pool NMD::_P_MT_VPE[2] = { +static struct Pool _P_MT_VPE[2] = { { pool , P_D_MT_VPE , 2 , 32, 0xfc003fff, 0x20000ab0, 0 , 0, 0x0 }, /* P.D_MT_VPE */ @@ -16760,7 +16753,7 @@ NMD::Pool NMD::_P_MT_VPE[2] = { }; -NMD::Pool NMD::P_MT_VPE[8] = { +static struct Pool P_MT_VPE[8] = { { reserved_block , 0 , 0 , 32, 0xfc003bff, 0x200002b0, 0 , 0, 0x0 }, /* P.MT_VPE~*(0) */ @@ -16788,7 +16781,7 @@ NMD::Pool NMD::P_MT_VPE[8] = { }; -NMD::Pool NMD::P_DVP[2] = { +static struct Pool P_DVP[2] = { { instruction , 0 , 0 , 32, 0xfc00ffff, 0x20000390, &DVP , 0, 0x0 }, /* DVP */ @@ -16798,7 +16791,7 @@ NMD::Pool NMD::P_DVP[2] = { }; -NMD::Pool NMD::P_SLTU[2] = { +static struct Pool P_SLTU[2] = { { pool , P_DVP , 2 , 32, 0xfc00fbff, 0x20000390, 0 , 0, 0x0 }, /* P.DVP */ @@ -16808,7 +16801,7 @@ NMD::Pool NMD::P_SLTU[2] = { }; -NMD::Pool NMD::_POOL32A0[128] = { +static struct Pool _POOL32A0[128] = { { pool , P_TRAP , 2 , 32, 0xfc0003ff, 0x20000000, 0 , 0, 0x0 }, /* P.TRAP */ @@ -17196,7 +17189,7 @@ NMD::Pool NMD::_POOL32A0[128] = { }; -NMD::Pool NMD::ADDQ__S__PH[2] = { +static struct Pool ADDQ__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000000d, &ADDQ_PH , 0, DSP_ }, /* ADDQ.PH */ @@ -17206,7 +17199,7 @@ NMD::Pool NMD::ADDQ__S__PH[2] = { }; -NMD::Pool NMD::MUL__S__PH[2] = { +static struct Pool MUL__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000002d, &MUL_PH , 0, DSP_ }, /* MUL.PH */ @@ -17216,7 +17209,7 @@ NMD::Pool NMD::MUL__S__PH[2] = { }; -NMD::Pool NMD::ADDQH__R__PH[2] = { +static struct Pool ADDQH__R__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000004d, &ADDQH_PH , 0, DSP_ }, /* ADDQH.PH */ @@ -17226,7 +17219,7 @@ NMD::Pool NMD::ADDQH__R__PH[2] = { }; -NMD::Pool NMD::ADDQH__R__W[2] = { +static struct Pool ADDQH__R__W[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000008d, &ADDQH_W , 0, DSP_ }, /* ADDQH.W */ @@ -17236,7 +17229,7 @@ NMD::Pool NMD::ADDQH__R__W[2] = { }; -NMD::Pool NMD::ADDU__S__QB[2] = { +static struct Pool ADDU__S__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x200000cd, &ADDU_QB , 0, DSP_ }, /* ADDU.QB */ @@ -17246,7 +17239,7 @@ NMD::Pool NMD::ADDU__S__QB[2] = { }; -NMD::Pool NMD::ADDU__S__PH[2] = { +static struct Pool ADDU__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000010d, &ADDU_PH , 0, DSP_ }, /* ADDU.PH */ @@ -17256,7 +17249,7 @@ NMD::Pool NMD::ADDU__S__PH[2] = { }; -NMD::Pool NMD::ADDUH__R__QB[2] = { +static struct Pool ADDUH__R__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000014d, &ADDUH_QB , 0, DSP_ }, /* ADDUH.QB */ @@ -17266,7 +17259,7 @@ NMD::Pool NMD::ADDUH__R__QB[2] = { }; -NMD::Pool NMD::SHRAV__R__PH[2] = { +static struct Pool SHRAV__R__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000018d, &SHRAV_PH , 0, DSP_ }, /* SHRAV.PH */ @@ -17276,7 +17269,7 @@ NMD::Pool NMD::SHRAV__R__PH[2] = { }; -NMD::Pool NMD::SHRAV__R__QB[2] = { +static struct Pool SHRAV__R__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x200001cd, &SHRAV_QB , 0, DSP_ }, /* SHRAV.QB */ @@ -17286,7 +17279,7 @@ NMD::Pool NMD::SHRAV__R__QB[2] = { }; -NMD::Pool NMD::SUBQ__S__PH[2] = { +static struct Pool SUBQ__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000020d, &SUBQ_PH , 0, DSP_ }, /* SUBQ.PH */ @@ -17296,7 +17289,7 @@ NMD::Pool NMD::SUBQ__S__PH[2] = { }; -NMD::Pool NMD::SUBQH__R__PH[2] = { +static struct Pool SUBQH__R__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000024d, &SUBQH_PH , 0, DSP_ }, /* SUBQH.PH */ @@ -17306,7 +17299,7 @@ NMD::Pool NMD::SUBQH__R__PH[2] = { }; -NMD::Pool NMD::SUBQH__R__W[2] = { +static struct Pool SUBQH__R__W[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000028d, &SUBQH_W , 0, DSP_ }, /* SUBQH.W */ @@ -17316,7 +17309,7 @@ NMD::Pool NMD::SUBQH__R__W[2] = { }; -NMD::Pool NMD::SUBU__S__QB[2] = { +static struct Pool SUBU__S__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x200002cd, &SUBU_QB , 0, DSP_ }, /* SUBU.QB */ @@ -17326,7 +17319,7 @@ NMD::Pool NMD::SUBU__S__QB[2] = { }; -NMD::Pool NMD::SUBU__S__PH[2] = { +static struct Pool SUBU__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000030d, &SUBU_PH , 0, DSP_ }, /* SUBU.PH */ @@ -17336,7 +17329,7 @@ NMD::Pool NMD::SUBU__S__PH[2] = { }; -NMD::Pool NMD::SHRA__R__PH[2] = { +static struct Pool SHRA__R__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x20000335, &SHRA_PH , 0, DSP_ }, /* SHRA.PH */ @@ -17346,7 +17339,7 @@ NMD::Pool NMD::SHRA__R__PH[2] = { }; -NMD::Pool NMD::SUBUH__R__QB[2] = { +static struct Pool SUBUH__R__QB[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000034d, &SUBUH_QB , 0, DSP_ }, /* SUBUH.QB */ @@ -17356,7 +17349,7 @@ NMD::Pool NMD::SUBUH__R__QB[2] = { }; -NMD::Pool NMD::SHLLV__S__PH[2] = { +static struct Pool SHLLV__S__PH[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x2000038d, &SHLLV_PH , 0, DSP_ }, /* SHLLV.PH */ @@ -17366,7 +17359,7 @@ NMD::Pool NMD::SHLLV__S__PH[2] = { }; -NMD::Pool NMD::SHLL__S__PH[4] = { +static struct Pool SHLL__S__PH[4] = { { instruction , 0 , 0 , 32, 0xfc000fff, 0x200003b5, &SHLL_PH , 0, DSP_ }, /* SHLL.PH */ @@ -17382,7 +17375,7 @@ NMD::Pool NMD::SHLL__S__PH[4] = { }; -NMD::Pool NMD::PRECR_SRA__R__PH_W[2] = { +static struct Pool PRECR_SRA__R__PH_W[2] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x200003cd, &PRECR_SRA_PH_W , 0, DSP_ }, /* PRECR_SRA.PH.W */ @@ -17392,7 +17385,7 @@ NMD::Pool NMD::PRECR_SRA__R__PH_W[2] = { }; -NMD::Pool NMD::_POOL32A5[128] = { +static struct Pool _POOL32A5[128] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0x20000005, &CMP_EQ_PH , 0, DSP_ }, /* CMP.EQ.PH */ @@ -17780,7 +17773,7 @@ NMD::Pool NMD::_POOL32A5[128] = { }; -NMD::Pool NMD::PP_LSX[16] = { +static struct Pool PP_LSX[16] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0x20000007, &LBX , 0, 0x0 }, /* LBX */ @@ -17832,7 +17825,7 @@ NMD::Pool NMD::PP_LSX[16] = { }; -NMD::Pool NMD::PP_LSXS[16] = { +static struct Pool PP_LSXS[16] = { { reserved_block , 0 , 0 , 32, 0xfc0007ff, 0x20000047, 0 , 0, 0x0 }, /* PP.LSXS~*(0) */ @@ -17884,7 +17877,7 @@ NMD::Pool NMD::PP_LSXS[16] = { }; -NMD::Pool NMD::P_LSX[2] = { +static struct Pool P_LSX[2] = { { pool , PP_LSX , 16 , 32, 0xfc00007f, 0x20000007, 0 , 0, 0x0 }, /* PP.LSX */ @@ -17894,7 +17887,7 @@ NMD::Pool NMD::P_LSX[2] = { }; -NMD::Pool NMD::POOL32Axf_1_0[4] = { +static struct Pool POOL32Axf_1_0[4] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x2000007f, &MFHI_DSP_ , 0, DSP_ }, /* MFHI[DSP] */ @@ -17910,7 +17903,7 @@ NMD::Pool NMD::POOL32Axf_1_0[4] = { }; -NMD::Pool NMD::POOL32Axf_1_1[4] = { +static struct Pool POOL32Axf_1_1[4] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x2000027f, &MTHLIP , 0, DSP_ }, /* MTHLIP */ @@ -17926,7 +17919,7 @@ NMD::Pool NMD::POOL32Axf_1_1[4] = { }; -NMD::Pool NMD::POOL32Axf_1_3[4] = { +static struct Pool POOL32Axf_1_3[4] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x2000067f, &RDDSP , 0, DSP_ }, /* RDDSP */ @@ -17942,7 +17935,7 @@ NMD::Pool NMD::POOL32Axf_1_3[4] = { }; -NMD::Pool NMD::POOL32Axf_1_4[2] = { +static struct Pool POOL32Axf_1_4[2] = { { instruction , 0 , 0 , 32, 0xfc001fff, 0x2000087f, &SHLL_QB , 0, DSP_ }, /* SHLL.QB */ @@ -17952,7 +17945,7 @@ NMD::Pool NMD::POOL32Axf_1_4[2] = { }; -NMD::Pool NMD::MAQ_S_A__W_PHR[2] = { +static struct Pool MAQ_S_A__W_PHR[2] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x20000a7f, &MAQ_S_W_PHR , 0, DSP_ }, /* MAQ_S.W.PHR */ @@ -17962,7 +17955,7 @@ NMD::Pool NMD::MAQ_S_A__W_PHR[2] = { }; -NMD::Pool NMD::MAQ_S_A__W_PHL[2] = { +static struct Pool MAQ_S_A__W_PHL[2] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x20001a7f, &MAQ_S_W_PHL , 0, DSP_ }, /* MAQ_S.W.PHL */ @@ -17972,7 +17965,7 @@ NMD::Pool NMD::MAQ_S_A__W_PHL[2] = { }; -NMD::Pool NMD::POOL32Axf_1_5[2] = { +static struct Pool POOL32Axf_1_5[2] = { { pool , MAQ_S_A__W_PHR , 2 , 32, 0xfc001fff, 0x20000a7f, 0 , 0, 0x0 }, /* MAQ_S[A].W.PHR */ @@ -17982,7 +17975,7 @@ NMD::Pool NMD::POOL32Axf_1_5[2] = { }; -NMD::Pool NMD::POOL32Axf_1_7[4] = { +static struct Pool POOL32Axf_1_7[4] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x20000e7f, &EXTR_W , 0, DSP_ }, /* EXTR.W */ @@ -17998,7 +17991,7 @@ NMD::Pool NMD::POOL32Axf_1_7[4] = { }; -NMD::Pool NMD::POOL32Axf_1[8] = { +static struct Pool POOL32Axf_1[8] = { { pool , POOL32Axf_1_0 , 4 , 32, 0xfc000fff, 0x2000007f, 0 , 0, 0x0 }, /* POOL32Axf_1_0 */ @@ -18026,7 +18019,7 @@ NMD::Pool NMD::POOL32Axf_1[8] = { }; -NMD::Pool NMD::POOL32Axf_2_DSP__0_7[8] = { +static struct Pool POOL32Axf_2_DSP__0_7[8] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x200000bf, &DPA_W_PH , 0, DSP_ }, /* DPA.W.PH */ @@ -18054,7 +18047,7 @@ NMD::Pool NMD::POOL32Axf_2_DSP__0_7[8] = { }; -NMD::Pool NMD::POOL32Axf_2_DSP__8_15[8] = { +static struct Pool POOL32Axf_2_DSP__8_15[8] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x200010bf, &DPAX_W_PH , 0, DSP_ }, /* DPAX.W.PH */ @@ -18082,7 +18075,7 @@ NMD::Pool NMD::POOL32Axf_2_DSP__8_15[8] = { }; -NMD::Pool NMD::POOL32Axf_2_DSP__16_23[8] = { +static struct Pool POOL32Axf_2_DSP__16_23[8] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x200020bf, &DPAU_H_QBL , 0, DSP_ }, /* DPAU.H.QBL */ @@ -18110,7 +18103,7 @@ NMD::Pool NMD::POOL32Axf_2_DSP__16_23[8] = { }; -NMD::Pool NMD::POOL32Axf_2_DSP__24_31[8] = { +static struct Pool POOL32Axf_2_DSP__24_31[8] = { { instruction , 0 , 0 , 32, 0xfc003fff, 0x200030bf, &DPAU_H_QBR , 0, DSP_ }, /* DPAU.H.QBR */ @@ -18138,7 +18131,7 @@ NMD::Pool NMD::POOL32Axf_2_DSP__24_31[8] = { }; -NMD::Pool NMD::POOL32Axf_2[4] = { +static struct Pool POOL32Axf_2[4] = { { pool , POOL32Axf_2_DSP__0_7, 8 , 32, 0xfc0031ff, 0x200000bf, 0 , 0, 0x0 }, /* POOL32Axf_2(DSP)_0_7 */ @@ -18154,7 +18147,7 @@ NMD::Pool NMD::POOL32Axf_2[4] = { }; -NMD::Pool NMD::POOL32Axf_4[128] = { +static struct Pool POOL32Axf_4[128] = { { instruction , 0 , 0 , 32, 0xfc00ffff, 0x2000013f, &ABSQ_S_QB , 0, DSP_ }, /* ABSQ_S.QB */ @@ -18542,7 +18535,7 @@ NMD::Pool NMD::POOL32Axf_4[128] = { }; -NMD::Pool NMD::POOL32Axf_5_group0[32] = { +static struct Pool POOL32Axf_5_group0[32] = { { instruction , 0 , 0 , 32, 0xfc00ffff, 0x2000017f, &TLBGP , 0, CP0_ | VZ_ | TLB_ }, /* TLBGP */ @@ -18642,7 +18635,7 @@ NMD::Pool NMD::POOL32Axf_5_group0[32] = { }; -NMD::Pool NMD::POOL32Axf_5_group1[32] = { +static struct Pool POOL32Axf_5_group1[32] = { { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000417f, 0 , 0, 0x0 }, /* POOL32Axf_5_group1~*(0) */ @@ -18742,7 +18735,7 @@ NMD::Pool NMD::POOL32Axf_5_group1[32] = { }; -NMD::Pool NMD::ERETx[2] = { +static struct Pool ERETx[2] = { { instruction , 0 , 0 , 32, 0xfc01ffff, 0x2000f37f, &ERET , 0, 0x0 }, /* ERET */ @@ -18752,7 +18745,7 @@ NMD::Pool NMD::ERETx[2] = { }; -NMD::Pool NMD::POOL32Axf_5_group3[32] = { +static struct Pool POOL32Axf_5_group3[32] = { { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0x2000c17f, 0 , 0, 0x0 }, /* POOL32Axf_5_group3~*(0) */ @@ -18852,7 +18845,7 @@ NMD::Pool NMD::POOL32Axf_5_group3[32] = { }; -NMD::Pool NMD::POOL32Axf_5[4] = { +static struct Pool POOL32Axf_5[4] = { { pool , POOL32Axf_5_group0 , 32 , 32, 0xfc00c1ff, 0x2000017f, 0 , 0, 0x0 }, /* POOL32Axf_5_group0 */ @@ -18868,7 +18861,7 @@ NMD::Pool NMD::POOL32Axf_5[4] = { }; -NMD::Pool NMD::SHRA__R__QB[2] = { +static struct Pool SHRA__R__QB[2] = { { instruction , 0 , 0 , 32, 0xfc001fff, 0x200001ff, &SHRA_QB , 0, DSP_ }, /* SHRA.QB */ @@ -18878,7 +18871,7 @@ NMD::Pool NMD::SHRA__R__QB[2] = { }; -NMD::Pool NMD::POOL32Axf_7[8] = { +static struct Pool POOL32Axf_7[8] = { { pool , SHRA__R__QB , 2 , 32, 0xfc000fff, 0x200001ff, 0 , 0, 0x0 }, /* SHRA[_R].QB */ @@ -18906,7 +18899,7 @@ NMD::Pool NMD::POOL32Axf_7[8] = { }; -NMD::Pool NMD::POOL32Axf[8] = { +static struct Pool POOL32Axf[8] = { { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0x2000003f, 0 , 0, 0x0 }, /* POOL32Axf~*(0) */ @@ -18934,7 +18927,7 @@ NMD::Pool NMD::POOL32Axf[8] = { }; -NMD::Pool NMD::_POOL32A7[8] = { +static struct Pool _POOL32A7[8] = { { pool , P_LSX , 2 , 32, 0xfc00003f, 0x20000007, 0 , 0, 0x0 }, /* P.LSX */ @@ -18962,7 +18955,7 @@ NMD::Pool NMD::_POOL32A7[8] = { }; -NMD::Pool NMD::P32A[8] = { +static struct Pool P32A[8] = { { pool , _POOL32A0 , 128 , 32, 0xfc000007, 0x20000000, 0 , 0, 0x0 }, /* _POOL32A0 */ @@ -18990,7 +18983,7 @@ NMD::Pool NMD::P32A[8] = { }; -NMD::Pool NMD::P_GP_D[2] = { +static struct Pool P_GP_D[2] = { { instruction , 0 , 0 , 32, 0xfc000007, 0x40000001, &LD_GP_ , 0, MIPS64_ }, /* LD[GP] */ @@ -19000,7 +18993,7 @@ NMD::Pool NMD::P_GP_D[2] = { }; -NMD::Pool NMD::P_GP_W[4] = { +static struct Pool P_GP_W[4] = { { instruction , 0 , 0 , 32, 0xfc000003, 0x40000000, &ADDIU_GP_W_ , 0, 0x0 }, /* ADDIU[GP.W] */ @@ -19016,7 +19009,7 @@ NMD::Pool NMD::P_GP_W[4] = { }; -NMD::Pool NMD::POOL48I[32] = { +static struct Pool POOL48I[32] = { { instruction , 0 , 0 , 48, 0xfc1f00000000ull, 0x600000000000ull, &LI_48_ , 0, XMMS_ }, /* LI[48] */ @@ -19116,7 +19109,7 @@ NMD::Pool NMD::POOL48I[32] = { }; -NMD::Pool NMD::PP_SR[4] = { +static struct Pool PP_SR[4] = { { instruction , 0 , 0 , 32, 0xfc10f003, 0x80003000, &SAVE_32_ , 0, 0x0 }, /* SAVE[32] */ @@ -19132,7 +19125,7 @@ NMD::Pool NMD::PP_SR[4] = { }; -NMD::Pool NMD::P_SR_F[8] = { +static struct Pool P_SR_F[8] = { { instruction , 0 , 0 , 32, 0xfc10f007, 0x80103000, &SAVEF , 0, CP1_ }, /* SAVEF */ @@ -19160,7 +19153,7 @@ NMD::Pool NMD::P_SR_F[8] = { }; -NMD::Pool NMD::P_SR[2] = { +static struct Pool P_SR[2] = { { pool , PP_SR , 4 , 32, 0xfc10f000, 0x80003000, 0 , 0, 0x0 }, /* PP.SR */ @@ -19170,7 +19163,7 @@ NMD::Pool NMD::P_SR[2] = { }; -NMD::Pool NMD::P_SLL[5] = { +static struct Pool P_SLL[5] = { { instruction , 0 , 0 , 32, 0xffe0f1ff, 0x8000c000, &NOP_32_ , 0, 0x0 }, /* NOP[32] */ @@ -19189,7 +19182,7 @@ NMD::Pool NMD::P_SLL[5] = { }; -NMD::Pool NMD::P_SHIFT[16] = { +static struct Pool P_SHIFT[16] = { { pool , P_SLL , 5 , 32, 0xfc00f1e0, 0x8000c000, 0 , 0, 0x0 }, /* P.SLL */ @@ -19241,7 +19234,7 @@ NMD::Pool NMD::P_SHIFT[16] = { }; -NMD::Pool NMD::P_ROTX[4] = { +static struct Pool P_ROTX[4] = { { instruction , 0 , 0 , 32, 0xfc00f820, 0x8000d000, &ROTX , 0, XMMS_ }, /* ROTX */ @@ -19257,7 +19250,7 @@ NMD::Pool NMD::P_ROTX[4] = { }; -NMD::Pool NMD::P_INS[4] = { +static struct Pool P_INS[4] = { { instruction , 0 , 0 , 32, 0xfc00f820, 0x8000e000, &INS , 0, XMMS_ }, /* INS */ @@ -19273,7 +19266,7 @@ NMD::Pool NMD::P_INS[4] = { }; -NMD::Pool NMD::P_EXT[4] = { +static struct Pool P_EXT[4] = { { instruction , 0 , 0 , 32, 0xfc00f820, 0x8000f000, &EXT , 0, XMMS_ }, /* EXT */ @@ -19289,7 +19282,7 @@ NMD::Pool NMD::P_EXT[4] = { }; -NMD::Pool NMD::P_U12[16] = { +static struct Pool P_U12[16] = { { instruction , 0 , 0 , 32, 0xfc00f000, 0x80000000, &ORI , 0, 0x0 }, /* ORI */ @@ -19341,7 +19334,7 @@ NMD::Pool NMD::P_U12[16] = { }; -NMD::Pool NMD::RINT_fmt[2] = { +static struct Pool RINT_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000020, &RINT_S , 0, CP1_ }, /* RINT.S */ @@ -19351,7 +19344,7 @@ NMD::Pool NMD::RINT_fmt[2] = { }; -NMD::Pool NMD::ADD_fmt0[2] = { +static struct Pool ADD_fmt0[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000030, &ADD_S , 0, CP1_ }, /* ADD.S */ @@ -19361,7 +19354,7 @@ NMD::Pool NMD::ADD_fmt0[2] = { }; -NMD::Pool NMD::SELEQZ_fmt[2] = { +static struct Pool SELEQZ_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000038, &SELEQZ_S , 0, CP1_ }, /* SELEQZ.S */ @@ -19371,7 +19364,7 @@ NMD::Pool NMD::SELEQZ_fmt[2] = { }; -NMD::Pool NMD::CLASS_fmt[2] = { +static struct Pool CLASS_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000060, &CLASS_S , 0, CP1_ }, /* CLASS.S */ @@ -19381,7 +19374,7 @@ NMD::Pool NMD::CLASS_fmt[2] = { }; -NMD::Pool NMD::SUB_fmt0[2] = { +static struct Pool SUB_fmt0[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000070, &SUB_S , 0, CP1_ }, /* SUB.S */ @@ -19391,7 +19384,7 @@ NMD::Pool NMD::SUB_fmt0[2] = { }; -NMD::Pool NMD::SELNEZ_fmt[2] = { +static struct Pool SELNEZ_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000078, &SELNEZ_S , 0, CP1_ }, /* SELNEZ.S */ @@ -19401,7 +19394,7 @@ NMD::Pool NMD::SELNEZ_fmt[2] = { }; -NMD::Pool NMD::MUL_fmt0[2] = { +static struct Pool MUL_fmt0[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00000b0, &MUL_S , 0, CP1_ }, /* MUL.S */ @@ -19411,7 +19404,7 @@ NMD::Pool NMD::MUL_fmt0[2] = { }; -NMD::Pool NMD::SEL_fmt[2] = { +static struct Pool SEL_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00000b8, &SEL_S , 0, CP1_ }, /* SEL.S */ @@ -19421,7 +19414,7 @@ NMD::Pool NMD::SEL_fmt[2] = { }; -NMD::Pool NMD::DIV_fmt0[2] = { +static struct Pool DIV_fmt0[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00000f0, &DIV_S , 0, CP1_ }, /* DIV.S */ @@ -19431,7 +19424,7 @@ NMD::Pool NMD::DIV_fmt0[2] = { }; -NMD::Pool NMD::ADD_fmt1[2] = { +static struct Pool ADD_fmt1[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000130, &ADD_D , 0, CP1_ }, /* ADD.D */ @@ -19441,7 +19434,7 @@ NMD::Pool NMD::ADD_fmt1[2] = { }; -NMD::Pool NMD::SUB_fmt1[2] = { +static struct Pool SUB_fmt1[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa0000170, &SUB_D , 0, CP1_ }, /* SUB.D */ @@ -19451,7 +19444,7 @@ NMD::Pool NMD::SUB_fmt1[2] = { }; -NMD::Pool NMD::MUL_fmt1[2] = { +static struct Pool MUL_fmt1[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00001b0, &MUL_D , 0, CP1_ }, /* MUL.D */ @@ -19461,7 +19454,7 @@ NMD::Pool NMD::MUL_fmt1[2] = { }; -NMD::Pool NMD::MADDF_fmt[2] = { +static struct Pool MADDF_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00001b8, &MADDF_S , 0, CP1_ }, /* MADDF.S */ @@ -19471,7 +19464,7 @@ NMD::Pool NMD::MADDF_fmt[2] = { }; -NMD::Pool NMD::DIV_fmt1[2] = { +static struct Pool DIV_fmt1[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00001f0, &DIV_D , 0, CP1_ }, /* DIV.D */ @@ -19481,7 +19474,7 @@ NMD::Pool NMD::DIV_fmt1[2] = { }; -NMD::Pool NMD::MSUBF_fmt[2] = { +static struct Pool MSUBF_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc0003ff, 0xa00001f8, &MSUBF_S , 0, CP1_ }, /* MSUBF.S */ @@ -19491,7 +19484,7 @@ NMD::Pool NMD::MSUBF_fmt[2] = { }; -NMD::Pool NMD::POOL32F_0[64] = { +static struct Pool POOL32F_0[64] = { { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xa0000000, 0 , 0, CP1_ }, /* POOL32F_0~*(0) */ @@ -19687,7 +19680,7 @@ NMD::Pool NMD::POOL32F_0[64] = { }; -NMD::Pool NMD::MIN_fmt[2] = { +static struct Pool MIN_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc00023f, 0xa0000003, &MIN_S , 0, CP1_ }, /* MIN.S */ @@ -19697,7 +19690,7 @@ NMD::Pool NMD::MIN_fmt[2] = { }; -NMD::Pool NMD::MAX_fmt[2] = { +static struct Pool MAX_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc00023f, 0xa000000b, &MAX_S , 0, CP1_ }, /* MAX.S */ @@ -19707,7 +19700,7 @@ NMD::Pool NMD::MAX_fmt[2] = { }; -NMD::Pool NMD::MINA_fmt[2] = { +static struct Pool MINA_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc00023f, 0xa0000023, &MINA_S , 0, CP1_ }, /* MINA.S */ @@ -19717,7 +19710,7 @@ NMD::Pool NMD::MINA_fmt[2] = { }; -NMD::Pool NMD::MAXA_fmt[2] = { +static struct Pool MAXA_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc00023f, 0xa000002b, &MAXA_S , 0, CP1_ }, /* MAXA.S */ @@ -19727,7 +19720,7 @@ NMD::Pool NMD::MAXA_fmt[2] = { }; -NMD::Pool NMD::CVT_L_fmt[2] = { +static struct Pool CVT_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000013b, &CVT_L_S , 0, CP1_ }, /* CVT.L.S */ @@ -19737,7 +19730,7 @@ NMD::Pool NMD::CVT_L_fmt[2] = { }; -NMD::Pool NMD::RSQRT_fmt[2] = { +static struct Pool RSQRT_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000023b, &RSQRT_S , 0, CP1_ }, /* RSQRT.S */ @@ -19747,7 +19740,7 @@ NMD::Pool NMD::RSQRT_fmt[2] = { }; -NMD::Pool NMD::FLOOR_L_fmt[2] = { +static struct Pool FLOOR_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000033b, &FLOOR_L_S , 0, CP1_ }, /* FLOOR.L.S */ @@ -19757,7 +19750,7 @@ NMD::Pool NMD::FLOOR_L_fmt[2] = { }; -NMD::Pool NMD::CVT_W_fmt[2] = { +static struct Pool CVT_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000093b, &CVT_W_S , 0, CP1_ }, /* CVT.W.S */ @@ -19767,7 +19760,7 @@ NMD::Pool NMD::CVT_W_fmt[2] = { }; -NMD::Pool NMD::SQRT_fmt[2] = { +static struct Pool SQRT_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0000a3b, &SQRT_S , 0, CP1_ }, /* SQRT.S */ @@ -19777,7 +19770,7 @@ NMD::Pool NMD::SQRT_fmt[2] = { }; -NMD::Pool NMD::FLOOR_W_fmt[2] = { +static struct Pool FLOOR_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0000b3b, &FLOOR_W_S , 0, CP1_ }, /* FLOOR.W.S */ @@ -19787,7 +19780,7 @@ NMD::Pool NMD::FLOOR_W_fmt[2] = { }; -NMD::Pool NMD::RECIP_fmt[2] = { +static struct Pool RECIP_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000123b, &RECIP_S , 0, CP1_ }, /* RECIP.S */ @@ -19797,7 +19790,7 @@ NMD::Pool NMD::RECIP_fmt[2] = { }; -NMD::Pool NMD::CEIL_L_fmt[2] = { +static struct Pool CEIL_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000133b, &CEIL_L_S , 0, CP1_ }, /* CEIL.L.S */ @@ -19807,7 +19800,7 @@ NMD::Pool NMD::CEIL_L_fmt[2] = { }; -NMD::Pool NMD::CEIL_W_fmt[2] = { +static struct Pool CEIL_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0001b3b, &CEIL_W_S , 0, CP1_ }, /* CEIL.W.S */ @@ -19817,7 +19810,7 @@ NMD::Pool NMD::CEIL_W_fmt[2] = { }; -NMD::Pool NMD::TRUNC_L_fmt[2] = { +static struct Pool TRUNC_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000233b, &TRUNC_L_S , 0, CP1_ }, /* TRUNC.L.S */ @@ -19827,7 +19820,7 @@ NMD::Pool NMD::TRUNC_L_fmt[2] = { }; -NMD::Pool NMD::TRUNC_W_fmt[2] = { +static struct Pool TRUNC_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0002b3b, &TRUNC_W_S , 0, CP1_ }, /* TRUNC.W.S */ @@ -19837,7 +19830,7 @@ NMD::Pool NMD::TRUNC_W_fmt[2] = { }; -NMD::Pool NMD::ROUND_L_fmt[2] = { +static struct Pool ROUND_L_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000333b, &ROUND_L_S , 0, CP1_ }, /* ROUND.L.S */ @@ -19847,7 +19840,7 @@ NMD::Pool NMD::ROUND_L_fmt[2] = { }; -NMD::Pool NMD::ROUND_W_fmt[2] = { +static struct Pool ROUND_W_fmt[2] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0003b3b, &ROUND_W_S , 0, CP1_ }, /* ROUND.W.S */ @@ -19857,7 +19850,7 @@ NMD::Pool NMD::ROUND_W_fmt[2] = { }; -NMD::Pool NMD::POOL32Fxf_0[64] = { +static struct Pool POOL32Fxf_0[64] = { { reserved_block , 0 , 0 , 32, 0xfc003fff, 0xa000003b, 0 , 0, CP1_ }, /* POOL32Fxf_0~*(0) */ @@ -20053,7 +20046,7 @@ NMD::Pool NMD::POOL32Fxf_0[64] = { }; -NMD::Pool NMD::MOV_fmt[4] = { +static struct Pool MOV_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000007b, &MOV_S , 0, CP1_ }, /* MOV.S */ @@ -20069,7 +20062,7 @@ NMD::Pool NMD::MOV_fmt[4] = { }; -NMD::Pool NMD::ABS_fmt[4] = { +static struct Pool ABS_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000037b, &ABS_S , 0, CP1_ }, /* ABS.S */ @@ -20085,7 +20078,7 @@ NMD::Pool NMD::ABS_fmt[4] = { }; -NMD::Pool NMD::NEG_fmt[4] = { +static struct Pool NEG_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0000b7b, &NEG_S , 0, CP1_ }, /* NEG.S */ @@ -20101,7 +20094,7 @@ NMD::Pool NMD::NEG_fmt[4] = { }; -NMD::Pool NMD::CVT_D_fmt[4] = { +static struct Pool CVT_D_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa000137b, &CVT_D_S , 0, CP1_ }, /* CVT.D.S */ @@ -20117,7 +20110,7 @@ NMD::Pool NMD::CVT_D_fmt[4] = { }; -NMD::Pool NMD::CVT_S_fmt[4] = { +static struct Pool CVT_S_fmt[4] = { { instruction , 0 , 0 , 32, 0xfc007fff, 0xa0001b7b, &CVT_S_D , 0, CP1_ }, /* CVT.S.D */ @@ -20133,7 +20126,7 @@ NMD::Pool NMD::CVT_S_fmt[4] = { }; -NMD::Pool NMD::POOL32Fxf_1[32] = { +static struct Pool POOL32Fxf_1[32] = { { pool , MOV_fmt , 4 , 32, 0xfc001fff, 0xa000007b, 0 , 0, CP1_ }, /* MOV.fmt */ @@ -20233,7 +20226,7 @@ NMD::Pool NMD::POOL32Fxf_1[32] = { }; -NMD::Pool NMD::POOL32Fxf[4] = { +static struct Pool POOL32Fxf[4] = { { pool , POOL32Fxf_0 , 64 , 32, 0xfc0000ff, 0xa000003b, 0 , 0, CP1_ }, /* POOL32Fxf_0 */ @@ -20249,7 +20242,7 @@ NMD::Pool NMD::POOL32Fxf[4] = { }; -NMD::Pool NMD::POOL32F_3[8] = { +static struct Pool POOL32F_3[8] = { { pool , MIN_fmt , 2 , 32, 0xfc00003f, 0xa0000003, 0 , 0, CP1_ }, /* MIN.fmt */ @@ -20277,7 +20270,7 @@ NMD::Pool NMD::POOL32F_3[8] = { }; -NMD::Pool NMD::CMP_condn_S[32] = { +static struct Pool CMP_condn_S[32] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0xa0000005, &CMP_AF_S , 0, CP1_ }, /* CMP.AF.S */ @@ -20377,7 +20370,7 @@ NMD::Pool NMD::CMP_condn_S[32] = { }; -NMD::Pool NMD::CMP_condn_D[32] = { +static struct Pool CMP_condn_D[32] = { { instruction , 0 , 0 , 32, 0xfc0007ff, 0xa0000015, &CMP_AF_D , 0, CP1_ }, /* CMP.AF.D */ @@ -20477,7 +20470,7 @@ NMD::Pool NMD::CMP_condn_D[32] = { }; -NMD::Pool NMD::POOL32F_5[8] = { +static struct Pool POOL32F_5[8] = { { pool , CMP_condn_S , 32 , 32, 0xfc00003f, 0xa0000005, 0 , 0, CP1_ }, /* CMP.condn.S */ @@ -20505,7 +20498,7 @@ NMD::Pool NMD::POOL32F_5[8] = { }; -NMD::Pool NMD::POOL32F[8] = { +static struct Pool POOL32F[8] = { { pool , POOL32F_0 , 64 , 32, 0xfc000007, 0xa0000000, 0 , 0, CP1_ }, /* POOL32F_0 */ @@ -20533,7 +20526,7 @@ NMD::Pool NMD::POOL32F[8] = { }; -NMD::Pool NMD::POOL32S_0[64] = { +static struct Pool POOL32S_0[64] = { { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc0000000, 0 , 0, 0x0 }, /* POOL32S_0~*(0) */ @@ -20729,7 +20722,7 @@ NMD::Pool NMD::POOL32S_0[64] = { }; -NMD::Pool NMD::POOL32Sxf_4[128] = { +static struct Pool POOL32Sxf_4[128] = { { reserved_block , 0 , 0 , 32, 0xfc00ffff, 0xc000013c, 0 , 0, 0x0 }, /* POOL32Sxf_4~*(0) */ @@ -21117,7 +21110,7 @@ NMD::Pool NMD::POOL32Sxf_4[128] = { }; -NMD::Pool NMD::POOL32Sxf[8] = { +static struct Pool POOL32Sxf[8] = { { reserved_block , 0 , 0 , 32, 0xfc0001ff, 0xc000003c, 0 , 0, 0x0 }, /* POOL32Sxf~*(0) */ @@ -21145,7 +21138,7 @@ NMD::Pool NMD::POOL32Sxf[8] = { }; -NMD::Pool NMD::POOL32S_4[8] = { +static struct Pool POOL32S_4[8] = { { instruction , 0 , 0 , 32, 0xfc00003f, 0xc0000004, &EXTD , 0, MIPS64_ }, /* EXTD */ @@ -21173,7 +21166,7 @@ NMD::Pool NMD::POOL32S_4[8] = { }; -NMD::Pool NMD::POOL32S[8] = { +static struct Pool POOL32S[8] = { { pool , POOL32S_0 , 64 , 32, 0xfc000007, 0xc0000000, 0 , 0, 0x0 }, /* POOL32S_0 */ @@ -21201,7 +21194,7 @@ NMD::Pool NMD::POOL32S[8] = { }; -NMD::Pool NMD::P_LUI[2] = { +static struct Pool P_LUI[2] = { { instruction , 0 , 0 , 32, 0xfc000002, 0xe0000000, &LUI , 0, 0x0 }, /* LUI */ @@ -21211,7 +21204,7 @@ NMD::Pool NMD::P_LUI[2] = { }; -NMD::Pool NMD::P_GP_LH[2] = { +static struct Pool P_GP_LH[2] = { { instruction , 0 , 0 , 32, 0xfc1c0001, 0x44100000, &LH_GP_ , 0, 0x0 }, /* LH[GP] */ @@ -21221,7 +21214,7 @@ NMD::Pool NMD::P_GP_LH[2] = { }; -NMD::Pool NMD::P_GP_SH[2] = { +static struct Pool P_GP_SH[2] = { { instruction , 0 , 0 , 32, 0xfc1c0001, 0x44140000, &SH_GP_ , 0, 0x0 }, /* SH[GP] */ @@ -21231,7 +21224,7 @@ NMD::Pool NMD::P_GP_SH[2] = { }; -NMD::Pool NMD::P_GP_CP1[4] = { +static struct Pool P_GP_CP1[4] = { { instruction , 0 , 0 , 32, 0xfc1c0003, 0x44180000, &LWC1_GP_ , 0, CP1_ }, /* LWC1[GP] */ @@ -21247,7 +21240,7 @@ NMD::Pool NMD::P_GP_CP1[4] = { }; -NMD::Pool NMD::P_GP_M64[4] = { +static struct Pool P_GP_M64[4] = { { instruction , 0 , 0 , 32, 0xfc1c0003, 0x441c0000, &LWU_GP_ , 0, MIPS64_ }, /* LWU[GP] */ @@ -21263,7 +21256,7 @@ NMD::Pool NMD::P_GP_M64[4] = { }; -NMD::Pool NMD::P_GP_BH[8] = { +static struct Pool P_GP_BH[8] = { { instruction , 0 , 0 , 32, 0xfc1c0000, 0x44000000, &LB_GP_ , 0, 0x0 }, /* LB[GP] */ @@ -21291,7 +21284,7 @@ NMD::Pool NMD::P_GP_BH[8] = { }; -NMD::Pool NMD::P_LS_U12[16] = { +static struct Pool P_LS_U12[16] = { { instruction , 0 , 0 , 32, 0xfc00f000, 0x84000000, &LB_U12_ , 0, 0x0 }, /* LB[U12] */ @@ -21343,7 +21336,7 @@ NMD::Pool NMD::P_LS_U12[16] = { }; -NMD::Pool NMD::P_PREF_S9_[2] = { +static struct Pool P_PREF_S9_[2] = { { instruction , 0 , 0 , 32, 0xffe07f00, 0xa7e01800, &SYNCI , 0, 0x0 }, /* SYNCI */ @@ -21353,7 +21346,7 @@ NMD::Pool NMD::P_PREF_S9_[2] = { }; -NMD::Pool NMD::P_LS_S0[16] = { +static struct Pool P_LS_S0[16] = { { instruction , 0 , 0 , 32, 0xfc007f00, 0xa4000000, &LB_S9_ , 0, 0x0 }, /* LB[S9] */ @@ -21405,7 +21398,7 @@ NMD::Pool NMD::P_LS_S0[16] = { }; -NMD::Pool NMD::ASET_ACLR[2] = { +static struct Pool ASET_ACLR[2] = { { instruction , 0 , 0 , 32, 0xfe007f00, 0xa4001100, &ASET , 0, MCU_ }, /* ASET */ @@ -21415,7 +21408,7 @@ NMD::Pool NMD::ASET_ACLR[2] = { }; -NMD::Pool NMD::P_LL[4] = { +static struct Pool P_LL[4] = { { instruction , 0 , 0 , 32, 0xfc007f03, 0xa4005100, &LL , 0, 0x0 }, /* LL */ @@ -21431,7 +21424,7 @@ NMD::Pool NMD::P_LL[4] = { }; -NMD::Pool NMD::P_SC[4] = { +static struct Pool P_SC[4] = { { instruction , 0 , 0 , 32, 0xfc007f03, 0xa4005900, &SC , 0, 0x0 }, /* SC */ @@ -21447,7 +21440,7 @@ NMD::Pool NMD::P_SC[4] = { }; -NMD::Pool NMD::P_LLD[8] = { +static struct Pool P_LLD[8] = { { instruction , 0 , 0 , 32, 0xfc007f07, 0xa4007100, &LLD , 0, MIPS64_ }, /* LLD */ @@ -21475,7 +21468,7 @@ NMD::Pool NMD::P_LLD[8] = { }; -NMD::Pool NMD::P_SCD[8] = { +static struct Pool P_SCD[8] = { { instruction , 0 , 0 , 32, 0xfc007f07, 0xa4007900, &SCD , 0, MIPS64_ }, /* SCD */ @@ -21503,7 +21496,7 @@ NMD::Pool NMD::P_SCD[8] = { }; -NMD::Pool NMD::P_LS_S1[16] = { +static struct Pool P_LS_S1[16] = { { reserved_block , 0 , 0 , 32, 0xfc007f00, 0xa4000100, 0 , 0, 0x0 }, /* P.LS.S1~*(0) */ @@ -21555,7 +21548,7 @@ NMD::Pool NMD::P_LS_S1[16] = { }; -NMD::Pool NMD::P_PREFE[2] = { +static struct Pool P_PREFE[2] = { { instruction , 0 , 0 , 32, 0xffe07f00, 0xa7e01a00, &SYNCIE , 0, CP0_ | EVA_ }, /* SYNCIE */ @@ -21565,7 +21558,7 @@ NMD::Pool NMD::P_PREFE[2] = { }; -NMD::Pool NMD::P_LLE[4] = { +static struct Pool P_LLE[4] = { { instruction , 0 , 0 , 32, 0xfc007f03, 0xa4005200, &LLE , 0, CP0_ | EVA_ }, /* LLE */ @@ -21581,7 +21574,7 @@ NMD::Pool NMD::P_LLE[4] = { }; -NMD::Pool NMD::P_SCE[4] = { +static struct Pool P_SCE[4] = { { instruction , 0 , 0 , 32, 0xfc007f03, 0xa4005a00, &SCE , 0, CP0_ | EVA_ }, /* SCE */ @@ -21597,7 +21590,7 @@ NMD::Pool NMD::P_SCE[4] = { }; -NMD::Pool NMD::P_LS_E0[16] = { +static struct Pool P_LS_E0[16] = { { instruction , 0 , 0 , 32, 0xfc007f00, 0xa4000200, &LBE , 0, CP0_ | EVA_ }, /* LBE */ @@ -21649,7 +21642,7 @@ NMD::Pool NMD::P_LS_E0[16] = { }; -NMD::Pool NMD::P_LS_WM[2] = { +static struct Pool P_LS_WM[2] = { { instruction , 0 , 0 , 32, 0xfc000f00, 0xa4000400, &LWM , 0, XMMS_ }, /* LWM */ @@ -21659,7 +21652,7 @@ NMD::Pool NMD::P_LS_WM[2] = { }; -NMD::Pool NMD::P_LS_UAWM[2] = { +static struct Pool P_LS_UAWM[2] = { { instruction , 0 , 0 , 32, 0xfc000f00, 0xa4000500, &UALWM , 0, XMMS_ }, /* UALWM */ @@ -21669,7 +21662,7 @@ NMD::Pool NMD::P_LS_UAWM[2] = { }; -NMD::Pool NMD::P_LS_DM[2] = { +static struct Pool P_LS_DM[2] = { { instruction , 0 , 0 , 32, 0xfc000f00, 0xa4000600, &LDM , 0, MIPS64_ }, /* LDM */ @@ -21679,7 +21672,7 @@ NMD::Pool NMD::P_LS_DM[2] = { }; -NMD::Pool NMD::P_LS_UADM[2] = { +static struct Pool P_LS_UADM[2] = { { instruction , 0 , 0 , 32, 0xfc000f00, 0xa4000700, &UALDM , 0, MIPS64_ }, /* UALDM */ @@ -21689,7 +21682,7 @@ NMD::Pool NMD::P_LS_UADM[2] = { }; -NMD::Pool NMD::P_LS_S9[8] = { +static struct Pool P_LS_S9[8] = { { pool , P_LS_S0 , 16 , 32, 0xfc000700, 0xa4000000, 0 , 0, 0x0 }, /* P.LS.S0 */ @@ -21717,7 +21710,7 @@ NMD::Pool NMD::P_LS_S9[8] = { }; -NMD::Pool NMD::P_BAL[2] = { +static struct Pool P_BAL[2] = { { branch_instruction , 0 , 0 , 32, 0xfe000000, 0x28000000, &BC_32_ , 0, 0x0 }, /* BC[32] */ @@ -21727,7 +21720,7 @@ NMD::Pool NMD::P_BAL[2] = { }; -NMD::Pool NMD::P_BALRSC[2] = { +static struct Pool P_BALRSC[2] = { { branch_instruction , 0 , 0 , 32, 0xffe0f000, 0x48008000, &BRSC , 0, 0x0 }, /* BRSC */ @@ -21737,7 +21730,7 @@ NMD::Pool NMD::P_BALRSC[2] = { }; -NMD::Pool NMD::P_J[16] = { +static struct Pool P_J[16] = { { call_instruction , 0 , 0 , 32, 0xfc00f000, 0x48000000, &JALRC_32_ , 0, 0x0 }, /* JALRC[32] */ @@ -21789,7 +21782,7 @@ NMD::Pool NMD::P_J[16] = { }; -NMD::Pool NMD::P_BR3A[32] = { +static struct Pool P_BR3A[32] = { { branch_instruction , 0 , 0 , 32, 0xfc1fc000, 0x88004000, &BC1EQZC , 0, CP1_ }, /* BC1EQZC */ @@ -21889,7 +21882,7 @@ NMD::Pool NMD::P_BR3A[32] = { }; -NMD::Pool NMD::P_BR1[4] = { +static struct Pool P_BR1[4] = { { branch_instruction , 0 , 0 , 32, 0xfc00c000, 0x88000000, &BEQC_32_ , 0, 0x0 }, /* BEQC[32] */ @@ -21905,7 +21898,7 @@ NMD::Pool NMD::P_BR1[4] = { }; -NMD::Pool NMD::P_BR2[4] = { +static struct Pool P_BR2[4] = { { branch_instruction , 0 , 0 , 32, 0xfc00c000, 0xa8000000, &BNEC_32_ , 0, 0x0 }, /* BNEC[32] */ @@ -21921,7 +21914,7 @@ NMD::Pool NMD::P_BR2[4] = { }; -NMD::Pool NMD::P_BRI[8] = { +static struct Pool P_BRI[8] = { { branch_instruction , 0 , 0 , 32, 0xfc1c0000, 0xc8000000, &BEQIC , 0, 0x0 }, /* BEQIC */ @@ -21949,7 +21942,7 @@ NMD::Pool NMD::P_BRI[8] = { }; -NMD::Pool NMD::P32[32] = { +static struct Pool P32[32] = { { pool , P_ADDIU , 2 , 32, 0xfc000000, 0x00000000, 0 , 0, 0x0 }, /* P.ADDIU */ @@ -22049,7 +22042,7 @@ NMD::Pool NMD::P32[32] = { }; -NMD::Pool NMD::P16_SYSCALL[2] = { +static struct Pool P16_SYSCALL[2] = { { instruction , 0 , 0 , 16, 0xfffc , 0x1008 , &SYSCALL_16_ , 0, 0x0 }, /* SYSCALL[16] */ @@ -22059,7 +22052,7 @@ NMD::Pool NMD::P16_SYSCALL[2] = { }; -NMD::Pool NMD::P16_RI[4] = { +static struct Pool P16_RI[4] = { { reserved_block , 0 , 0 , 16, 0xfff8 , 0x1000 , 0 , 0, 0x0 }, /* P16.RI~*(0) */ @@ -22075,7 +22068,7 @@ NMD::Pool NMD::P16_RI[4] = { }; -NMD::Pool NMD::P16_MV[2] = { +static struct Pool P16_MV[2] = { { pool , P16_RI , 4 , 16, 0xffe0 , 0x1000 , 0 , 0, 0x0 }, /* P16.RI */ @@ -22085,7 +22078,7 @@ NMD::Pool NMD::P16_MV[2] = { }; -NMD::Pool NMD::P16_SHIFT[2] = { +static struct Pool P16_SHIFT[2] = { { instruction , 0 , 0 , 16, 0xfc08 , 0x3000 , &SLL_16_ , 0, 0x0 }, /* SLL[16] */ @@ -22095,7 +22088,7 @@ NMD::Pool NMD::P16_SHIFT[2] = { }; -NMD::Pool NMD::POOL16C_00[4] = { +static struct Pool POOL16C_00[4] = { { instruction , 0 , 0 , 16, 0xfc0f , 0x5000 , &NOT_16_ , 0, 0x0 }, /* NOT[16] */ @@ -22111,7 +22104,7 @@ NMD::Pool NMD::POOL16C_00[4] = { }; -NMD::Pool NMD::POOL16C_0[2] = { +static struct Pool POOL16C_0[2] = { { pool , POOL16C_00 , 4 , 16, 0xfc03 , 0x5000 , 0 , 0, 0x0 }, /* POOL16C_00 */ @@ -22121,7 +22114,7 @@ NMD::Pool NMD::POOL16C_0[2] = { }; -NMD::Pool NMD::P16C[2] = { +static struct Pool P16C[2] = { { pool , POOL16C_0 , 2 , 16, 0xfc01 , 0x5000 , 0 , 0, 0x0 }, /* POOL16C_0 */ @@ -22131,7 +22124,7 @@ NMD::Pool NMD::P16C[2] = { }; -NMD::Pool NMD::P16_A1[2] = { +static struct Pool P16_A1[2] = { { reserved_block , 0 , 0 , 16, 0xfc40 , 0x7000 , 0 , 0, 0x0 }, /* P16.A1~*(0) */ @@ -22141,7 +22134,7 @@ NMD::Pool NMD::P16_A1[2] = { }; -NMD::Pool NMD::P_ADDIU_RS5_[2] = { +static struct Pool P_ADDIU_RS5_[2] = { { instruction , 0 , 0 , 16, 0xffe8 , 0x9008 , &NOP_16_ , 0, 0x0 }, /* NOP[16] */ @@ -22151,7 +22144,7 @@ NMD::Pool NMD::P_ADDIU_RS5_[2] = { }; -NMD::Pool NMD::P16_A2[2] = { +static struct Pool P16_A2[2] = { { instruction , 0 , 0 , 16, 0xfc08 , 0x9000 , &ADDIU_R2_ , 0, 0x0 }, /* ADDIU[R2] */ @@ -22161,7 +22154,7 @@ NMD::Pool NMD::P16_A2[2] = { }; -NMD::Pool NMD::P16_ADDU[2] = { +static struct Pool P16_ADDU[2] = { { instruction , 0 , 0 , 16, 0xfc01 , 0xb000 , &ADDU_16_ , 0, 0x0 }, /* ADDU[16] */ @@ -22171,7 +22164,7 @@ NMD::Pool NMD::P16_ADDU[2] = { }; -NMD::Pool NMD::P16_JRC[2] = { +static struct Pool P16_JRC[2] = { { branch_instruction , 0 , 0 , 16, 0xfc1f , 0xd800 , &JRC , 0, 0x0 }, /* JRC */ @@ -22181,7 +22174,7 @@ NMD::Pool NMD::P16_JRC[2] = { }; -NMD::Pool NMD::P16_BR1[2] = { +static struct Pool P16_BR1[2] = { { branch_instruction , 0 , 0 , 16, 0xfc00 , 0xd800 , &BEQC_16_ , &BEQC_16__cond , XMMS_ }, /* BEQC[16] */ @@ -22191,7 +22184,7 @@ NMD::Pool NMD::P16_BR1[2] = { }; -NMD::Pool NMD::P16_BR[2] = { +static struct Pool P16_BR[2] = { { pool , P16_JRC , 2 , 16, 0xfc0f , 0xd800 , 0 , 0, 0x0 }, /* P16.JRC */ @@ -22201,7 +22194,7 @@ NMD::Pool NMD::P16_BR[2] = { }; -NMD::Pool NMD::P16_SR[2] = { +static struct Pool P16_SR[2] = { { instruction , 0 , 0 , 16, 0xfd00 , 0x1c00 , &SAVE_16_ , 0, 0x0 }, /* SAVE[16] */ @@ -22211,7 +22204,7 @@ NMD::Pool NMD::P16_SR[2] = { }; -NMD::Pool NMD::P16_4X4[4] = { +static struct Pool P16_4X4[4] = { { instruction , 0 , 0 , 16, 0xfd08 , 0x3c00 , &ADDU_4X4_ , 0, XMMS_ }, /* ADDU[4X4] */ @@ -22227,7 +22220,7 @@ NMD::Pool NMD::P16_4X4[4] = { }; -NMD::Pool NMD::P16_LB[4] = { +static struct Pool P16_LB[4] = { { instruction , 0 , 0 , 16, 0xfc0c , 0x5c00 , &LB_16_ , 0, 0x0 }, /* LB[16] */ @@ -22243,7 +22236,7 @@ NMD::Pool NMD::P16_LB[4] = { }; -NMD::Pool NMD::P16_LH[4] = { +static struct Pool P16_LH[4] = { { instruction , 0 , 0 , 16, 0xfc09 , 0x7c00 , &LH_16_ , 0, 0x0 }, /* LH[16] */ @@ -22259,7 +22252,7 @@ NMD::Pool NMD::P16_LH[4] = { }; -NMD::Pool NMD::P16[32] = { +static struct Pool P16[32] = { { pool , P16_MV , 2 , 16, 0xfc00 , 0x1000 , 0 , 0, 0x0 }, /* P16.MV */ @@ -22359,7 +22352,7 @@ NMD::Pool NMD::P16[32] = { }; -NMD::Pool NMD::MAJOR[2] = { +static struct Pool MAJOR[2] = { { pool , P32 , 32 , 32, 0x10000000, 0x00000000, 0 , 0, 0x0 }, /* P32 */ @@ -22367,3 +22360,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) +{ + return Disassemble(data, dis, type, MAJOR, 2); +} diff --git a/disas/nanomips.h b/disas/nanomips.h index d27711b4e2..da1ec2ad8f 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -63,6 +63,18 @@ enum TABLE_ATTRIBUTE_TYPE { ALL_ATTRIBUTES = 0xffffffffull, }; +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; +}; + class NMD { @@ -73,198 +85,9 @@ 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); - - 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 Aug 15 07:26:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943211 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 A38B4C00140 for ; Mon, 15 Aug 2022 07:36:18 +0000 (UTC) Received: from localhost ([::1]:38432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUe1-0003K2-F5 for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:36:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUY4-0008Rh-5b for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:08 -0400 Received: from mail-eopbgr80122.outbound.protection.outlook.com ([40.107.8.122]:52230 helo=EUR04-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 1oNUY1-0000jm-Dp for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eXWAgbDWq+FyEiVN3U4qthzIOH6Qr7fF0acumtCHpaaI5e1/2oFIhhnvGxl/zcCl+CJKx2lDPz6J4GKxZ/x/xWvSQKoKjyuNNhZZlpgl/1tjADkymMnWRpTcWfRqxf83Sj/yn8o8ueW+rTS/3/jGPYjTu8rzzU6PaxNf7j9uWr/BmuJ3xiPBTC6cS8tiffrNsAkDvNqfcU7LNZsP+kOtfsUNyeVxIZ61xAYhpuQR6V6Aithae9FFQNeKNqDVODc8Wa4ZXsO70mOe2pV0G8tT4d9mRoua2teUHFq4QJLhSyEju8C6wo9ckZBG9xtAM4pQ0UoE8+6g9Z03s4y+Ei2hkg== 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=eoLvbZbtjo+QPQn5q7Cv7jU/N4X43Xz+G/TkOOipvUI=; b=Mo2Mz4EJX1rlQxXndOabX4FEsf8o3IDPjdAxcEsl+amvKojFHEzpzIlo6i+QpQb2tjaaPti+QD87GRElQpHc4sPEidJRkNlG/0L2gUywELyvueVoB1drN0H/Zz6Z5GhkxPTblNjoHgc0k4YMwN3VQtjTCYkbRKTV4WlrlG+vEvqrK2d8T3+dVv0FCCXq4Raqqb/C41h9YZ9eGEsvhypTjk1mOdd4DCI5zUcstjdzIXY6RSp/czl9L5mw4UzbetR3Fexb1eppgAON7Srjics1JtqXt1QdT+Lmr+a+bZUwCmDfLI6rBFVwwh6LWhPIaSp/jiQFuKu2Z7yPv+x43OU4qA== 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=eoLvbZbtjo+QPQn5q7Cv7jU/N4X43Xz+G/TkOOipvUI=; b=n+bAmeu9PJ0iuhxzDDpqbsYgU6vZaf6Qj4w7xNSk2ehDkUpChqEgtMlU5VVfstZgiGYFdlVj1DdQ15Y3B7HJlDE/t93um6rY20e/4Jkb3unIFfTu9QutaC1OYYNcRWGcwAnx/3bnNJm7Vek3Oyn+N38QSrRDr6ShTl1qal/rbl8= 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 PA4PR03MB8134.eurprd03.prod.outlook.com (2603:10a6:102:2a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.19; Mon, 15 Aug 2022 07:29:37 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:29:37 +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 08/20] disas/nanomips: Remove NMD class Date: Mon, 15 Aug 2022 09:26:17 +0200 Message-Id: <20220815072629.12865-9-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 416f6ee6-6293-405c-1808-08da7e8fe879 X-MS-TrafficTypeDiagnostic: PA4PR03MB8134:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tTnvxmaNh2VqNOAZB/neoadqi5hu4uAplItYgi00XFivlAPdLrPgLQaMXbDUg74JFktnatQx6qq0xWTDvRCRYuEtc0rlkPb1uZgVtETK5ArOnhlvW4rCiOdGTa92PFrD/38NqAlGXk7MgjcoX/Xn3jYqri68zB0XdAHSkcJjspITw1y/oo+UjOPjgKpFdM5q+K/Ma2E+rzVP1eW+GDDzKxUHEUJ5lx2vxWxZX/vUPje8le/SfFeZExnRIjDUSVcVOE7Hgp08Qiz7MbxiMNThO+iEqJCZ2RGXlD9VNGC2zYGXFJTKNZY6C+mLwf4vX51mJ+BfxAsNa15RNVbOvSyRcKdXeAh5S5W8WsgChsxQXGPpe4IXZxFgp/KoADfZZxh9rM+jlRph8o2Z7DY0lBDAkTUP4WQCpR7+igacWQ2VfyZbj4sJvXl48nPI/7rimaGzE3WhJ97bphD4Y/ozOYzpf5dxmedzPgymXlNFWGmtDZCO0PBepRxMRkzIBlz5PucB/aRZyUmanwU1UfZ06ZVZR5n5+/J0UMVJyYhHu4a7YAStgZwy28XBbgFAf8/D2h8dOi4CGBsDlfDPx7wf8HJQ04JTYZwJfipre5fvvcE7jfsX5/J8MKt9M5rmUgbmF5YfxB8Lehjb5KtWcXVuqI/BhXcnzzrDVPKoZym2yGdUpA9ci5ccIZZFnTYiEBvQVvfnXKxq+b5LnNEeb06IELGR2Hce+HbipszVKb0gdNJJ0w4hTLg4wY+ZHkKnxuy7UDl+iWPeHR4r81X1pZFOX/FES9jAN3CgzSQWrd4cFsFi4Qo= 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)(376002)(366004)(346002)(39830400003)(136003)(396003)(38100700002)(2906002)(26005)(66556008)(5660300002)(66946007)(66476007)(6512007)(52116002)(6506007)(38350700002)(6916009)(478600001)(6486002)(107886003)(41300700001)(186003)(86362001)(2616005)(6666004)(316002)(83380400001)(4326008)(1076003)(8676002)(44832011)(8936002)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 88qSDWCffEbseBlnXGzjG4LVvmjekC+01rf9nADJbNeVIinFq//6n8yoY937ES1MCTq1Dhb7GyY0ofHupnJCX37rIhT3iPl5w5IO8+T4UBdW7+Yii/h6R3gubdRFMy3XLD69LofmHEacW938J4x1bfVxrTMvloALsC3TXoeeud2n7w+E4tIZD/E9K1K3TJGGBjuqkTRs0ygzpUUqCyLU01OEqOYQSB//3+yogRqZiigy0xPm2K5TYvfpEAiM2OVHpy0SWsdr/DDqZ8j8ZNYlbDD1za8SKbUKJOzFlT0Yq9miSwOVPvWblriYZScdsHsjl3JM0FT87Et81hoq9zxU/wRty+Ngg0iTKlnS0dik2nxuAMzHNWmU8eepF883cYhBgrpR+L+dsS5+dwx5nj540CTtm9qz1fWwzqTRUp5udRgdo7hR6CH3vAOCTZq9amIecUZS9vA96/exaY5wLEZWODGwmPuC/YqExLlUI39/cYRb73jUK3o0DyH8m5I4rP1PnellVm3iPayynWgovBLSQcyqFcAjFNufLFdbUrJhiUATWDDr1rmL42G05BtsjcoFlhPOnbw/uY4wl6R0AhSMXOdu8O583sPv6Dv49T/gQCAno/LczTVjTT99OdnLtTuVvH2ALqYZHcVCoXRarZNNUY4RmXNNC4necinJ43TBnNbIwQ8V8ZFEOmlPG+OfTJNze72tlepSQS+O9X58yqD8nBnM2IvkpDhX0uTqBH/ifAgg22AxQttHo3G2g+1cFeWtvMufzscg34/uEJ8Bg4lYfiur53HYllI9XhPhciHUOFvSUaQHWvVB5MUVGPOzmXppB4cqzZYo3TWrXQgABhOwVk1CfRTmFyivIDphRbVB3zYYK1+CBOQCMXt50YevvgQ4ucRdTWrM43w7VKeK5DL+Xm+HdALRLdniJNSTzJiAi8lgNXr4I/qGNe5Rlo42k5AfjyaBIS+cXjW7znN3inRdrZd9OLUNwWzJdu/HQGHUzrBODch/2Hf+ECkilHrj/grzpAPhUVQZG/Q+0cH4y5mp+BrgLTMMKyl7pXxlL4HWHF/UJlDKbR4QWn3P1WTvip5kdx167zFStTCuEciW/Xpdq/vplMOcrWkOSejMFNZ1rvHLdiGHg0TKR5I2+V1kgp2lIM3tG/Sh5U33nKwr1GzYLaUZtFkO4w7Wil+HJ3T4Cuc31YD+JYT8I7DGxKD5x7TXuP+fmE6ofG8FeWYn3UqqMFmYbiHP6gsHHUCNW6u3I7kOuNGCt+/Fa8tvCuNBbGjp2gWUzXDQ71iFtNe3Gk8b/ymN/WLfeiwH5dzSZSJw1clXQP6zf0s8es9/SyhNepPtNcqeNLPtEBdPcdoX1S1m40O/SYboawyXlXJSHVYC9GLLe6xu5/wTU8hyGnR/s7orwZ7eIHkEddvDLGh8jGe3mHgMP8UV35rdIaL1sZkuqfIiQJ09emiHOb7HujK4tJ31qPg1UQNw+drXQTRnKojc+w50WgE8rO75gki//P7P2IHNMpzfTT9pmguJqcigZTGO1jtYIaR8rKJNRx3607kaLjaYBgZx82dwjE4P31NOGEsG5FOEIcCuBc60GG+dEuf0Slx5xScOOiu5Vr6xvlDj/A== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 416f6ee6-6293-405c-1808-08da7e8fe879 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:29:37.3113 (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: 7hjernO1hIrfK05HKWauZ0ywuaasmiQKhgclY0HievoORFzrCRlsx5MFvW+EMXRcpbA74/KCN+l0VofaiNvXuHusDMf6TkgJJiu7prKytp8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB8134 Received-SPF: pass client-ip=40.107.8.122; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR04-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" 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 --- disas/nanomips.cpp | 204 ++++++++++++++++++++++----------------------- disas/nanomips.h | 14 ---- 2 files changed, 101 insertions(+), 117 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index c35ece428c..be6705d0c3 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -43,104 +43,6 @@ static img_address m_pc; static TABLE_ATTRIBUTE_TYPE m_requested_instruction_categories; -int nanomips_dis(char *buf, - unsigned address, - unsigned short one, - unsigned short two, - unsigned short three) -{ - std::string disasm; - uint16 bits[3] = {one, two, three}; - - TABLE_ENTRY_TYPE type; - m_pc = address; - m_requested_instruction_categories = ALL_ATTRIBUTES; - NMD d; - int size = d.Disassemble(bits, disasm, type); - - 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; - - 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, memaddr, 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]; @@ -742,7 +644,7 @@ static std::string ADDRESS(uint64 value, int instruction_size) } -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: @@ -768,9 +670,9 @@ 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, - TABLE_ENTRY_TYPE & type, const Pool *table, - int table_size) +static int Disassemble(const uint16 *data, std::string & dis, + TABLE_ENTRY_TYPE & type, const Pool *table, + int table_size) { try { @@ -22361,8 +22263,104 @@ static struct 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) { return Disassemble(data, dis, type, MAJOR, 2); } + +int nanomips_dis(char *buf, + unsigned address, + unsigned short one, + unsigned short two, + unsigned short three) +{ + std::string disasm; + uint16 bits[3] = {one, two, three}; + + TABLE_ENTRY_TYPE type; + m_pc = address; + m_requested_instruction_categories = ALL_ATTRIBUTES; + int size = Disassemble(bits, disasm, type); + + 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; + + 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, memaddr, 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 da1ec2ad8f..fb832619e1 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -76,18 +76,4 @@ struct Pool { }; -class NMD -{ -public: - - int Disassemble(const uint16 *data, std::string & dis, - TABLE_ENTRY_TYPE & type); - -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); -}; - #endif From patchwork Mon Aug 15 07: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: 12943219 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 ADE0FC00140 for ; Mon, 15 Aug 2022 07:37:54 +0000 (UTC) Received: from localhost ([::1]:39640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUfY-00047x-Sj for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:37:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUXm-0008Oj-9S for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:29:55 -0400 Received: from mail-vi1eur05on2137.outbound.protection.outlook.com ([40.107.21.137]:37263 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 1oNUXj-0000jI-Sh for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:29:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YyvFWgmv3//I3EseurvEPSVg9vxYkJvp5bh+0m4azRid0I5Xiwt+Dw6a8+ozL4cjiAarAB4ZzVrs9CSwc+uhc5a2VPQS1INfeqhaK071OpwoXzLz+39lGaTVjyx61+h3XWtbBSn5ktXQTTe/r+DYq96L2kyWc5DmbUsl9x2Wld9h5xHWCKOTQpG8NRHo96njv7uzwXkGy0eZiNAFpRn/fcp+joZROLGzs+3Tjhd5DiIPs1nN9i4j5ELwiCNzGIHAZ8DVLP/o24COOUNXDh7LSOU3uazWIoVhkRnKiRSRYC43M7Ylu4Z2yjcrTVkO5Cukgh12tDYwEqI4zJ9SD2Kj7w== 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=AQfCSJsHsYrANhzCQk80tLAUfKqg2MA8KG18UVMpRQk=; b=PnpAHJ2IP8qtu8C9dP6yFqUmb+2xJs3Bfcs+MfouQN9m3EQXdOihOCiTpmvv9VowIq0eXBNKVl6yOBgcoB0JxEc0Fvii1vwBt6d0Ljc++gAuxsdhFxTCqMrU3iYt4DfVB5vr1dTQhoqjXt4PQ4mXSzCI0CDinyZuhz/wuHollTi1e3ZvHp3PGDHXMpBhJ/Qo2p+cPbJfObQ81//caMipnbiafXQoyO3EJLrnE2HsmBs4CoQTmgBq1ANjAiIqc0J2BCfmcnH6kMW45cvJ+8LlFvA0hAbSxs+TUvXArHFkf3GU7Vaw41weBh+eiK6rtG6fHoww05N7k7ackk/wBh7lzA== 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=AQfCSJsHsYrANhzCQk80tLAUfKqg2MA8KG18UVMpRQk=; b=UR7cbWmAya/T31d4QG0S2jVkbOw2X0x0IqhQ6QAD/aJEwdTQQdgQ+2Wxk6wEUe2lD5yGm78OcM2gqfR/a3+kNpn0smTPaeNP+uuGMM8f6MVvSkRXbxRj4QLNMqN0zhu/4U5uq6Wx9BF0c38TMHOYZfeSTNobQBxEPRwwIuwwUG8= 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 AM0PR03MB4515.eurprd03.prod.outlook.com (2603:10a6:208:c2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.28; Mon, 15 Aug 2022 07:29:43 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:29:43 +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 09/20] disas/nanomips: Move typedefs etc to nanomips.cpp Date: Mon, 15 Aug 2022 09:26:18 +0200 Message-Id: <20220815072629.12865-10-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: db78d62e-dbc2-4976-562e-08da7e8febf2 X-MS-TrafficTypeDiagnostic: AM0PR03MB4515:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5FnuUfKj1wWSSsgGH2+tUf1k1K+dBchXrCrGZk0QHfHZcHZuBxPSHpRbMckWnTZxmOozD9auA91uECcQecbnSAw2GPmiJ08/w+XT9JIQfBl+MZyXIjZwsoeVaMctHb9Yzwgyv/lcuEF/Ivl4DocUM1JKBwgaGo7X1sYlBOGN7JzrucvO+ONjqkNqtjwpjWOY72oQP5fvItCGnYLd6wJtQ5Bve/Pt4CqyhYzxLi7ivwE+fLPUlL6jYx3lG0j7V1tMOU+RvZZlw1dTHKSC6XQFeQBgdA9OP8cmXW7OMFUwWaGSdQhKSCpalm3HfiKEvYdCtDs8t8gz5zlRW/Wf4fNS1qP33mp1Zu9jBK9D73NvgXr2DBU4c71bmu0Gy92rxn43PDYidjaGx7AlAwBHrOxSToZLKtJ8sADSP0a/fDI4L5fA+aCb+WlhRmct9IedSIlnvQv4V4ywbs6LfAnHvD/PCq8SHl7qiMClCM20Aktg7gQVzU+3seOHllRk2KQyzQQZJm2qL7uzdzNOVsuKI3tDgdM+IshYkGpBu8LU1H8mIGNgWXE4mxwpdTle2Hg4iK7X0IjG7hQeYm+K6zegIWzHieJUIxclT/oJvnNYqMPFEnZ7/jYY6705LDxCAbfwLWj5GhM78ahqpEQjfxumvb099+o/1gIoW7LI4P9p6E9sFLtIvYlGPCVhd9/iIBb+buN45xY6zkoV5O2vBE6OiVOBnqdyR2TZnHP8d1AA/os6hiG8mQvLjDpMYwkm3Cgl9zpFglVdXd81rXKxaKz/38gkOTIutgn4sYwJEugUFNYA0FA= 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)(39830400003)(366004)(136003)(346002)(376002)(396003)(86362001)(107886003)(186003)(1076003)(2616005)(38350700002)(83380400001)(38100700002)(5660300002)(8936002)(36756003)(66556008)(66476007)(8676002)(4326008)(66946007)(2906002)(44832011)(478600001)(41300700001)(52116002)(26005)(6512007)(6506007)(6666004)(6486002)(316002)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AHliaVupNE2CcYFoEZmx+MRdmRQAABl0UJJ4bT1O45Q2KQ4yvVHcYzEibU0BjDwxxp6t/Z53bJVqW2kNUJQToElgPjDf336r7kmOwRCEVNd+8z4WkFw9JhlVs51rbK5cdadJZM5eKDc4QTSQF9NbX5qdxppMTEms5YzldoQQtgGCpCriXLM5cCLY4xmh6SlLLDNuglEeQ9wPeu7gjChMetyQvQw2ptVhon+Uq7CKZ6SdXmrJkiCZ+X7sLL+34h6OlhjcK4l5Z4zx9Wc/Ui3s/hMDoqz3zCoYtYlpU5AUiZ76/84yIlWY9qrbuXA9Pvw++39FB37YYOkR3v7akwocZtooIKdwDgWAwdAusidpByci8DLFSRmimP0SCvqu3GWTQIqcRSW53YYTuFvU3N7gIWUXpJzbop0r/HB3pjTLkZI85KrlmRgJW9l+eVjMA84BpybheJehyIjJHYYl7aCgEoieEkyR4/FKa2kJaVKD8JpeaxIf/01M69u1RqraLfJ5FozoNO9ALG/yNGSxEgYlW9ym9w3vPsBMMUtCnRG7kmYb2ObqcjcysORqmMXvb/1iibya5ox6BjtHfec2yRyYipY7AcZkxFswV5OH+d2d/xQpkJxPyaS8BgQ5+p5V3/Jssl0IMBsbbTIynFYMVqf6lcGUiSbwkEYzPYG8R+GUvf0LO90+7d7+i9h1B7FGU0WDsNsv9nYoqrAoD4yFw/6nznlehL6w6F8Ypj809zCicQSrR07lIcW6u51c66yVHHkMRLa1EfThh1B9YxmOJfDti6bC4C+w6tc2yTqFR23XFBN7Su9bY2x4DNbMqC7DPx5mj32vIgoKS1XrVAbZvA700Dx2C/L5Pq4y5ELSctgWlzs7bwuifYuMKhHtx3NCKUHl04sFHNsDHy+euUCO/xtuCcJmTWGfAjtbQyfI6DXpLL5X1tePhYQq4ujfwB7avH8azSLkXdwEaJCFnWPCykmVw9V/yv3MvvmA+/r8pdTdW/cqOjINhAyn5mrnAUYvnQVFGVlBAq2o86hzcT5uTFEya+6kj9i8UmgcarPc1Dj0jfc22Lv5URoAOVz96YfOt4J4Swm8Mb6cO0BvcnClVphe5mxaivVGHRZJgyh4FbS+T0o4q9dFI4hLqzlGG+Q46Rgqve+y2Z7Xdv/V4yMM9aInKRKR2v/oBePR7rC8keEtzNAS2C/isVNg0QQYAU3so2EdvhIYYa9HIzGPcTl84cgFrQf0eg/Hu1B+sRbYyGUoVa43CPoxtYIK45731RGWTaolcWPgQCXm4rs6pNO2W/x2Q/er4aAyIyl4hbRKB1wff6nPrqQSsXkLLb3eJ+oI34/SwBHoR8Tsq3BzcVrzyEROmhZbZ9QFh65rzMn/cRycmDHj2NOghiUyPeactWfvG0usbbq0iStzzyndSs9tqilZHhRXKlfYtR2LhgWeggVUm2o0fPAAaGdGtQQoxipyyQJxRGnFAO6DMFy6BqaQmIm8wOaJH6nKAUVN4Lzqkd4o205T7vFAmxPptoseBI1sGASk0qUjbSm5zza8AxqSnVDPCMvRwzxsHn8m2fyxca0DTbbJuK3BKxJV9Ws0RlBTHeJbXxpKT2Sbln4VMoLvHFA5KQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: db78d62e-dbc2-4976-562e-08da7e8febf2 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:29:43.1234 (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: jT7DsnVeKxg9VEDweAuIfSJaG970PZ5VmKf1Ao9HGcmJYw9riGe8nX6LgS+G3ofzYeIwnrXbckwoMY9t+gFtWVOzGAiBaxfhtjo2Jybtvw8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB4515 Received-SPF: pass client-ip=40.107.21.137; 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 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é --- disas/nanomips.cpp | 53 +++++++++++++++++++++++++++++++++++++++++++++- disas/nanomips.h | 51 -------------------------------------------- 2 files changed, 52 insertions(+), 52 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index be6705d0c3..cab53f482b 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -36,7 +36,58 @@ #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; + +typedef bool(*conditional_function)(uint64 instruction); +typedef std::string(*disassembly_function)(uint64 instruction); + +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, +}; + +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; +}; + #define IMGASSERTONCE(test) diff --git a/disas/nanomips.h b/disas/nanomips.h index fb832619e1..b3186971ee 100644 --- a/disas/nanomips.h +++ b/disas/nanomips.h @@ -23,57 +23,6 @@ #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; - -typedef bool(*conditional_function)(uint64 instruction); -typedef std::string(*disassembly_function)(uint64 instruction); - -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, -}; - -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; -}; #endif From patchwork Mon Aug 15 07: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: 12943228 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 C9467C00140 for ; Mon, 15 Aug 2022 07:43:05 +0000 (UTC) Received: from localhost ([::1]:47966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUka-0001XP-Jk for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:43:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUXv-0008P7-T6 for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:04 -0400 Received: from mail-vi1eur05on2116.outbound.protection.outlook.com ([40.107.21.116]:36512 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 1oNUXq-0000kD-Fk for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:29:57 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JJjdFvBg4e8WqjoBDlMT9or+QcosIXWnc8UdWv28u3+foSTcgE2sS6vLE+vn1aQO2lA7s12lpMORrGBa2Crx+dDTyc+uRrBScWWQhj5VE2vQIL+M8rFm8bG1P/obR7ddlE6nbkxAQJLdBZcIWkYJswHOCUfbd70vhQ5X4/r9KqjtxRf1TYUM+hQcb2LUq7d26yBad8JH7pSht7RcBe9Zd52SxCaJNnvQ5TkwqWvPja5bP27ti46HiKgrEgPzSDyEiOyeog5x8ddO/BlJM+6gVO6/usR3ae+mPk1+c65LyPt0a6ucYEOhErbGZrssKMBvAnzLX5zSaVBKoUUtDlHr0w== 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=9fLuU5uh0Q9NgvwZqa3Zzh1S6AcQ9PiX1+CJL9lfeQA=; b=hzo0efGIt7fTfArzmeLoYsGfQ5e1cM6/TjmPD8XD2IQj46us8EZtSGCIzs26AAY0IzysXoPHeo1+jmgari44IGleX7q5ou1pKaSp8OWUsISt6PFOcJH2mChqlXCCXXnsk/fVL972vnWwo7tNaT9atg8X1hKh2H94+PyNdLtQxjDTMi0oYahGXbtTuiMoN0jErOi7q4gaC9Peb1Yps1SETyBKbk5ZEvfpTibLQNsiRxIWgjD1Ggyi9P1gy8Udx2Ht1e22Nc5arsy4tPYohr5WLsKkgw985zXcMfWAU+VHemvbswVOrHLSfZwTo2LeLTkN6LhnuPgAGvc3vV6HWxaoug== 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=9fLuU5uh0Q9NgvwZqa3Zzh1S6AcQ9PiX1+CJL9lfeQA=; b=j7jZYyHWjdYfL1MykmEknRfDBSYumiSehPgA0vVbfPwmd+QgfBJobGmoiLwnCy0pi9ageJcRjNONIVQMKervwD4DLHv1HpphtYpadW6/6NAujUhIXGwywxHsoJzCw9dcT8iAABtFww/h8lZoCr/ay+dvfRSTRX9S46ikVJM4av8= 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 AM0PR03MB4515.eurprd03.prod.outlook.com (2603:10a6:208:c2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.28; Mon, 15 Aug 2022 07:29:51 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:29: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 10/20] disas/nanomips: Delete nanomips.h Date: Mon, 15 Aug 2022 09:26:19 +0200 Message-Id: <20220815072629.12865-11-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6cca5f6d-906b-4823-a7bd-08da7e8ff0a8 X-MS-TrafficTypeDiagnostic: AM0PR03MB4515:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qwO5ToniJ63yITkj44EFKSI3v+PvfBTatMp442Ttzb8gwdj/SxICGdxlFUWqmOobqDKb7sZfI+SuqAoEFwEqo3QJkCblqz2DAe+ySCea1OxYhaNC27pTRmXgr9CqPBDLM0drmd4XDHKwVxV1G9m7R0xRlWFf7EuU4uvxctll13L8Z949V8WOz+ztfWQ+6HxDU4+xVshYR/OINjuqJ83kYQ3TZkGuTTkhsTt3TZI6wsOOkN9fXAJL/wGnTxem61mZ2sAAWZRKSF3Ls4YD4KMVgE0HSbQxWnZ2yF/qsG96hzHI3R6JjIsBgBjBS5u2uzs7/uosxAXqCcjDz7bkffaONk63kFVLs4jjOjtkrkhf2D84fh/aXqiMFH+Ek7pxon39ddHAopAKjV3yqoLme4M8XE3IC1SDQ6RWLr2m/9BghXHA9nExsn3aetEiWPHu9NfqowD4uWQbvI8M82K5kdyzkD3Z2KB5aVCIephITpSsDFiLUrEIiBk0zyotCbq5kP26o9G4jiZk8wSSj+GvPPz+MiImLiYY1YQAxJbLZdOH8QTHivCgy4i0RXrSpLB5XHGIpvUiwBWeifi5/aRsoDAbeb9Rj09uQrqmts7nYJMmI1Vvup6y4nHfDSluXtlhtPmmpSWNV4a6Ecy5WYbU8xXpM2UUNUKde2yc0Yb+E0oPVDrrZZI1JrzS8sf+1krNWUcouF3p6x5/Eq7Ji/uYjNWgOwbFTzNhaGwESgFWGt80jpF1UQ1yHI4VI6JHPKCoLSbuqtK1W1Xj5BpncdNjgdSLQs2atpkb9Jz9u/4kRkAVeLBhQHsqp0FCsyPAWh5imlo7ZPODl9jQzSR4bO7aOL3aKQ== 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)(39830400003)(366004)(136003)(346002)(376002)(396003)(86362001)(107886003)(186003)(1076003)(2616005)(38350700002)(83380400001)(38100700002)(5660300002)(8936002)(36756003)(66556008)(66476007)(8676002)(4326008)(66946007)(2906002)(44832011)(478600001)(41300700001)(52116002)(26005)(6512007)(6506007)(6666004)(6486002)(316002)(6916009)(2004002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yhPBXGNeCrUbZc/XwG8pWEjjYS6Ju8NZEq8EZTnR0x4q4OK2oawLKyp3x/6655yqPUkKp0GlvIZvV/jQsekrcF3ifBT/mv0Eids2UYAfHO6cYvyoapLSXdXPvnSCyrwmbTa30leUZOmH7Rt3Ociz1hQI6h8McA3pUi/XTso4KgByAN+aaCJod+SDMHo2Glfqwn1ZWcH2OS5+Y/Xu5EcxSz64QJXqBhkPuR++9sWzxX3Thusxv2kMSvM0bt7azcLA79BYTroikT5JCeUTOYBOwA3xzGjJoBWBdDtyvYNT/hJSS9KnTH15byIHEzwafJVdm9Vi8T3mip5VWuJTSdKU+daNZpuI+POuwUlnFZZFLXNXZomwn9ApdjXHmHhSP6f8tVezt3VCvVaxPxzgbbaAvLbObsHuPwJ+G1YXefIZrLaW4y66jj7738SgLAbBUba0A6DEi6MtB3zPavyIJqKp6Fz519ya6A2ztREnl0dPVe8vQkQDHlQ/9OhwtwrYiQXMLhzXccuKbgSxUig80+3jWTob885prbb6eNUKlnqBB2rL11LzIjiH/CeK6S7VGhfSFKJwwF5Ve3Y7/eLxA9vytdkoDNN+uHDhJ46/W4jV+K5G3dm3JwaRSODhl+0d8u8EHp+XC2E6PSbmaHRTRmIXSN1EuAv9aV1QmeMh8aFGC3zodbzHt3894PvlFPyQBlbRUrXRo3keHxI5MUXp58VIFYDMVPg3bzt9gtoojnxdpNdDv+MOi9w4JjYk08sVIKslX1bBarX6XuzzmzOMUtDc6Vf9Agvb4zGhHvxNdlNpFxm+2ZyzIScH5E+pPKnveyyf38vpzX1XT/kC92dBh+K7Fv6m75kmcUl50qhL+pedCNf4PI0gTix2U99aWXJCociCOm57/fWvAvxSKwu3m7YWX6Kza3YEW5QbpKRY7A2UmnLo9yb/H/0qG+UhnF9JjGg9Q0vOsibdmbTYP4XQtt2jzHJpjjOHmcqpN3S8YafcOAs8rI+lWe17Ts2WCEq+HDiLlwmw8luR7o6DYmySpmshlWm009ElYUAHtL9Uqe6mHS1/QIdgdf1pdy4JVADehUpbjc+LZvAbGH5NOi24QZXUPyH9moBj/3sNxakrUCJZV7ZAnORbtB6AWQr1tgWpda11jT6GqFtHisiiIPbYVZ3jLrn733Vn7R4GS5Iv9c4YbDKLNe/LbkKPE8H/ga7j3IAS8TH9NGkFZ0h23zNMO73OznGiXE+25rMfJ41UGRsqUbUzkiprWgaRiislYeGeegg3Dxx9jBVEE9tSHUr2tA1SaFE5syMeqGCh8uLqwG4V4sooL1OLDu9BUAUWs5cTin+Bn7wxC62XUxtQ2+O6vDwswV2odB7GnELLsqbHByXZSYvkJJMj/RsXHe28PI1kSULB3Rp7HjWLYigyYdxFYZ6C3oaHrtWSWaM3DTsHcbYFhjIs0Uqr0q8SOwNG7ltFZgLZTlasNTWw8zvSa4apxm4eU7LC4q4pk3itAwP0PkjMFOBl0oAa7hwRohCvI3ziDq6xkCtyQkD8PSGjSeRBHsg+VacB1Wu00P7gULr74ImU+zrGelIkueGOTciszp82V02LxZsi8d/TAfDQq3hFfotOAQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6cca5f6d-906b-4823-a7bd-08da7e8ff0a8 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:29:51.0291 (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: dlDvaMDHePb9JJ35qz9qCSkw4ElPjHs66HJWzJ2CqfzXj4nSZLa4/3BKwz71EGw8o5UYJuVDPQXSsJc/2Lzz+eCF3FmyRejI6UsuQNEpuS4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB4515 Received-SPF: pass client-ip=40.107.21.116; 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" 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é --- disas/nanomips.h | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 disas/nanomips.h diff --git a/disas/nanomips.h b/disas/nanomips.h deleted file mode 100644 index b3186971ee..0000000000 --- a/disas/nanomips.h +++ /dev/null @@ -1,28 +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 Aug 15 07: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: 12943220 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 87C0DC25B0E for ; Mon, 15 Aug 2022 07:40:10 +0000 (UTC) Received: from localhost ([::1]:44920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUhl-0007r7-KB for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:40:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUXy-0008PL-FE for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:05 -0400 Received: from mail-vi1eur05on2116.outbound.protection.outlook.com ([40.107.21.116]:36512 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 1oNUXw-0000kD-9i for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G016jtZb9AjIx3aIFdaBI4Njk5Dx7hwPo9fn5KImJ5kyFxmENvzjgirqzfFLtayP1eU4a5+Vq6bcQTitHqQrWLqR1vfkIlv+I02kgsgTmOq+siJ5Yz3qAvMpzhd8uq9M/utvjLQixszeggFB1bih4ltKoNbNf4Aja2Oy4L7b6ueKHhTTBaGKxui/VQ4LBuOnm7BNK9keBFQbYWNnf35TemkB08JPoPugODZs0wjbmm/zWT9O2XF/P7s5bpAeg28OTQvy15DFpdTothZLOUjsH19kwc/rb/vgoxYlIFi6i2jLNZRJIucLxNa4WDWZD6g5wyF9VecmOjrk2mLNkDRQfg== 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=LB1tlcA51UX8Jo0Hz40optrHZdZdhEqzswVAembpymU=; b=Vl+EOuVyl3W/i2gdFUnD5rRmpXEQAGfURt2CXd3gUUG6S1/VE4oFTryBpnxZaFaNhpPsaQVYjpfURAa+PojpkfAYdLVf/+DQiUQuPS147tNNgjOXzZX/o/Dp9ObtliHKSIGAEfHVRDe12JU8Kpr9xURQC6dLbqqNaiFZMpZPrMeKp1DH/43wImek5aebinaKiGv7Xyyrds5QTfAVbeV/S5fCmn/IfaS29ieEiEGo+FQU7L2m+7MZzw1DPvU8l3cufukQAezs8T5IG7p+0mdInj+kqYcGIXBt+i5xDjKABScF+/ZShM9Po+5diJb4Wwvi4wHK/s2WZPIqsHW5cEr0Cg== 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=LB1tlcA51UX8Jo0Hz40optrHZdZdhEqzswVAembpymU=; b=I7PLMEZ8TMpkKV74LYKjZyz5+6eV38LLv2k7a1TTmFNjOObE3xJL960Xy3NNVoz0yWx7Pk6JR4LUDN/B8fQH60FHsPsG1R+BHbwNPaQzFOGSOibj5rGm/Q/+M0nwLiqTukU6HvKsq+S5KvRs6AMvR7FcrSDvrGnnOyEP5RuSZ84= 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 AM0PR03MB4515.eurprd03.prod.outlook.com (2603:10a6:208:c2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.28; Mon, 15 Aug 2022 07:29:58 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:29:58 +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 11/20] disas/nanomips: Remove #inlcude Date: Mon, 15 Aug 2022 09:26:20 +0200 Message-Id: <20220815072629.12865-12-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95a044f8-ed61-4ebb-4ef8-08da7e8ff4f1 X-MS-TrafficTypeDiagnostic: AM0PR03MB4515:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kG4k/uVKoUic2OIVq6x6BQOaJxw7d46R3svK44QN/5eGZj/6+rWTbbCqeg1a2L+3JMqc3nUJP7lRidvixZHH1rP0hUCYFIfEfWedwSsALPqmX22nRMl8qkHojiJNiqmjw9TyATemitJZIqm3sQ7X7AOsV1okhQ1kqCIoItOHTxho6MFbxdpSmhL2DKdfiGMnlHsJxmJUQRIDhVacDbTIaAgGXktWa3x7fGxTYtdQY0U+eQV3R4Xl2Qra7BbiYX+K4GYINpLFi4X64DNSPhdm2TNzVxJDXnIr8ThIlBp37FOrIbxTJ1jv21g/HQLgCQdgCp+y3MZl854v9IAHZlTcUQy2kH5F2sVmzvL/0qnnYAfqNHHS1esW1DHtecdw7WSQv3JLolQRc0QT08Iu53LjpIqnk62Hux/GvNy3tN14UpDnpiogZUzUWQTAbEv8F4Cc7BImpJGXpm2QRcOoYAWXzR0CE0+W9QXStNK9aj89hgFJqssknEFLs1+9XKJm405KK11ZZ6DLFf5+bhw3NdYRmKnz39IPGX0VYIlS5mrcS13jg3EDkhlIngYLqZ/xZMyDV66UIuLd9bFtwSyhNPzoQAmeh98gD7i+sEWSlSnqSA8KgOThtGFh9Q2n3ooOFE2o/YIEgh74ardepXvYZUoCKFnnSAAK1g76vGtjTiqqTKJ9wkhS3MbMHfB4Bg3CejrrZZaCjo4U0iLrONEm6QKtJ/2P7EbKHDUGAdrGS1LoOv86gsipaPlnpqI2DsYgMdMhS1xUQNtrA7QdkkivsJKFOnHBhyYp2U6n5ub/wDs0uus= 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)(39840400004)(366004)(136003)(346002)(376002)(396003)(86362001)(107886003)(186003)(1076003)(2616005)(38350700002)(83380400001)(38100700002)(5660300002)(8936002)(36756003)(66556008)(66476007)(8676002)(4326008)(66946007)(2906002)(4744005)(44832011)(478600001)(41300700001)(52116002)(26005)(6512007)(6506007)(6666004)(6486002)(316002)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KoQ6hMJagQbkpIv40ojrmiSk0N5uHH+tFbkJzX0uzltOdluVFMeiKLmxGxtLUDlI56Z2pSerybKsXzYlLON4B1jnJDpmAGvT4dmnNbKDgVwGzXeMA0s6fvann3qC/FNw0UWS7cz+lIyOByXQUMYJDL3X/3sxJIySNytKHqlRr3mL29+4+y2fczDMaRCYi/AG9LcZ2lnjWzxVf9qJJ06RVyLwYG+9JU5Zm6FrjTsGUblEbqlQTIdcayZKrblkoNfeZU7XrdhGa8Twe8pKhwXw47o2pxRQ4GF0WFJTLHnaG+VluvXhLfX9W4dM1tFIraSEL4uqwXsw2ou+oBi7TWRi4VVIMhHpgXro7Ndq+D/CZ0822R4R684TlZO0B9nvKyVXoZXanSB9p0360RNjInm4Z6HLG5Ibetb/wre/4ZrcevfALuOjqa/rZX/pvGyzJC36tsmZvpy420R1Nsm1J1GW8HtdtHPgSAFDnJQopkeTKe2Mnr4MDMkxE6WewBi79tMn0Y6tKnEqv5B+FHjBE79gNVh2oclKkYDznye753Ysrk207+U+a9erMSPBn6mVUvJ3uc2958pYn3s0kzZQ/MUdBumJ5jnE0cZi6iLuHMNx4swzzrSZBtDNY7OlLfncPQUm042wM0c9eUwyRnMUdLvlEcRZs+3TuaY8NVas/rNxI2cCSvenbkenlv1YmWOQQ3rkuQnnZhnXz03kLLUPfLNtruT84jnVNzNIcp3u7mJpYH9P8ucle7FmCtvljp7YOb2+FVRl9W+/JnvawyEiJp4kgHlen/CbyS00ye3q1492DcteKmn1ECKhT9FdHdEZXPyiM7ss3AKGAB1wVuzVqZ1ihywpPMDqLgVlYadhVew9sGDWmJyCf6f06FMSdVXDtE/e3UzYvvaBsY3fc3a1DgLmgqzGK8V1U6LZFgUCAJJHP9H+z4wbx0tyLsMahK0te2+UbzzYRt+8m+sOvOagP4StWL1ValxSwqitdgpadSSkBg+P0rx+NFbBKZsHoDR0+me75q9u7h8l7m7J2itkShnLCqOCAqomlD3oWEukFuszYlTa52mJArOjqBGeE1Zs5AJ9D1DhQ1dB+RMnqQI5OglqgHSHLo7dU5OgjH/iDF4cOUkC2xEGaeh0jsvSvoO/nWnu3klyYxi6boDOO26cNyCfmcNFmpRPMu1wq4JXOUIh4irukNHTRuLvAs67Wzj9bM7CuMxr8gONlKn7xGPvT97nGdYw3h/Tw4557Qw4wSz3609SYnhi1WEEfgIND9QD1gh73g9ajEuTnRLrCkvsCeTdDlw2LKB/8Mu9dytDDlOKbaiCNX7Jpf3MsK4cKCBBc7+BAcSWdHXqj8kEHVmMPyB4f7Eh0niETZwuJAUMoZW25AW8tsXxhXnjpJOevSDTbRnb5Skc4ZLurV93ULnm3nvERHZXsflPzg+CczG6s3PMGdExfp18ZZypSwg6XQiS+AkBNH3TLl3HdPAQdP4EDMdNf6+MVtrUC9U10o/Gg3y6TsBccypQ5RIDtiodaGya/jxKxu5Ep8+hBehirqaRelMrS4+vygLGbY0v16IQ638pfbzjmP9LnSLVN8oK7g/cHVSpzKHyZotAnJMkk55v3hK/NA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95a044f8-ed61-4ebb-4ef8-08da7e8ff4f1 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:29:58.2787 (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: vk+6FlGiCpy5gmkHAqkcYKkyhgWHMpu48pmII02zJd+akHgmx3fFqbde5AhvO/lfLpngBhETEWBvWSM1KMAvWr9FJlfqTpv01v1+5+ZdSOk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB4515 Received-SPF: pass client-ip=40.107.21.116; 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" is a C++ library and it's not used by disassembler. Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth --- disas/nanomips.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index cab53f482b..23db8177ef 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -32,7 +32,6 @@ #include #include -#include #include #include From patchwork Mon Aug 15 07:26:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943248 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 49684C00140 for ; Mon, 15 Aug 2022 08:19:10 +0000 (UTC) Received: from localhost ([::1]:59902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNVJT-0006Z8-Ok for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 04:19:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUYn-0000Ul-Qs for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:57 -0400 Received: from mail-vi1eur05on2111.outbound.protection.outlook.com ([40.107.21.111]:24289 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 1oNUYh-00011t-8f for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:30:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XLyKimDnok1143m35HcyPXBN5Po33jLY4Ppnqb9/grP9TKo0sjwK15+Nhy8Ah20uOp12d4PPNt6ybr89+JKTkytpyCCS/eUGDEQLb1oV6iKwmEoMUfSJZJvW80d8x+9M0mMPyGA/n46n/gyvSgdtpKOGiEQxJQpo9ihJi+5rkK00Ejxh96FOLmoceA0rQ9JDi7QLOh4in9AXEiMVGOBYdN0uoLKSu89psC/ULvHfw1ZlI7O35ERW28NnkOE0e81PKqFlKr96ACZ0+VTyhhIId6xqM6wBGXYrrQbaVjLynYG1zVmra7awtHKyp65BOZV6gyeqBh9TFBgCHFm/YUp0fQ== 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=368HiiiUUT7+SDj0LbkM1GpDp5W9MyBk1CKOmCZr6ow=; b=khDriyVaf04Nj/fiTE+IKVAUW/7EkUhL6AHGqiv+wnrZf4Xn3cA9zDuBT/zNDbZDfk5g61DhQzgKtzcZpafu3HGrCTSL+S+aB0ACCAevlMBMG/aRACWeu5UPwm+FxzgybrwrUZvD5L8V4Ht8zJrsE9A/YQXGx4CwyHfrYPawjRLgc/AiKx5TpLLW8K+iwYVidpUXUFhHE1IcbmuR3esxSgLj/A3RWCDHeFo0ermqfQ5kJXscBF18R85HPviZHru443ILwbRA7Ragj0PcGGH2QyfBv3+KxJ4yK/RdYylHYTbQZxFBXKwYNkpafnkQuyu1BY+s1h3FxDzEd8/rySG6KA== 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=368HiiiUUT7+SDj0LbkM1GpDp5W9MyBk1CKOmCZr6ow=; b=i2eXbtL3U7qr5wDQzFAMcXCswy+MtNgaLBri7uB8duNNCs0gh+tkGTV/dFZnSGwrq2SIouun4h7jQRNBv2MOV3uFotmgkDvsQBbw/P2JslxSrZry8FIjPHNlLpNWzNbWZgpAQ6deSFpxBI7Quddvr1n5qMqOrf1Yf7bp8HyaAis= 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 AM0PR03MB4515.eurprd03.prod.outlook.com (2603:10a6:208:c2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.28; Mon, 15 Aug 2022 07:30:07 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:30:07 +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 12/20] disas/nanomips: Replace std::string type Date: Mon, 15 Aug 2022 09:26:21 +0200 Message-Id: <20220815072629.12865-13-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 93bbdb54-b636-4395-d21c-08da7e8ffa3d X-MS-TrafficTypeDiagnostic: AM0PR03MB4515:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H+7X61F3v3ET/Fye8RlckRlAVSKI0xIA6HHH1t4xRobI7Uh+zGudojx68+pNl+u6rpV/SYmRoBES1Ffgmsivx8a5oU7YyF6sqk0MCMghQc4eliWLEL9+KmH8u8uGJ5VPh9vUX9PxbdzRS/mQDqJzuUps+5jdU/c4GRe4q1zOyEja95rkQfgeNOGkI/CoyoubUSEu/Inkz7Ys7rsHa/Fyw/kPoRpaTkPCHq1HzOP5zew5LV4pX64JTn306JzDYqVpHcRu7JLntUuHiWPUBaoNcicd2E1qUWs0BZ9rH2F+BBF/DfcpkCA1OMM9GXd1t3k6QnJM8bGg47YUWIlPx1jokHhTCl9DI/qoghIcnMIKeNO/ENHn4iuyZnSF1fOZCfl1rR489h4uPOHjOhjfmtVI9OuVEfU5H0MTGC77YEXMu6RCFX6HFPnlCKepEYRtW82IujgD+LfYtw/U9EYpqKTh/2U+ZvomGJZGIbc3vvHKmuz2ishBxnfNZMbvUOayaw8HDdK3+yO/XUaUfQt7NqLGD3gr2aWNx2JBeKZAKFYxh9KnT10F9G0eChsabu9IFQZ3jewOTbLaqCPcWzhEIqzcFG2D61psosZthhJ0sOb+HOu2hQpXy/g6kNEeL33WjqJW/cfgB2Pjsx4+2/KIO1PGKxVooDIUGx0KcnbSLDOH4Xnq1Hro9+OF04PuHz5NyAMkMwZWqxG0XLy+HTqKq4sTg/xgoDAjIW0V2qv0VQRaTTSPWri4zWyoVGbo8ePIJoJBcots7Ja0MmQ2YDi+WL8YuferV0cgzf2zlI6ST7jVRj0= 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)(39840400004)(366004)(136003)(346002)(376002)(396003)(86362001)(107886003)(186003)(1076003)(2616005)(38350700002)(83380400001)(38100700002)(5660300002)(8936002)(36756003)(66556008)(66476007)(8676002)(4326008)(66946007)(2906002)(30864003)(44832011)(478600001)(41300700001)(52116002)(26005)(6512007)(6506007)(6666004)(6486002)(316002)(6916009)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VVOnBDLwrzWM0WPCaqyVCnrvH6NYNIXAWSjXJ2yFffwzrLPZxzb5bUiFHsDHI9jRQgA+KjLXG7U/Dpb5hle4AjwpZPsCJqAONuN8jLi71VHGM7/ThVna90fXD5TfnV/WngzcD/3HDQFeY3bImyWwFT+IaO/inoYI/L/OY+sjJU4ltESLsKabsBwexO6FB+xYYECl45eMpofoQWEOMQIKCJGZIm30fZrHN6+QpEOVo8VAEsBoGJIgN9nasOZciEgIUh7udnFczAIavTeV60VLKb/yJme9uCewGu8rQ6cXiAayiPbwCcpCetVy1zZ2iLPCSYmFdom2+ddo6Gbdj/nEgZiavaCLBuqwqwLnZMuybqoyOAXSdGFs4OVeXOOUvEPmc1qWTFBrOUFJJUdQaIhqAjA0O9Btz/tDRVT7pWQyoFkl6hnFhkZcnWmxhtT4XEPSyCgG1sTlJcgJiN5mAp2qLtbZwp40NLkVyy+ectkTPjDYCnyH4aKJx1YNWuuDniqqyA8e56gXA48jul4hdmS6+qbNJ/J7ZAS3R1EM8AEFXjmqX/9yqZOtSIKS2kAHZrGCEs+/tcKHUrtOHOyq7j00vVRszVgKTA6AwkifSz/Pkv2HWlgze4tpCQxkoIycWSn7wEMOgprgMdrDPTChm1TcjSdyEzf8Oike8+rXtrA08ypX5OVX4o3U0Ym7F7f/d4l4wmZmcjxl3d25uOAKUYd1e8s2y4mZxWFChFIoHfFv8q1Wz8DKuCp3JK9GWUgwfYKr+q9KU8Ch4gnvstW9oDy1GDhqjYCTDeiTfrNOHjFrWht0sAADMhaIy7tojQs6vWvR3DV4Bl5P7UrgfVYciso1qd2xjJ6SkO8ZCxyP4rgULxJFZfL8XnYcsbnrkL47PM7iOwt7/g8LxBbwWuh97v2DEIJrrP6afFwD+iww+C9PEwrjFiJxYr//6PEfYUzxX8UkrOj6C3fNq6ABuV3/DGbaUJH3jZOX1GoO5hwtO8y9c4TNM8IC5qf/1IeRdRkQJb2ywHXr1Kge0OLH3mc6KxNqjsLTWqdTIL8gKYGC/93v+rrNPoYxEfSvNY1X6ssSseegx5pBLChOQufpY9CgLilYpPdwhglMwjxuNw8PovRg5tRqAa3ikbI2VzvxQBsZmqYLGIcKb7xQekTCiN8nlYG9fSsdPWjmSYyAsL4ummm6t5AQE+L3a6JJCskoUjhiG6s3yAA3ACqDWNNGaXWK9ZYIC+mUMoJA4F2TfZqDt8nigET7LRjzrjZadKvcCdqUYCWzx6aJlVYGNVjQCrG/0nrcG4qj93KmocN1ytpOYv4S8eCZZNkom7vLWSogKdDuLROAV0IC6ZQSgsBj3b4fVYEkSmbp5vU19YBD/bLmEXci3Sxvcfz5Vzx3pFr4O+bG2fBDODL06K7QQMM3WqczS1KxY1kcnYVK9qIifpnHwKxavvWZD1JOeYo0YVEV8YkNDYoc1AEesG5Cl/JJC/7KBrbk+XyQxtNhzRlVXa3LkYAzkA8GOnRMHtVhbwS6cAezNVSO6ryq3qLE7T6tv27EMDJyDVd7tTFvf++ASFS4RME85pehzhi1xC7cPyr/J539yHqfpMWd1VtEpZFnPqHtMfsGxw== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93bbdb54-b636-4395-d21c-08da7e8ffa3d X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:30:07.3562 (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: ftMvi8vngbb317Anu619p+gtfuKVo4Qk8N16XlBxycT1nkRECEjt86c7r8auQGJasRXuLtpB0jYF54jBG3Z1Nfa1FNze42NiGVjJW2xP1AU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB4515 Received-SPF: pass client-ip=40.107.21.111; 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 return type of typedef disassembly_function is changed to const char * instead of std::string. Therefore, for every particular disassembly_function function signature is changed. For example: - static std::string ABS_D(uint64 instruction) {...} is replaced with - static const char *ABS_D(uint64 instruction) {...} Every helper function used to return std::string is changed to return const char *. This applies to 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 const char *img_format(const char *format, ...) {...} can handle all string formatting, so others have been deleted. Where necessary, strdup() is used to malloc string. Memory leaking needs to be prevented, so matching free() calls will be added later. Simple assignments like: - x = "string" are handled using the strcpy() function where needed. String concatenation in the save_restore_list() function is handled using strcat() function instead of += operator. 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 --- disas/nanomips.cpp | 4721 ++++++++++++++++++++++---------------------- 1 file changed, 2312 insertions(+), 2409 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 23db8177ef..561e4ff095 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; @@ -44,7 +42,7 @@ typedef uint16_t uint16; typedef uint64_t img_address; typedef bool(*conditional_function)(uint64 instruction); -typedef std::string(*disassembly_function)(uint64 instruction); +typedef const char *(*disassembly_function)(uint64 instruction); enum TABLE_ENTRY_TYPE { instruction, @@ -93,7 +91,7 @@ struct Pool { static img_address m_pc; static TABLE_ATTRIBUTE_TYPE m_requested_instruction_categories; -std::string img_format(const char *format, ...) +static const char *img_format(const char *format, ...) { char buffer[256]; va_list args; @@ -103,112 +101,15 @@ std::string img_format(const char *format, ...) perror(buffer); } va_end(args); - return buffer; + return strdup(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 const char *to_string(img_address a) { char buffer[256]; sprintf(buffer, "0x%" PRIx64, a); - return buffer; + return strdup(buffer); } @@ -599,7 +500,7 @@ static uint64 encode_lsb_from_pos_and_size(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", @@ -617,21 +518,22 @@ static std::string GPR(uint64 reg) } -static std::string save_restore_list(uint64 rt, uint64 count, uint64 gp) +static const char *save_restore_list(uint64 rt, uint64 count, uint64 gp) { - std::string str; + char str[256]; + str[0] = '\0'; 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)); + strcat(str, img_format(",%s", GPR(this_rt))); } - return str; + return strdup(str); } -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", @@ -649,7 +551,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" @@ -664,26 +566,26 @@ static std::string AC(uint64 reg) } -static std::string IMMEDIATE(uint64 value) +static const char *IMMEDIATE(uint64 value) { return img_format("0x%" PRIx64, value); } -static std::string IMMEDIATE(int64 value) +static const char *IMMEDIATE(int64 value) { return img_format("%" PRId64, value); } -static std::string CPR(uint64 reg) +static const char *CPR(uint64 reg) { /* needs more work */ return img_format("CP%" PRIu64, reg); } -static std::string ADDRESS(uint64 value, int instruction_size) +static const char *ADDRESS(uint64 value, int instruction_size) { /* token for string replace */ /* const char TOKEN_REPLACE = (char)0xa2; */ @@ -720,7 +622,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) { @@ -751,25 +653,26 @@ static int Disassemble(const uint16 *data, std::string & dis, * an ASE attribute and the requested version * not having that attribute */ - dis = "ASE attribute mismatch"; + strcpy(dis, "ASE attribute mismatch"); return -5; } disassembly_function dis_fn = table[i].disassembly; if (dis_fn == 0) { - dis = "disassembler failure - bad table entry"; + strcpy(dis, + "disassembler failure - bad table entry"); return -6; } type = table[i].type; - dis = (dis_fn)(op_code); + strcpy(dis, dis_fn(op_code)); return table[i].instructions_size; } else { - dis = "reserved instruction"; + strcpy(dis, "reserved instruction"); return -2; } } catch (std::runtime_error & e) { - dis = e.what(); + strcpy(dis, e.what()); return -3; /* runtime error */ } } @@ -778,11 +681,11 @@ static int Disassemble(const uint16 *data, std::string & dis, } catch (std::exception & e) { - dis = e.what(); + strcpy(dis, e.what()); return -4; /* runtime error */ } - dis = "failed to disassemble"; + strcpy(dis, "failed to disassemble"); return -1; /* failed to disassemble */ } @@ -1715,13 +1618,13 @@ static bool SLTU_cond(uint64 instruction) * fs ----- * fd ----- */ -static std::string ABS_D(uint64 instruction) +static const char *ABS_D(uint64 instruction) { 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)); + const char *fs = FPR(copy(fs_value)); + const char *fd = FPR(copy(fd_value)); return img_format("ABS.D %s, %s", fd, fs); } @@ -1737,13 +1640,13 @@ static std::string ABS_D(uint64 instruction) * fd ----- * fs ----- */ -static std::string ABS_S(uint64 instruction) +static const char *ABS_S(uint64 instruction) { 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)); + const char *fs = FPR(copy(fs_value)); + const char *fd = FPR(copy(fd_value)); return img_format("ABS.S %s, %s", fd, fs); } @@ -1759,13 +1662,13 @@ static std::string ABS_S(uint64 instruction) * rt ----- * rs ----- */ -static std::string ABSQ_S_PH(uint64 instruction) +static const char *ABSQ_S_PH(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("ABSQ_S.PH %s, %s", rt, rs); } @@ -1781,13 +1684,13 @@ static std::string ABSQ_S_PH(uint64 instruction) * rt ----- * rs ----- */ -static std::string ABSQ_S_QB(uint64 instruction) +static const char *ABSQ_S_QB(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("ABSQ_S.QB %s, %s", rt, rs); } @@ -1803,13 +1706,13 @@ static std::string ABSQ_S_QB(uint64 instruction) * rt ----- * rs ----- */ -static std::string ABSQ_S_W(uint64 instruction) +static const char *ABSQ_S_W(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("ABSQ_S.W %s, %s", rt, rs); } @@ -1824,15 +1727,15 @@ static std::string ABSQ_S_W(uint64 instruction) * rt ----- * rs ----- */ -static std::string ACLR(uint64 instruction) +static const char *ACLR(uint64 instruction) { 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(copy(bit_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *bit = IMMEDIATE(copy(bit_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("ACLR %s, %s(%s)", bit, s, rs); } @@ -1847,15 +1750,15 @@ static std::string ACLR(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADD(uint64 instruction) +static const char *ADD(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADD %s, %s, %s", rd, rs, rt); } @@ -1872,15 +1775,15 @@ static std::string ADD(uint64 instruction) * fs ----- * fd ----- */ -static std::string ADD_D(uint64 instruction) +static const char *ADD_D(uint64 instruction) { 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(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); - std::string fd = FPR(copy(fd_value)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); + const char *fd = FPR(copy(fd_value)); return img_format("ADD.D %s, %s, %s", fd, fs, ft); } @@ -1897,15 +1800,15 @@ static std::string ADD_D(uint64 instruction) * fs ----- * fd ----- */ -static std::string ADD_S(uint64 instruction) +static const char *ADD_S(uint64 instruction) { 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(copy(ft_value)); - std::string fs = FPR(copy(fs_value)); - std::string fd = FPR(copy(fd_value)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); + const char *fd = FPR(copy(fd_value)); return img_format("ADD.S %s, %s, %s", fd, fs, ft); } @@ -1920,15 +1823,15 @@ static std::string ADD_S(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADDIU_32_(uint64 instruction) +static const char *ADDIU_32_(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("ADDIU %s, %s, %s", rt, rs, u); } @@ -1943,13 +1846,13 @@ static std::string ADDIU_32_(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADDIU_48_(uint64 instruction) +static const char *ADDIU_48_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); return img_format("ADDIU %s, %s", rt, s); } @@ -1964,13 +1867,13 @@ static std::string ADDIU_48_(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADDIU_GP48_(uint64 instruction) +static const char *ADDIU_GP48_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); return img_format("ADDIU %s, $%d, %s", rt, 28, s); } @@ -1985,13 +1888,13 @@ static std::string ADDIU_GP48_(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADDIU_GP_B_(uint64 instruction) +static const char *ADDIU_GP_B_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("ADDIU %s, $%d, %s", rt, 28, u); } @@ -2006,13 +1909,13 @@ static std::string ADDIU_GP_B_(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADDIU_GP_W_(uint64 instruction) +static const char *ADDIU_GP_W_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("ADDIU %s, $%d, %s", rt, 28, u); } @@ -2027,15 +1930,15 @@ static std::string ADDIU_GP_W_(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADDIU_NEG_(uint64 instruction) +static const char *ADDIU_NEG_(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(neg_copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(neg_copy(u_value)); return img_format("ADDIU %s, %s, %s", rt, rs, u); } @@ -2050,13 +1953,13 @@ static std::string ADDIU_NEG_(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADDIU_R1_SP_(uint64 instruction) +static const char *ADDIU_R1_SP_(uint64 instruction) { 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(copy(u_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("ADDIU %s, $%d, %s", rt3, 29, u); } @@ -2071,15 +1974,15 @@ static std::string ADDIU_R1_SP_(uint64 instruction) * rt ----- * rs ----- */ -static std::string ADDIU_R2_(uint64 instruction) +static const char *ADDIU_R2_(uint64 instruction) { 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(copy(u_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("ADDIU %s, %s, %s", rt3, rs3, u); } @@ -2093,13 +1996,13 @@ static std::string ADDIU_R2_(uint64 instruction) * rt ----- * s - --- */ -static std::string ADDIU_RS5_(uint64 instruction) +static const char *ADDIU_RS5_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); return img_format("ADDIU %s, %s", rt, s); } @@ -2115,13 +2018,13 @@ static std::string ADDIU_RS5_(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDIUPC_32_(uint64 instruction) +static const char *ADDIUPC_32_(uint64 instruction) { 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); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2137,13 +2040,13 @@ static std::string ADDIUPC_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDIUPC_48_(uint64 instruction) +static const char *ADDIUPC_48_(uint64 instruction) { 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); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 6); return img_format("ADDIUPC %s, %s", rt, s); } @@ -2159,15 +2062,15 @@ static std::string ADDIUPC_48_(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDQ_PH(uint64 instruction) +static const char *ADDQ_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDQ.PH %s, %s, %s", rd, rs, rt); } @@ -2184,15 +2087,15 @@ static std::string ADDQ_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDQ_S_PH(uint64 instruction) +static const char *ADDQ_S_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -2208,15 +2111,15 @@ static std::string ADDQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDQ_S_W(uint64 instruction) +static const char *ADDQ_S_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDQ_S.W %s, %s, %s", rd, rs, rt); } @@ -2233,15 +2136,15 @@ static std::string ADDQ_S_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDQH_PH(uint64 instruction) +static const char *ADDQH_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDQH.PH %s, %s, %s", rd, rs, rt); } @@ -2258,15 +2161,15 @@ static std::string ADDQH_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDQH_R_PH(uint64 instruction) +static const char *ADDQH_R_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -2283,15 +2186,15 @@ static std::string ADDQH_R_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDQH_R_W(uint64 instruction) +static const char *ADDQH_R_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDQH_R.W %s, %s, %s", rd, rs, rt); } @@ -2308,15 +2211,15 @@ static std::string ADDQH_R_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDQH_W(uint64 instruction) +static const char *ADDQH_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDQH.W %s, %s, %s", rd, rs, rt); } @@ -2332,15 +2235,15 @@ static std::string ADDQH_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDSC(uint64 instruction) +static const char *ADDSC(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDSC %s, %s, %s", rd, rs, rt); } @@ -2355,15 +2258,15 @@ static std::string ADDSC(uint64 instruction) * rs3 --- * rd3 --- */ -static std::string ADDU_16_(uint64 instruction) +static const char *ADDU_16_(uint64 instruction) { 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); } @@ -2379,15 +2282,15 @@ static std::string ADDU_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDU_32_(uint64 instruction) +static const char *ADDU_32_(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDU %s, %s, %s", rd, rs, rt); } @@ -2403,13 +2306,13 @@ static std::string ADDU_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDU_4X4_(uint64 instruction) +static const char *ADDU_4X4_(uint64 instruction) { 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); } @@ -2425,15 +2328,15 @@ static std::string ADDU_4X4_(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDU_PH(uint64 instruction) +static const char *ADDU_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDU.PH %s, %s, %s", rd, rs, rt); } @@ -2449,15 +2352,15 @@ static std::string ADDU_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDU_QB(uint64 instruction) +static const char *ADDU_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDU.QB %s, %s, %s", rd, rs, rt); } @@ -2474,15 +2377,15 @@ static std::string ADDU_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDU_S_PH(uint64 instruction) +static const char *ADDU_S_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDU_S.PH %s, %s, %s", rd, rs, rt); } @@ -2498,15 +2401,15 @@ static std::string ADDU_S_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDU_S_QB(uint64 instruction) +static const char *ADDU_S_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDU_S.QB %s, %s, %s", rd, rs, rt); } @@ -2523,15 +2426,15 @@ static std::string ADDU_S_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDUH_QB(uint64 instruction) +static const char *ADDUH_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDUH.QB %s, %s, %s", rd, rs, rt); } @@ -2548,15 +2451,15 @@ static std::string ADDUH_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDUH_R_QB(uint64 instruction) +static const char *ADDUH_R_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -2571,15 +2474,15 @@ static std::string ADDUH_R_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string ADDWC(uint64 instruction) +static const char *ADDWC(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ADDWC %s, %s, %s", rd, rs, rt); } @@ -2595,13 +2498,13 @@ static std::string ADDWC(uint64 instruction) * rs ----- * rd ----- */ -static std::string ALUIPC(uint64 instruction) +static const char *ALUIPC(uint64 instruction) { 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); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); } @@ -2616,13 +2519,13 @@ static std::string ALUIPC(uint64 instruction) * rs3 --- * eu ---- */ -static std::string AND_16_(uint64 instruction) +static const char *AND_16_(uint64 instruction) { 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); } @@ -2638,15 +2541,15 @@ static std::string AND_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string AND_32_(uint64 instruction) +static const char *AND_32_(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("AND %s, %s, %s", rd, rs, rt); } @@ -2661,15 +2564,15 @@ static std::string AND_32_(uint64 instruction) * rs3 --- * eu ---- */ -static std::string ANDI_16_(uint64 instruction) +static const char *ANDI_16_(uint64 instruction) { 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)); + const char *eu = IMMEDIATE(encode_eu_from_u_andi16(eu_value)); return img_format("ANDI %s, %s, %s", rt3, rs3, eu); } @@ -2685,15 +2588,15 @@ static std::string ANDI_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string ANDI_32_(uint64 instruction) +static const char *ANDI_32_(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("ANDI %s, %s, %s", rt, rs, u); } @@ -2709,15 +2612,15 @@ static std::string ANDI_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string APPEND(uint64 instruction) +static const char *APPEND(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("APPEND %s, %s, %s", rt, rs, sa); } @@ -2733,15 +2636,15 @@ static std::string APPEND(uint64 instruction) * rs ----- * rd ----- */ -static std::string ASET(uint64 instruction) +static const char *ASET(uint64 instruction) { 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(copy(bit_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *bit = IMMEDIATE(copy(bit_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("ASET %s, %s(%s)", bit, s, rs); } @@ -2757,11 +2660,11 @@ static std::string ASET(uint64 instruction) * rs ----- * rd ----- */ -static std::string BALC_16_(uint64 instruction) +static const char *BALC_16_(uint64 instruction) { 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); + const char *s = ADDRESS(encode_s_from_address(s_value), 2); return img_format("BALC %s", s); } @@ -2777,11 +2680,11 @@ static std::string BALC_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BALC_32_(uint64 instruction) +static const char *BALC_32_(uint64 instruction) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BALC %s", s); } @@ -2797,13 +2700,13 @@ static std::string BALC_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BALRSC(uint64 instruction) +static const char *BALRSC(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("BALRSC %s, %s", rt, rs); } @@ -2819,15 +2722,15 @@ static std::string BALRSC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BBEQZC(uint64 instruction) +static const char *BBEQZC(uint64 instruction) { 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(copy(rt_value)); - std::string bit = IMMEDIATE(copy(bit_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rt = GPR(copy(rt_value)); + const char *bit = IMMEDIATE(copy(bit_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BBEQZC %s, %s, %s", rt, bit, s); } @@ -2843,15 +2746,15 @@ static std::string BBEQZC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BBNEZC(uint64 instruction) +static const char *BBNEZC(uint64 instruction) { 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(copy(rt_value)); - std::string bit = IMMEDIATE(copy(bit_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rt = GPR(copy(rt_value)); + const char *bit = IMMEDIATE(copy(bit_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BBNEZC %s, %s, %s", rt, bit, s); } @@ -2867,11 +2770,11 @@ static std::string BBNEZC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BC_16_(uint64 instruction) +static const char *BC_16_(uint64 instruction) { 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); + const char *s = ADDRESS(encode_s_from_address(s_value), 2); return img_format("BC %s", s); } @@ -2887,11 +2790,11 @@ static std::string BC_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BC_32_(uint64 instruction) +static const char *BC_32_(uint64 instruction) { int64 s_value = extract_s__se25_0_24_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BC %s", s); } @@ -2907,13 +2810,13 @@ static std::string BC_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BC1EQZC(uint64 instruction) +static const char *BC1EQZC(uint64 instruction) { 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); + const char *ft = FPR(copy(ft_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BC1EQZC %s, %s", ft, s); } @@ -2929,13 +2832,13 @@ static std::string BC1EQZC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BC1NEZC(uint64 instruction) +static const char *BC1NEZC(uint64 instruction) { 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); + const char *ft = FPR(copy(ft_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BC1NEZC %s, %s", ft, s); } @@ -2951,13 +2854,13 @@ static std::string BC1NEZC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BC2EQZC(uint64 instruction) +static const char *BC2EQZC(uint64 instruction) { 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); + const char *ct = CPR(copy(ct_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BC2EQZC %s, %s", ct, s); } @@ -2973,13 +2876,13 @@ static std::string BC2EQZC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BC2NEZC(uint64 instruction) +static const char *BC2NEZC(uint64 instruction) { 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); + const char *ct = CPR(copy(ct_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BC2NEZC %s, %s", ct, s); } @@ -2995,15 +2898,15 @@ static std::string BC2NEZC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BEQC_16_(uint64 instruction) +static const char *BEQC_16_(uint64 instruction) { 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(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); + const char *rs3 = GPR(encode_rs3_and_check_rs3_lt_rt3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = ADDRESS(encode_u_from_address(u_value), 2); return img_format("BEQC %s, %s, %s", rs3, rt3, u); } @@ -3019,15 +2922,15 @@ static std::string BEQC_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BEQC_32_(uint64 instruction) +static const char *BEQC_32_(uint64 instruction) { 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(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BEQC %s, %s, %s", rs, rt, s); } @@ -3043,15 +2946,15 @@ static std::string BEQC_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BEQIC(uint64 instruction) +static const char *BEQIC(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BEQIC %s, %s, %s", rt, u, s); } @@ -3067,13 +2970,13 @@ static std::string BEQIC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BEQZC_16_(uint64 instruction) +static const char *BEQZC_16_(uint64 instruction) { 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); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 2); return img_format("BEQZC %s, %s", rt3, s); } @@ -3089,15 +2992,15 @@ static std::string BEQZC_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BGEC(uint64 instruction) +static const char *BGEC(uint64 instruction) { 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(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BGEC %s, %s, %s", rs, rt, s); } @@ -3113,15 +3016,15 @@ static std::string BGEC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BGEIC(uint64 instruction) +static const char *BGEIC(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BGEIC %s, %s, %s", rt, u, s); } @@ -3137,15 +3040,15 @@ static std::string BGEIC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BGEIUC(uint64 instruction) +static const char *BGEIUC(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BGEIUC %s, %s, %s", rt, u, s); } @@ -3161,15 +3064,15 @@ static std::string BGEIUC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BGEUC(uint64 instruction) +static const char *BGEUC(uint64 instruction) { 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(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BGEUC %s, %s, %s", rs, rt, s); } @@ -3185,15 +3088,15 @@ static std::string BGEUC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BLTC(uint64 instruction) +static const char *BLTC(uint64 instruction) { 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(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BLTC %s, %s, %s", rs, rt, s); } @@ -3209,15 +3112,15 @@ static std::string BLTC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BLTIC(uint64 instruction) +static const char *BLTIC(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BLTIC %s, %s, %s", rt, u, s); } @@ -3233,15 +3136,15 @@ static std::string BLTIC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BLTIUC(uint64 instruction) +static const char *BLTIUC(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BLTIUC %s, %s, %s", rt, u, s); } @@ -3257,15 +3160,15 @@ static std::string BLTIUC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BLTUC(uint64 instruction) +static const char *BLTUC(uint64 instruction) { 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(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BLTUC %s, %s, %s", rs, rt, s); } @@ -3281,15 +3184,15 @@ static std::string BLTUC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BNEC_16_(uint64 instruction) +static const char *BNEC_16_(uint64 instruction) { 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(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); + const char *rs3 = GPR(encode_rs3_and_check_rs3_ge_rt3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = ADDRESS(encode_u_from_address(u_value), 2); return img_format("BNEC %s, %s, %s", rs3, rt3, u); } @@ -3305,15 +3208,15 @@ static std::string BNEC_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BNEC_32_(uint64 instruction) +static const char *BNEC_32_(uint64 instruction) { 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(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BNEC %s, %s, %s", rs, rt, s); } @@ -3329,15 +3232,15 @@ static std::string BNEC_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BNEIC(uint64 instruction) +static const char *BNEIC(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BNEIC %s, %s, %s", rt, u, s); } @@ -3353,13 +3256,13 @@ static std::string BNEIC(uint64 instruction) * rs ----- * rd ----- */ -static std::string BNEZC_16_(uint64 instruction) +static const char *BNEZC_16_(uint64 instruction) { 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); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 2); return img_format("BNEZC %s, %s", rt3, s); } @@ -3375,11 +3278,11 @@ static std::string BNEZC_16_(uint64 instruction) * s[13:1] ------------- * s[14] - */ -static std::string BPOSGE32C(uint64 instruction) +static const char *BPOSGE32C(uint64 instruction) { int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - std::string s = ADDRESS(encode_s_from_address(s_value), 4); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("BPOSGE32C %s", s); } @@ -3395,11 +3298,11 @@ static std::string BPOSGE32C(uint64 instruction) * rs ----- * rd ----- */ -static std::string BREAK_16_(uint64 instruction) +static const char *BREAK_16_(uint64 instruction) { uint64 code_value = extract_code_2_1_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("BREAK %s", code); } @@ -3415,11 +3318,11 @@ static std::string BREAK_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BREAK_32_(uint64 instruction) +static const char *BREAK_32_(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("BREAK %s", code); } @@ -3435,11 +3338,11 @@ static std::string BREAK_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string BRSC(uint64 instruction) +static const char *BRSC(uint64 instruction) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - std::string rs = GPR(copy(rs_value)); + const char *rs = GPR(copy(rs_value)); return img_format("BRSC %s", rs); } @@ -3455,15 +3358,15 @@ static std::string BRSC(uint64 instruction) * rs ----- * rd ----- */ -static std::string CACHE(uint64 instruction) +static const char *CACHE(uint64 instruction) { 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(copy(op_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *op = IMMEDIATE(copy(op_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("CACHE %s, %s(%s)", op, s, rs); } @@ -3479,15 +3382,15 @@ static std::string CACHE(uint64 instruction) * rs ----- * rd ----- */ -static std::string CACHEE(uint64 instruction) +static const char *CACHEE(uint64 instruction) { 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(copy(op_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *op = IMMEDIATE(copy(op_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("CACHEE %s, %s(%s)", op, s, rs); } @@ -3503,13 +3406,13 @@ static std::string CACHEE(uint64 instruction) * rs ----- * rd ----- */ -static std::string CEIL_L_D(uint64 instruction) +static const char *CEIL_L_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CEIL.L.D %s, %s", ft, fs); } @@ -3525,13 +3428,13 @@ static std::string CEIL_L_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CEIL_L_S(uint64 instruction) +static const char *CEIL_L_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CEIL.L.S %s, %s", ft, fs); } @@ -3547,13 +3450,13 @@ static std::string CEIL_L_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CEIL_W_D(uint64 instruction) +static const char *CEIL_W_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CEIL.W.D %s, %s", ft, fs); } @@ -3569,13 +3472,13 @@ static std::string CEIL_W_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CEIL_W_S(uint64 instruction) +static const char *CEIL_W_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CEIL.W.S %s, %s", ft, fs); } @@ -3591,13 +3494,13 @@ static std::string CEIL_W_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CFC1(uint64 instruction) +static const char *CFC1(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("CFC1 %s, %s", rt, cs); } @@ -3613,13 +3516,13 @@ static std::string CFC1(uint64 instruction) * rs ----- * rd ----- */ -static std::string CFC2(uint64 instruction) +static const char *CFC2(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("CFC2 %s, %s", rt, cs); } @@ -3635,13 +3538,13 @@ static std::string CFC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string CLASS_D(uint64 instruction) +static const char *CLASS_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CLASS.D %s, %s", ft, fs); } @@ -3657,13 +3560,13 @@ static std::string CLASS_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CLASS_S(uint64 instruction) +static const char *CLASS_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CLASS.S %s, %s", ft, fs); } @@ -3679,13 +3582,13 @@ static std::string CLASS_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CLO(uint64 instruction) +static const char *CLO(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("CLO %s, %s", rt, rs); } @@ -3701,13 +3604,13 @@ static std::string CLO(uint64 instruction) * rs ----- * rd ----- */ -static std::string CLZ(uint64 instruction) +static const char *CLZ(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("CLZ %s, %s", rt, rs); } @@ -3723,15 +3626,15 @@ static std::string CLZ(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_AF_D(uint64 instruction) +static const char *CMP_AF_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.AF.D %s, %s, %s", fd, fs, ft); } @@ -3747,15 +3650,15 @@ static std::string CMP_AF_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_AF_S(uint64 instruction) +static const char *CMP_AF_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.AF.S %s, %s, %s", fd, fs, ft); } @@ -3771,15 +3674,15 @@ static std::string CMP_AF_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_EQ_D(uint64 instruction) +static const char *CMP_EQ_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.EQ.D %s, %s, %s", fd, fs, ft); } @@ -3794,13 +3697,13 @@ static std::string CMP_EQ_D(uint64 instruction) * rt ----- * rs ----- */ -static std::string CMP_EQ_PH(uint64 instruction) +static const char *CMP_EQ_PH(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMP.EQ.PH %s, %s", rs, rt); } @@ -3816,15 +3719,15 @@ static std::string CMP_EQ_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_EQ_S(uint64 instruction) +static const char *CMP_EQ_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.EQ.S %s, %s, %s", fd, fs, ft); } @@ -3840,15 +3743,15 @@ static std::string CMP_EQ_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_LE_D(uint64 instruction) +static const char *CMP_LE_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.LE.D %s, %s, %s", fd, fs, ft); } @@ -3863,13 +3766,13 @@ static std::string CMP_LE_D(uint64 instruction) * rt ----- * rs ----- */ -static std::string CMP_LE_PH(uint64 instruction) +static const char *CMP_LE_PH(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMP.LE.PH %s, %s", rs, rt); } @@ -3885,15 +3788,15 @@ static std::string CMP_LE_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_LE_S(uint64 instruction) +static const char *CMP_LE_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.LE.S %s, %s, %s", fd, fs, ft); } @@ -3909,15 +3812,15 @@ static std::string CMP_LE_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_LT_D(uint64 instruction) +static const char *CMP_LT_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.LT.D %s, %s, %s", fd, fs, ft); } @@ -3932,13 +3835,13 @@ static std::string CMP_LT_D(uint64 instruction) * rt ----- * rs ----- */ -static std::string CMP_LT_PH(uint64 instruction) +static const char *CMP_LT_PH(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMP.LT.PH %s, %s", rs, rt); } @@ -3954,15 +3857,15 @@ static std::string CMP_LT_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_LT_S(uint64 instruction) +static const char *CMP_LT_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.LT.S %s, %s, %s", fd, fs, ft); } @@ -3978,15 +3881,15 @@ static std::string CMP_LT_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_NE_D(uint64 instruction) +static const char *CMP_NE_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.NE.D %s, %s, %s", fd, fs, ft); } @@ -4002,15 +3905,15 @@ static std::string CMP_NE_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_NE_S(uint64 instruction) +static const char *CMP_NE_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.NE.S %s, %s, %s", fd, fs, ft); } @@ -4026,15 +3929,15 @@ static std::string CMP_NE_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_OR_D(uint64 instruction) +static const char *CMP_OR_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.OR.D %s, %s, %s", fd, fs, ft); } @@ -4050,15 +3953,15 @@ static std::string CMP_OR_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_OR_S(uint64 instruction) +static const char *CMP_OR_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.OR.S %s, %s, %s", fd, fs, ft); } @@ -4074,15 +3977,15 @@ static std::string CMP_OR_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SAF_D(uint64 instruction) +static const char *CMP_SAF_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SAF.D %s, %s, %s", fd, fs, ft); } @@ -4098,15 +4001,15 @@ static std::string CMP_SAF_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SAF_S(uint64 instruction) +static const char *CMP_SAF_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SAF.S %s, %s, %s", fd, fs, ft); } @@ -4122,15 +4025,15 @@ static std::string CMP_SAF_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SEQ_D(uint64 instruction) +static const char *CMP_SEQ_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SEQ.D %s, %s, %s", fd, fs, ft); } @@ -4146,15 +4049,15 @@ static std::string CMP_SEQ_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SEQ_S(uint64 instruction) +static const char *CMP_SEQ_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SEQ.S %s, %s, %s", fd, fs, ft); } @@ -4170,15 +4073,15 @@ static std::string CMP_SEQ_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SLE_D(uint64 instruction) +static const char *CMP_SLE_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SLE.D %s, %s, %s", fd, fs, ft); } @@ -4194,15 +4097,15 @@ static std::string CMP_SLE_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SLE_S(uint64 instruction) +static const char *CMP_SLE_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SLE.S %s, %s, %s", fd, fs, ft); } @@ -4218,15 +4121,15 @@ static std::string CMP_SLE_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SLT_D(uint64 instruction) +static const char *CMP_SLT_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SLT.D %s, %s, %s", fd, fs, ft); } @@ -4242,15 +4145,15 @@ static std::string CMP_SLT_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SLT_S(uint64 instruction) +static const char *CMP_SLT_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SLT.S %s, %s, %s", fd, fs, ft); } @@ -4266,15 +4169,15 @@ static std::string CMP_SLT_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SNE_D(uint64 instruction) +static const char *CMP_SNE_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SNE.D %s, %s, %s", fd, fs, ft); } @@ -4290,15 +4193,15 @@ static std::string CMP_SNE_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SNE_S(uint64 instruction) +static const char *CMP_SNE_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SNE.S %s, %s, %s", fd, fs, ft); } @@ -4314,15 +4217,15 @@ static std::string CMP_SNE_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SOR_D(uint64 instruction) +static const char *CMP_SOR_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SOR.D %s, %s, %s", fd, fs, ft); } @@ -4338,15 +4241,15 @@ static std::string CMP_SOR_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SOR_S(uint64 instruction) +static const char *CMP_SOR_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SOR.S %s, %s, %s", fd, fs, ft); } @@ -4362,15 +4265,15 @@ static std::string CMP_SOR_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SUEQ_D(uint64 instruction) +static const char *CMP_SUEQ_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SUEQ.D %s, %s, %s", fd, fs, ft); } @@ -4386,15 +4289,15 @@ static std::string CMP_SUEQ_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SUEQ_S(uint64 instruction) +static const char *CMP_SUEQ_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SUEQ.S %s, %s, %s", fd, fs, ft); } @@ -4410,15 +4313,15 @@ static std::string CMP_SUEQ_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SULE_D(uint64 instruction) +static const char *CMP_SULE_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SULE.D %s, %s, %s", fd, fs, ft); } @@ -4434,15 +4337,15 @@ static std::string CMP_SULE_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SULE_S(uint64 instruction) +static const char *CMP_SULE_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SULE.S %s, %s, %s", fd, fs, ft); } @@ -4458,15 +4361,15 @@ static std::string CMP_SULE_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SULT_D(uint64 instruction) +static const char *CMP_SULT_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SULT.D %s, %s, %s", fd, fs, ft); } @@ -4482,15 +4385,15 @@ static std::string CMP_SULT_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SULT_S(uint64 instruction) +static const char *CMP_SULT_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SULT.S %s, %s, %s", fd, fs, ft); } @@ -4506,15 +4409,15 @@ static std::string CMP_SULT_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SUN_D(uint64 instruction) +static const char *CMP_SUN_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SUN.D %s, %s, %s", fd, fs, ft); } @@ -4530,15 +4433,15 @@ static std::string CMP_SUN_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SUNE_D(uint64 instruction) +static const char *CMP_SUNE_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SUNE.D %s, %s, %s", fd, fs, ft); } @@ -4554,15 +4457,15 @@ static std::string CMP_SUNE_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SUNE_S(uint64 instruction) +static const char *CMP_SUNE_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SUNE.S %s, %s, %s", fd, fs, ft); } @@ -4578,15 +4481,15 @@ static std::string CMP_SUNE_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_SUN_S(uint64 instruction) +static const char *CMP_SUN_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.SUN.S %s, %s, %s", fd, fs, ft); } @@ -4602,15 +4505,15 @@ static std::string CMP_SUN_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_UEQ_D(uint64 instruction) +static const char *CMP_UEQ_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.UEQ.D %s, %s, %s", fd, fs, ft); } @@ -4626,15 +4529,15 @@ static std::string CMP_UEQ_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_UEQ_S(uint64 instruction) +static const char *CMP_UEQ_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.UEQ.S %s, %s, %s", fd, fs, ft); } @@ -4650,15 +4553,15 @@ static std::string CMP_UEQ_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_ULE_D(uint64 instruction) +static const char *CMP_ULE_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.ULE.D %s, %s, %s", fd, fs, ft); } @@ -4674,15 +4577,15 @@ static std::string CMP_ULE_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_ULE_S(uint64 instruction) +static const char *CMP_ULE_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.ULE.S %s, %s, %s", fd, fs, ft); } @@ -4698,15 +4601,15 @@ static std::string CMP_ULE_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_ULT_D(uint64 instruction) +static const char *CMP_ULT_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.ULT.D %s, %s, %s", fd, fs, ft); } @@ -4722,15 +4625,15 @@ static std::string CMP_ULT_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_ULT_S(uint64 instruction) +static const char *CMP_ULT_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.ULT.S %s, %s, %s", fd, fs, ft); } @@ -4746,15 +4649,15 @@ static std::string CMP_ULT_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_UN_D(uint64 instruction) +static const char *CMP_UN_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.UN.D %s, %s, %s", fd, fs, ft); } @@ -4770,15 +4673,15 @@ static std::string CMP_UN_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_UNE_D(uint64 instruction) +static const char *CMP_UNE_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.UNE.D %s, %s, %s", fd, fs, ft); } @@ -4794,15 +4697,15 @@ static std::string CMP_UNE_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_UNE_S(uint64 instruction) +static const char *CMP_UNE_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.UNE.S %s, %s, %s", fd, fs, ft); } @@ -4818,15 +4721,15 @@ static std::string CMP_UNE_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMP_UN_S(uint64 instruction) +static const char *CMP_UN_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("CMP.UN.S %s, %s, %s", fd, fs, ft); } @@ -4843,15 +4746,15 @@ static std::string CMP_UN_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMPGDU_EQ_QB(uint64 instruction) +static const char *CMPGDU_EQ_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPGDU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4868,15 +4771,15 @@ static std::string CMPGDU_EQ_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMPGDU_LE_QB(uint64 instruction) +static const char *CMPGDU_LE_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPGDU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4893,15 +4796,15 @@ static std::string CMPGDU_LE_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMPGDU_LT_QB(uint64 instruction) +static const char *CMPGDU_LT_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPGDU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4918,15 +4821,15 @@ static std::string CMPGDU_LT_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMPGU_EQ_QB(uint64 instruction) +static const char *CMPGU_EQ_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPGU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4943,15 +4846,15 @@ static std::string CMPGU_EQ_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMPGU_LE_QB(uint64 instruction) +static const char *CMPGU_LE_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPGU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4968,15 +4871,15 @@ static std::string CMPGU_LE_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string CMPGU_LT_QB(uint64 instruction) +static const char *CMPGU_LT_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPGU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4992,13 +4895,13 @@ static std::string CMPGU_LT_QB(uint64 instruction) * rt ----- * rs ----- */ -static std::string CMPU_EQ_QB(uint64 instruction) +static const char *CMPU_EQ_QB(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPU.EQ.QB %s, %s", rs, rt); } @@ -5014,13 +4917,13 @@ static std::string CMPU_EQ_QB(uint64 instruction) * rt ----- * rs ----- */ -static std::string CMPU_LE_QB(uint64 instruction) +static const char *CMPU_LE_QB(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPU.LE.QB %s, %s", rs, rt); } @@ -5036,13 +4939,13 @@ static std::string CMPU_LE_QB(uint64 instruction) * rt ----- * rs ----- */ -static std::string CMPU_LT_QB(uint64 instruction) +static const char *CMPU_LT_QB(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("CMPU.LT.QB %s, %s", rs, rt); } @@ -5058,11 +4961,11 @@ static std::string CMPU_LT_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string COP2_1(uint64 instruction) +static const char *COP2_1(uint64 instruction) { uint64 cofun_value = extract_cofun_25_24_23(instruction); - std::string cofun = IMMEDIATE(copy(cofun_value)); + const char *cofun = IMMEDIATE(copy(cofun_value)); return img_format("COP2_1 %s", cofun); } @@ -5078,13 +4981,13 @@ static std::string COP2_1(uint64 instruction) * rs ----- * rd ----- */ -static std::string CTC1(uint64 instruction) +static const char *CTC1(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("CTC1 %s, %s", rt, cs); } @@ -5100,13 +5003,13 @@ static std::string CTC1(uint64 instruction) * rs ----- * rd ----- */ -static std::string CTC2(uint64 instruction) +static const char *CTC2(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("CTC2 %s, %s", rt, cs); } @@ -5122,13 +5025,13 @@ static std::string CTC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_D_L(uint64 instruction) +static const char *CVT_D_L(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.D.L %s, %s", ft, fs); } @@ -5144,13 +5047,13 @@ static std::string CVT_D_L(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_D_S(uint64 instruction) +static const char *CVT_D_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.D.S %s, %s", ft, fs); } @@ -5166,13 +5069,13 @@ static std::string CVT_D_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_D_W(uint64 instruction) +static const char *CVT_D_W(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.D.W %s, %s", ft, fs); } @@ -5188,13 +5091,13 @@ static std::string CVT_D_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_L_D(uint64 instruction) +static const char *CVT_L_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.L.D %s, %s", ft, fs); } @@ -5210,13 +5113,13 @@ static std::string CVT_L_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_L_S(uint64 instruction) +static const char *CVT_L_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.L.S %s, %s", ft, fs); } @@ -5232,13 +5135,13 @@ static std::string CVT_L_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_S_D(uint64 instruction) +static const char *CVT_S_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.S.D %s, %s", ft, fs); } @@ -5254,13 +5157,13 @@ static std::string CVT_S_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_S_L(uint64 instruction) +static const char *CVT_S_L(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.S.L %s, %s", ft, fs); } @@ -5276,13 +5179,13 @@ static std::string CVT_S_L(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_S_PL(uint64 instruction) +static const char *CVT_S_PL(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.S.PL %s, %s", ft, fs); } @@ -5298,13 +5201,13 @@ static std::string CVT_S_PL(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_S_PU(uint64 instruction) +static const char *CVT_S_PU(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.S.PU %s, %s", ft, fs); } @@ -5320,13 +5223,13 @@ static std::string CVT_S_PU(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_S_W(uint64 instruction) +static const char *CVT_S_W(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.S.W %s, %s", ft, fs); } @@ -5342,13 +5245,13 @@ static std::string CVT_S_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_W_D(uint64 instruction) +static const char *CVT_W_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.W.D %s, %s", ft, fs); } @@ -5364,13 +5267,13 @@ static std::string CVT_W_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string CVT_W_S(uint64 instruction) +static const char *CVT_W_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("CVT.W.S %s, %s", ft, fs); } @@ -5386,13 +5289,13 @@ static std::string CVT_W_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string DADDIU_48_(uint64 instruction) +static const char *DADDIU_48_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); return img_format("DADDIU %s, %s", rt, s); } @@ -5408,15 +5311,15 @@ static std::string DADDIU_48_(uint64 instruction) * rs ----- * rd ----- */ -static std::string DADDIU_NEG_(uint64 instruction) +static const char *DADDIU_NEG_(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(neg_copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(neg_copy(u_value)); return img_format("DADDIU %s, %s, %s", rt, rs, u); } @@ -5432,15 +5335,15 @@ static std::string DADDIU_NEG_(uint64 instruction) * rs ----- * rd ----- */ -static std::string DADDIU_U12_(uint64 instruction) +static const char *DADDIU_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("DADDIU %s, %s, %s", rt, rs, u); } @@ -5456,15 +5359,15 @@ static std::string DADDIU_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string DADD(uint64 instruction) +static const char *DADD(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DADD %s, %s, %s", rd, rs, rt); } @@ -5480,15 +5383,15 @@ static std::string DADD(uint64 instruction) * rs ----- * rd ----- */ -static std::string DADDU(uint64 instruction) +static const char *DADDU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DADDU %s, %s, %s", rd, rs, rt); } @@ -5504,13 +5407,13 @@ static std::string DADDU(uint64 instruction) * rs ----- * rd ----- */ -static std::string DCLO(uint64 instruction) +static const char *DCLO(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("DCLO %s, %s", rt, rs); } @@ -5526,13 +5429,13 @@ static std::string DCLO(uint64 instruction) * rs ----- * rd ----- */ -static std::string DCLZ(uint64 instruction) +static const char *DCLZ(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("DCLZ %s, %s", rt, rs); } @@ -5548,15 +5451,15 @@ static std::string DCLZ(uint64 instruction) * rs ----- * rd ----- */ -static std::string DDIV(uint64 instruction) +static const char *DDIV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DDIV %s, %s, %s", rd, rs, rt); } @@ -5572,15 +5475,15 @@ static std::string DDIV(uint64 instruction) * rs ----- * rd ----- */ -static std::string DDIVU(uint64 instruction) +static const char *DDIVU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DDIVU %s, %s, %s", rd, rs, rt); } @@ -5596,7 +5499,7 @@ static std::string DDIVU(uint64 instruction) * rs ----- * rd ----- */ -static std::string DERET(uint64 instruction) +static const char *DERET(uint64 instruction) { (void)instruction; @@ -5614,17 +5517,17 @@ static std::string DERET(uint64 instruction) * rs ----- * rd ----- */ -static std::string DEXTM(uint64 instruction) +static const char *DEXTM(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string lsb = IMMEDIATE(copy(lsb_value)); - std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *lsb = IMMEDIATE(copy(lsb_value)); + const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5640,17 +5543,17 @@ static std::string DEXTM(uint64 instruction) * rs ----- * rd ----- */ -static std::string DEXT(uint64 instruction) +static const char *DEXT(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string lsb = IMMEDIATE(copy(lsb_value)); - std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *lsb = IMMEDIATE(copy(lsb_value)); + const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5666,17 +5569,17 @@ static std::string DEXT(uint64 instruction) * rs ----- * rd ----- */ -static std::string DEXTU(uint64 instruction) +static const char *DEXTU(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string lsb = IMMEDIATE(copy(lsb_value)); - std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *lsb = IMMEDIATE(copy(lsb_value)); + const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -5692,17 +5595,17 @@ static std::string DEXTU(uint64 instruction) * rs ----- * rd ----- */ -static std::string DINSM(uint64 instruction) +static const char *DINSM(uint64 instruction) { 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(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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); + const char *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); @@ -5720,17 +5623,17 @@ static std::string DINSM(uint64 instruction) * rs ----- * rd ----- */ -static std::string DINS(uint64 instruction) +static const char *DINS(uint64 instruction) { 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(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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); + const char *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); @@ -5748,17 +5651,17 @@ static std::string DINS(uint64 instruction) * rs ----- * rd ----- */ -static std::string DINSU(uint64 instruction) +static const char *DINSU(uint64 instruction) { 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(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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); + const char *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); @@ -5776,11 +5679,11 @@ static std::string DINSU(uint64 instruction) * rs ----- * rd ----- */ -static std::string DI(uint64 instruction) +static const char *DI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DI %s", rt); } @@ -5796,15 +5699,15 @@ static std::string DI(uint64 instruction) * rs ----- * rd ----- */ -static std::string DIV(uint64 instruction) +static const char *DIV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DIV %s, %s, %s", rd, rs, rt); } @@ -5820,15 +5723,15 @@ static std::string DIV(uint64 instruction) * rs ----- * rd ----- */ -static std::string DIV_D(uint64 instruction) +static const char *DIV_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("DIV.D %s, %s, %s", fd, fs, ft); } @@ -5844,15 +5747,15 @@ static std::string DIV_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string DIV_S(uint64 instruction) +static const char *DIV_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("DIV.S %s, %s, %s", fd, fs, ft); } @@ -5868,15 +5771,15 @@ static std::string DIV_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string DIVU(uint64 instruction) +static const char *DIVU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DIVU %s, %s, %s", rd, rs, rt); } @@ -5892,17 +5795,17 @@ static std::string DIVU(uint64 instruction) * rs ----- * rd ----- */ -static std::string DLSA(uint64 instruction) +static const char *DLSA(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string u2 = IMMEDIATE(copy(u2_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u2 = IMMEDIATE(copy(u2_value)); return img_format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); } @@ -5918,13 +5821,13 @@ static std::string DLSA(uint64 instruction) * rs ----- * rd ----- */ -static std::string DLUI_48_(uint64 instruction) +static const char *DLUI_48_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("DLUI %s, %s", rt, u); } @@ -5940,15 +5843,15 @@ static std::string DLUI_48_(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMFC0(uint64 instruction) +static const char *DMFC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("DMFC0 %s, %s, %s", rt, c0s, sel); } @@ -5964,13 +5867,13 @@ static std::string DMFC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMFC1(uint64 instruction) +static const char *DMFC1(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *fs = FPR(copy(fs_value)); return img_format("DMFC1 %s, %s", rt, fs); } @@ -5986,13 +5889,13 @@ static std::string DMFC1(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMFC2(uint64 instruction) +static const char *DMFC2(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("DMFC2 %s, %s", rt, cs); } @@ -6008,15 +5911,15 @@ static std::string DMFC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMFGC0(uint64 instruction) +static const char *DMFGC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("DMFGC0 %s, %s, %s", rt, c0s, sel); } @@ -6032,15 +5935,15 @@ static std::string DMFGC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMOD(uint64 instruction) +static const char *DMOD(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DMOD %s, %s, %s", rd, rs, rt); } @@ -6056,15 +5959,15 @@ static std::string DMOD(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMODU(uint64 instruction) +static const char *DMODU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DMODU %s, %s, %s", rd, rs, rt); } @@ -6080,15 +5983,15 @@ static std::string DMODU(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMTC0(uint64 instruction) +static const char *DMTC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("DMTC0 %s, %s, %s", rt, c0s, sel); } @@ -6104,13 +6007,13 @@ static std::string DMTC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMTC1(uint64 instruction) +static const char *DMTC1(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *fs = FPR(copy(fs_value)); return img_format("DMTC1 %s, %s", rt, fs); } @@ -6126,13 +6029,13 @@ static std::string DMTC1(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMTC2(uint64 instruction) +static const char *DMTC2(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("DMTC2 %s, %s", rt, cs); } @@ -6148,15 +6051,15 @@ static std::string DMTC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMTGC0(uint64 instruction) +static const char *DMTGC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("DMTGC0 %s, %s, %s", rt, c0s, sel); } @@ -6172,11 +6075,11 @@ static std::string DMTGC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMT(uint64 instruction) +static const char *DMT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DMT %s", rt); } @@ -6192,15 +6095,15 @@ static std::string DMT(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMUH(uint64 instruction) +static const char *DMUH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DMUH %s, %s, %s", rd, rs, rt); } @@ -6216,15 +6119,15 @@ static std::string DMUH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMUHU(uint64 instruction) +static const char *DMUHU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DMUHU %s, %s, %s", rd, rs, rt); } @@ -6240,15 +6143,15 @@ static std::string DMUHU(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMUL(uint64 instruction) +static const char *DMUL(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DMUL %s, %s, %s", rd, rs, rt); } @@ -6264,15 +6167,15 @@ static std::string DMUL(uint64 instruction) * rs ----- * rd ----- */ -static std::string DMULU(uint64 instruction) +static const char *DMULU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DMULU %s, %s, %s", rd, rs, rt); } @@ -6289,15 +6192,15 @@ static std::string DMULU(uint64 instruction) * rs ----- * ac -- */ -static std::string DPA_W_PH(uint64 instruction) +static const char *DPA_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6313,15 +6216,15 @@ static std::string DPA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPAQ_SA_L_W(uint64 instruction) +static const char *DPAQ_SA_L_W(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPAQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6337,15 +6240,15 @@ static std::string DPAQ_SA_L_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPAQ_S_W_PH(uint64 instruction) +static const char *DPAQ_S_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6361,15 +6264,15 @@ static std::string DPAQ_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPAQX_SA_W_PH(uint64 instruction) +static const char *DPAQX_SA_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPAQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6385,15 +6288,15 @@ static std::string DPAQX_SA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPAQX_S_W_PH(uint64 instruction) +static const char *DPAQX_S_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPAQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6409,15 +6312,15 @@ static std::string DPAQX_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPAU_H_QBL(uint64 instruction) +static const char *DPAU_H_QBL(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPAU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6433,15 +6336,15 @@ static std::string DPAU_H_QBL(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPAU_H_QBR(uint64 instruction) +static const char *DPAU_H_QBR(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPAU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6457,15 +6360,15 @@ static std::string DPAU_H_QBR(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPAX_W_PH(uint64 instruction) +static const char *DPAX_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPAX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6481,15 +6384,15 @@ static std::string DPAX_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPS_W_PH(uint64 instruction) +static const char *DPS_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPS.W.PH %s, %s, %s", ac, rs, rt); } @@ -6505,15 +6408,15 @@ static std::string DPS_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPSQ_SA_L_W(uint64 instruction) +static const char *DPSQ_SA_L_W(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPSQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6529,15 +6432,15 @@ static std::string DPSQ_SA_L_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPSQ_S_W_PH(uint64 instruction) +static const char *DPSQ_S_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPSQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6553,15 +6456,15 @@ static std::string DPSQ_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPSQX_SA_W_PH(uint64 instruction) +static const char *DPSQX_SA_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPSQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6577,15 +6480,15 @@ static std::string DPSQX_SA_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPSQX_S_W_PH(uint64 instruction) +static const char *DPSQX_S_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPSQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6601,15 +6504,15 @@ static std::string DPSQX_S_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPSU_H_QBL(uint64 instruction) +static const char *DPSU_H_QBL(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPSU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6625,15 +6528,15 @@ static std::string DPSU_H_QBL(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPSU_H_QBR(uint64 instruction) +static const char *DPSU_H_QBR(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPSU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6649,15 +6552,15 @@ static std::string DPSU_H_QBR(uint64 instruction) * rs ----- * rd ----- */ -static std::string DPSX_W_PH(uint64 instruction) +static const char *DPSX_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DPSX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6673,15 +6576,15 @@ static std::string DPSX_W_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string DROTR(uint64 instruction) +static const char *DROTR(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("DROTR %s, %s, %s", rt, rs, shift); } @@ -6697,15 +6600,15 @@ static std::string DROTR(uint64 instruction) * rs ----- * shift ----- */ -static std::string DROTR32(uint64 instruction) +static const char *DROTR32(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("DROTR32 %s, %s, %s", rt, rs, shift); } @@ -6721,15 +6624,15 @@ static std::string DROTR32(uint64 instruction) * rs ----- * rd ----- */ -static std::string DROTRV(uint64 instruction) +static const char *DROTRV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DROTRV %s, %s, %s", rd, rs, rt); } @@ -6745,17 +6648,17 @@ static std::string DROTRV(uint64 instruction) * rs ----- * rd ----- */ -static std::string DROTX(uint64 instruction) +static const char *DROTX(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); - std::string shiftx = IMMEDIATE(copy(shiftx_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); + const char *shiftx = IMMEDIATE(copy(shiftx_value)); return img_format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); } @@ -6771,15 +6674,15 @@ static std::string DROTX(uint64 instruction) * rs ----- * shift ----- */ -static std::string DSLL(uint64 instruction) +static const char *DSLL(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("DSLL %s, %s, %s", rt, rs, shift); } @@ -6795,15 +6698,15 @@ static std::string DSLL(uint64 instruction) * rs ----- * shift ----- */ -static std::string DSLL32(uint64 instruction) +static const char *DSLL32(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("DSLL32 %s, %s, %s", rt, rs, shift); } @@ -6819,15 +6722,15 @@ static std::string DSLL32(uint64 instruction) * rs ----- * rd ----- */ -static std::string DSLLV(uint64 instruction) +static const char *DSLLV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DSLLV %s, %s, %s", rd, rs, rt); } @@ -6843,15 +6746,15 @@ static std::string DSLLV(uint64 instruction) * rs ----- * shift ----- */ -static std::string DSRA(uint64 instruction) +static const char *DSRA(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("DSRA %s, %s, %s", rt, rs, shift); } @@ -6867,15 +6770,15 @@ static std::string DSRA(uint64 instruction) * rs ----- * shift ----- */ -static std::string DSRA32(uint64 instruction) +static const char *DSRA32(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("DSRA32 %s, %s, %s", rt, rs, shift); } @@ -6891,15 +6794,15 @@ static std::string DSRA32(uint64 instruction) * rs ----- * rd ----- */ -static std::string DSRAV(uint64 instruction) +static const char *DSRAV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DSRAV %s, %s, %s", rd, rs, rt); } @@ -6915,15 +6818,15 @@ static std::string DSRAV(uint64 instruction) * rs ----- * shift ----- */ -static std::string DSRL(uint64 instruction) +static const char *DSRL(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("DSRL %s, %s, %s", rt, rs, shift); } @@ -6939,15 +6842,15 @@ static std::string DSRL(uint64 instruction) * rs ----- * shift ----- */ -static std::string DSRL32(uint64 instruction) +static const char *DSRL32(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("DSRL32 %s, %s, %s", rt, rs, shift); } @@ -6963,15 +6866,15 @@ static std::string DSRL32(uint64 instruction) * rs ----- * rd ----- */ -static std::string DSRLV(uint64 instruction) +static const char *DSRLV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DSRLV %s, %s, %s", rd, rs, rt); } @@ -6987,15 +6890,15 @@ static std::string DSRLV(uint64 instruction) * rs ----- * rd ----- */ -static std::string DSUB(uint64 instruction) +static const char *DSUB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DSUB %s, %s, %s", rd, rs, rt); } @@ -7011,15 +6914,15 @@ static std::string DSUB(uint64 instruction) * rs ----- * rd ----- */ -static std::string DSUBU(uint64 instruction) +static const char *DSUBU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DSUBU %s, %s, %s", rd, rs, rt); } @@ -7035,11 +6938,11 @@ static std::string DSUBU(uint64 instruction) * rs ----- * rd ----- */ -static std::string DVPE(uint64 instruction) +static const char *DVPE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DVPE %s", rt); } @@ -7055,11 +6958,11 @@ static std::string DVPE(uint64 instruction) * rs ----- * rd ----- */ -static std::string DVP(uint64 instruction) +static const char *DVP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("DVP %s", rt); } @@ -7075,7 +6978,7 @@ static std::string DVP(uint64 instruction) * rs ----- * rd ----- */ -static std::string EHB(uint64 instruction) +static const char *EHB(uint64 instruction) { (void)instruction; @@ -7093,11 +6996,11 @@ static std::string EHB(uint64 instruction) * rs ----- * rd ----- */ -static std::string EI(uint64 instruction) +static const char *EI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("EI %s", rt); } @@ -7113,11 +7016,11 @@ static std::string EI(uint64 instruction) * rs ----- * rd ----- */ -static std::string EMT(uint64 instruction) +static const char *EMT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("EMT %s", rt); } @@ -7133,7 +7036,7 @@ static std::string EMT(uint64 instruction) * rs ----- * rd ----- */ -static std::string ERET(uint64 instruction) +static const char *ERET(uint64 instruction) { (void)instruction; @@ -7151,7 +7054,7 @@ static std::string ERET(uint64 instruction) * rs ----- * rd ----- */ -static std::string ERETNC(uint64 instruction) +static const char *ERETNC(uint64 instruction) { (void)instruction; @@ -7169,11 +7072,11 @@ static std::string ERETNC(uint64 instruction) * rs ----- * rd ----- */ -static std::string EVP(uint64 instruction) +static const char *EVP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("EVP %s", rt); } @@ -7189,11 +7092,11 @@ static std::string EVP(uint64 instruction) * rs ----- * rd ----- */ -static std::string EVPE(uint64 instruction) +static const char *EVPE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("EVPE %s", rt); } @@ -7209,17 +7112,17 @@ static std::string EVPE(uint64 instruction) * rs ----- * rd ----- */ -static std::string EXT(uint64 instruction) +static const char *EXT(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string lsb = IMMEDIATE(copy(lsb_value)); - std::string msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *lsb = IMMEDIATE(copy(lsb_value)); + const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); return img_format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); } @@ -7235,17 +7138,17 @@ static std::string EXT(uint64 instruction) * rs ----- * rd ----- */ -static std::string EXTD(uint64 instruction) +static const char *EXTD(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7261,17 +7164,17 @@ static std::string EXTD(uint64 instruction) * rs ----- * rd ----- */ -static std::string EXTD32(uint64 instruction) +static const char *EXTD32(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7287,15 +7190,15 @@ static std::string EXTD32(uint64 instruction) * rs ----- * rd ----- */ -static std::string EXTPDP(uint64 instruction) +static const char *EXTPDP(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string size = IMMEDIATE(copy(size_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *size = IMMEDIATE(copy(size_value)); return img_format("EXTPDP %s, %s, %s", rt, ac, size); } @@ -7311,15 +7214,15 @@ static std::string EXTPDP(uint64 instruction) * rs ----- * rd ----- */ -static std::string EXTPDPV(uint64 instruction) +static const char *EXTPDPV(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); return img_format("EXTPDPV %s, %s, %s", rt, ac, rs); } @@ -7335,15 +7238,15 @@ static std::string EXTPDPV(uint64 instruction) * rs ----- * rd ----- */ -static std::string EXTP(uint64 instruction) +static const char *EXTP(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string size = IMMEDIATE(copy(size_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *size = IMMEDIATE(copy(size_value)); return img_format("EXTP %s, %s, %s", rt, ac, size); } @@ -7359,15 +7262,15 @@ static std::string EXTP(uint64 instruction) * rs ----- * rd ----- */ -static std::string EXTPV(uint64 instruction) +static const char *EXTPV(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); return img_format("EXTPV %s, %s, %s", rt, ac, rs); } @@ -7384,15 +7287,15 @@ static std::string EXTPV(uint64 instruction) * shift ----- * ac -- */ -static std::string EXTR_RS_W(uint64 instruction) +static const char *EXTR_RS_W(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("EXTR_RS.W %s, %s, %s", rt, ac, shift); } @@ -7409,15 +7312,15 @@ static std::string EXTR_RS_W(uint64 instruction) * shift ----- * ac -- */ -static std::string EXTR_R_W(uint64 instruction) +static const char *EXTR_R_W(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("EXTR_R.W %s, %s, %s", rt, ac, shift); } @@ -7434,15 +7337,15 @@ static std::string EXTR_R_W(uint64 instruction) * shift ----- * ac -- */ -static std::string EXTR_S_H(uint64 instruction) +static const char *EXTR_S_H(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("EXTR_S.H %s, %s, %s", rt, ac, shift); } @@ -7459,15 +7362,15 @@ static std::string EXTR_S_H(uint64 instruction) * shift ----- * ac -- */ -static std::string EXTR_W(uint64 instruction) +static const char *EXTR_W(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("EXTR.W %s, %s, %s", rt, ac, shift); } @@ -7484,15 +7387,15 @@ static std::string EXTR_W(uint64 instruction) * rs ----- * ac -- */ -static std::string EXTRV_RS_W(uint64 instruction) +static const char *EXTRV_RS_W(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); return img_format("EXTRV_RS.W %s, %s, %s", rt, ac, rs); } @@ -7509,15 +7412,15 @@ static std::string EXTRV_RS_W(uint64 instruction) * rs ----- * ac -- */ -static std::string EXTRV_R_W(uint64 instruction) +static const char *EXTRV_R_W(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); return img_format("EXTRV_R.W %s, %s, %s", rt, ac, rs); } @@ -7534,15 +7437,15 @@ static std::string EXTRV_R_W(uint64 instruction) * rs ----- * ac -- */ -static std::string EXTRV_S_H(uint64 instruction) +static const char *EXTRV_S_H(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); return img_format("EXTRV_S.H %s, %s, %s", rt, ac, rs); } @@ -7559,15 +7462,15 @@ static std::string EXTRV_S_H(uint64 instruction) * rs ----- * ac -- */ -static std::string EXTRV_W(uint64 instruction) +static const char *EXTRV_W(uint64 instruction) { 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(copy(rt_value)); - std::string ac = AC(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); return img_format("EXTRV.W %s, %s, %s", rt, ac, rs); } @@ -7584,17 +7487,17 @@ static std::string EXTRV_W(uint64 instruction) * rd ----- * shift ----- */ -static std::string EXTW(uint64 instruction) +static const char *EXTW(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); } @@ -7610,13 +7513,13 @@ static std::string EXTW(uint64 instruction) * rs ----- * rd ----- */ -static std::string FLOOR_L_D(uint64 instruction) +static const char *FLOOR_L_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("FLOOR.L.D %s, %s", ft, fs); } @@ -7632,13 +7535,13 @@ static std::string FLOOR_L_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string FLOOR_L_S(uint64 instruction) +static const char *FLOOR_L_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("FLOOR.L.S %s, %s", ft, fs); } @@ -7654,13 +7557,13 @@ static std::string FLOOR_L_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string FLOOR_W_D(uint64 instruction) +static const char *FLOOR_W_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("FLOOR.W.D %s, %s", ft, fs); } @@ -7676,13 +7579,13 @@ static std::string FLOOR_W_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string FLOOR_W_S(uint64 instruction) +static const char *FLOOR_W_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("FLOOR.W.S %s, %s", ft, fs); } @@ -7698,15 +7601,15 @@ static std::string FLOOR_W_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string FORK(uint64 instruction) +static const char *FORK(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("FORK %s, %s, %s", rd, rs, rt); } @@ -7722,11 +7625,11 @@ static std::string FORK(uint64 instruction) * rs ----- * rd ----- */ -static std::string HYPCALL(uint64 instruction) +static const char *HYPCALL(uint64 instruction) { uint64 code_value = extract_code_17_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("HYPCALL %s", code); } @@ -7742,11 +7645,11 @@ static std::string HYPCALL(uint64 instruction) * rs ----- * rd ----- */ -static std::string HYPCALL_16_(uint64 instruction) +static const char *HYPCALL_16_(uint64 instruction) { uint64 code_value = extract_code_1_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("HYPCALL %s", code); } @@ -7762,17 +7665,17 @@ static std::string HYPCALL_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string INS(uint64 instruction) +static const char *INS(uint64 instruction) { 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(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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); + const char *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); @@ -7789,13 +7692,13 @@ static std::string INS(uint64 instruction) * rt ----- * rs ----- */ -static std::string INSV(uint64 instruction) +static const char *INSV(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("INSV %s, %s", rt, rs); } @@ -7811,7 +7714,7 @@ static std::string INSV(uint64 instruction) * rs ----- * rd ----- */ -static std::string IRET(uint64 instruction) +static const char *IRET(uint64 instruction) { (void)instruction; @@ -7829,11 +7732,11 @@ static std::string IRET(uint64 instruction) * rs ----- * rd ----- */ -static std::string JALRC_16_(uint64 instruction) +static const char *JALRC_16_(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("JALRC $%d, %s", 31, rt); } @@ -7849,13 +7752,13 @@ static std::string JALRC_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string JALRC_32_(uint64 instruction) +static const char *JALRC_32_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("JALRC %s, %s", rt, rs); } @@ -7871,13 +7774,13 @@ static std::string JALRC_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string JALRC_HB(uint64 instruction) +static const char *JALRC_HB(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("JALRC.HB %s, %s", rt, rs); } @@ -7893,11 +7796,11 @@ static std::string JALRC_HB(uint64 instruction) * rs ----- * rd ----- */ -static std::string JRC(uint64 instruction) +static const char *JRC(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - std::string rt = GPR(copy(rt_value)); + const char *rt = GPR(copy(rt_value)); return img_format("JRC %s", rt); } @@ -7913,15 +7816,15 @@ static std::string JRC(uint64 instruction) * rs ----- * rd ----- */ -static std::string LB_16_(uint64 instruction) +static const char *LB_16_(uint64 instruction) { 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(copy(u_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LB %s, %s(%s)", rt3, u, rs3); } @@ -7937,13 +7840,13 @@ static std::string LB_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LB_GP_(uint64 instruction) +static const char *LB_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LB %s, %s($%d)", rt, u, 28); } @@ -7959,15 +7862,15 @@ static std::string LB_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LB_S9_(uint64 instruction) +static const char *LB_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LB %s, %s(%s)", rt, s, rs); } @@ -7983,15 +7886,15 @@ static std::string LB_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LB_U12_(uint64 instruction) +static const char *LB_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LB %s, %s(%s)", rt, u, rs); } @@ -8007,15 +7910,15 @@ static std::string LB_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LBE(uint64 instruction) +static const char *LBE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LBE %s, %s(%s)", rt, s, rs); } @@ -8031,15 +7934,15 @@ static std::string LBE(uint64 instruction) * rs ----- * rd ----- */ -static std::string LBU_16_(uint64 instruction) +static const char *LBU_16_(uint64 instruction) { 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(copy(u_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LBU %s, %s(%s)", rt3, u, rs3); } @@ -8055,13 +7958,13 @@ static std::string LBU_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LBU_GP_(uint64 instruction) +static const char *LBU_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LBU %s, %s($%d)", rt, u, 28); } @@ -8077,15 +7980,15 @@ static std::string LBU_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LBU_S9_(uint64 instruction) +static const char *LBU_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LBU %s, %s(%s)", rt, s, rs); } @@ -8101,15 +8004,15 @@ static std::string LBU_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LBU_U12_(uint64 instruction) +static const char *LBU_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LBU %s, %s(%s)", rt, u, rs); } @@ -8125,15 +8028,15 @@ static std::string LBU_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LBUE(uint64 instruction) +static const char *LBUE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LBUE %s, %s(%s)", rt, s, rs); } @@ -8149,15 +8052,15 @@ static std::string LBUE(uint64 instruction) * rs ----- * rd ----- */ -static std::string LBUX(uint64 instruction) +static const char *LBUX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LBUX %s, %s(%s)", rd, rs, rt); } @@ -8173,15 +8076,15 @@ static std::string LBUX(uint64 instruction) * rs ----- * rd ----- */ -static std::string LBX(uint64 instruction) +static const char *LBX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LBX %s, %s(%s)", rd, rs, rt); } @@ -8197,13 +8100,13 @@ static std::string LBX(uint64 instruction) * rs ----- * rd ----- */ -static std::string LD_GP_(uint64 instruction) +static const char *LD_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LD %s, %s($%d)", rt, u, 28); } @@ -8219,15 +8122,15 @@ static std::string LD_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LD_S9_(uint64 instruction) +static const char *LD_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LD %s, %s(%s)", rt, s, rs); } @@ -8243,15 +8146,15 @@ static std::string LD_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LD_U12_(uint64 instruction) +static const char *LD_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LD %s, %s(%s)", rt, u, rs); } @@ -8267,13 +8170,13 @@ static std::string LD_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDC1_GP_(uint64 instruction) +static const char *LDC1_GP_(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LDC1 %s, %s($%d)", ft, u, 28); } @@ -8289,15 +8192,15 @@ static std::string LDC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDC1_S9_(uint64 instruction) +static const char *LDC1_S9_(uint64 instruction) { 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(copy(ft_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *ft = FPR(copy(ft_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LDC1 %s, %s(%s)", ft, s, rs); } @@ -8313,15 +8216,15 @@ static std::string LDC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDC1_U12_(uint64 instruction) +static const char *LDC1_U12_(uint64 instruction) { 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(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *ft = FPR(copy(ft_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LDC1 %s, %s(%s)", ft, u, rs); } @@ -8337,15 +8240,15 @@ static std::string LDC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDC1XS(uint64 instruction) +static const char *LDC1XS(uint64 instruction) { 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(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ft = FPR(copy(ft_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LDC1XS %s, %s(%s)", ft, rs, rt); } @@ -8361,15 +8264,15 @@ static std::string LDC1XS(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDC1X(uint64 instruction) +static const char *LDC1X(uint64 instruction) { 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(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ft = FPR(copy(ft_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LDC1X %s, %s(%s)", ft, rs, rt); } @@ -8385,15 +8288,15 @@ static std::string LDC1X(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDC2(uint64 instruction) +static const char *LDC2(uint64 instruction) { 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(copy(ct_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *ct = CPR(copy(ct_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LDC2 %s, %s(%s)", ct, s, rs); } @@ -8409,17 +8312,17 @@ static std::string LDC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDM(uint64 instruction) +static const char *LDM(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); + const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("LDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -8435,13 +8338,13 @@ static std::string LDM(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDPC_48_(uint64 instruction) +static const char *LDPC_48_(uint64 instruction) { 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); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 6); return img_format("LDPC %s, %s", rt, s); } @@ -8457,15 +8360,15 @@ static std::string LDPC_48_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDX(uint64 instruction) +static const char *LDX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LDX %s, %s(%s)", rd, rs, rt); } @@ -8481,15 +8384,15 @@ static std::string LDX(uint64 instruction) * rs ----- * rd ----- */ -static std::string LDXS(uint64 instruction) +static const char *LDXS(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LDXS %s, %s(%s)", rd, rs, rt); } @@ -8505,15 +8408,15 @@ static std::string LDXS(uint64 instruction) * rs ----- * rd ----- */ -static std::string LH_16_(uint64 instruction) +static const char *LH_16_(uint64 instruction) { 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(copy(u_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LH %s, %s(%s)", rt3, u, rs3); } @@ -8529,13 +8432,13 @@ static std::string LH_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LH_GP_(uint64 instruction) +static const char *LH_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LH %s, %s($%d)", rt, u, 28); } @@ -8551,15 +8454,15 @@ static std::string LH_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LH_S9_(uint64 instruction) +static const char *LH_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LH %s, %s(%s)", rt, s, rs); } @@ -8575,15 +8478,15 @@ static std::string LH_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LH_U12_(uint64 instruction) +static const char *LH_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LH %s, %s(%s)", rt, u, rs); } @@ -8599,15 +8502,15 @@ static std::string LH_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHE(uint64 instruction) +static const char *LHE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LHE %s, %s(%s)", rt, s, rs); } @@ -8623,15 +8526,15 @@ static std::string LHE(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHU_16_(uint64 instruction) +static const char *LHU_16_(uint64 instruction) { 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(copy(u_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LHU %s, %s(%s)", rt3, u, rs3); } @@ -8647,13 +8550,13 @@ static std::string LHU_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHU_GP_(uint64 instruction) +static const char *LHU_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LHU %s, %s($%d)", rt, u, 28); } @@ -8669,15 +8572,15 @@ static std::string LHU_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHU_S9_(uint64 instruction) +static const char *LHU_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LHU %s, %s(%s)", rt, s, rs); } @@ -8693,15 +8596,15 @@ static std::string LHU_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHU_U12_(uint64 instruction) +static const char *LHU_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LHU %s, %s(%s)", rt, u, rs); } @@ -8717,15 +8620,15 @@ static std::string LHU_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHUE(uint64 instruction) +static const char *LHUE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LHUE %s, %s(%s)", rt, s, rs); } @@ -8741,15 +8644,15 @@ static std::string LHUE(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHUX(uint64 instruction) +static const char *LHUX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LHUX %s, %s(%s)", rd, rs, rt); } @@ -8765,15 +8668,15 @@ static std::string LHUX(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHUXS(uint64 instruction) +static const char *LHUXS(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LHUXS %s, %s(%s)", rd, rs, rt); } @@ -8789,15 +8692,15 @@ static std::string LHUXS(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHXS(uint64 instruction) +static const char *LHXS(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LHXS %s, %s(%s)", rd, rs, rt); } @@ -8813,15 +8716,15 @@ static std::string LHXS(uint64 instruction) * rs ----- * rd ----- */ -static std::string LHX(uint64 instruction) +static const char *LHX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LHX %s, %s(%s)", rd, rs, rt); } @@ -8837,13 +8740,13 @@ static std::string LHX(uint64 instruction) * rs ----- * rd ----- */ -static std::string LI_16_(uint64 instruction) +static const char *LI_16_(uint64 instruction) { 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)); + const char *eu = IMMEDIATE(encode_eu_from_s_li16(eu_value)); return img_format("LI %s, %s", rt3, eu); } @@ -8859,13 +8762,13 @@ static std::string LI_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LI_48_(uint64 instruction) +static const char *LI_48_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); return img_format("LI %s, %s", rt, s); } @@ -8881,15 +8784,15 @@ static std::string LI_48_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LL(uint64 instruction) +static const char *LL(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LL %s, %s(%s)", rt, s, rs); } @@ -8905,15 +8808,15 @@ static std::string LL(uint64 instruction) * rs ----- * rd ----- */ -static std::string LLD(uint64 instruction) +static const char *LLD(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LLD %s, %s(%s)", rt, s, rs); } @@ -8929,15 +8832,15 @@ static std::string LLD(uint64 instruction) * rs ----- * rd ----- */ -static std::string LLDP(uint64 instruction) +static const char *LLDP(uint64 instruction) { 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(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ru = GPR(copy(ru_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LLDP %s, %s, (%s)", rt, ru, rs); } @@ -8953,15 +8856,15 @@ static std::string LLDP(uint64 instruction) * rs ----- * rd ----- */ -static std::string LLE(uint64 instruction) +static const char *LLE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LLE %s, %s(%s)", rt, s, rs); } @@ -8977,15 +8880,15 @@ static std::string LLE(uint64 instruction) * rs ----- * rd ----- */ -static std::string LLWP(uint64 instruction) +static const char *LLWP(uint64 instruction) { 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(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ru = GPR(copy(ru_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LLWP %s, %s, (%s)", rt, ru, rs); } @@ -9001,15 +8904,15 @@ static std::string LLWP(uint64 instruction) * rs ----- * rd ----- */ -static std::string LLWPE(uint64 instruction) +static const char *LLWPE(uint64 instruction) { 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(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ru = GPR(copy(ru_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LLWPE %s, %s, (%s)", rt, ru, rs); } @@ -9025,17 +8928,17 @@ static std::string LLWPE(uint64 instruction) * rs ----- * rd ----- */ -static std::string LSA(uint64 instruction) +static const char *LSA(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); - std::string u2 = IMMEDIATE(copy(u2_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u2 = IMMEDIATE(copy(u2_value)); return img_format("LSA %s, %s, %s, %s", rd, rs, rt, u2); } @@ -9051,13 +8954,13 @@ static std::string LSA(uint64 instruction) * rs ----- * rd ----- */ -static std::string LUI(uint64 instruction) +static const char *LUI(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); return img_format("LUI %s, %%hi(%s)", rt, s); } @@ -9073,15 +8976,15 @@ static std::string LUI(uint64 instruction) * rs ----- * rd ----- */ -static std::string LW_16_(uint64 instruction) +static const char *LW_16_(uint64 instruction) { 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(copy(u_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("LW %s, %s(%s)", rt3, u, rs3); } @@ -9097,15 +9000,15 @@ static std::string LW_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LW_4X4_(uint64 instruction) +static const char *LW_4X4_(uint64 instruction) { 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(copy(u_value)); - std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); return img_format("LW %s, %s(%s)", rt4, u, rs4); } @@ -9121,13 +9024,13 @@ static std::string LW_4X4_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LW_GP_(uint64 instruction) +static const char *LW_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LW %s, %s($%d)", rt, u, 28); } @@ -9143,13 +9046,13 @@ static std::string LW_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LW_GP16_(uint64 instruction) +static const char *LW_GP16_(uint64 instruction) { 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(copy(u_value)); + const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LW %s, %s($%d)", rt3, u, 28); } @@ -9165,15 +9068,15 @@ static std::string LW_GP16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LW_S9_(uint64 instruction) +static const char *LW_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LW %s, %s(%s)", rt, s, rs); } @@ -9189,13 +9092,13 @@ static std::string LW_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LW_SP_(uint64 instruction) +static const char *LW_SP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LW %s, %s($%d)", rt, u, 29); } @@ -9211,15 +9114,15 @@ static std::string LW_SP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LW_U12_(uint64 instruction) +static const char *LW_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LW %s, %s(%s)", rt, u, rs); } @@ -9235,13 +9138,13 @@ static std::string LW_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWC1_GP_(uint64 instruction) +static const char *LWC1_GP_(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LWC1 %s, %s($%d)", ft, u, 28); } @@ -9257,15 +9160,15 @@ static std::string LWC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWC1_S9_(uint64 instruction) +static const char *LWC1_S9_(uint64 instruction) { 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(copy(ft_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *ft = FPR(copy(ft_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LWC1 %s, %s(%s)", ft, s, rs); } @@ -9281,15 +9184,15 @@ static std::string LWC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWC1_U12_(uint64 instruction) +static const char *LWC1_U12_(uint64 instruction) { 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(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *ft = FPR(copy(ft_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LWC1 %s, %s(%s)", ft, u, rs); } @@ -9305,15 +9208,15 @@ static std::string LWC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWC1X(uint64 instruction) +static const char *LWC1X(uint64 instruction) { 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(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ft = FPR(copy(ft_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LWC1X %s, %s(%s)", ft, rs, rt); } @@ -9329,15 +9232,15 @@ static std::string LWC1X(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWC1XS(uint64 instruction) +static const char *LWC1XS(uint64 instruction) { 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(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ft = FPR(copy(ft_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LWC1XS %s, %s(%s)", ft, rs, rt); } @@ -9353,15 +9256,15 @@ static std::string LWC1XS(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWC2(uint64 instruction) +static const char *LWC2(uint64 instruction) { 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(copy(ct_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *ct = CPR(copy(ct_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LWC2 %s, %s(%s)", ct, s, rs); } @@ -9377,15 +9280,15 @@ static std::string LWC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWE(uint64 instruction) +static const char *LWE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LWE %s, %s(%s)", rt, s, rs); } @@ -9401,17 +9304,17 @@ static std::string LWE(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWM(uint64 instruction) +static const char *LWM(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); + const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("LWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -9427,13 +9330,13 @@ static std::string LWM(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWPC_48_(uint64 instruction) +static const char *LWPC_48_(uint64 instruction) { 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); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 6); return img_format("LWPC %s, %s", rt, s); } @@ -9449,13 +9352,13 @@ static std::string LWPC_48_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWU_GP_(uint64 instruction) +static const char *LWU_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("LWU %s, %s($%d)", rt, u, 28); } @@ -9471,15 +9374,15 @@ static std::string LWU_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWU_S9_(uint64 instruction) +static const char *LWU_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LWU %s, %s(%s)", rt, s, rs); } @@ -9495,15 +9398,15 @@ static std::string LWU_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWU_U12_(uint64 instruction) +static const char *LWU_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("LWU %s, %s(%s)", rt, u, rs); } @@ -9519,15 +9422,15 @@ static std::string LWU_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWUX(uint64 instruction) +static const char *LWUX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LWUX %s, %s(%s)", rd, rs, rt); } @@ -9543,15 +9446,15 @@ static std::string LWUX(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWUXS(uint64 instruction) +static const char *LWUXS(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LWUXS %s, %s(%s)", rd, rs, rt); } @@ -9567,15 +9470,15 @@ static std::string LWUXS(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWX(uint64 instruction) +static const char *LWX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LWX %s, %s(%s)", rd, rs, rt); } @@ -9591,15 +9494,15 @@ static std::string LWX(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWXS_16_(uint64 instruction) +static const char *LWXS_16_(uint64 instruction) { 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)); + const char *rt3 = IMMEDIATE(decode_gpr_gpr3(rt3_value)); return img_format("LWXS %s, %s(%s)", rd3, rs3, rt3); } @@ -9615,15 +9518,15 @@ static std::string LWXS_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string LWXS_32_(uint64 instruction) +static const char *LWXS_32_(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("LWXS %s, %s(%s)", rd, rs, rt); } @@ -9640,15 +9543,15 @@ static std::string LWXS_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MADD_DSP_(uint64 instruction) +static const char *MADD_DSP_(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MADD %s, %s, %s", ac, rs, rt); } @@ -9664,15 +9567,15 @@ static std::string MADD_DSP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MADDF_D(uint64 instruction) +static const char *MADDF_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MADDF.D %s, %s, %s", fd, fs, ft); } @@ -9688,15 +9591,15 @@ static std::string MADDF_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string MADDF_S(uint64 instruction) +static const char *MADDF_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MADDF.S %s, %s, %s", fd, fs, ft); } @@ -9713,15 +9616,15 @@ static std::string MADDF_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string MADDU_DSP_(uint64 instruction) +static const char *MADDU_DSP_(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MADDU %s, %s, %s", ac, rs, rt); } @@ -9738,15 +9641,15 @@ static std::string MADDU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MAQ_S_W_PHL(uint64 instruction) +static const char *MAQ_S_W_PHL(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MAQ_S.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9763,15 +9666,15 @@ static std::string MAQ_S_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -static std::string MAQ_S_W_PHR(uint64 instruction) +static const char *MAQ_S_W_PHR(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MAQ_S.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9788,15 +9691,15 @@ static std::string MAQ_S_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -static std::string MAQ_SA_W_PHL(uint64 instruction) +static const char *MAQ_SA_W_PHL(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MAQ_SA.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9813,15 +9716,15 @@ static std::string MAQ_SA_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -static std::string MAQ_SA_W_PHR(uint64 instruction) +static const char *MAQ_SA_W_PHR(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MAQ_SA.W.PHR %s, %s, %s", ac, rs, rt); } @@ -9837,15 +9740,15 @@ static std::string MAQ_SA_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -static std::string MAX_D(uint64 instruction) +static const char *MAX_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MAX.D %s, %s, %s", fd, fs, ft); } @@ -9861,15 +9764,15 @@ static std::string MAX_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string MAX_S(uint64 instruction) +static const char *MAX_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MAX.S %s, %s, %s", fd, fs, ft); } @@ -9885,15 +9788,15 @@ static std::string MAX_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string MAXA_D(uint64 instruction) +static const char *MAXA_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MAXA.D %s, %s, %s", fd, fs, ft); } @@ -9909,15 +9812,15 @@ static std::string MAXA_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string MAXA_S(uint64 instruction) +static const char *MAXA_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MAXA.S %s, %s, %s", fd, fs, ft); } @@ -9933,15 +9836,15 @@ static std::string MAXA_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFC0(uint64 instruction) +static const char *MFC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MFC0 %s, %s, %s", rt, c0s, sel); } @@ -9957,13 +9860,13 @@ static std::string MFC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFC1(uint64 instruction) +static const char *MFC1(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *fs = FPR(copy(fs_value)); return img_format("MFC1 %s, %s", rt, fs); } @@ -9979,13 +9882,13 @@ static std::string MFC1(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFC2(uint64 instruction) +static const char *MFC2(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("MFC2 %s, %s", rt, cs); } @@ -10001,15 +9904,15 @@ static std::string MFC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFGC0(uint64 instruction) +static const char *MFGC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MFGC0 %s, %s, %s", rt, c0s, sel); } @@ -10025,15 +9928,15 @@ static std::string MFGC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFHC0(uint64 instruction) +static const char *MFHC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MFHC0 %s, %s, %s", rt, c0s, sel); } @@ -10049,13 +9952,13 @@ static std::string MFHC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFHC1(uint64 instruction) +static const char *MFHC1(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *fs = FPR(copy(fs_value)); return img_format("MFHC1 %s, %s", rt, fs); } @@ -10071,13 +9974,13 @@ static std::string MFHC1(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFHC2(uint64 instruction) +static const char *MFHC2(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("MFHC2 %s, %s", rt, cs); } @@ -10093,15 +9996,15 @@ static std::string MFHC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFHGC0(uint64 instruction) +static const char *MFHGC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MFHGC0 %s, %s, %s", rt, c0s, sel); } @@ -10116,13 +10019,13 @@ static std::string MFHGC0(uint64 instruction) * rt ----- * ac -- */ -static std::string MFHI_DSP_(uint64 instruction) +static const char *MFHI_DSP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); return img_format("MFHI %s, %s", rt, ac); } @@ -10138,17 +10041,17 @@ static std::string MFHI_DSP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFHTR(uint64 instruction) +static const char *MFHTR(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = IMMEDIATE(copy(c0s_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = IMMEDIATE(copy(c0s_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10163,13 +10066,13 @@ static std::string MFHTR(uint64 instruction) * rt ----- * ac -- */ -static std::string MFLO_DSP_(uint64 instruction) +static const char *MFLO_DSP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); return img_format("MFLO %s, %s", rt, ac); } @@ -10185,17 +10088,17 @@ static std::string MFLO_DSP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MFTR(uint64 instruction) +static const char *MFTR(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = IMMEDIATE(copy(c0s_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = IMMEDIATE(copy(c0s_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10211,15 +10114,15 @@ static std::string MFTR(uint64 instruction) * rs ----- * rd ----- */ -static std::string MIN_D(uint64 instruction) +static const char *MIN_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MIN.D %s, %s, %s", fd, fs, ft); } @@ -10235,15 +10138,15 @@ static std::string MIN_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string MIN_S(uint64 instruction) +static const char *MIN_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MIN.S %s, %s, %s", fd, fs, ft); } @@ -10259,15 +10162,15 @@ static std::string MIN_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string MINA_D(uint64 instruction) +static const char *MINA_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MINA.D %s, %s, %s", fd, fs, ft); } @@ -10283,15 +10186,15 @@ static std::string MINA_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string MINA_S(uint64 instruction) +static const char *MINA_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MINA.S %s, %s, %s", fd, fs, ft); } @@ -10307,15 +10210,15 @@ static std::string MINA_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOD(uint64 instruction) +static const char *MOD(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MOD %s, %s, %s", rd, rs, rt); } @@ -10331,15 +10234,15 @@ static std::string MOD(uint64 instruction) * rs ----- * rd ----- */ -static std::string MODSUB(uint64 instruction) +static const char *MODSUB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MODSUB %s, %s, %s", rd, rs, rt); } @@ -10355,15 +10258,15 @@ static std::string MODSUB(uint64 instruction) * rs ----- * rd ----- */ -static std::string MODU(uint64 instruction) +static const char *MODU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MODU %s, %s, %s", rd, rs, rt); } @@ -10379,13 +10282,13 @@ static std::string MODU(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOV_D(uint64 instruction) +static const char *MOV_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("MOV.D %s, %s", ft, fs); } @@ -10401,13 +10304,13 @@ static std::string MOV_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOV_S(uint64 instruction) +static const char *MOV_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("MOV.S %s, %s", ft, fs); } @@ -10423,15 +10326,15 @@ static std::string MOV_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOVE_BALC(uint64 instruction) +static const char *MOVE_BALC(uint64 instruction) { 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(encode_s_from_address(s_value), 4); + const char *rd1 = GPR(decode_gpr_gpr1(rd1_value)); + const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 4); return img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); } @@ -10447,17 +10350,17 @@ static std::string MOVE_BALC(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOVEP(uint64 instruction) +static const char *MOVEP(uint64 instruction) { 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 */ @@ -10474,16 +10377,16 @@ static std::string MOVEP(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOVEP_REV_(uint64 instruction) +static const char *MOVEP_REV_(uint64 instruction) { 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); @@ -10501,13 +10404,13 @@ static std::string MOVEP_REV_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOVE(uint64 instruction) +static const char *MOVE(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("MOVE %s, %s", rt, rs); } @@ -10523,15 +10426,15 @@ static std::string MOVE(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOVN(uint64 instruction) +static const char *MOVN(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MOVN %s, %s, %s", rd, rs, rt); } @@ -10547,15 +10450,15 @@ static std::string MOVN(uint64 instruction) * rs ----- * rd ----- */ -static std::string MOVZ(uint64 instruction) +static const char *MOVZ(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MOVZ %s, %s, %s", rd, rs, rt); } @@ -10571,15 +10474,15 @@ static std::string MOVZ(uint64 instruction) * rs ----- * ac -- */ -static std::string MSUB_DSP_(uint64 instruction) +static const char *MSUB_DSP_(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MSUB %s, %s, %s", ac, rs, rt); } @@ -10595,15 +10498,15 @@ static std::string MSUB_DSP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MSUBF_D(uint64 instruction) +static const char *MSUBF_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MSUBF.D %s, %s, %s", fd, fs, ft); } @@ -10619,15 +10522,15 @@ static std::string MSUBF_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string MSUBF_S(uint64 instruction) +static const char *MSUBF_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MSUBF.S %s, %s, %s", fd, fs, ft); } @@ -10643,15 +10546,15 @@ static std::string MSUBF_S(uint64 instruction) * rs ----- * ac -- */ -static std::string MSUBU_DSP_(uint64 instruction) +static const char *MSUBU_DSP_(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MSUBU %s, %s, %s", ac, rs, rt); } @@ -10667,15 +10570,15 @@ static std::string MSUBU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTC0(uint64 instruction) +static const char *MTC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MTC0 %s, %s, %s", rt, c0s, sel); } @@ -10691,13 +10594,13 @@ static std::string MTC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTC1(uint64 instruction) +static const char *MTC1(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *fs = FPR(copy(fs_value)); return img_format("MTC1 %s, %s", rt, fs); } @@ -10713,13 +10616,13 @@ static std::string MTC1(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTC2(uint64 instruction) +static const char *MTC2(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("MTC2 %s, %s", rt, cs); } @@ -10735,15 +10638,15 @@ static std::string MTC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTGC0(uint64 instruction) +static const char *MTGC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MTGC0 %s, %s, %s", rt, c0s, sel); } @@ -10759,15 +10662,15 @@ static std::string MTGC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTHC0(uint64 instruction) +static const char *MTHC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MTHC0 %s, %s, %s", rt, c0s, sel); } @@ -10783,13 +10686,13 @@ static std::string MTHC0(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTHC1(uint64 instruction) +static const char *MTHC1(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *fs = FPR(copy(fs_value)); return img_format("MTHC1 %s, %s", rt, fs); } @@ -10805,13 +10708,13 @@ static std::string MTHC1(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTHC2(uint64 instruction) +static const char *MTHC2(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *cs = CPR(copy(cs_value)); return img_format("MTHC2 %s, %s", rt, cs); } @@ -10827,15 +10730,15 @@ static std::string MTHC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTHGC0(uint64 instruction) +static const char *MTHGC0(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = CPR(copy(c0s_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = CPR(copy(c0s_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MTHGC0 %s, %s, %s", rt, c0s, sel); } @@ -10850,13 +10753,13 @@ static std::string MTHGC0(uint64 instruction) * rs ----- * ac -- */ -static std::string MTHI_DSP_(uint64 instruction) +static const char *MTHI_DSP_(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *ac = AC(copy(ac_value)); return img_format("MTHI %s, %s", rs, ac); } @@ -10871,13 +10774,13 @@ static std::string MTHI_DSP_(uint64 instruction) * rs ----- * ac -- */ -static std::string MTHLIP(uint64 instruction) +static const char *MTHLIP(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *ac = AC(copy(ac_value)); return img_format("MTHLIP %s, %s", rs, ac); } @@ -10893,17 +10796,17 @@ static std::string MTHLIP(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTHTR(uint64 instruction) +static const char *MTHTR(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = IMMEDIATE(copy(c0s_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = IMMEDIATE(copy(c0s_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10918,13 +10821,13 @@ static std::string MTHTR(uint64 instruction) * rs ----- * ac -- */ -static std::string MTLO_DSP_(uint64 instruction) +static const char *MTLO_DSP_(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *ac = AC(copy(ac_value)); return img_format("MTLO %s, %s", rs, ac); } @@ -10940,17 +10843,17 @@ static std::string MTLO_DSP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MTTR(uint64 instruction) +static const char *MTTR(uint64 instruction) { 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(copy(rt_value)); - std::string c0s = IMMEDIATE(copy(c0s_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *c0s = IMMEDIATE(copy(c0s_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); } @@ -10966,15 +10869,15 @@ static std::string MTTR(uint64 instruction) * rs ----- * rd ----- */ -static std::string MUH(uint64 instruction) +static const char *MUH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MUH %s, %s, %s", rd, rs, rt); } @@ -10990,15 +10893,15 @@ static std::string MUH(uint64 instruction) * rs ----- * rd ----- */ -static std::string MUHU(uint64 instruction) +static const char *MUHU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MUHU %s, %s, %s", rd, rs, rt); } @@ -11014,15 +10917,15 @@ static std::string MUHU(uint64 instruction) * rs ----- * rd ----- */ -static std::string MUL_32_(uint64 instruction) +static const char *MUL_32_(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MUL %s, %s, %s", rd, rs, rt); } @@ -11038,13 +10941,13 @@ static std::string MUL_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MUL_4X4_(uint64 instruction) +static const char *MUL_4X4_(uint64 instruction) { 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); } @@ -11060,15 +10963,15 @@ static std::string MUL_4X4_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MUL_D(uint64 instruction) +static const char *MUL_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MUL.D %s, %s, %s", fd, fs, ft); } @@ -11085,15 +10988,15 @@ static std::string MUL_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string MUL_PH(uint64 instruction) +static const char *MUL_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MUL.PH %s, %s, %s", rd, rs, rt); } @@ -11110,15 +11013,15 @@ static std::string MUL_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string MUL_S_PH(uint64 instruction) +static const char *MUL_S_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MUL_S.PH %s, %s, %s", rd, rs, rt); } @@ -11134,15 +11037,15 @@ static std::string MUL_S_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string MUL_S(uint64 instruction) +static const char *MUL_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("MUL.S %s, %s, %s", fd, fs, ft); } @@ -11159,15 +11062,15 @@ static std::string MUL_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULEQ_S_W_PHL(uint64 instruction) +static const char *MULEQ_S_W_PHL(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULEQ_S.W.PHL %s, %s, %s", rd, rs, rt); } @@ -11184,15 +11087,15 @@ static std::string MULEQ_S_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULEQ_S_W_PHR(uint64 instruction) +static const char *MULEQ_S_W_PHR(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULEQ_S.W.PHR %s, %s, %s", rd, rs, rt); } @@ -11209,15 +11112,15 @@ static std::string MULEQ_S_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULEU_S_PH_QBL(uint64 instruction) +static const char *MULEU_S_PH_QBL(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULEU_S.PH.QBL %s, %s, %s", rd, rs, rt); } @@ -11234,15 +11137,15 @@ static std::string MULEU_S_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULEU_S_PH_QBR(uint64 instruction) +static const char *MULEU_S_PH_QBR(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULEU_S.PH.QBR %s, %s, %s", rd, rs, rt); } @@ -11259,15 +11162,15 @@ static std::string MULEU_S_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULQ_RS_PH(uint64 instruction) +static const char *MULQ_RS_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULQ_RS.PH %s, %s, %s", rd, rs, rt); } @@ -11284,15 +11187,15 @@ static std::string MULQ_RS_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULQ_RS_W(uint64 instruction) +static const char *MULQ_RS_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULQ_RS.W %s, %s, %s", rd, rs, rt); } @@ -11309,15 +11212,15 @@ static std::string MULQ_RS_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULQ_S_PH(uint64 instruction) +static const char *MULQ_S_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -11334,15 +11237,15 @@ static std::string MULQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULQ_S_W(uint64 instruction) +static const char *MULQ_S_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULQ_S.W %s, %s, %s", rd, rs, rt); } @@ -11359,15 +11262,15 @@ static std::string MULQ_S_W(uint64 instruction) * rs ----- * ac -- */ -static std::string MULSA_W_PH(uint64 instruction) +static const char *MULSA_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULSA.W.PH %s, %s, %s", ac, rs, rt); } @@ -11384,15 +11287,15 @@ static std::string MULSA_W_PH(uint64 instruction) * rs ----- * ac -- */ -static std::string MULSAQ_S_W_PH(uint64 instruction) +static const char *MULSAQ_S_W_PH(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULSAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -11408,15 +11311,15 @@ static std::string MULSAQ_S_W_PH(uint64 instruction) * rs ----- * ac -- */ -static std::string MULT_DSP_(uint64 instruction) +static const char *MULT_DSP_(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULT %s, %s, %s", ac, rs, rt); } @@ -11432,15 +11335,15 @@ static std::string MULT_DSP_(uint64 instruction) * rs ----- * ac -- */ -static std::string MULTU_DSP_(uint64 instruction) +static const char *MULTU_DSP_(uint64 instruction) { 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(copy(ac_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULTU %s, %s, %s", ac, rs, rt); } @@ -11456,15 +11359,15 @@ static std::string MULTU_DSP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string MULU(uint64 instruction) +static const char *MULU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("MULU %s, %s, %s", rd, rs, rt); } @@ -11480,13 +11383,13 @@ static std::string MULU(uint64 instruction) * rs ----- * rd ----- */ -static std::string NEG_D(uint64 instruction) +static const char *NEG_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("NEG.D %s, %s", ft, fs); } @@ -11502,13 +11405,13 @@ static std::string NEG_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string NEG_S(uint64 instruction) +static const char *NEG_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("NEG.S %s, %s", ft, fs); } @@ -11524,7 +11427,7 @@ static std::string NEG_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string NOP_16_(uint64 instruction) +static const char *NOP_16_(uint64 instruction) { (void)instruction; @@ -11542,7 +11445,7 @@ static std::string NOP_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string NOP_32_(uint64 instruction) +static const char *NOP_32_(uint64 instruction) { (void)instruction; @@ -11560,15 +11463,15 @@ static std::string NOP_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string NOR(uint64 instruction) +static const char *NOR(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("NOR %s, %s, %s", rd, rs, rt); } @@ -11584,13 +11487,13 @@ static std::string NOR(uint64 instruction) * rs ----- * rd ----- */ -static std::string NOT_16_(uint64 instruction) +static const char *NOT_16_(uint64 instruction) { 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); } @@ -11606,13 +11509,13 @@ static std::string NOT_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string OR_16_(uint64 instruction) +static const char *OR_16_(uint64 instruction) { 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); } @@ -11628,15 +11531,15 @@ static std::string OR_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string OR_32_(uint64 instruction) +static const char *OR_32_(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("OR %s, %s, %s", rd, rs, rt); } @@ -11652,15 +11555,15 @@ static std::string OR_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string ORI(uint64 instruction) +static const char *ORI(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("ORI %s, %s, %s", rt, rs, u); } @@ -11677,15 +11580,15 @@ static std::string ORI(uint64 instruction) * rs ----- * rd ----- */ -static std::string PACKRL_PH(uint64 instruction) +static const char *PACKRL_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("PACKRL.PH %s, %s, %s", rd, rs, rt); } @@ -11701,7 +11604,7 @@ static std::string PACKRL_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string PAUSE(uint64 instruction) +static const char *PAUSE(uint64 instruction) { (void)instruction; @@ -11720,15 +11623,15 @@ static std::string PAUSE(uint64 instruction) * rs ----- * rd ----- */ -static std::string PICK_PH(uint64 instruction) +static const char *PICK_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("PICK.PH %s, %s, %s", rd, rs, rt); } @@ -11745,15 +11648,15 @@ static std::string PICK_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string PICK_QB(uint64 instruction) +static const char *PICK_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("PICK.QB %s, %s, %s", rd, rs, rt); } @@ -11770,13 +11673,13 @@ static std::string PICK_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEQ_W_PHL(uint64 instruction) +static const char *PRECEQ_W_PHL(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEQ.W.PHL %s, %s", rt, rs); } @@ -11793,13 +11696,13 @@ static std::string PRECEQ_W_PHL(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEQ_W_PHR(uint64 instruction) +static const char *PRECEQ_W_PHR(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEQ.W.PHR %s, %s", rt, rs); } @@ -11816,13 +11719,13 @@ static std::string PRECEQ_W_PHR(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEQU_PH_QBLA(uint64 instruction) +static const char *PRECEQU_PH_QBLA(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEQU.PH.QBLA %s, %s", rt, rs); } @@ -11839,13 +11742,13 @@ static std::string PRECEQU_PH_QBLA(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEQU_PH_QBL(uint64 instruction) +static const char *PRECEQU_PH_QBL(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEQU.PH.QBL %s, %s", rt, rs); } @@ -11862,13 +11765,13 @@ static std::string PRECEQU_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEQU_PH_QBRA(uint64 instruction) +static const char *PRECEQU_PH_QBRA(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEQU.PH.QBRA %s, %s", rt, rs); } @@ -11885,13 +11788,13 @@ static std::string PRECEQU_PH_QBRA(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEQU_PH_QBR(uint64 instruction) +static const char *PRECEQU_PH_QBR(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEQU.PH.QBR %s, %s", rt, rs); } @@ -11909,13 +11812,13 @@ static std::string PRECEQU_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEU_PH_QBLA(uint64 instruction) +static const char *PRECEU_PH_QBLA(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEU.PH.QBLA %s, %s", rt, rs); } @@ -11932,13 +11835,13 @@ static std::string PRECEU_PH_QBLA(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEU_PH_QBL(uint64 instruction) +static const char *PRECEU_PH_QBL(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEU.PH.QBL %s, %s", rt, rs); } @@ -11956,13 +11859,13 @@ static std::string PRECEU_PH_QBL(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEU_PH_QBRA(uint64 instruction) +static const char *PRECEU_PH_QBRA(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEU.PH.QBRA %s, %s", rt, rs); } @@ -11979,13 +11882,13 @@ static std::string PRECEU_PH_QBRA(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECEU_PH_QBR(uint64 instruction) +static const char *PRECEU_PH_QBR(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PRECEU.PH.QBR %s, %s", rt, rs); } @@ -12002,15 +11905,15 @@ static std::string PRECEU_PH_QBR(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECR_QB_PH(uint64 instruction) +static const char *PRECR_QB_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("PRECR.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12027,15 +11930,15 @@ static std::string PRECR_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECR_SRA_PH_W(uint64 instruction) +static const char *PRECR_SRA_PH_W(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); } @@ -12052,15 +11955,15 @@ static std::string PRECR_SRA_PH_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECR_SRA_R_PH_W(uint64 instruction) +static const char *PRECR_SRA_R_PH_W(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); } @@ -12077,15 +11980,15 @@ static std::string PRECR_SRA_R_PH_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECRQ_PH_W(uint64 instruction) +static const char *PRECRQ_PH_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("PRECRQ.PH.W %s, %s, %s", rd, rs, rt); } @@ -12102,15 +12005,15 @@ static std::string PRECRQ_PH_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECRQ_QB_PH(uint64 instruction) +static const char *PRECRQ_QB_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("PRECRQ.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12127,15 +12030,15 @@ static std::string PRECRQ_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECRQ_RS_PH_W(uint64 instruction) +static const char *PRECRQ_RS_PH_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("PRECRQ_RS.PH.W %s, %s, %s", rd, rs, rt); } @@ -12152,15 +12055,15 @@ static std::string PRECRQ_RS_PH_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string PRECRQU_S_QB_PH(uint64 instruction) +static const char *PRECRQU_S_QB_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("PRECRQU_S.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12176,15 +12079,15 @@ static std::string PRECRQU_S_QB_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string PREF_S9_(uint64 instruction) +static const char *PREF_S9_(uint64 instruction) { 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(copy(hint_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *hint = IMMEDIATE(copy(hint_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PREF %s, %s(%s)", hint, s, rs); } @@ -12200,15 +12103,15 @@ static std::string PREF_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string PREF_U12_(uint64 instruction) +static const char *PREF_U12_(uint64 instruction) { 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(copy(hint_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *hint = IMMEDIATE(copy(hint_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PREF %s, %s(%s)", hint, u, rs); } @@ -12224,15 +12127,15 @@ static std::string PREF_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string PREFE(uint64 instruction) +static const char *PREFE(uint64 instruction) { 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(copy(hint_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *hint = IMMEDIATE(copy(hint_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("PREFE %s, %s(%s)", hint, s, rs); } @@ -12248,15 +12151,15 @@ static std::string PREFE(uint64 instruction) * rs ----- * rd ----- */ -static std::string PREPEND(uint64 instruction) +static const char *PREPEND(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("PREPEND %s, %s, %s", rt, rs, sa); } @@ -12271,13 +12174,13 @@ static std::string PREPEND(uint64 instruction) * rt ----- * rs ----- */ -static std::string RADDU_W_QB(uint64 instruction) +static const char *RADDU_W_QB(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("RADDU.W.QB %s, %s", rt, rs); } @@ -12292,13 +12195,13 @@ static std::string RADDU_W_QB(uint64 instruction) * rt ----- * mask ------- */ -static std::string RDDSP(uint64 instruction) +static const char *RDDSP(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *mask = IMMEDIATE(copy(mask_value)); return img_format("RDDSP %s, %s", rt, mask); } @@ -12314,15 +12217,15 @@ static std::string RDDSP(uint64 instruction) * rs ----- * rd ----- */ -static std::string RDHWR(uint64 instruction) +static const char *RDHWR(uint64 instruction) { 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(copy(rt_value)); - std::string hs = CPR(copy(hs_value)); - std::string sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy(rt_value)); + const char *hs = CPR(copy(hs_value)); + const char *sel = IMMEDIATE(copy(sel_value)); return img_format("RDHWR %s, %s, %s", rt, hs, sel); } @@ -12338,13 +12241,13 @@ static std::string RDHWR(uint64 instruction) * rs ----- * rd ----- */ -static std::string RDPGPR(uint64 instruction) +static const char *RDPGPR(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("RDPGPR %s, %s", rt, rs); } @@ -12360,13 +12263,13 @@ static std::string RDPGPR(uint64 instruction) * rs ----- * rd ----- */ -static std::string RECIP_D(uint64 instruction) +static const char *RECIP_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("RECIP.D %s, %s", ft, fs); } @@ -12382,13 +12285,13 @@ static std::string RECIP_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string RECIP_S(uint64 instruction) +static const char *RECIP_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("RECIP.S %s, %s", ft, fs); } @@ -12404,13 +12307,13 @@ static std::string RECIP_S(uint64 instruction) * rt ----- * s ---------- */ -static std::string REPL_PH(uint64 instruction) +static const char *REPL_PH(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); return img_format("REPL.PH %s, %s", rt, s); } @@ -12426,13 +12329,13 @@ static std::string REPL_PH(uint64 instruction) * rt ----- * u -------- */ -static std::string REPL_QB(uint64 instruction) +static const char *REPL_QB(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("REPL.QB %s, %s", rt, u); } @@ -12448,13 +12351,13 @@ static std::string REPL_QB(uint64 instruction) * rt ----- * rs ----- */ -static std::string REPLV_PH(uint64 instruction) +static const char *REPLV_PH(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("REPLV.PH %s, %s", rt, rs); } @@ -12469,13 +12372,13 @@ static std::string REPLV_PH(uint64 instruction) * rt ----- * rs ----- */ -static std::string REPLV_QB(uint64 instruction) +static const char *REPLV_QB(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("REPLV.QB %s, %s", rt, rs); } @@ -12491,14 +12394,14 @@ static std::string REPLV_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string RESTORE_32_(uint64 instruction) +static const char *RESTORE_32_(uint64 instruction) { 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(copy(u_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("RESTORE %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12514,13 +12417,13 @@ static std::string RESTORE_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string RESTORE_JRC_16_(uint64 instruction) +static const char *RESTORE_JRC_16_(uint64 instruction) { 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(copy(u_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("RESTORE.JRC %s%s", u, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12536,14 +12439,14 @@ static std::string RESTORE_JRC_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string RESTORE_JRC_32_(uint64 instruction) +static const char *RESTORE_JRC_32_(uint64 instruction) { 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(copy(u_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("RESTORE.JRC %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12559,13 +12462,13 @@ static std::string RESTORE_JRC_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string RESTOREF(uint64 instruction) +static const char *RESTOREF(uint64 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); - std::string u = IMMEDIATE(copy(u_value)); - std::string count = IMMEDIATE(copy(count_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *count = IMMEDIATE(copy(count_value)); return img_format("RESTOREF %s, %s", u, count); } @@ -12581,13 +12484,13 @@ static std::string RESTOREF(uint64 instruction) * rs ----- * rd ----- */ -static std::string RINT_D(uint64 instruction) +static const char *RINT_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("RINT.D %s, %s", ft, fs); } @@ -12603,13 +12506,13 @@ static std::string RINT_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string RINT_S(uint64 instruction) +static const char *RINT_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("RINT.S %s, %s", ft, fs); } @@ -12625,15 +12528,15 @@ static std::string RINT_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string ROTR(uint64 instruction) +static const char *ROTR(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("ROTR %s, %s, %s", rt, rs, shift); } @@ -12649,15 +12552,15 @@ static std::string ROTR(uint64 instruction) * rs ----- * rd ----- */ -static std::string ROTRV(uint64 instruction) +static const char *ROTRV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("ROTRV %s, %s, %s", rd, rs, rt); } @@ -12673,7 +12576,7 @@ static std::string ROTRV(uint64 instruction) * rs ----- * rd ----- */ -static std::string ROTX(uint64 instruction) +static const char *ROTX(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 rs_value = extract_rs_20_19_18_17_16(instruction); @@ -12681,11 +12584,11 @@ static std::string ROTX(uint64 instruction) 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); + const char *shiftx = IMMEDIATE(copy(shiftx_value)); + const char *stripe = IMMEDIATE(copy(stripe_value)); return img_format("ROTX %s, %s, %s, %s, %s", rt, rs, shift, shiftx, stripe); @@ -12702,13 +12605,13 @@ static std::string ROTX(uint64 instruction) * rs ----- * rd ----- */ -static std::string ROUND_L_D(uint64 instruction) +static const char *ROUND_L_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("ROUND.L.D %s, %s", ft, fs); } @@ -12724,13 +12627,13 @@ static std::string ROUND_L_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string ROUND_L_S(uint64 instruction) +static const char *ROUND_L_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("ROUND.L.S %s, %s", ft, fs); } @@ -12746,13 +12649,13 @@ static std::string ROUND_L_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string ROUND_W_D(uint64 instruction) +static const char *ROUND_W_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("ROUND.W.D %s, %s", ft, fs); } @@ -12768,13 +12671,13 @@ static std::string ROUND_W_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string ROUND_W_S(uint64 instruction) +static const char *ROUND_W_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("ROUND.W.S %s, %s", ft, fs); } @@ -12790,13 +12693,13 @@ static std::string ROUND_W_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string RSQRT_D(uint64 instruction) +static const char *RSQRT_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("RSQRT.D %s, %s", ft, fs); } @@ -12812,13 +12715,13 @@ static std::string RSQRT_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string RSQRT_S(uint64 instruction) +static const char *RSQRT_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("RSQRT.S %s, %s", ft, fs); } @@ -12834,13 +12737,13 @@ static std::string RSQRT_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string SAVE_16_(uint64 instruction) +static const char *SAVE_16_(uint64 instruction) { 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(copy(u_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SAVE %s%s", u, save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); } @@ -12856,14 +12759,14 @@ static std::string SAVE_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SAVE_32_(uint64 instruction) +static const char *SAVE_32_(uint64 instruction) { 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(copy(u_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SAVE %s%s", u, save_restore_list(rt_value, count_value, gp_value)); } @@ -12879,13 +12782,13 @@ static std::string SAVE_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SAVEF(uint64 instruction) +static const char *SAVEF(uint64 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); - std::string u = IMMEDIATE(copy(u_value)); - std::string count = IMMEDIATE(copy(count_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *count = IMMEDIATE(copy(count_value)); return img_format("SAVEF %s, %s", u, count); } @@ -12901,15 +12804,15 @@ static std::string SAVEF(uint64 instruction) * rs ----- * rd ----- */ -static std::string SB_16_(uint64 instruction) +static const char *SB_16_(uint64 instruction) { 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(copy(u_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SB %s, %s(%s)", rtz3, u, rs3); } @@ -12925,13 +12828,13 @@ static std::string SB_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SB_GP_(uint64 instruction) +static const char *SB_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SB %s, %s($%d)", rt, u, 28); } @@ -12947,15 +12850,15 @@ static std::string SB_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SB_S9_(uint64 instruction) +static const char *SB_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SB %s, %s(%s)", rt, s, rs); } @@ -12971,15 +12874,15 @@ static std::string SB_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SB_U12_(uint64 instruction) +static const char *SB_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SB %s, %s(%s)", rt, u, rs); } @@ -12995,15 +12898,15 @@ static std::string SB_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SBE(uint64 instruction) +static const char *SBE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SBE %s, %s(%s)", rt, s, rs); } @@ -13019,15 +12922,15 @@ static std::string SBE(uint64 instruction) * rs ----- * rd ----- */ -static std::string SBX(uint64 instruction) +static const char *SBX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SBX %s, %s(%s)", rd, rs, rt); } @@ -13043,15 +12946,15 @@ static std::string SBX(uint64 instruction) * rs ----- * rd ----- */ -static std::string SC(uint64 instruction) +static const char *SC(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SC %s, %s(%s)", rt, s, rs); } @@ -13067,15 +12970,15 @@ static std::string SC(uint64 instruction) * rs ----- * rd ----- */ -static std::string SCD(uint64 instruction) +static const char *SCD(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SCD %s, %s(%s)", rt, s, rs); } @@ -13091,15 +12994,15 @@ static std::string SCD(uint64 instruction) * rs ----- * rd ----- */ -static std::string SCDP(uint64 instruction) +static const char *SCDP(uint64 instruction) { 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(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ru = GPR(copy(ru_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SCDP %s, %s, (%s)", rt, ru, rs); } @@ -13115,15 +13018,15 @@ static std::string SCDP(uint64 instruction) * rs ----- * rd ----- */ -static std::string SCE(uint64 instruction) +static const char *SCE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SCE %s, %s(%s)", rt, s, rs); } @@ -13139,15 +13042,15 @@ static std::string SCE(uint64 instruction) * rs ----- * rd ----- */ -static std::string SCWP(uint64 instruction) +static const char *SCWP(uint64 instruction) { 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(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ru = GPR(copy(ru_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SCWP %s, %s, (%s)", rt, ru, rs); } @@ -13163,15 +13066,15 @@ static std::string SCWP(uint64 instruction) * rs ----- * rd ----- */ -static std::string SCWPE(uint64 instruction) +static const char *SCWPE(uint64 instruction) { 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(copy(rt_value)); - std::string ru = GPR(copy(ru_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *ru = GPR(copy(ru_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SCWPE %s, %s, (%s)", rt, ru, rs); } @@ -13187,13 +13090,13 @@ static std::string SCWPE(uint64 instruction) * rs ----- * rd ----- */ -static std::string SD_GP_(uint64 instruction) +static const char *SD_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SD %s, %s($%d)", rt, u, 28); } @@ -13209,15 +13112,15 @@ static std::string SD_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SD_S9_(uint64 instruction) +static const char *SD_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SD %s, %s(%s)", rt, s, rs); } @@ -13233,15 +13136,15 @@ static std::string SD_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SD_U12_(uint64 instruction) +static const char *SD_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SD %s, %s(%s)", rt, u, rs); } @@ -13257,11 +13160,11 @@ static std::string SD_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDBBP_16_(uint64 instruction) +static const char *SDBBP_16_(uint64 instruction) { uint64 code_value = extract_code_2_1_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("SDBBP %s", code); } @@ -13277,11 +13180,11 @@ static std::string SDBBP_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDBBP_32_(uint64 instruction) +static const char *SDBBP_32_(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("SDBBP %s", code); } @@ -13297,13 +13200,13 @@ static std::string SDBBP_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDC1_GP_(uint64 instruction) +static const char *SDC1_GP_(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SDC1 %s, %s($%d)", ft, u, 28); } @@ -13319,15 +13222,15 @@ static std::string SDC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDC1_S9_(uint64 instruction) +static const char *SDC1_S9_(uint64 instruction) { 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(copy(ft_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *ft = FPR(copy(ft_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SDC1 %s, %s(%s)", ft, s, rs); } @@ -13343,15 +13246,15 @@ static std::string SDC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDC1_U12_(uint64 instruction) +static const char *SDC1_U12_(uint64 instruction) { 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(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *ft = FPR(copy(ft_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SDC1 %s, %s(%s)", ft, u, rs); } @@ -13367,15 +13270,15 @@ static std::string SDC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDC1X(uint64 instruction) +static const char *SDC1X(uint64 instruction) { 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(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ft = FPR(copy(ft_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SDC1X %s, %s(%s)", ft, rs, rt); } @@ -13391,15 +13294,15 @@ static std::string SDC1X(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDC1XS(uint64 instruction) +static const char *SDC1XS(uint64 instruction) { 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(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ft = FPR(copy(ft_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SDC1XS %s, %s(%s)", ft, rs, rt); } @@ -13415,15 +13318,15 @@ static std::string SDC1XS(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDC2(uint64 instruction) +static const char *SDC2(uint64 instruction) { 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(copy(cs_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *cs = CPR(copy(cs_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SDC2 %s, %s(%s)", cs, s, rs); } @@ -13439,17 +13342,17 @@ static std::string SDC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDM(uint64 instruction) +static const char *SDM(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); + const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("SDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -13465,13 +13368,13 @@ static std::string SDM(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDPC_48_(uint64 instruction) +static const char *SDPC_48_(uint64 instruction) { 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); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 6); return img_format("SDPC %s, %s", rt, s); } @@ -13487,15 +13390,15 @@ static std::string SDPC_48_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDXS(uint64 instruction) +static const char *SDXS(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SDXS %s, %s(%s)", rd, rs, rt); } @@ -13511,15 +13414,15 @@ static std::string SDXS(uint64 instruction) * rs ----- * rd ----- */ -static std::string SDX(uint64 instruction) +static const char *SDX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SDX %s, %s(%s)", rd, rs, rt); } @@ -13535,13 +13438,13 @@ static std::string SDX(uint64 instruction) * rs ----- * rd ----- */ -static std::string SEB(uint64 instruction) +static const char *SEB(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SEB %s, %s", rt, rs); } @@ -13557,13 +13460,13 @@ static std::string SEB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SEH(uint64 instruction) +static const char *SEH(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SEH %s, %s", rt, rs); } @@ -13579,15 +13482,15 @@ static std::string SEH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SEL_D(uint64 instruction) +static const char *SEL_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("SEL.D %s, %s, %s", fd, fs, ft); } @@ -13603,15 +13506,15 @@ static std::string SEL_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string SEL_S(uint64 instruction) +static const char *SEL_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("SEL.S %s, %s, %s", fd, fs, ft); } @@ -13627,15 +13530,15 @@ static std::string SEL_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string SELEQZ_D(uint64 instruction) +static const char *SELEQZ_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("SELEQZ.D %s, %s, %s", fd, fs, ft); } @@ -13651,15 +13554,15 @@ static std::string SELEQZ_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string SELEQZ_S(uint64 instruction) +static const char *SELEQZ_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("SELEQZ.S %s, %s, %s", fd, fs, ft); } @@ -13675,15 +13578,15 @@ static std::string SELEQZ_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string SELNEZ_D(uint64 instruction) +static const char *SELNEZ_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("SELNEZ.D %s, %s, %s", fd, fs, ft); } @@ -13699,15 +13602,15 @@ static std::string SELNEZ_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string SELNEZ_S(uint64 instruction) +static const char *SELNEZ_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("SELNEZ.S %s, %s, %s", fd, fs, ft); } @@ -13723,15 +13626,15 @@ static std::string SELNEZ_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string SEQI(uint64 instruction) +static const char *SEQI(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SEQI %s, %s, %s", rt, rs, u); } @@ -13747,15 +13650,15 @@ static std::string SEQI(uint64 instruction) * rs ----- * rd ----- */ -static std::string SH_16_(uint64 instruction) +static const char *SH_16_(uint64 instruction) { 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(copy(u_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SH %s, %s(%s)", rtz3, u, rs3); } @@ -13771,13 +13674,13 @@ static std::string SH_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SH_GP_(uint64 instruction) +static const char *SH_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SH %s, %s($%d)", rt, u, 28); } @@ -13793,15 +13696,15 @@ static std::string SH_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SH_S9_(uint64 instruction) +static const char *SH_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SH %s, %s(%s)", rt, s, rs); } @@ -13817,15 +13720,15 @@ static std::string SH_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SH_U12_(uint64 instruction) +static const char *SH_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SH %s, %s(%s)", rt, u, rs); } @@ -13841,15 +13744,15 @@ static std::string SH_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHE(uint64 instruction) +static const char *SHE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHE %s, %s(%s)", rt, s, rs); } @@ -13865,13 +13768,13 @@ static std::string SHE(uint64 instruction) * shift ------ * ac -- */ -static std::string SHILO(uint64 instruction) +static const char *SHILO(uint64 instruction) { 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)); + const char *shift = IMMEDIATE(copy(shift_value)); + const char *ac = AC(copy(ac_value)); return img_format("SHILO %s, %s", ac, shift); } @@ -13887,13 +13790,13 @@ static std::string SHILO(uint64 instruction) * rs ----- * ac -- */ -static std::string SHILOV(uint64 instruction) +static const char *SHILOV(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *ac = AC(copy(ac_value)); return img_format("SHILOV %s, %s", ac, rs); } @@ -13909,15 +13812,15 @@ static std::string SHILOV(uint64 instruction) * rs ----- * sa ---- */ -static std::string SHLL_PH(uint64 instruction) +static const char *SHLL_PH(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHLL.PH %s, %s, %s", rt, rs, sa); } @@ -13933,15 +13836,15 @@ static std::string SHLL_PH(uint64 instruction) * rs ----- * sa --- */ -static std::string SHLL_QB(uint64 instruction) +static const char *SHLL_QB(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHLL.QB %s, %s, %s", rt, rs, sa); } @@ -13958,15 +13861,15 @@ static std::string SHLL_QB(uint64 instruction) * rs ----- * sa ---- */ -static std::string SHLL_S_PH(uint64 instruction) +static const char *SHLL_S_PH(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHLL_S.PH %s, %s, %s", rt, rs, sa); } @@ -13982,15 +13885,15 @@ static std::string SHLL_S_PH(uint64 instruction) * rs ----- * sa ----- */ -static std::string SHLL_S_W(uint64 instruction) +static const char *SHLL_S_W(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHLL_S.W %s, %s, %s", rt, rs, sa); } @@ -14007,15 +13910,15 @@ static std::string SHLL_S_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHLLV_PH(uint64 instruction) +static const char *SHLLV_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHLLV.PH %s, %s, %s", rd, rt, rs); } @@ -14031,15 +13934,15 @@ static std::string SHLLV_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHLLV_QB(uint64 instruction) +static const char *SHLLV_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHLLV.QB %s, %s, %s", rd, rt, rs); } @@ -14056,15 +13959,15 @@ static std::string SHLLV_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHLLV_S_PH(uint64 instruction) +static const char *SHLLV_S_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHLLV_S.PH %s, %s, %s", rd, rt, rs); } @@ -14080,15 +13983,15 @@ static std::string SHLLV_S_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHLLV_S_W(uint64 instruction) +static const char *SHLLV_S_W(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHLLV_S.W %s, %s, %s", rd, rt, rs); } @@ -14104,15 +14007,15 @@ static std::string SHLLV_S_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRA_PH(uint64 instruction) +static const char *SHRA_PH(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHRA.PH %s, %s, %s", rt, rs, sa); } @@ -14128,15 +14031,15 @@ static std::string SHRA_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRA_QB(uint64 instruction) +static const char *SHRA_QB(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHRA.QB %s, %s, %s", rt, rs, sa); } @@ -14152,15 +14055,15 @@ static std::string SHRA_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRA_R_PH(uint64 instruction) +static const char *SHRA_R_PH(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHRA_R.PH %s, %s, %s", rt, rs, sa); } @@ -14176,15 +14079,15 @@ static std::string SHRA_R_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRA_R_QB(uint64 instruction) +static const char *SHRA_R_QB(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHRA_R.QB %s, %s, %s", rt, rs, sa); } @@ -14200,15 +14103,15 @@ static std::string SHRA_R_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRA_R_W(uint64 instruction) +static const char *SHRA_R_W(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHRA_R.W %s, %s, %s", rt, rs, sa); } @@ -14224,15 +14127,15 @@ static std::string SHRA_R_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRAV_PH(uint64 instruction) +static const char *SHRAV_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHRAV.PH %s, %s, %s", rd, rt, rs); } @@ -14248,15 +14151,15 @@ static std::string SHRAV_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRAV_QB(uint64 instruction) +static const char *SHRAV_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHRAV.QB %s, %s, %s", rd, rt, rs); } @@ -14272,15 +14175,15 @@ static std::string SHRAV_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRAV_R_PH(uint64 instruction) +static const char *SHRAV_R_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHRAV_R.PH %s, %s, %s", rd, rt, rs); } @@ -14296,15 +14199,15 @@ static std::string SHRAV_R_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRAV_R_QB(uint64 instruction) +static const char *SHRAV_R_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHRAV_R.QB %s, %s, %s", rd, rt, rs); } @@ -14320,15 +14223,15 @@ static std::string SHRAV_R_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRAV_R_W(uint64 instruction) +static const char *SHRAV_R_W(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHRAV_R.W %s, %s, %s", rd, rt, rs); } @@ -14344,15 +14247,15 @@ static std::string SHRAV_R_W(uint64 instruction) * rs ----- * sa ---- */ -static std::string SHRL_PH(uint64 instruction) +static const char *SHRL_PH(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHRL.PH %s, %s, %s", rt, rs, sa); } @@ -14368,15 +14271,15 @@ static std::string SHRL_PH(uint64 instruction) * rs ----- * sa --- */ -static std::string SHRL_QB(uint64 instruction) +static const char *SHRL_QB(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *sa = IMMEDIATE(copy(sa_value)); return img_format("SHRL.QB %s, %s, %s", rt, rs, sa); } @@ -14393,15 +14296,15 @@ static std::string SHRL_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRLV_PH(uint64 instruction) +static const char *SHRLV_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHRLV.PH %s, %s, %s", rd, rt, rs); } @@ -14417,15 +14320,15 @@ static std::string SHRLV_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHRLV_QB(uint64 instruction) +static const char *SHRLV_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rt = GPR(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); + const char *rd = GPR(copy(rd_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SHRLV.QB %s, %s, %s", rd, rt, rs); } @@ -14441,15 +14344,15 @@ static std::string SHRLV_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHX(uint64 instruction) +static const char *SHX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SHX %s, %s(%s)", rd, rs, rt); } @@ -14465,15 +14368,15 @@ static std::string SHX(uint64 instruction) * rs ----- * rd ----- */ -static std::string SHXS(uint64 instruction) +static const char *SHXS(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SHXS %s, %s(%s)", rd, rs, rt); } @@ -14489,11 +14392,11 @@ static std::string SHXS(uint64 instruction) * rs ----- * rd ----- */ -static std::string SIGRIE(uint64 instruction) +static const char *SIGRIE(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("SIGRIE %s", code); } @@ -14509,15 +14412,15 @@ static std::string SIGRIE(uint64 instruction) * rs ----- * rd ----- */ -static std::string SLL_16_(uint64 instruction) +static const char *SLL_16_(uint64 instruction) { 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)); + const char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); return img_format("SLL %s, %s, %s", rt3, rs3, shift3); } @@ -14533,15 +14436,15 @@ static std::string SLL_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SLL_32_(uint64 instruction) +static const char *SLL_32_(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("SLL %s, %s, %s", rt, rs, shift); } @@ -14557,15 +14460,15 @@ static std::string SLL_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SLLV(uint64 instruction) +static const char *SLLV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SLLV %s, %s, %s", rd, rs, rt); } @@ -14581,15 +14484,15 @@ static std::string SLLV(uint64 instruction) * rs ----- * rd ----- */ -static std::string SLT(uint64 instruction) +static const char *SLT(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SLT %s, %s, %s", rd, rs, rt); } @@ -14605,15 +14508,15 @@ static std::string SLT(uint64 instruction) * rs ----- * rd ----- */ -static std::string SLTI(uint64 instruction) +static const char *SLTI(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SLTI %s, %s, %s", rt, rs, u); } @@ -14629,15 +14532,15 @@ static std::string SLTI(uint64 instruction) * rs ----- * rd ----- */ -static std::string SLTIU(uint64 instruction) +static const char *SLTIU(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SLTIU %s, %s, %s", rt, rs, u); } @@ -14653,15 +14556,15 @@ static std::string SLTIU(uint64 instruction) * rs ----- * rd ----- */ -static std::string SLTU(uint64 instruction) +static const char *SLTU(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SLTU %s, %s, %s", rd, rs, rt); } @@ -14677,15 +14580,15 @@ static std::string SLTU(uint64 instruction) * rs ----- * rd ----- */ -static std::string SOV(uint64 instruction) +static const char *SOV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SOV %s, %s, %s", rd, rs, rt); } @@ -14701,11 +14604,11 @@ static std::string SOV(uint64 instruction) * rs ----- * rd ----- */ -static std::string SPECIAL2(uint64 instruction) +static const char *SPECIAL2(uint64 instruction) { uint64 op_value = extract_op_25_to_3(instruction); - std::string op = IMMEDIATE(copy(op_value)); + const char *op = IMMEDIATE(copy(op_value)); return img_format("SPECIAL2 %s", op); } @@ -14721,13 +14624,13 @@ static std::string SPECIAL2(uint64 instruction) * rs ----- * rd ----- */ -static std::string SQRT_D(uint64 instruction) +static const char *SQRT_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("SQRT.D %s, %s", ft, fs); } @@ -14743,13 +14646,13 @@ static std::string SQRT_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string SQRT_S(uint64 instruction) +static const char *SQRT_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("SQRT.S %s, %s", ft, fs); } @@ -14765,15 +14668,15 @@ static std::string SQRT_S(uint64 instruction) * rd ----- * sa ----- */ -static std::string SRA(uint64 instruction) +static const char *SRA(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("SRA %s, %s, %s", rt, rs, shift); } @@ -14789,15 +14692,15 @@ static std::string SRA(uint64 instruction) * rt ----- * rd ----- */ -static std::string SRAV(uint64 instruction) +static const char *SRAV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SRAV %s, %s, %s", rd, rs, rt); } @@ -14813,15 +14716,15 @@ static std::string SRAV(uint64 instruction) * rt ----- * rd ----- */ -static std::string SRL_16_(uint64 instruction) +static const char *SRL_16_(uint64 instruction) { 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)); + const char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); return img_format("SRL %s, %s, %s", rt3, rs3, shift3); } @@ -14837,15 +14740,15 @@ static std::string SRL_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SRL_32_(uint64 instruction) +static const char *SRL_32_(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *shift = IMMEDIATE(copy(shift_value)); return img_format("SRL %s, %s, %s", rt, rs, shift); } @@ -14861,15 +14764,15 @@ static std::string SRL_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SRLV(uint64 instruction) +static const char *SRLV(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SRLV %s, %s, %s", rd, rs, rt); } @@ -14885,15 +14788,15 @@ static std::string SRLV(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUB(uint64 instruction) +static const char *SUB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUB %s, %s, %s", rd, rs, rt); } @@ -14909,15 +14812,15 @@ static std::string SUB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUB_D(uint64 instruction) +static const char *SUB_D(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("SUB.D %s, %s, %s", fd, fs, ft); } @@ -14933,15 +14836,15 @@ static std::string SUB_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUB_S(uint64 instruction) +static const char *SUB_S(uint64 instruction) { 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(copy(fd_value)); - std::string fs = FPR(copy(fs_value)); - std::string ft = FPR(copy(ft_value)); + const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy(ft_value)); return img_format("SUB.S %s, %s, %s", fd, fs, ft); } @@ -14957,15 +14860,15 @@ static std::string SUB_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBQ_PH(uint64 instruction) +static const char *SUBQ_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBQ.PH %s, %s, %s", rd, rs, rt); } @@ -14982,15 +14885,15 @@ static std::string SUBQ_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBQ_S_PH(uint64 instruction) +static const char *SUBQ_S_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -15007,15 +14910,15 @@ static std::string SUBQ_S_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBQ_S_W(uint64 instruction) +static const char *SUBQ_S_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBQ_S.W %s, %s, %s", rd, rs, rt); } @@ -15032,15 +14935,15 @@ static std::string SUBQ_S_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBQH_PH(uint64 instruction) +static const char *SUBQH_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBQH.PH %s, %s, %s", rd, rs, rt); } @@ -15057,15 +14960,15 @@ static std::string SUBQH_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBQH_R_PH(uint64 instruction) +static const char *SUBQH_R_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -15082,15 +14985,15 @@ static std::string SUBQH_R_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBQH_R_W(uint64 instruction) +static const char *SUBQH_R_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBQH_R.W %s, %s, %s", rd, rs, rt); } @@ -15107,15 +15010,15 @@ static std::string SUBQH_R_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBQH_W(uint64 instruction) +static const char *SUBQH_W(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBQH.W %s, %s, %s", rd, rs, rt); } @@ -15131,15 +15034,15 @@ static std::string SUBQH_W(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBU_16_(uint64 instruction) +static const char *SUBU_16_(uint64 instruction) { 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); } @@ -15155,15 +15058,15 @@ static std::string SUBU_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBU_32_(uint64 instruction) +static const char *SUBU_32_(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBU %s, %s, %s", rd, rs, rt); } @@ -15179,15 +15082,15 @@ static std::string SUBU_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBU_PH(uint64 instruction) +static const char *SUBU_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBU.PH %s, %s, %s", rd, rs, rt); } @@ -15203,15 +15106,15 @@ static std::string SUBU_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBU_QB(uint64 instruction) +static const char *SUBU_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBU.QB %s, %s, %s", rd, rs, rt); } @@ -15228,15 +15131,15 @@ static std::string SUBU_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBU_S_PH(uint64 instruction) +static const char *SUBU_S_PH(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBU_S.PH %s, %s, %s", rd, rs, rt); } @@ -15253,15 +15156,15 @@ static std::string SUBU_S_PH(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBU_S_QB(uint64 instruction) +static const char *SUBU_S_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBU_S.QB %s, %s, %s", rd, rs, rt); } @@ -15278,15 +15181,15 @@ static std::string SUBU_S_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBUH_QB(uint64 instruction) +static const char *SUBUH_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBUH.QB %s, %s, %s", rd, rs, rt); } @@ -15303,15 +15206,15 @@ static std::string SUBUH_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SUBUH_R_QB(uint64 instruction) +static const char *SUBUH_R_QB(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SUBUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -15327,15 +15230,15 @@ static std::string SUBUH_R_QB(uint64 instruction) * rs ----- * rd ----- */ -static std::string SW_16_(uint64 instruction) +static const char *SW_16_(uint64 instruction) { 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(copy(u_value)); - std::string rs3 = GPR(decode_gpr_gpr3(rs3_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); return img_format("SW %s, %s(%s)", rtz3, u, rs3); } @@ -15351,15 +15254,15 @@ static std::string SW_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SW_4X4_(uint64 instruction) +static const char *SW_4X4_(uint64 instruction) { 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(copy(u_value)); - std::string rs4 = GPR(decode_gpr_gpr4(rs4_value)); + const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); return img_format("SW %s, %s(%s)", rtz4, u, rs4); } @@ -15375,13 +15278,13 @@ static std::string SW_4X4_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SW_GP16_(uint64 instruction) +static const char *SW_GP16_(uint64 instruction) { 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(copy(u_value)); + const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SW %s, %s($%d)", rtz3, u, 28); } @@ -15397,13 +15300,13 @@ static std::string SW_GP16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SW_GP_(uint64 instruction) +static const char *SW_GP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SW %s, %s($%d)", rt, u, 28); } @@ -15419,15 +15322,15 @@ static std::string SW_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SW_S9_(uint64 instruction) +static const char *SW_S9_(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SW %s, %s(%s)", rt, s, rs); } @@ -15443,13 +15346,13 @@ static std::string SW_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SW_SP_(uint64 instruction) +static const char *SW_SP_(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SW %s, %s($%d)", rt, u, 29); } @@ -15465,15 +15368,15 @@ static std::string SW_SP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SW_U12_(uint64 instruction) +static const char *SW_U12_(uint64 instruction) { 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(copy(rt_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SW %s, %s(%s)", rt, u, rs); } @@ -15489,13 +15392,13 @@ static std::string SW_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWC1_GP_(uint64 instruction) +static const char *SWC1_GP_(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("SWC1 %s, %s($%d)", ft, u, 28); } @@ -15511,15 +15414,15 @@ static std::string SWC1_GP_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWC1_S9_(uint64 instruction) +static const char *SWC1_S9_(uint64 instruction) { 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(copy(ft_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *ft = FPR(copy(ft_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SWC1 %s, %s(%s)", ft, s, rs); } @@ -15535,15 +15438,15 @@ static std::string SWC1_S9_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWC1_U12_(uint64 instruction) +static const char *SWC1_U12_(uint64 instruction) { 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(copy(ft_value)); - std::string u = IMMEDIATE(copy(u_value)); - std::string rs = GPR(copy(rs_value)); + const char *ft = FPR(copy(ft_value)); + const char *u = IMMEDIATE(copy(u_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SWC1 %s, %s(%s)", ft, u, rs); } @@ -15559,15 +15462,15 @@ static std::string SWC1_U12_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWC1X(uint64 instruction) +static const char *SWC1X(uint64 instruction) { 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(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ft = FPR(copy(ft_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SWC1X %s, %s(%s)", ft, rs, rt); } @@ -15583,15 +15486,15 @@ static std::string SWC1X(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWC1XS(uint64 instruction) +static const char *SWC1XS(uint64 instruction) { 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(copy(ft_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *ft = FPR(copy(ft_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SWC1XS %s, %s(%s)", ft, rs, rt); } @@ -15607,15 +15510,15 @@ static std::string SWC1XS(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWC2(uint64 instruction) +static const char *SWC2(uint64 instruction) { 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(copy(cs_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *cs = CPR(copy(cs_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SWC2 %s, %s(%s)", cs, s, rs); } @@ -15631,15 +15534,15 @@ static std::string SWC2(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWE(uint64 instruction) +static const char *SWE(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SWE %s, %s(%s)", rt, s, rs); } @@ -15655,17 +15558,17 @@ static std::string SWE(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWM(uint64 instruction) +static const char *SWM(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); + const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("SWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -15681,13 +15584,13 @@ static std::string SWM(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWPC_48_(uint64 instruction) +static const char *SWPC_48_(uint64 instruction) { 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); + const char *rt = GPR(copy(rt_value)); + const char *s = ADDRESS(encode_s_from_address(s_value), 6); return img_format("SWPC %s, %s", rt, s); } @@ -15703,15 +15606,15 @@ static std::string SWPC_48_(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWX(uint64 instruction) +static const char *SWX(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SWX %s, %s(%s)", rd, rs, rt); } @@ -15727,15 +15630,15 @@ static std::string SWX(uint64 instruction) * rs ----- * rd ----- */ -static std::string SWXS(uint64 instruction) +static const char *SWXS(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("SWXS %s, %s(%s)", rd, rs, rt); } @@ -15751,11 +15654,11 @@ static std::string SWXS(uint64 instruction) * rs ----- * rd ----- */ -static std::string SYNC(uint64 instruction) +static const char *SYNC(uint64 instruction) { uint64 stype_value = extract_stype_20_19_18_17_16(instruction); - std::string stype = IMMEDIATE(copy(stype_value)); + const char *stype = IMMEDIATE(copy(stype_value)); return img_format("SYNC %s", stype); } @@ -15771,13 +15674,13 @@ static std::string SYNC(uint64 instruction) * rs ----- * rd ----- */ -static std::string SYNCI(uint64 instruction) +static const char *SYNCI(uint64 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 s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SYNCI %s(%s)", s, rs); } @@ -15793,13 +15696,13 @@ static std::string SYNCI(uint64 instruction) * rs ----- * rd ----- */ -static std::string SYNCIE(uint64 instruction) +static const char *SYNCIE(uint64 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 s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("SYNCIE %s(%s)", s, rs); } @@ -15815,11 +15718,11 @@ static std::string SYNCIE(uint64 instruction) * rs ----- * rd ----- */ -static std::string SYSCALL_16_(uint64 instruction) +static const char *SYSCALL_16_(uint64 instruction) { uint64 code_value = extract_code_1_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("SYSCALL %s", code); } @@ -15833,11 +15736,11 @@ static std::string SYSCALL_16_(uint64 instruction) * 00000000000010 * code ------------------ */ -static std::string SYSCALL_32_(uint64 instruction) +static const char *SYSCALL_32_(uint64 instruction) { uint64 code_value = extract_code_17_to_0(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("SYSCALL %s", code); } @@ -15853,13 +15756,13 @@ static std::string SYSCALL_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string TEQ(uint64 instruction) +static const char *TEQ(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("TEQ %s, %s", rs, rt); } @@ -15875,7 +15778,7 @@ static std::string TEQ(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBGINV(uint64 instruction) +static const char *TLBGINV(uint64 instruction) { (void)instruction; @@ -15893,7 +15796,7 @@ static std::string TLBGINV(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBGINVF(uint64 instruction) +static const char *TLBGINVF(uint64 instruction) { (void)instruction; @@ -15911,7 +15814,7 @@ static std::string TLBGINVF(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBGP(uint64 instruction) +static const char *TLBGP(uint64 instruction) { (void)instruction; @@ -15929,7 +15832,7 @@ static std::string TLBGP(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBGR(uint64 instruction) +static const char *TLBGR(uint64 instruction) { (void)instruction; @@ -15947,7 +15850,7 @@ static std::string TLBGR(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBGWI(uint64 instruction) +static const char *TLBGWI(uint64 instruction) { (void)instruction; @@ -15965,7 +15868,7 @@ static std::string TLBGWI(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBGWR(uint64 instruction) +static const char *TLBGWR(uint64 instruction) { (void)instruction; @@ -15983,7 +15886,7 @@ static std::string TLBGWR(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBINV(uint64 instruction) +static const char *TLBINV(uint64 instruction) { (void)instruction; @@ -16001,7 +15904,7 @@ static std::string TLBINV(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBINVF(uint64 instruction) +static const char *TLBINVF(uint64 instruction) { (void)instruction; @@ -16019,7 +15922,7 @@ static std::string TLBINVF(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBP(uint64 instruction) +static const char *TLBP(uint64 instruction) { (void)instruction; @@ -16037,7 +15940,7 @@ static std::string TLBP(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBR(uint64 instruction) +static const char *TLBR(uint64 instruction) { (void)instruction; @@ -16055,7 +15958,7 @@ static std::string TLBR(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBWI(uint64 instruction) +static const char *TLBWI(uint64 instruction) { (void)instruction; @@ -16073,7 +15976,7 @@ static std::string TLBWI(uint64 instruction) * rs ----- * rd ----- */ -static std::string TLBWR(uint64 instruction) +static const char *TLBWR(uint64 instruction) { (void)instruction; @@ -16091,13 +15994,13 @@ static std::string TLBWR(uint64 instruction) * rs ----- * rd ----- */ -static std::string TNE(uint64 instruction) +static const char *TNE(uint64 instruction) { 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)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("TNE %s, %s", rs, rt); } @@ -16113,13 +16016,13 @@ static std::string TNE(uint64 instruction) * rs ----- * rd ----- */ -static std::string TRUNC_L_D(uint64 instruction) +static const char *TRUNC_L_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("TRUNC.L.D %s, %s", ft, fs); } @@ -16135,13 +16038,13 @@ static std::string TRUNC_L_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string TRUNC_L_S(uint64 instruction) +static const char *TRUNC_L_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("TRUNC.L.S %s, %s", ft, fs); } @@ -16157,13 +16060,13 @@ static std::string TRUNC_L_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string TRUNC_W_D(uint64 instruction) +static const char *TRUNC_W_D(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("TRUNC.W.D %s, %s", ft, fs); } @@ -16179,13 +16082,13 @@ static std::string TRUNC_W_D(uint64 instruction) * rs ----- * rd ----- */ -static std::string TRUNC_W_S(uint64 instruction) +static const char *TRUNC_W_S(uint64 instruction) { 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)); + const char *ft = FPR(copy(ft_value)); + const char *fs = FPR(copy(fs_value)); return img_format("TRUNC.W.S %s, %s", ft, fs); } @@ -16201,17 +16104,17 @@ static std::string TRUNC_W_S(uint64 instruction) * rs ----- * rd ----- */ -static std::string UALDM(uint64 instruction) +static const char *UALDM(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); + const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UALDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16227,15 +16130,15 @@ static std::string UALDM(uint64 instruction) * rs ----- * rd ----- */ -static std::string UALH(uint64 instruction) +static const char *UALH(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("UALH %s, %s(%s)", rt, s, rs); } @@ -16251,17 +16154,17 @@ static std::string UALH(uint64 instruction) * rs ----- * rd ----- */ -static std::string UALWM(uint64 instruction) +static const char *UALWM(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); + const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UALWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16277,17 +16180,17 @@ static std::string UALWM(uint64 instruction) * rs ----- * rd ----- */ -static std::string UASDM(uint64 instruction) +static const char *UASDM(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); + const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UASDM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16303,15 +16206,15 @@ static std::string UASDM(uint64 instruction) * rs ----- * rd ----- */ -static std::string UASH(uint64 instruction) +static const char *UASH(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); return img_format("UASH %s, %s(%s)", rt, s, rs); } @@ -16327,17 +16230,17 @@ static std::string UASH(uint64 instruction) * rs ----- * rd ----- */ -static std::string UASWM(uint64 instruction) +static const char *UASWM(uint64 instruction) { 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(copy(rt_value)); - std::string s = IMMEDIATE(copy(s_value)); - std::string rs = GPR(copy(rs_value)); - std::string count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy(rt_value)); + const char *s = IMMEDIATE(copy(s_value)); + const char *rs = GPR(copy(rs_value)); + const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); return img_format("UASWM %s, %s(%s), %s", rt, s, rs, count3); } @@ -16353,11 +16256,11 @@ static std::string UASWM(uint64 instruction) * rs ----- * rd ----- */ -static std::string UDI(uint64 instruction) +static const char *UDI(uint64 instruction) { uint64 op_value = extract_op_25_to_3(instruction); - std::string op = IMMEDIATE(copy(op_value)); + const char *op = IMMEDIATE(copy(op_value)); return img_format("UDI %s", op); } @@ -16371,11 +16274,11 @@ static std::string UDI(uint64 instruction) * 001000 1100001101111111 * code ---------- */ -static std::string WAIT(uint64 instruction) +static const char *WAIT(uint64 instruction) { uint64 code_value = extract_code_25_24_23_22_21_20_19_18_17_16(instruction); - std::string code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE(copy(code_value)); return img_format("WAIT %s", code); } @@ -16391,13 +16294,13 @@ static std::string WAIT(uint64 instruction) * rt ----- * mask ------- */ -static std::string WRDSP(uint64 instruction) +static const char *WRDSP(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *mask = IMMEDIATE(copy(mask_value)); return img_format("WRDSP %s, %s", rt, mask); } @@ -16413,13 +16316,13 @@ static std::string WRDSP(uint64 instruction) * rs ----- * rd ----- */ -static std::string WRPGPR(uint64 instruction) +static const char *WRPGPR(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("WRPGPR %s, %s", rt, rs); } @@ -16435,13 +16338,13 @@ static std::string WRPGPR(uint64 instruction) * rs ----- * rd ----- */ -static std::string XOR_16_(uint64 instruction) +static const char *XOR_16_(uint64 instruction) { 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); } @@ -16457,15 +16360,15 @@ static std::string XOR_16_(uint64 instruction) * rs ----- * rd ----- */ -static std::string XOR_32_(uint64 instruction) +static const char *XOR_32_(uint64 instruction) { 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(copy(rd_value)); - std::string rs = GPR(copy(rs_value)); - std::string rt = GPR(copy(rt_value)); + const char *rd = GPR(copy(rd_value)); + const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy(rt_value)); return img_format("XOR %s, %s, %s", rd, rs, rt); } @@ -16481,15 +16384,15 @@ static std::string XOR_32_(uint64 instruction) * rs ----- * rd ----- */ -static std::string XORI(uint64 instruction) +static const char *XORI(uint64 instruction) { 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(copy(rt_value)); - std::string rs = GPR(copy(rs_value)); - std::string u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); + const char *u = IMMEDIATE(copy(u_value)); return img_format("XORI %s, %s, %s", rt, rs, u); } @@ -16504,13 +16407,13 @@ static std::string XORI(uint64 instruction) * rt ----- * rs ----- */ -static std::string YIELD(uint64 instruction) +static const char *YIELD(uint64 instruction) { 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)); + const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy(rs_value)); return img_format("YIELD %s, %s", rt, rs); } @@ -22313,7 +22216,7 @@ static struct 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) { return Disassemble(data, dis, type, MAJOR, 2); @@ -22325,7 +22228,7 @@ int nanomips_dis(char *buf, unsigned short two, unsigned short three) { - std::string disasm; + char disasm[200]; uint16 bits[3] = {one, two, three}; TABLE_ENTRY_TYPE type; @@ -22333,7 +22236,7 @@ int nanomips_dis(char *buf, m_requested_instruction_categories = ALL_ATTRIBUTES; int size = Disassemble(bits, disasm, type); - strcpy(buf, disasm.c_str()); + strcpy(buf, disasm); return size; } From patchwork Mon Aug 15 07:26:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milica Lazarevic X-Patchwork-Id: 12943250 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 0C906C00140 for ; Mon, 15 Aug 2022 08:26:10 +0000 (UTC) Received: from localhost ([::1]:38828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNVQG-0007UF-OH for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 04:26:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUZ4-0000XQ-Cb for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:31:10 -0400 Received: from mail-am7eur03on2127.outbound.protection.outlook.com ([40.107.105.127]:38112 helo=EUR03-AM7-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 1oNUYq-00012i-Sm for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:31:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YbP9ySrAHAuigNnHkV56mODb1Z7c33PNRPPZdUT5VcalbnsfH2F16ghBUopx6PNJizGpW2rLSk+vsPF0PUPGB9TNkRCzeVWvwZsZwLwHdSeicTb/3/vs0/rhVEqz2Fq5nwa4amPLhH54HX30vZNnGrpywqX9FkNQGnLF9f7XRhObzZz/liFCePgimOo2ehYtkcb4jgIYRPrj40z/Aj8yKEVbX2lB3psNxhq2FRc40benecGINYBc9hXnWZoWMa8cEMTGao+6kJPJ/elsEar7npDqi7On6FKglofufBqOJoTCx7gA/+ksbVqzO2d+xfmo1tg/OUPmtr3n44djkXXiMQ== 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=bK5Egd7Hexm/z903oqH2r7pycV4oYgcS5lnwxDVFFfM=; b=NeiDbZuPDXpAoZXVmjf6epM3p29TADKKeloHCGnPw1MqLDdECphN5LYf6SYPrEej9MbBMnI5x0wuadJI9E6h3FZRESkpaft0NWRda+IZQ0hKrzWy0uEhtW/vcL8YMpvuQqnRUrsrPgueLNJVS8kh48lB7DDWXfxAo02WK6lQnLO690ak4zkiG9uOaRqLnJEJBdqKNoSeinP8yhKok+Y55oOFLElE08Cl9y9EMmOaQVquV77458GbouwwS0mtojdPQ0vrHFOzk+P4r+ybhhQmiMMF/gK9WDrv4hPnoGO1YiFDdgmxCL4b15y0yIS0gmYEVwPCgXgrbYjKyDrUg0Zr+A== 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=bK5Egd7Hexm/z903oqH2r7pycV4oYgcS5lnwxDVFFfM=; b=fnLJ7CMbjx1ra0e6KlisteGtcCJph0w8NLHFM4m9JIxBodPbEJUq57XznphwlRwnC3HCcjg09W3foj69xFZeq8fxqozsRmWVY3lJFF0JYQwN/q8K6MJ2HiKQZX/6bkok9GCg6eQVoymFWp9LCOvh2U5YqYe0rsvL/8A6X8HdnKA= 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 AM0PR03MB4515.eurprd03.prod.outlook.com (2603:10a6:208:c2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.28; Mon, 15 Aug 2022 07:30:44 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:30:44 +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 13/20] disas/nanomips: Add free() calls Date: Mon, 15 Aug 2022 09:26:22 +0200 Message-Id: <20220815072629.12865-14-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 97f490ca-c402-46ad-1d0c-08da7e901076 X-MS-TrafficTypeDiagnostic: AM0PR03MB4515:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T/GQ2OK0ytWGe/gaHjDPP0JmkhX75DbcN5fN0sC9aBpQhVPw6Fntfvp+0Xh3MKCzaL6jWcapMBJQqJV5ofZuGRALkOJqf0lqSMoJRQD0i/B2P15mQD8eoM03asNCow0sh8VJjGAGNvCKcLYorKp2yc9FNCfbtSFbDqmdC80gt1LZ3Dd7cxgrN+fqWKAvsDcuWYi6G2TDIp9G+Qbkj2Ov/QJPcCyKG0l7Xq3OVaeT81TjsqOQcYAQOKLFRY5dYhgjh6mraYNSDgIDBkC3yWQL+g2KksvQ5lkB1bOVr0y+CTDyu5Mdp1VB1SodsMksW8oaXBNkyagLNwkB+MW28ZpD0U8MsVAhTgjz1wm6Z3L2cEy3bkm6qAsjmHaqyT/TbNdpxCJyP2DrFJfCsipVjrAAA7qLF3xXw9ua3W02UqlN1lCHf6oghGRHl0fg14wlN3gfpCxX/zdW/iifLNVMo8PcBr2dLWekQaditeuS76FXmXYZkZHiotXzI74Si6lyDqutysPlqPUhssK457thB+kDdnsbM/w25xQxwgV07ekx/1RhBSNjzGDBR+mykpIwByJtZma8B8JoEEOy9AxGr68Y73QpcWrOmWbm2U/+dEh7T3EwCUHRCuHw2/yjfOh5Ymf+RcUdUfEl43sKihGQA0NNG1ejISS9LaiU4RiBht8Mwwhh7blx8R/DsBGl7lYEU3r6hCyNHaizc27r/MMBqftk2mzSRcnaBHdFDs/ov1ZaxaKclHU0uBO/C6NSsBhkGr4JkkDLns2ihJXxCQabIBLrtWpfFnc/pwFFRKmEuH1uRTc= 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)(346002)(136003)(366004)(39840400004)(2906002)(44832011)(30864003)(4326008)(8676002)(66476007)(66556008)(8936002)(36756003)(66946007)(6666004)(6506007)(316002)(6916009)(6486002)(478600001)(26005)(6512007)(52116002)(41300700001)(86362001)(107886003)(2616005)(1076003)(186003)(5660300002)(38350700002)(83380400001)(38100700002)(579004)(559001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yGk20E7b6JZ1DNiIz/3sxk6829g20qUV3AS9R8G+WitKxqtluWTk1vAvi73vj4h1o/lPyQPo5z0l//VxmSb11HRXackac5MX/Y62J2xuywQDhOuxfErKO6EoH8+2/4kq4r0+tdQguVVwoxzIU3y4YNKtlP7f9FTIRow0OOU2/5YS9k10B3tkMS2NvDv88tDRh3so55sUzObfhq70l1R84aGVMVNwJqjSYMlysFddAJECxYra4myW/t1K57bqgHyLT2RYfw1uW6Mf7n2nm7VZ+QWx+jI3wU/eQmNbvznGUiqRMJcFdC7HqqPN/87RIl4Ja+FaKbGRu59bfjjPrWE+RpDdHziabJmTXvOdLqBdm7HZNHvRFyOfw9vEPLUXfSNWp0FTcEezADPouNFHsWJfeJyiwXmjKYJBfdLHEJFK0v4GvX223WztHQ+seR3SOIPFE5dZA4m7kKeXJkjYakMLVf2l+ctVDxvrDC7BxG32Bnvg1GnNi/oJ1VhsPtx/BbsXpu6t8avCKf+3aL11UzkuQ7VJ2l1HAQfNWmIuqo49g/lfn3cHrMOxbPD6K6WU1zCb83znNSxY7Mi+MFnFauKuj/zx631vPs+pv+o9LDL41ATHxR6cA8kkHHgbWLppPz+JyhpbuoOtErc/16U7miQPnEHgFLtD6QFUv5m6mpdCJTj2ssKpNLBUhTmyHg+wWeOP4ngvacEjXsZU/SKz0MmT9RhShidspn0q1Iwk3FVts0u8RnAqa3CB0sSOmoQ7o9v34iv5fMzBj/ASGP2YhlIcSkK49SVqFokBko4GtkE9GbRfsO4T6Wtfli8CAR6kbIxslNL48fFQ9zXOitIWEO9oETYL1C4AUklGuQ5cxCiR/JuoxILhh0luBFBEWfdEjztZakRyo3auC00Z9NQRM9mfW0b6kmPj6QqIueit0PSiuiMj8+FaGtA/kaR57IWa4VJ3zNgxC3DYkkuNShIO9XHQzdoGvA7H3xotc2FwLAqmXdXywfvvqrkJpGI3HrE9smA8RGjXXw0w/9iuRZ4yX05oXD2uYQXbMUglTP43GlMv0EYXcniyXktj9L3NsLGcFY8LPwluyou4h4ju4UcYEsGN63NBsEZ46VBlmlIdi4k6bezyq+G9b+VuxaM4ZYPvvQK0VdjzuazIW+3xA6HmWf913bWLXCBK640mczAvLR2IEBDC0io2C4MbzUd5tWo7kc0bPn9T3kWx5OuDK9lUKlPNY6r2gWs7+E2yfJGAN9AOSSCNRyr1Lq9P15xdlXTG6WaZEOFi1YDbkic1a6SjMq6TMTn2R0d0Vszj6+2C45RL9Z8ZgdIqroQug0t2m8wC9eehaDTIYRau9ymjY76SuDPTOPHvui5UyyJtPSvGK6XGfblzXMA7ODlkGvul6tDnklDy70sErLMyWOxJptJ/8BaQN8SEYLUw9+7HbuZBF706VcCEqWjMGVrQ3HuNHluYEoaEa1gBb04bK8J/286HUeJpTi78cJMlbI4PP4RWezqtWAehAjBrI722sqkkWZN9RYqpdaDWpiwevxB0xqXyM1yzl48pstuipFHr/SagsrEB0OebVVapp2yVXN9ZXKej2CjGGaAUkXgHYUPYTe6NlXCUzg== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97f490ca-c402-46ad-1d0c-08da7e901076 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:30:44.4944 (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: HSXHqo1D3iAX8luq97HOnuEku7NqO3BeZY4+YRm/HGTXcLBdgAfqBU/RHo5sk3NGeXGan0RDnwIg/47BQdxQwP/eNzL2s2UJVrDFIfXBtBg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB4515 Received-SPF: pass client-ip=40.107.105.127; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR03-AM7-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, 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 free() function is called for every string allocated using the strdup() function to prevent memory leaking. The implementation of the several functions working with dynamically allocated strings is slightly changed so we can free those strings. Almost every disassembly_function returns the result of the img_format() function, which returns a dynamically allocated string. To be able to free that string for every disassembly_function, a strdup() call is added for returning value of some disassembly functions like TLBGINV, TLBGINVF, TLBGP, etc. Signed-off-by: Milica Lazarevic --- disas/nanomips.cpp | 1117 +++++++++++++++++++++++++++++++++----------- 1 file changed, 841 insertions(+), 276 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 561e4ff095..551bcb3164 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -526,7 +526,9 @@ static const char *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; - strcat(str, img_format(",%s", GPR(this_rt))); + const char *dis_str = img_format(",%s", GPR(this_rt)); + strcat(str, dis_str); + free((char *)dis_str); } return strdup(str); @@ -663,7 +665,9 @@ static int Disassemble(const uint16 *data, char *dis, return -6; } type = table[i].type; - strcpy(dis, dis_fn(op_code)); + const char *dis_str = dis_fn(op_code); + strcpy(dis, dis_str); + free((char *)dis_str); return table[i].instructions_size; } else { strcpy(dis, "reserved instruction"); @@ -1737,7 +1741,10 @@ static const char *ACLR(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("ACLR %s, %s(%s)", bit, s, rs); + const char *ret = img_format("ACLR %s, %s(%s)", bit, s, rs); + free((char *)bit); + free((char *)s); + return ret; } @@ -1833,7 +1840,9 @@ static const char *ADDIU_32_(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("ADDIU %s, %s, %s", rt, rs, u); + const char *ret = img_format("ADDIU %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -1853,8 +1862,9 @@ static const char *ADDIU_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = IMMEDIATE(copy(s_value)); - - return img_format("ADDIU %s, %s", rt, s); + const char *ret = img_format("ADDIU %s, %s", rt, s); + free((char *)s); + return ret; } @@ -1874,8 +1884,9 @@ static const char *ADDIU_GP48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = IMMEDIATE(copy(s_value)); - - return img_format("ADDIU %s, $%d, %s", rt, 28, s); + const char *ret = img_format("ADDIU %s, $%d, %s", rt, 28, s); + free((char *)s); + return ret; } @@ -1896,7 +1907,9 @@ static const char *ADDIU_GP_B_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("ADDIU %s, $%d, %s", rt, 28, u); + const char *ret = img_format("ADDIU %s, $%d, %s", rt, 28, u); + free((char *)u); + return ret; } @@ -1917,7 +1930,9 @@ static const char *ADDIU_GP_W_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("ADDIU %s, $%d, %s", rt, 28, u); + const char *ret = img_format("ADDIU %s, $%d, %s", rt, 28, u); + free((char *)u); + return ret; } @@ -1940,7 +1955,9 @@ static const char *ADDIU_NEG_(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(neg_copy(u_value)); - return img_format("ADDIU %s, %s, %s", rt, rs, u); + const char *ret = img_format("ADDIU %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -1961,7 +1978,9 @@ static const char *ADDIU_R1_SP_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("ADDIU %s, $%d, %s", rt3, 29, u); + const char *ret = img_format("ADDIU %s, $%d, %s", rt3, 29, u); + free((char *)u); + return ret; } @@ -1984,7 +2003,9 @@ static const char *ADDIU_R2_(uint64 instruction) const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("ADDIU %s, %s, %s", rt3, rs3, u); + const char *ret = img_format("ADDIU %s, %s, %s", rt3, rs3, u); + free((char *)u); + return ret; } @@ -2004,7 +2025,9 @@ static const char *ADDIU_RS5_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = IMMEDIATE(copy(s_value)); - return img_format("ADDIU %s, %s", rt, s); + const char *ret = img_format("ADDIU %s, %s", rt, s); + free((char *)s); + return ret; } @@ -2026,7 +2049,9 @@ static const char *ADDIUPC_32_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("ADDIUPC %s, %s", rt, s); + const char *ret = img_format("ADDIUPC %s, %s", rt, s); + free((char *)s); + return ret; } @@ -2048,7 +2073,9 @@ static const char *ADDIUPC_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); - return img_format("ADDIUPC %s, %s", rt, s); + const char *ret = img_format("ADDIUPC %s, %s", rt, s); + free((char *)s); + return ret; } @@ -2506,7 +2533,9 @@ static const char *ALUIPC(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); + const char *ret = img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); + free((char *)s); + return ret; } @@ -2574,7 +2603,9 @@ static const char *ANDI_16_(uint64 instruction) const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *eu = IMMEDIATE(encode_eu_from_u_andi16(eu_value)); - return img_format("ANDI %s, %s, %s", rt3, rs3, eu); + const char *ret = img_format("ANDI %s, %s, %s", rt3, rs3, eu); + free((char *)eu); + return ret; } @@ -2598,7 +2629,9 @@ static const char *ANDI_32_(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("ANDI %s, %s, %s", rt, rs, u); + const char *ret = img_format("ANDI %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -2622,7 +2655,9 @@ static const char *APPEND(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("APPEND %s, %s, %s", rt, rs, sa); + const char *ret = img_format("APPEND %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -2646,7 +2681,10 @@ static const char *ASET(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("ASET %s, %s(%s)", bit, s, rs); + const char *ret = img_format("ASET %s, %s(%s)", bit, s, rs); + free((char *)bit); + free((char *)s); + return ret; } @@ -2666,7 +2704,9 @@ static const char *BALC_16_(uint64 instruction) const char *s = ADDRESS(encode_s_from_address(s_value), 2); - return img_format("BALC %s", s); + const char *ret = img_format("BALC %s", s); + free((char *)s); + return ret; } @@ -2686,7 +2726,9 @@ static const char *BALC_32_(uint64 instruction) const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BALC %s", s); + const char *ret = img_format("BALC %s", s); + free((char *)s); + return ret; } @@ -2732,7 +2774,10 @@ static const char *BBEQZC(uint64 instruction) const char *bit = IMMEDIATE(copy(bit_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BBEQZC %s, %s, %s", rt, bit, s); + const char *ret = img_format("BBEQZC %s, %s, %s", rt, bit, s); + free((char *)bit); + free((char *)s); + return ret; } @@ -2756,7 +2801,10 @@ static const char *BBNEZC(uint64 instruction) const char *bit = IMMEDIATE(copy(bit_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BBNEZC %s, %s, %s", rt, bit, s); + const char *ret = img_format("BBNEZC %s, %s, %s", rt, bit, s); + free((char *)bit); + free((char *)s); + return ret; } @@ -2776,7 +2824,9 @@ static const char *BC_16_(uint64 instruction) const char *s = ADDRESS(encode_s_from_address(s_value), 2); - return img_format("BC %s", s); + const char *ret = img_format("BC %s", s); + free((char *)s); + return ret; } @@ -2796,7 +2846,9 @@ static const char *BC_32_(uint64 instruction) const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BC %s", s); + const char *ret = img_format("BC %s", s); + free((char *)s); + return ret; } @@ -2818,7 +2870,9 @@ static const char *BC1EQZC(uint64 instruction) const char *ft = FPR(copy(ft_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BC1EQZC %s, %s", ft, s); + const char *ret = img_format("BC1EQZC %s, %s", ft, s); + free((char *)s); + return ret; } @@ -2840,7 +2894,9 @@ static const char *BC1NEZC(uint64 instruction) const char *ft = FPR(copy(ft_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BC1NEZC %s, %s", ft, s); + const char *ret = img_format("BC1NEZC %s, %s", ft, s); + free((char *)s); + return ret; } @@ -2862,7 +2918,9 @@ static const char *BC2EQZC(uint64 instruction) const char *ct = CPR(copy(ct_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BC2EQZC %s, %s", ct, s); + const char *ret = img_format("BC2EQZC %s, %s", ct, s); + free((char *)s); + return ret; } @@ -2884,7 +2942,9 @@ static const char *BC2NEZC(uint64 instruction) const char *ct = CPR(copy(ct_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BC2NEZC %s, %s", ct, s); + const char *ret = img_format("BC2NEZC %s, %s", ct, s); + free((char *)s); + return ret; } @@ -2908,7 +2968,9 @@ static const char *BEQC_16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *u = ADDRESS(encode_u_from_address(u_value), 2); - return img_format("BEQC %s, %s, %s", rs3, rt3, u); + const char *ret = img_format("BEQC %s, %s, %s", rs3, rt3, u); + free((char *)u); + return ret; } @@ -2932,7 +2994,9 @@ static const char *BEQC_32_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BEQC %s, %s, %s", rs, rt, s); + const char *ret = img_format("BEQC %s, %s, %s", rs, rt, s); + free((char *)s); + return ret; } @@ -2956,7 +3020,10 @@ static const char *BEQIC(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BEQIC %s, %s, %s", rt, u, s); + const char *ret = img_format("BEQIC %s, %s, %s", rt, u, s); + free((char *)u); + free((char *)s); + return ret; } @@ -2978,7 +3045,9 @@ static const char *BEQZC_16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 2); - return img_format("BEQZC %s, %s", rt3, s); + const char *ret = img_format("BEQZC %s, %s", rt3, s); + free((char *)s); + return ret; } @@ -3002,7 +3071,9 @@ static const char *BGEC(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BGEC %s, %s, %s", rs, rt, s); + const char *ret = img_format("BGEC %s, %s, %s", rs, rt, s); + free((char *)s); + return ret; } @@ -3026,7 +3097,10 @@ static const char *BGEIC(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BGEIC %s, %s, %s", rt, u, s); + const char *ret = img_format("BGEIC %s, %s, %s", rt, u, s); + free((char *)u); + free((char *)s); + return ret; } @@ -3050,7 +3124,10 @@ static const char *BGEIUC(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BGEIUC %s, %s, %s", rt, u, s); + const char *ret = img_format("BGEIUC %s, %s, %s", rt, u, s); + free((char *)u); + free((char *)s); + return ret; } @@ -3074,7 +3151,9 @@ static const char *BGEUC(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BGEUC %s, %s, %s", rs, rt, s); + const char *ret = img_format("BGEUC %s, %s, %s", rs, rt, s); + free((char *)s); + return ret; } @@ -3098,7 +3177,9 @@ static const char *BLTC(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BLTC %s, %s, %s", rs, rt, s); + const char *ret = img_format("BLTC %s, %s, %s", rs, rt, s); + free((char *)s); + return ret; } @@ -3122,7 +3203,10 @@ static const char *BLTIC(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BLTIC %s, %s, %s", rt, u, s); + const char *ret = img_format("BLTIC %s, %s, %s", rt, u, s); + free((char *)u); + free((char *)s); + return ret; } @@ -3146,7 +3230,10 @@ static const char *BLTIUC(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BLTIUC %s, %s, %s", rt, u, s); + const char *ret = img_format("BLTIUC %s, %s, %s", rt, u, s); + free((char *)u); + free((char *)s); + return ret; } @@ -3170,7 +3257,9 @@ static const char *BLTUC(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BLTUC %s, %s, %s", rs, rt, s); + const char *ret = img_format("BLTUC %s, %s, %s", rs, rt, s); + free((char *)s); + return ret; } @@ -3194,7 +3283,9 @@ static const char *BNEC_16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *u = ADDRESS(encode_u_from_address(u_value), 2); - return img_format("BNEC %s, %s, %s", rs3, rt3, u); + const char *ret = img_format("BNEC %s, %s, %s", rs3, rt3, u); + free((char *)u); + return ret; } @@ -3218,7 +3309,9 @@ static const char *BNEC_32_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BNEC %s, %s, %s", rs, rt, s); + const char *ret = img_format("BNEC %s, %s, %s", rs, rt, s); + free((char *)s); + return ret; } @@ -3242,7 +3335,10 @@ static const char *BNEIC(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BNEIC %s, %s, %s", rt, u, s); + const char *ret = img_format("BNEIC %s, %s, %s", rt, u, s); + free((char *)u); + free((char *)s); + return ret; } @@ -3264,7 +3360,9 @@ static const char *BNEZC_16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 2); - return img_format("BNEZC %s, %s", rt3, s); + const char *ret = img_format("BNEZC %s, %s", rt3, s); + free((char *)s); + return ret; } @@ -3284,7 +3382,9 @@ static const char *BPOSGE32C(uint64 instruction) const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("BPOSGE32C %s", s); + const char *ret = img_format("BPOSGE32C %s", s); + free((char *)s); + return ret; } @@ -3304,7 +3404,9 @@ static const char *BREAK_16_(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("BREAK %s", code); + const char *ret = img_format("BREAK %s", code); + free((char *)code); + return ret; } @@ -3324,7 +3426,9 @@ static const char *BREAK_32_(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("BREAK %s", code); + const char *ret = img_format("BREAK %s", code); + free((char *)code); + return ret; } @@ -3368,7 +3472,10 @@ static const char *CACHE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("CACHE %s, %s(%s)", op, s, rs); + const char *ret = img_format("CACHE %s, %s(%s)", op, s, rs); + free((char *)op); + free((char *)s); + return ret; } @@ -3392,7 +3499,10 @@ static const char *CACHEE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("CACHEE %s, %s(%s)", op, s, rs); + const char *ret = img_format("CACHEE %s, %s(%s)", op, s, rs); + free((char *)op); + free((char *)s); + return ret; } @@ -4967,7 +5077,9 @@ static const char *COP2_1(uint64 instruction) const char *cofun = IMMEDIATE(copy(cofun_value)); - return img_format("COP2_1 %s", cofun); + const char *ret = img_format("COP2_1 %s", cofun); + free((char *)cofun); + return ret; } @@ -5297,7 +5409,9 @@ static const char *DADDIU_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = IMMEDIATE(copy(s_value)); - return img_format("DADDIU %s, %s", rt, s); + const char *ret = img_format("DADDIU %s, %s", rt, s); + free((char *)s); + return ret; } @@ -5321,7 +5435,9 @@ static const char *DADDIU_NEG_(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(neg_copy(u_value)); - return img_format("DADDIU %s, %s, %s", rt, rs, u); + const char *ret = img_format("DADDIU %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -5345,7 +5461,9 @@ static const char *DADDIU_U12_(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("DADDIU %s, %s, %s", rt, rs, u); + const char *ret = img_format("DADDIU %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -5503,7 +5621,7 @@ static const char *DERET(uint64 instruction) { (void)instruction; - return "DERET "; + return strdup("DERET "); } @@ -5529,7 +5647,10 @@ static const char *DEXTM(uint64 instruction) const char *lsb = IMMEDIATE(copy(lsb_value)); const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); - return img_format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); + const char *ret = img_format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); + free((char *)lsb); + free((char *)msbd); + return ret; } @@ -5555,7 +5676,10 @@ static const char *DEXT(uint64 instruction) const char *lsb = IMMEDIATE(copy(lsb_value)); const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); - return img_format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); + const char *ret = img_format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); + free((char *)lsb); + free((char *)msbd); + return ret; } @@ -5581,7 +5705,10 @@ static const char *DEXTU(uint64 instruction) const char *lsb = IMMEDIATE(copy(lsb_value)); const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); - return img_format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); + const char *ret = img_format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); + free((char *)lsb); + free((char *)msbd); + return ret; } @@ -5608,8 +5735,11 @@ static const char *DINSM(uint64 instruction) const char *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); + const char *ret = img_format("DINSM %s, %s, %s, %s", rt, rs, pos, size); /* hand edited */ + free((char *)pos); + free((char *)size); + return ret; } @@ -5636,8 +5766,11 @@ static const char *DINS(uint64 instruction) const char *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); + const char *ret = img_format("DINS %s, %s, %s, %s", rt, rs, pos, size); /* hand edited */ + free((char *)pos); + free((char *)size); + return ret; } @@ -5664,8 +5797,11 @@ static const char *DINSU(uint64 instruction) const char *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); + const char *ret = img_format("DINSU %s, %s, %s, %s", rt, rs, pos, size); /* hand edited */ + free((char *)pos); + free((char *)size); + return ret; } @@ -5807,7 +5943,9 @@ static const char *DLSA(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u2 = IMMEDIATE(copy(u2_value)); - return img_format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); + const char *ret = img_format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); + free((char *)u2); + return ret; } @@ -5829,7 +5967,9 @@ static const char *DLUI_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("DLUI %s, %s", rt, u); + const char *ret = img_format("DLUI %s, %s", rt, u); + free((char *)u); + return ret; } @@ -5853,7 +5993,9 @@ static const char *DMFC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("DMFC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("DMFC0 %s, %s, %s", rt, c0s, sel); + free((char *)sel); + return ret; } @@ -5921,7 +6063,9 @@ static const char *DMFGC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("DMFGC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("DMFGC0 %s, %s, %s", rt, c0s, sel); + free((char *)sel); + return ret; } @@ -5993,7 +6137,9 @@ static const char *DMTC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("DMTC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("DMTC0 %s, %s, %s", rt, c0s, sel); + free((char *)sel); + return ret; } @@ -6061,7 +6207,9 @@ static const char *DMTGC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("DMTGC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("DMTGC0 %s, %s, %s", rt, c0s, sel); + free((char *)sel); + return ret; } @@ -6586,7 +6734,9 @@ static const char *DROTR(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("DROTR %s, %s, %s", rt, rs, shift); + const char *ret = img_format("DROTR %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -6610,7 +6760,9 @@ static const char *DROTR32(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("DROTR32 %s, %s, %s", rt, rs, shift); + const char *ret = img_format("DROTR32 %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -6660,7 +6812,10 @@ static const char *DROTX(uint64 instruction) const char *shift = IMMEDIATE(copy(shift_value)); const char *shiftx = IMMEDIATE(copy(shiftx_value)); - return img_format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); + const char *ret = img_format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); + free((char *)shift); + free((char *)shiftx); + return ret; } @@ -6684,7 +6839,9 @@ static const char *DSLL(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("DSLL %s, %s, %s", rt, rs, shift); + const char *ret = img_format("DSLL %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -6708,7 +6865,9 @@ static const char *DSLL32(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("DSLL32 %s, %s, %s", rt, rs, shift); + const char *ret = img_format("DSLL32 %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -6756,7 +6915,9 @@ static const char *DSRA(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("DSRA %s, %s, %s", rt, rs, shift); + const char *ret = img_format("DSRA %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -6780,7 +6941,9 @@ static const char *DSRA32(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("DSRA32 %s, %s, %s", rt, rs, shift); + const char *ret = img_format("DSRA32 %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -6828,7 +6991,9 @@ static const char *DSRL(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("DSRL %s, %s, %s", rt, rs, shift); + const char *ret = img_format("DSRL %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -6852,7 +7017,9 @@ static const char *DSRL32(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("DSRL32 %s, %s, %s", rt, rs, shift); + const char *ret = img_format("DSRL32 %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -6982,7 +7149,7 @@ static const char *EHB(uint64 instruction) { (void)instruction; - return "EHB "; + return strdup("EHB "); } @@ -7040,7 +7207,7 @@ static const char *ERET(uint64 instruction) { (void)instruction; - return "ERET "; + return strdup("ERET "); } @@ -7058,7 +7225,7 @@ static const char *ERETNC(uint64 instruction) { (void)instruction; - return "ERETNC "; + return strdup("ERETNC "); } @@ -7124,7 +7291,10 @@ static const char *EXT(uint64 instruction) const char *lsb = IMMEDIATE(copy(lsb_value)); const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); - return img_format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); + const char *ret = img_format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); + free((char *)lsb); + free((char *)msbd); + return ret; } @@ -7150,7 +7320,9 @@ static const char *EXTD(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); + const char *ret = img_format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); + free((char *)shift); + return ret; } @@ -7176,7 +7348,9 @@ static const char *EXTD32(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); + const char *ret = img_format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); + free((char *)shift); + return ret; } @@ -7200,7 +7374,9 @@ static const char *EXTPDP(uint64 instruction) const char *ac = AC(copy(ac_value)); const char *size = IMMEDIATE(copy(size_value)); - return img_format("EXTPDP %s, %s, %s", rt, ac, size); + const char *ret = img_format("EXTPDP %s, %s, %s", rt, ac, size); + free((char *)size); + return ret; } @@ -7248,7 +7424,9 @@ static const char *EXTP(uint64 instruction) const char *ac = AC(copy(ac_value)); const char *size = IMMEDIATE(copy(size_value)); - return img_format("EXTP %s, %s, %s", rt, ac, size); + const char *ret = img_format("EXTP %s, %s, %s", rt, ac, size); + free((char *)size); + return ret; } @@ -7297,7 +7475,9 @@ static const char *EXTR_RS_W(uint64 instruction) const char *ac = AC(copy(ac_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("EXTR_RS.W %s, %s, %s", rt, ac, shift); + const char *ret = img_format("EXTR_RS.W %s, %s, %s", rt, ac, shift); + free((char *)shift); + return ret; } @@ -7322,7 +7502,9 @@ static const char *EXTR_R_W(uint64 instruction) const char *ac = AC(copy(ac_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("EXTR_R.W %s, %s, %s", rt, ac, shift); + const char *ret = img_format("EXTR_R.W %s, %s, %s", rt, ac, shift); + free((char *)shift); + return ret; } @@ -7347,7 +7529,9 @@ static const char *EXTR_S_H(uint64 instruction) const char *ac = AC(copy(ac_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("EXTR_S.H %s, %s, %s", rt, ac, shift); + const char *ret = img_format("EXTR_S.H %s, %s, %s", rt, ac, shift); + free((char *)shift); + return ret; } @@ -7372,7 +7556,9 @@ static const char *EXTR_W(uint64 instruction) const char *ac = AC(copy(ac_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("EXTR.W %s, %s, %s", rt, ac, shift); + const char *ret = img_format("EXTR.W %s, %s, %s", rt, ac, shift); + free((char *)shift); + return ret; } @@ -7499,7 +7685,9 @@ static const char *EXTW(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); + const char *ret = img_format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); + free((char *)shift); + return ret; } @@ -7631,7 +7819,9 @@ static const char *HYPCALL(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("HYPCALL %s", code); + const char *ret = img_format("HYPCALL %s", code); + free((char *)code); + return ret; } @@ -7651,7 +7841,9 @@ static const char *HYPCALL_16_(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("HYPCALL %s", code); + const char *ret = img_format("HYPCALL %s", code); + free((char *)code); + return ret; } @@ -7678,8 +7870,11 @@ static const char *INS(uint64 instruction) const char *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); + const char *ret = img_format("INS %s, %s, %s, %s", rt, rs, pos, size); /* hand edited */ + free((char *)pos); + free((char *)size); + return ret; } @@ -7718,7 +7913,7 @@ static const char *IRET(uint64 instruction) { (void)instruction; - return "IRET "; + return strdup("IRET "); } @@ -7826,7 +8021,9 @@ static const char *LB_16_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LB %s, %s(%s)", rt3, u, rs3); + const char *ret = img_format("LB %s, %s(%s)", rt3, u, rs3); + free((char *)u); + return ret; } @@ -7848,7 +8045,9 @@ static const char *LB_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LB %s, %s($%d)", rt, u, 28); + const char *ret = img_format("LB %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -7872,7 +8071,9 @@ static const char *LB_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LB %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LB %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -7896,7 +8097,9 @@ static const char *LB_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LB %s, %s(%s)", rt, u, rs); + const char *ret = img_format("LB %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -7920,7 +8123,9 @@ static const char *LBE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LBE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LBE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -7944,7 +8149,9 @@ static const char *LBU_16_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LBU %s, %s(%s)", rt3, u, rs3); + const char *ret = img_format("LBU %s, %s(%s)", rt3, u, rs3); + free((char *)u); + return ret; } @@ -7966,7 +8173,9 @@ static const char *LBU_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LBU %s, %s($%d)", rt, u, 28); + const char *ret = img_format("LBU %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -7990,7 +8199,9 @@ static const char *LBU_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LBU %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LBU %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8014,7 +8225,9 @@ static const char *LBU_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LBU %s, %s(%s)", rt, u, rs); + const char *ret = img_format("LBU %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -8038,7 +8251,9 @@ static const char *LBUE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LBUE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LBUE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8108,7 +8323,9 @@ static const char *LD_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LD %s, %s($%d)", rt, u, 28); + const char *ret = img_format("LD %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -8132,7 +8349,9 @@ static const char *LD_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LD %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LD %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8156,7 +8375,9 @@ static const char *LD_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LD %s, %s(%s)", rt, u, rs); + const char *ret = img_format("LD %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -8178,7 +8399,9 @@ static const char *LDC1_GP_(uint64 instruction) const char *ft = FPR(copy(ft_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LDC1 %s, %s($%d)", ft, u, 28); + const char *ret = img_format("LDC1 %s, %s($%d)", ft, u, 28); + free((char *)u); + return ret; } @@ -8202,7 +8425,9 @@ static const char *LDC1_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LDC1 %s, %s(%s)", ft, s, rs); + const char *ret = img_format("LDC1 %s, %s(%s)", ft, s, rs); + free((char *)s); + return ret; } @@ -8226,7 +8451,9 @@ static const char *LDC1_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LDC1 %s, %s(%s)", ft, u, rs); + const char *ret = img_format("LDC1 %s, %s(%s)", ft, u, rs); + free((char *)u); + return ret; } @@ -8298,7 +8525,9 @@ static const char *LDC2(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LDC2 %s, %s(%s)", ct, s, rs); + const char *ret = img_format("LDC2 %s, %s(%s)", ct, s, rs); + free((char *)s); + return ret; } @@ -8324,7 +8553,10 @@ static const char *LDM(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img_format("LDM %s, %s(%s), %s", rt, s, rs, count3); + const char *ret = img_format("LDM %s, %s(%s), %s", rt, s, rs, count3); + free((char *)s); + free((char *)count3); + return ret; } @@ -8346,7 +8578,9 @@ static const char *LDPC_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); - return img_format("LDPC %s, %s", rt, s); + const char *ret = img_format("LDPC %s, %s", rt, s); + free((char *)s); + return ret; } @@ -8418,7 +8652,9 @@ static const char *LH_16_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LH %s, %s(%s)", rt3, u, rs3); + const char *ret = img_format("LH %s, %s(%s)", rt3, u, rs3); + free((char *)u); + return ret; } @@ -8440,7 +8676,9 @@ static const char *LH_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LH %s, %s($%d)", rt, u, 28); + const char *ret = img_format("LH %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -8464,7 +8702,9 @@ static const char *LH_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LH %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LH %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8488,7 +8728,9 @@ static const char *LH_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LH %s, %s(%s)", rt, u, rs); + const char *ret = img_format("LH %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -8512,7 +8754,9 @@ static const char *LHE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LHE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LHE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8536,7 +8780,9 @@ static const char *LHU_16_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LHU %s, %s(%s)", rt3, u, rs3); + const char *ret = img_format("LHU %s, %s(%s)", rt3, u, rs3); + free((char *)u); + return ret; } @@ -8558,7 +8804,9 @@ static const char *LHU_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LHU %s, %s($%d)", rt, u, 28); + const char *ret = img_format("LHU %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -8582,7 +8830,9 @@ static const char *LHU_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LHU %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LHU %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8606,7 +8856,9 @@ static const char *LHU_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LHU %s, %s(%s)", rt, u, rs); + const char *ret = img_format("LHU %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -8630,7 +8882,9 @@ static const char *LHUE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LHUE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LHUE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8748,7 +9002,9 @@ static const char *LI_16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *eu = IMMEDIATE(encode_eu_from_s_li16(eu_value)); - return img_format("LI %s, %s", rt3, eu); + const char *ret = img_format("LI %s, %s", rt3, eu); + free((char *)eu); + return ret; } @@ -8770,7 +9026,9 @@ static const char *LI_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = IMMEDIATE(copy(s_value)); - return img_format("LI %s, %s", rt, s); + const char *ret = img_format("LI %s, %s", rt, s); + free((char *)s); + return ret; } @@ -8794,7 +9052,9 @@ static const char *LL(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LL %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LL %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8818,7 +9078,9 @@ static const char *LLD(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LLD %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LLD %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8866,7 +9128,9 @@ static const char *LLE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LLE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LLE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -8940,7 +9204,9 @@ static const char *LSA(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u2 = IMMEDIATE(copy(u2_value)); - return img_format("LSA %s, %s, %s, %s", rd, rs, rt, u2); + const char *ret = img_format("LSA %s, %s, %s, %s", rd, rs, rt, u2); + free((char *)u2); + return ret; } @@ -8962,7 +9228,9 @@ static const char *LUI(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = IMMEDIATE(copy(s_value)); - return img_format("LUI %s, %%hi(%s)", rt, s); + const char *ret = img_format("LUI %s, %%hi(%s)", rt, s); + free((char *)s); + return ret; } @@ -8986,7 +9254,9 @@ static const char *LW_16_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("LW %s, %s(%s)", rt3, u, rs3); + const char *ret = img_format("LW %s, %s(%s)", rt3, u, rs3); + free((char *)u); + return ret; } @@ -9010,7 +9280,9 @@ static const char *LW_4X4_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); - return img_format("LW %s, %s(%s)", rt4, u, rs4); + const char *ret = img_format("LW %s, %s(%s)", rt4, u, rs4); + free((char *)u); + return ret; } @@ -9032,7 +9304,9 @@ static const char *LW_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LW %s, %s($%d)", rt, u, 28); + const char *ret = img_format("LW %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -9054,7 +9328,9 @@ static const char *LW_GP16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LW %s, %s($%d)", rt3, u, 28); + const char *ret = img_format("LW %s, %s($%d)", rt3, u, 28); + free((char *)u); + return ret; } @@ -9078,7 +9354,9 @@ static const char *LW_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LW %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LW %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -9100,7 +9378,9 @@ static const char *LW_SP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LW %s, %s($%d)", rt, u, 29); + const char *ret = img_format("LW %s, %s($%d)", rt, u, 29); + free((char *)u); + return ret; } @@ -9124,7 +9404,9 @@ static const char *LW_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LW %s, %s(%s)", rt, u, rs); + const char *ret = img_format("LW %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -9146,7 +9428,9 @@ static const char *LWC1_GP_(uint64 instruction) const char *ft = FPR(copy(ft_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LWC1 %s, %s($%d)", ft, u, 28); + const char *ret = img_format("LWC1 %s, %s($%d)", ft, u, 28); + free((char *)u); + return ret; } @@ -9170,7 +9454,9 @@ static const char *LWC1_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LWC1 %s, %s(%s)", ft, s, rs); + const char *ret = img_format("LWC1 %s, %s(%s)", ft, s, rs); + free((char *)s); + return ret; } @@ -9194,7 +9480,9 @@ static const char *LWC1_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LWC1 %s, %s(%s)", ft, u, rs); + const char *ret = img_format("LWC1 %s, %s(%s)", ft, u, rs); + free((char *)u); + return ret; } @@ -9266,7 +9554,9 @@ static const char *LWC2(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LWC2 %s, %s(%s)", ct, s, rs); + const char *ret = img_format("LWC2 %s, %s(%s)", ct, s, rs); + free((char *)s); + return ret; } @@ -9290,7 +9580,9 @@ static const char *LWE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LWE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LWE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -9316,7 +9608,10 @@ static const char *LWM(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img_format("LWM %s, %s(%s), %s", rt, s, rs, count3); + const char *ret = img_format("LWM %s, %s(%s), %s", rt, s, rs, count3); + free((char *)s); + free((char *)count3); + return ret; } @@ -9338,7 +9633,9 @@ static const char *LWPC_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); - return img_format("LWPC %s, %s", rt, s); + const char *ret = img_format("LWPC %s, %s", rt, s); + free((char *)s); + return ret; } @@ -9360,7 +9657,9 @@ static const char *LWU_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("LWU %s, %s($%d)", rt, u, 28); + const char *ret = img_format("LWU %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -9384,7 +9683,9 @@ static const char *LWU_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LWU %s, %s(%s)", rt, s, rs); + const char *ret = img_format("LWU %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -9408,7 +9709,9 @@ static const char *LWU_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("LWU %s, %s(%s)", rt, u, rs); + const char *ret = img_format("LWU %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -9504,7 +9807,9 @@ static const char *LWXS_16_(uint64 instruction) const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *rt3 = IMMEDIATE(decode_gpr_gpr3(rt3_value)); - return img_format("LWXS %s, %s(%s)", rd3, rs3, rt3); + const char *ret = img_format("LWXS %s, %s(%s)", rd3, rs3, rt3); + free((char *)rt3); + return ret; } @@ -9846,7 +10151,10 @@ static const char *MFC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MFC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("MFC0 %s, %s, %s", rt, c0s, sel); + free((char *)c0s); + free((char *)sel); + return ret; } @@ -9914,7 +10222,10 @@ static const char *MFGC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MFGC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("MFGC0 %s, %s, %s", rt, c0s, sel); + free((char *)c0s); + free((char *)sel); + return ret; } @@ -9938,7 +10249,10 @@ static const char *MFHC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MFHC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("MFHC0 %s, %s, %s", rt, c0s, sel); + free((char *)c0s); + free((char *)sel); + return ret; } @@ -10006,7 +10320,10 @@ static const char *MFHGC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MFHGC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("MFHGC0 %s, %s, %s", rt, c0s, sel); + free((char *)c0s); + free((char *)sel); + return ret; } @@ -10053,7 +10370,11 @@ static const char *MFHTR(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); + const char *ret = img_format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); + free((char *)c0s); + free((char *)u); + free((char *)sel); + return ret; } @@ -10100,7 +10421,11 @@ static const char *MFTR(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); + const char *ret = img_format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); + free((char *)c0s); + free((char *)u); + free((char *)sel); + return ret; } @@ -10336,7 +10661,9 @@ static const char *MOVE_BALC(uint64 instruction) const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); - return img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); + const char *ret = img_format("MOVE.BALC %s, %s, %s", rd1, rtz4, s); + free((char *)s); + return ret; } @@ -10580,7 +10907,10 @@ static const char *MTC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MTC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("MTC0 %s, %s, %s", rt, c0s, sel); + free((char *)c0s); + free((char *)sel); + return ret; } @@ -10648,7 +10978,10 @@ static const char *MTGC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MTGC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("MTGC0 %s, %s, %s", rt, c0s, sel); + free((char *)c0s); + free((char *)sel); + return ret; } @@ -10672,7 +11005,10 @@ static const char *MTHC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MTHC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("MTHC0 %s, %s, %s", rt, c0s, sel); + free((char *)c0s); + free((char *)sel); + return ret; } @@ -10740,7 +11076,10 @@ static const char *MTHGC0(uint64 instruction) const char *c0s = CPR(copy(c0s_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MTHGC0 %s, %s, %s", rt, c0s, sel); + const char *ret = img_format("MTHGC0 %s, %s, %s", rt, c0s, sel); + free((char *)c0s); + free((char *)sel); + return ret; } @@ -10808,7 +11147,11 @@ static const char *MTHTR(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); + const char *ret = img_format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); + free((char *)c0s); + free((char *)u); + free((char *)sel); + return ret; } @@ -10855,7 +11198,11 @@ static const char *MTTR(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); + const char *ret = img_format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); + free((char *)c0s); + free((char *)u); + free((char *)sel); + return ret; } @@ -11431,7 +11778,7 @@ static const char *NOP_16_(uint64 instruction) { (void)instruction; - return "NOP "; + return strdup("NOP "); } @@ -11449,7 +11796,7 @@ static const char *NOP_32_(uint64 instruction) { (void)instruction; - return "NOP "; + return strdup("NOP "); } @@ -11565,7 +11912,9 @@ static const char *ORI(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("ORI %s, %s, %s", rt, rs, u); + const char *ret = img_format("ORI %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -11608,7 +11957,7 @@ static const char *PAUSE(uint64 instruction) { (void)instruction; - return "PAUSE "; + return strdup("PAUSE "); } @@ -11940,7 +12289,9 @@ static const char *PRECR_SRA_PH_W(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); + const char *ret = img_format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -11965,7 +12316,9 @@ static const char *PRECR_SRA_R_PH_W(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); + const char *ret = img_format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -12089,7 +12442,10 @@ static const char *PREF_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("PREF %s, %s(%s)", hint, s, rs); + const char *ret = img_format("PREF %s, %s(%s)", hint, s, rs); + free((char *)hint); + free((char *)s); + return ret; } @@ -12113,7 +12469,10 @@ static const char *PREF_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("PREF %s, %s(%s)", hint, u, rs); + const char *ret = img_format("PREF %s, %s(%s)", hint, u, rs); + free((char *)hint); + free((char *)u); + return ret; } @@ -12137,7 +12496,10 @@ static const char *PREFE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("PREFE %s, %s(%s)", hint, s, rs); + const char *ret = img_format("PREFE %s, %s(%s)", hint, s, rs); + free((char *)hint); + free((char *)s); + return ret; } @@ -12161,7 +12523,9 @@ static const char *PREPEND(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("PREPEND %s, %s, %s", rt, rs, sa); + const char *ret = img_format("PREPEND %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -12203,7 +12567,9 @@ static const char *RDDSP(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *mask = IMMEDIATE(copy(mask_value)); - return img_format("RDDSP %s, %s", rt, mask); + const char *ret = img_format("RDDSP %s, %s", rt, mask); + free((char *)mask); + return ret; } @@ -12227,7 +12593,10 @@ static const char *RDHWR(uint64 instruction) const char *hs = CPR(copy(hs_value)); const char *sel = IMMEDIATE(copy(sel_value)); - return img_format("RDHWR %s, %s, %s", rt, hs, sel); + const char *ret = img_format("RDHWR %s, %s, %s", rt, hs, sel); + free((char *)hs); + free((char *)sel); + return ret; } @@ -12316,6 +12685,7 @@ static const char *REPL_PH(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); return img_format("REPL.PH %s, %s", rt, s); + } @@ -12337,7 +12707,9 @@ static const char *REPL_QB(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("REPL.QB %s, %s", rt, u); + const char *ret = img_format("REPL.QB %s, %s", rt, u); + free((char *)u); + return ret; } @@ -12402,8 +12774,13 @@ static const char *RESTORE_32_(uint64 instruction) uint64 gp_value = extract_gp_2(instruction); const char *u = IMMEDIATE(copy(u_value)); - return img_format("RESTORE %s%s", u, - save_restore_list(rt_value, count_value, gp_value)); + const char *save_restore_str = save_restore_list( + rt_value, count_value, gp_value); + + const char *ret = img_format("RESTORE %s%s", u, save_restore_str); + free((char *)save_restore_str); + free((char *)u); + return ret; } @@ -12424,8 +12801,13 @@ static const char *RESTORE_JRC_16_(uint64 instruction) uint64 count_value = extract_count_3_2_1_0(instruction); const char *u = IMMEDIATE(copy(u_value)); - return img_format("RESTORE.JRC %s%s", u, - save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); + const char *save_restore_str = save_restore_list( + encode_rt1_from_rt(rt1_value), count_value, 0); + + const char *ret = img_format("RESTORE.JRC %s%s", u, save_restore_str); + free((char *)u); + free((char *)save_restore_str); + return ret; } @@ -12447,8 +12829,13 @@ static const char *RESTORE_JRC_32_(uint64 instruction) uint64 gp_value = extract_gp_2(instruction); const char *u = IMMEDIATE(copy(u_value)); - return img_format("RESTORE.JRC %s%s", u, - save_restore_list(rt_value, count_value, gp_value)); + const char *save_restore_str = save_restore_list( + rt_value, count_value, gp_value); + + const char *ret = img_format("RESTORE.JRC %s%s", u, save_restore_str); + free((char *)u); + free((char *)save_restore_str); + return ret; } @@ -12470,7 +12857,10 @@ static const char *RESTOREF(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *count = IMMEDIATE(copy(count_value)); - return img_format("RESTOREF %s, %s", u, count); + const char *ret = img_format("RESTOREF %s, %s", u, count); + free((char *)u); + free((char *)count); + return ret; } @@ -12538,7 +12928,9 @@ static const char *ROTR(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("ROTR %s, %s, %s", rt, rs, shift); + const char *ret = img_format("ROTR %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -12590,8 +12982,12 @@ static const char *ROTX(uint64 instruction) const char *shiftx = IMMEDIATE(copy(shiftx_value)); const char *stripe = IMMEDIATE(copy(stripe_value)); - return img_format("ROTX %s, %s, %s, %s, %s", + const char *ret = img_format("ROTX %s, %s, %s, %s, %s", rt, rs, shift, shiftx, stripe); + free((char *)shift); + free((char *)shiftx); + free((char *)stripe); + return ret; } @@ -12744,8 +13140,13 @@ static const char *SAVE_16_(uint64 instruction) uint64 count_value = extract_count_3_2_1_0(instruction); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SAVE %s%s", u, - save_restore_list(encode_rt1_from_rt(rt1_value), count_value, 0)); + const char *save_restore_str = save_restore_list( + encode_rt1_from_rt(rt1_value), count_value, 0); + + const char *ret = img_format("SAVE %s%s", u, save_restore_str); + free((char *)u); + free((char *)save_restore_str); + return ret; } @@ -12767,8 +13168,13 @@ static const char *SAVE_32_(uint64 instruction) uint64 gp_value = extract_gp_2(instruction); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SAVE %s%s", u, - save_restore_list(rt_value, count_value, gp_value)); + const char *save_restore_str = save_restore_list( + rt_value, count_value, gp_value); + + const char *ret = img_format("SAVE %s%s", u, save_restore_str); + free((char *)u); + free((char *)save_restore_str); + return ret; } @@ -12790,7 +13196,10 @@ static const char *SAVEF(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *count = IMMEDIATE(copy(count_value)); - return img_format("SAVEF %s, %s", u, count); + const char *ret = img_format("SAVEF %s, %s", u, count); + free((char *)u); + free((char *)count); + return ret; } @@ -12814,7 +13223,9 @@ static const char *SB_16_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("SB %s, %s(%s)", rtz3, u, rs3); + const char *ret = img_format("SB %s, %s(%s)", rtz3, u, rs3); + free((char *)u); + return ret; } @@ -12836,7 +13247,9 @@ static const char *SB_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SB %s, %s($%d)", rt, u, 28); + const char *ret = img_format("SB %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -12860,7 +13273,9 @@ static const char *SB_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SB %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SB %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -12884,7 +13299,9 @@ static const char *SB_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SB %s, %s(%s)", rt, u, rs); + const char *ret = img_format("SB %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -12908,7 +13325,9 @@ static const char *SBE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SBE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SBE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -12956,7 +13375,9 @@ static const char *SC(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SC %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SC %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -12980,7 +13401,9 @@ static const char *SCD(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SCD %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SCD %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -13028,7 +13451,9 @@ static const char *SCE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SCE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SCE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -13098,7 +13523,9 @@ static const char *SD_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SD %s, %s($%d)", rt, u, 28); + const char *ret = img_format("SD %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -13122,7 +13549,9 @@ static const char *SD_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SD %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SD %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -13146,7 +13575,9 @@ static const char *SD_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SD %s, %s(%s)", rt, u, rs); + const char *ret = img_format("SD %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -13166,7 +13597,9 @@ static const char *SDBBP_16_(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("SDBBP %s", code); + const char *ret = img_format("SDBBP %s", code); + free((char *)code); + return ret; } @@ -13186,7 +13619,9 @@ static const char *SDBBP_32_(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("SDBBP %s", code); + const char *ret = img_format("SDBBP %s", code); + free((char *)code); + return ret; } @@ -13208,7 +13643,9 @@ static const char *SDC1_GP_(uint64 instruction) const char *ft = FPR(copy(ft_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SDC1 %s, %s($%d)", ft, u, 28); + const char *ret = img_format("SDC1 %s, %s($%d)", ft, u, 28); + free((char *)u); + return ret; } @@ -13232,7 +13669,9 @@ static const char *SDC1_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SDC1 %s, %s(%s)", ft, s, rs); + const char *ret = img_format("SDC1 %s, %s(%s)", ft, s, rs); + free((char *)s); + return ret; } @@ -13256,7 +13695,9 @@ static const char *SDC1_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SDC1 %s, %s(%s)", ft, u, rs); + const char *ret = img_format("SDC1 %s, %s(%s)", ft, u, rs); + free((char *)u); + return ret; } @@ -13328,7 +13769,9 @@ static const char *SDC2(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SDC2 %s, %s(%s)", cs, s, rs); + const char *ret = img_format("SDC2 %s, %s(%s)", cs, s, rs); + free((char *)s); + return ret; } @@ -13354,7 +13797,10 @@ static const char *SDM(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img_format("SDM %s, %s(%s), %s", rt, s, rs, count3); + const char *ret = img_format("SDM %s, %s(%s), %s", rt, s, rs, count3); + free((char *)s); + free((char *)count3); + return ret; } @@ -13376,7 +13822,9 @@ static const char *SDPC_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); - return img_format("SDPC %s, %s", rt, s); + const char *ret = img_format("SDPC %s, %s", rt, s); + free((char *)s); + return ret; } @@ -13636,7 +14084,9 @@ static const char *SEQI(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SEQI %s, %s, %s", rt, rs, u); + const char *ret = img_format("SEQI %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -13660,7 +14110,9 @@ static const char *SH_16_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("SH %s, %s(%s)", rtz3, u, rs3); + const char *ret = img_format("SH %s, %s(%s)", rtz3, u, rs3); + free((char *)u); + return ret; } @@ -13682,7 +14134,9 @@ static const char *SH_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SH %s, %s($%d)", rt, u, 28); + const char *ret = img_format("SH %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -13706,7 +14160,9 @@ static const char *SH_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SH %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SH %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -13730,7 +14186,9 @@ static const char *SH_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SH %s, %s(%s)", rt, u, rs); + const char *ret = img_format("SH %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -13754,7 +14212,9 @@ static const char *SHE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SHE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SHE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -13776,7 +14236,9 @@ static const char *SHILO(uint64 instruction) const char *shift = IMMEDIATE(copy(shift_value)); const char *ac = AC(copy(ac_value)); - return img_format("SHILO %s, %s", ac, shift); + const char *ret = img_format("SHILO %s, %s", ac, shift); + free((char *)shift); + return ret; } @@ -13822,7 +14284,9 @@ static const char *SHLL_PH(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHLL.PH %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHLL.PH %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -13846,7 +14310,9 @@ static const char *SHLL_QB(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHLL.QB %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHLL.QB %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -13871,7 +14337,9 @@ static const char *SHLL_S_PH(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHLL_S.PH %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHLL_S.PH %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -13895,7 +14363,9 @@ static const char *SHLL_S_W(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHLL_S.W %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHLL_S.W %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -14017,7 +14487,9 @@ static const char *SHRA_PH(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHRA.PH %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHRA.PH %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -14041,7 +14513,9 @@ static const char *SHRA_QB(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHRA.QB %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHRA.QB %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -14065,7 +14539,9 @@ static const char *SHRA_R_PH(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHRA_R.PH %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHRA_R.PH %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -14089,7 +14565,9 @@ static const char *SHRA_R_QB(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHRA_R.QB %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHRA_R.QB %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -14113,7 +14591,9 @@ static const char *SHRA_R_W(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHRA_R.W %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHRA_R.W %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -14257,7 +14737,9 @@ static const char *SHRL_PH(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHRL.PH %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHRL.PH %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -14281,7 +14763,9 @@ static const char *SHRL_QB(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *sa = IMMEDIATE(copy(sa_value)); - return img_format("SHRL.QB %s, %s, %s", rt, rs, sa); + const char *ret = img_format("SHRL.QB %s, %s, %s", rt, rs, sa); + free((char *)sa); + return ret; } @@ -14398,7 +14882,9 @@ static const char *SIGRIE(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("SIGRIE %s", code); + const char *ret = img_format("SIGRIE %s", code); + free((char *)code); + return ret; } @@ -14422,7 +14908,9 @@ static const char *SLL_16_(uint64 instruction) const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); - return img_format("SLL %s, %s, %s", rt3, rs3, shift3); + const char *ret = img_format("SLL %s, %s, %s", rt3, rs3, shift3); + free((char *)shift3); + return ret; } @@ -14446,7 +14934,9 @@ static const char *SLL_32_(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("SLL %s, %s, %s", rt, rs, shift); + const char *ret = img_format("SLL %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -14518,7 +15008,9 @@ static const char *SLTI(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SLTI %s, %s, %s", rt, rs, u); + const char *ret = img_format("SLTI %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -14542,7 +15034,9 @@ static const char *SLTIU(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SLTIU %s, %s, %s", rt, rs, u); + const char *ret = img_format("SLTIU %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } @@ -14610,7 +15104,9 @@ static const char *SPECIAL2(uint64 instruction) const char *op = IMMEDIATE(copy(op_value)); - return img_format("SPECIAL2 %s", op); + const char *ret = img_format("SPECIAL2 %s", op); + free((char *)op); + return ret; } @@ -14678,7 +15174,9 @@ static const char *SRA(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("SRA %s, %s, %s", rt, rs, shift); + const char *ret = img_format("SRA %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -14726,7 +15224,9 @@ static const char *SRL_16_(uint64 instruction) const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); - return img_format("SRL %s, %s, %s", rt3, rs3, shift3); + const char *ret = img_format("SRL %s, %s, %s", rt3, rs3, shift3); + free((char *)shift3); + return ret; } @@ -14750,7 +15250,9 @@ static const char *SRL_32_(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *shift = IMMEDIATE(copy(shift_value)); - return img_format("SRL %s, %s, %s", rt, rs, shift); + const char *ret = img_format("SRL %s, %s, %s", rt, rs, shift); + free((char *)shift); + return ret; } @@ -15240,7 +15742,9 @@ static const char *SW_16_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - return img_format("SW %s, %s(%s)", rtz3, u, rs3); + const char *ret = img_format("SW %s, %s(%s)", rtz3, u, rs3); + free((char *)u); + return ret; } @@ -15264,7 +15768,9 @@ static const char *SW_4X4_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); - return img_format("SW %s, %s(%s)", rtz4, u, rs4); + const char *ret = img_format("SW %s, %s(%s)", rtz4, u, rs4); + free((char *)u); + return ret; } @@ -15286,7 +15792,9 @@ static const char *SW_GP16_(uint64 instruction) const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SW %s, %s($%d)", rtz3, u, 28); + const char *ret = img_format("SW %s, %s($%d)", rtz3, u, 28); + free((char *)u); + return ret; } @@ -15308,7 +15816,9 @@ static const char *SW_GP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SW %s, %s($%d)", rt, u, 28); + const char *ret = img_format("SW %s, %s($%d)", rt, u, 28); + free((char *)u); + return ret; } @@ -15332,7 +15842,9 @@ static const char *SW_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SW %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SW %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -15354,7 +15866,9 @@ static const char *SW_SP_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SW %s, %s($%d)", rt, u, 29); + const char *ret = img_format("SW %s, %s($%d)", rt, u, 29); + free((char *)u); + return ret; } @@ -15378,7 +15892,9 @@ static const char *SW_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SW %s, %s(%s)", rt, u, rs); + const char *ret = img_format("SW %s, %s(%s)", rt, u, rs); + free((char *)u); + return ret; } @@ -15400,7 +15916,9 @@ static const char *SWC1_GP_(uint64 instruction) const char *ft = FPR(copy(ft_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("SWC1 %s, %s($%d)", ft, u, 28); + const char *ret = img_format("SWC1 %s, %s($%d)", ft, u, 28); + free((char *)u); + return ret; } @@ -15424,7 +15942,9 @@ static const char *SWC1_S9_(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SWC1 %s, %s(%s)", ft, s, rs); + const char *ret = img_format("SWC1 %s, %s(%s)", ft, s, rs); + free((char *)s); + return ret; } @@ -15448,7 +15968,9 @@ static const char *SWC1_U12_(uint64 instruction) const char *u = IMMEDIATE(copy(u_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SWC1 %s, %s(%s)", ft, u, rs); + const char *ret = img_format("SWC1 %s, %s(%s)", ft, u, rs); + free((char *)u); + return ret; } @@ -15520,7 +16042,9 @@ static const char *SWC2(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SWC2 %s, %s(%s)", cs, s, rs); + const char *ret = img_format("SWC2 %s, %s(%s)", cs, s, rs); + free((char *)s); + return ret; } @@ -15544,7 +16068,9 @@ static const char *SWE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SWE %s, %s(%s)", rt, s, rs); + const char *ret = img_format("SWE %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -15570,7 +16096,10 @@ static const char *SWM(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img_format("SWM %s, %s(%s), %s", rt, s, rs, count3); + const char *ret = img_format("SWM %s, %s(%s), %s", rt, s, rs, count3); + free((char *)s); + free((char *)count3); + return ret; } @@ -15592,7 +16121,9 @@ static const char *SWPC_48_(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); - return img_format("SWPC %s, %s", rt, s); + const char *ret = img_format("SWPC %s, %s", rt, s); + free((char *)s); + return ret; } @@ -15660,7 +16191,9 @@ static const char *SYNC(uint64 instruction) const char *stype = IMMEDIATE(copy(stype_value)); - return img_format("SYNC %s", stype); + const char *ret = img_format("SYNC %s", stype); + free((char *)stype); + return ret; } @@ -15682,7 +16215,9 @@ static const char *SYNCI(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SYNCI %s(%s)", s, rs); + const char *ret = img_format("SYNCI %s(%s)", s, rs); + free((char *)s); + return ret; } @@ -15704,7 +16239,9 @@ static const char *SYNCIE(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("SYNCIE %s(%s)", s, rs); + const char *ret = img_format("SYNCIE %s(%s)", s, rs); + free((char *)s); + return ret; } @@ -15724,7 +16261,9 @@ static const char *SYSCALL_16_(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("SYSCALL %s", code); + const char *ret = img_format("SYSCALL %s", code); + free((char *)code); + return ret; } @@ -15742,7 +16281,9 @@ static const char *SYSCALL_32_(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("SYSCALL %s", code); + const char *ret = img_format("SYSCALL %s", code); + free((char *)code); + return ret; } @@ -15782,7 +16323,7 @@ static const char *TLBGINV(uint64 instruction) { (void)instruction; - return "TLBGINV "; + return strdup("TLBGINV "); } @@ -15800,7 +16341,7 @@ static const char *TLBGINVF(uint64 instruction) { (void)instruction; - return "TLBGINVF "; + return strdup("TLBGINVF "); } @@ -15818,7 +16359,7 @@ static const char *TLBGP(uint64 instruction) { (void)instruction; - return "TLBGP "; + return strdup("TLBGP "); } @@ -15836,7 +16377,7 @@ static const char *TLBGR(uint64 instruction) { (void)instruction; - return "TLBGR "; + return strdup("TLBGR "); } @@ -15854,7 +16395,7 @@ static const char *TLBGWI(uint64 instruction) { (void)instruction; - return "TLBGWI "; + return strdup("TLBGWI "); } @@ -15872,7 +16413,7 @@ static const char *TLBGWR(uint64 instruction) { (void)instruction; - return "TLBGWR "; + return strdup("TLBGWR "); } @@ -15890,7 +16431,7 @@ static const char *TLBINV(uint64 instruction) { (void)instruction; - return "TLBINV "; + return strdup("TLBINV "); } @@ -15908,7 +16449,7 @@ static const char *TLBINVF(uint64 instruction) { (void)instruction; - return "TLBINVF "; + return strdup("TLBINVF "); } @@ -15926,7 +16467,7 @@ static const char *TLBP(uint64 instruction) { (void)instruction; - return "TLBP "; + return strdup("TLBP "); } @@ -15944,7 +16485,7 @@ static const char *TLBR(uint64 instruction) { (void)instruction; - return "TLBR "; + return strdup("TLBR "); } @@ -15962,7 +16503,7 @@ static const char *TLBWI(uint64 instruction) { (void)instruction; - return "TLBWI "; + return strdup("TLBWI "); } @@ -15980,7 +16521,7 @@ static const char *TLBWR(uint64 instruction) { (void)instruction; - return "TLBWR "; + return strdup("TLBWR "); } @@ -16116,7 +16657,10 @@ static const char *UALDM(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img_format("UALDM %s, %s(%s), %s", rt, s, rs, count3); + const char *ret = img_format("UALDM %s, %s(%s), %s", rt, s, rs, count3); + free((char *)s); + free((char *)count3); + return ret; } @@ -16140,7 +16684,9 @@ static const char *UALH(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("UALH %s, %s(%s)", rt, s, rs); + const char *ret = img_format("UALH %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -16166,7 +16712,10 @@ static const char *UALWM(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img_format("UALWM %s, %s(%s), %s", rt, s, rs, count3); + const char *ret = img_format("UALWM %s, %s(%s), %s", rt, s, rs, count3); + free((char *)s); + free((char *)count3); + return ret; } @@ -16192,7 +16741,10 @@ static const char *UASDM(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img_format("UASDM %s, %s(%s), %s", rt, s, rs, count3); + const char *ret = img_format("UASDM %s, %s(%s), %s", rt, s, rs, count3); + free((char *)s); + free((char *)count3); + return ret; } @@ -16216,7 +16768,9 @@ static const char *UASH(uint64 instruction) const char *s = IMMEDIATE(copy(s_value)); const char *rs = GPR(copy(rs_value)); - return img_format("UASH %s, %s(%s)", rt, s, rs); + const char *ret = img_format("UASH %s, %s(%s)", rt, s, rs); + free((char *)s); + return ret; } @@ -16242,7 +16796,10 @@ static const char *UASWM(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); - return img_format("UASWM %s, %s(%s), %s", rt, s, rs, count3); + const char *ret = img_format("UASWM %s, %s(%s), %s", rt, s, rs, count3); + free((char *)s); + free((char *)count3); + return ret; } @@ -16262,7 +16819,9 @@ static const char *UDI(uint64 instruction) const char *op = IMMEDIATE(copy(op_value)); - return img_format("UDI %s", op); + const char *ret = img_format("UDI %s", op); + free((char *)op); + return ret; } @@ -16280,7 +16839,9 @@ static const char *WAIT(uint64 instruction) const char *code = IMMEDIATE(copy(code_value)); - return img_format("WAIT %s", code); + const char *ret = img_format("WAIT %s", code); + free((char *)code); + return ret; } @@ -16302,7 +16863,9 @@ static const char *WRDSP(uint64 instruction) const char *rt = GPR(copy(rt_value)); const char *mask = IMMEDIATE(copy(mask_value)); - return img_format("WRDSP %s, %s", rt, mask); + const char *ret = img_format("WRDSP %s, %s", rt, mask); + free((char *)mask); + return ret; } @@ -16394,7 +16957,9 @@ static const char *XORI(uint64 instruction) const char *rs = GPR(copy(rs_value)); const char *u = IMMEDIATE(copy(u_value)); - return img_format("XORI %s, %s, %s", rt, rs, u); + const char *ret = img_format("XORI %s, %s, %s", rt, rs, u); + free((char *)u); + return ret; } From patchwork Mon Aug 15 07: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: 12943233 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 96066C25B0D for ; Mon, 15 Aug 2022 07:50:38 +0000 (UTC) Received: from localhost ([::1]:56310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUrt-0007VM-Dh for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:50:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUZV-000142-Hf for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:31:37 -0400 Received: from mail-eopbgr50098.outbound.protection.outlook.com ([40.107.5.98]:11086 helo=EUR03-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 1oNUZP-0001Au-CW for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:31:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RtqUXBhkZ66s6HxBsgaT6i6B823OPNBvE5RJSoIp3sdl4iH2vGD6zBwMe6GktrIspQXhD/jd69XdFAdxKgyVgdm0g+JKlh5zH7fi+kj4QLtNtglRsRx3lYxbJ9mJhUo44NHK8CPcxNVbotz22TSVjhxZ3P09RUi5+ucRL3QaGJXYLSJZ1CVm4dPTv82LFYEzTpEWf/vDLYzRjzxiouwnvOPh0oA3zUfIdE9cKzcFr93PyZ9Kz5HLnadEeaexh6qC0wgs8gM5yKIKl8pitKWslhAta5Sa4ZkIJQBiMpyaGWphFDfG3aRjnAmtb9iPQX6Su1LYjlmSmUzdbN591e0DDA== 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=Fn7qUUe/D63pqUZ3JouYl7hjHEN5esYhwQ0AYDF/zxI=; b=QLIEUWKUwRGTQmHalX6YJ6KWfUC68Op0UaCz3Uvcv9Ba0syYirEQIKzzSLmob1uXB6TOSSPMKRaFusyHrZqywdcxzZIoEnB+ZfqHP38CgyLSsIFapthR75DSc6Q/seD4SCtVEYOU6yEDVZPooJ9uS4fL6IoTL9RHFvx22qw7xMwGPBa5DPcsbL7Oyif1Kr+uF7p6vnCeeVyqdCw8NBSCY0iIXF2TQWOxX3Bx2okjBs1tztDH3nK2kgT8Fl9uumkS/zVjBjf20LBnWUJIMQ2Uru3UghwziIPAYra4MnOktsYBuV5fQIjdr7eQKGHsfnVbApO6bf62aL4Z0PsRnm4IJw== 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=Fn7qUUe/D63pqUZ3JouYl7hjHEN5esYhwQ0AYDF/zxI=; b=Kczd2wJ2IkPObgYZMwSbgJJRDS9A2W1ohvU53PcwGpTdyTmNUTGOStv4B3NEDvWBLC0wR/pDMUmD5/aGKnqDekeClobEmhChRKqsBbqD+TngRLA3JujqnmiGAFENZqdlKZktj6iz1lBXSonYm3+q7GBSpuIi+jqPqRI7DqJ7zak= 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 DU0PR03MB9152.eurprd03.prod.outlook.com (2603:10a6:10:471::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Mon, 15 Aug 2022 07:30:57 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:30:57 +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 14/20] disas/nanomips: Remove function overloading Date: Mon, 15 Aug 2022 09:26:23 +0200 Message-Id: <20220815072629.12865-15-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: adb112d0-051c-489c-0452-08da7e901819 X-MS-TrafficTypeDiagnostic: DU0PR03MB9152:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jjNCwyd6r6VPH0Ci9uy4RSCI2KYbMUw4kQ1y7IhvbjpoZVN2bNqNscWYApPOsAcDe6Ljja2NjqcYl2NTg1TTwcnHDyT0DR3xSubvglAqRDhbtxDUzZ6dA9S4CbvzNP7177zWeDRPAXBvtSQOQrevuCNfUCcCJvV29cKo9KS5OBfK9aPQq1afICW8KxWYqGVC1JG/S4FcKu6p6h03T/VnbBJ+LJo9DU8zZ8r7rY9eJJRC5FfYqHbN8k3iHukoS/EHSeg4f0lFiO28bm0OkOh56xs/h6+cySzunTY7wVXk+6tURWMO/DEei8FbVG+bxc8ux+f164d8Ybeu5h69kh8vGWRqa/x2GE7ICCcqTbpaSCfGiq9/Tyqc4YzB6ohWEWbCGpRVPV49u07LD1yjoGIQH7oICArhPph7/p7NE7hwk39Pp/qkJLxfU2dCpjxy6lLL0M0/JNADQ9S1Nv2Iqr369o9euiipJckVdfiNdCprJbx1ocp5sa0uKbA3fQhygYCuovGv03KPWt99pN20eifpBdwQWLJ6+2COcXQpoDpex2PDEc6LK5QVa/4cstto+dPZ+WvEIISn/vrLIUe62wXW8/ygy2oCJacyZ6zoaGtFb20fpuVBxMDXB1rkuhRp1ZPzOKPfqUWYj5U2lkDhS0TNolmHPhGq3dSNghKepDYJcIzUBRE0OZZUojAXgOu3IJcAC/QUTCL+ZGfsFxR1XpP0OE9fFA/XFC8cUaQRAa8xwkgWnZLEky7UVC+x6JWHnYlivmZ6O6msXP1spItOC4V1ovzXI8YysjDLYWIXBRPDS6A= 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)(39840400004)(376002)(396003)(136003)(346002)(366004)(52116002)(1076003)(8936002)(5660300002)(44832011)(2906002)(26005)(86362001)(30864003)(41300700001)(66476007)(186003)(6666004)(2616005)(6506007)(6512007)(83380400001)(478600001)(38100700002)(4326008)(8676002)(66556008)(316002)(107886003)(6916009)(38350700002)(6486002)(66946007)(36756003)(559001)(579004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2+npTXN4/e5pMVQ7ui9/XNLPZjM4QVQ72a43La/6jI4CxRBXBAfUuV8dZ4mz8bYvZPvdOogptTOFtnbBk+Zs2CfLEuuUgRzCmjkouXZP8Lox1qFkgTp22EkW0SgBaxU37ytD7Aixj9A+5mfQlSX4tz5ZoNKzqEH+dtFTmKdGHs0Z+ppr8IovXiAUi7EzqGaaLSg3TIm/NGJg0UBp6BG9A8HzHGDXai21FmujKnADmP5q6ZSvkRTj4ifBBZkcJW0aWcR6uIOzZQ+FS53OpUtmwq5o0UM9ImrZJ4VA5/3lzji2xcmhD31DjolXvbiFTpsQKlTGJ8URuS/8R0wncWd/m8Zuoedl1bkMBtuK+ACYksgGiyt6qjX00MFUdX4FUxAVB2TbhwLMsXKzAPq1NgPei7a01R4awuStIvGyCxyRf53pK4R23GSQSEFILAgq1z+3T2gpZWXP9tI9rQFA4Euetv7CnFLAQ0Uc2wuqepndcp8f00uACpAu9h+Xq20PdFzw6+Zo3LKdOSo8QZ4drXhCAxgDlGZsUjZRIRsc7NwnYoREIYJNpxUDDoyy433LAoeId4m/eL1soNdKqGuPOuaUi4co5hx9q5F6DcDRZX32IzITJFqdI9vk9gxW0B/rEkMlZGShZ1oTGBOWp8ZQ45gAlw1+72kHYhJsNoXqj6xbDVAwACFAjp902JqLF5uHe+aC2mW3ixD/SsrfLD81me8pahvJ/x4xB8uZwxCVK0dKaGYOvf2MnWWYjjMB5y/UzXiMNQJ2b2yH6Qw+6flcPM1NhqRD1dgCOnR9nB6nu7w7yedqI6oznoUl565oWQwTjVaxR9ANNXDTRGzd4rCkYzt89g3jmTB8t3upxhBZBC2GiIN8lovSvY8hMVgWujItwunsxqXk4E4w40OVxe1IJtLpidq+IRcBrcwPaDwJQsIJNhc6+SslCKiXFAZUyANZjS1eAfKu/Jyz+2z1K/U8BIY8KbG7K9+plUAaevRmrCMZD6S+9yUNIqmuu0OOVrk6x9VZcq5HLwF6qRnj1sl8jUEMVcR42ogj8/6a5DJkXtRxr4dq/m6bnODr8Thr2e+aNyoNDiy4opbg31IF3cpJGhrDub3pfz2qhUb0Yomb+bVAdiexMNq0c8TL9gnFEcjYTo1tqAQtMQaGX+/dqmtsW+Rg5D8B8Qw3Tc/0Hk6nVgLcHx0vfcn45Xx8jQrmUV6jSWa38qkoX34i+pCSdctmjk+VOgIWfyxkmCp3oXO5iiFRi3/oOqHQhrSvEPzJo53TQXiqfVme0U4srAppkhtmLALFZ93d6FY9UlzFsfikoD60NPl8aofUN2UerK972Sxpf1fyTvUxJYwwUffzZWDkuuxdbh8osUN6Xkvw+B0SPN3pq6UI0jlJFecdMr0IEkPJEKJldvM60Sd0HHKi9+lNjQT+cBIW44Ey80AvrU7WHwFZ/SL1e1KBE5+Ytb5ClVJbCXU83pWmdFgSc/ngpKTHLcRIR3aPWoVA1Q5E4xDllO9GN3Oag2JPHKlYNTKqf6W5h9TsoZOuVBcnGkzcFmm4k5aM5W1gDXIeyRhbOOCCuuDEl3PfYLV5reychhUDnl9AfVBBoLdikhkV8WG8C5SLaqdvBA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: adb112d0-051c-489c-0452-08da7e901819 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:30:57.3841 (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: DHDh5SnLtG9NXCneWWAEIOXu4lMscyjEiuLoFnqzC8g2q6x0KmpBpFAOGlDE1Ge3SLzYwWJm4G5dxiYc6jwMXZT5qYkk78oehkAxaVbtigg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB9152 Received-SPF: pass client-ip=40.107.5.98; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR03-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" Renamed the following functions by adding a suffix: - copy to copy_ui and copy_i - IMMEDIATE to IMMEDIATE_UI and IMMEDIATE_I Calls to copy and IMMEDIATE functions are replaced based on the type of arguments. 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 Acked-by: Thomas Huth --- disas/nanomips.cpp | 3103 ++++++++++++++++++++++---------------------- 1 file changed, 1550 insertions(+), 1553 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 551bcb3164..769368a984 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -398,13 +398,13 @@ static uint64 decode_gpr_gpr1(uint64 d) } -static uint64 copy(uint64 d) +static uint64 copy_ui(uint64 d) { return d; } -static int64 copy(int64 d) +static int64 copy_i(int64 d) { return d; } @@ -568,13 +568,13 @@ static const char *AC(uint64 reg) } -static const char *IMMEDIATE(uint64 value) +static const char *IMMEDIATE_UI(uint64 value) { return img_format("0x%" PRIx64, value); } -static const char *IMMEDIATE(int64 value) +static const char *IMMEDIATE_I(int64 value) { return img_format("%" PRId64, value); } @@ -1627,8 +1627,8 @@ static const char *ABS_D(uint64 instruction) 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(copy(fs_value)); - const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *fd = FPR(copy_ui(fd_value)); return img_format("ABS.D %s, %s", fd, fs); } @@ -1649,8 +1649,8 @@ static const char *ABS_S(uint64 instruction) 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(copy(fs_value)); - const char *fd = FPR(copy(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *fd = FPR(copy_ui(fd_value)); return img_format("ABS.S %s, %s", fd, fs); } @@ -1671,8 +1671,8 @@ static const char *ABSQ_S_PH(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("ABSQ_S.PH %s, %s", rt, rs); } @@ -1693,8 +1693,8 @@ static const char *ABSQ_S_QB(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("ABSQ_S.QB %s, %s", rt, rs); } @@ -1715,8 +1715,8 @@ static const char *ABSQ_S_W(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("ABSQ_S.W %s, %s", rt, rs); } @@ -1737,9 +1737,9 @@ static const char *ACLR(uint64 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); - const char *bit = IMMEDIATE(copy(bit_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *bit = IMMEDIATE_UI(copy_ui(bit_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("ACLR %s, %s(%s)", bit, s, rs); free((char *)bit); @@ -1763,9 +1763,9 @@ static const char *ADD(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADD %s, %s, %s", rd, rs, rt); } @@ -1788,9 +1788,9 @@ static const char *ADD_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); - const char *fd = FPR(copy(fd_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *fd = FPR(copy_ui(fd_value)); return img_format("ADD.D %s, %s, %s", fd, fs, ft); } @@ -1813,9 +1813,9 @@ static const char *ADD_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); - const char *fd = FPR(copy(fd_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *fd = FPR(copy_ui(fd_value)); return img_format("ADD.S %s, %s, %s", fd, fs, ft); } @@ -1836,9 +1836,9 @@ static const char *ADDIU_32_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 u_value = extract_u_15_to_0(instruction); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("ADDIU %s, %s, %s", rt, rs, u); free((char *)u); @@ -1860,8 +1860,9 @@ static const char *ADDIU_48_(uint64 instruction) 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(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *ret = img_format("ADDIU %s, %s", rt, s); free((char *)s); return ret; @@ -1882,8 +1883,9 @@ static const char *ADDIU_GP48_(uint64 instruction) 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(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *ret = img_format("ADDIU %s, $%d, %s", rt, 28, s); free((char *)s); return ret; @@ -1904,8 +1906,8 @@ static const char *ADDIU_GP_B_(uint64 instruction) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("ADDIU %s, $%d, %s", rt, 28, u); free((char *)u); @@ -1927,8 +1929,8 @@ static const char *ADDIU_GP_W_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("ADDIU %s, $%d, %s", rt, 28, u); free((char *)u); @@ -1951,9 +1953,9 @@ static const char *ADDIU_NEG_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(neg_copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_I(neg_copy(u_value)); const char *ret = img_format("ADDIU %s, %s, %s", rt, rs, u); free((char *)u); @@ -1976,7 +1978,7 @@ static const char *ADDIU_R1_SP_(uint64 instruction) uint64 rt3_value = extract_rt3_9_8_7(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("ADDIU %s, $%d, %s", rt3, 29, u); free((char *)u); @@ -2001,7 +2003,7 @@ static const char *ADDIU_R2_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("ADDIU %s, %s, %s", rt3, rs3, u); free((char *)u); @@ -2022,8 +2024,8 @@ static const char *ADDIU_RS5_(uint64 instruction) 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(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); const char *ret = img_format("ADDIU %s, %s", rt, s); free((char *)s); @@ -2046,7 +2048,7 @@ static const char *ADDIUPC_32_(uint64 instruction) 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(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("ADDIUPC %s, %s", rt, s); @@ -2070,7 +2072,7 @@ static const char *ADDIUPC_48_(uint64 instruction) 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(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); const char *ret = img_format("ADDIUPC %s, %s", rt, s); @@ -2095,9 +2097,9 @@ static const char *ADDQ_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDQ.PH %s, %s, %s", rd, rs, rt); } @@ -2120,9 +2122,9 @@ static const char *ADDQ_S_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -2144,9 +2146,9 @@ static const char *ADDQ_S_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDQ_S.W %s, %s, %s", rd, rs, rt); } @@ -2169,9 +2171,9 @@ static const char *ADDQH_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDQH.PH %s, %s, %s", rd, rs, rt); } @@ -2194,9 +2196,9 @@ static const char *ADDQH_R_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -2219,9 +2221,9 @@ static const char *ADDQH_R_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDQH_R.W %s, %s, %s", rd, rs, rt); } @@ -2244,9 +2246,9 @@ static const char *ADDQH_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDQH.W %s, %s, %s", rd, rs, rt); } @@ -2268,9 +2270,9 @@ static const char *ADDSC(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDSC %s, %s, %s", rd, rs, rt); } @@ -2315,9 +2317,9 @@ static const char *ADDU_32_(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDU %s, %s, %s", rd, rs, rt); } @@ -2361,9 +2363,9 @@ static const char *ADDU_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDU.PH %s, %s, %s", rd, rs, rt); } @@ -2385,9 +2387,9 @@ static const char *ADDU_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDU.QB %s, %s, %s", rd, rs, rt); } @@ -2410,9 +2412,9 @@ static const char *ADDU_S_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDU_S.PH %s, %s, %s", rd, rs, rt); } @@ -2434,9 +2436,9 @@ static const char *ADDU_S_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDU_S.QB %s, %s, %s", rd, rs, rt); } @@ -2459,9 +2461,9 @@ static const char *ADDUH_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDUH.QB %s, %s, %s", rd, rs, rt); } @@ -2484,9 +2486,9 @@ static const char *ADDUH_R_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -2507,9 +2509,9 @@ static const char *ADDWC(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ADDWC %s, %s, %s", rd, rs, rt); } @@ -2530,7 +2532,7 @@ static const char *ALUIPC(uint64 instruction) 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(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("ALUIPC %s, %%pcrel_hi(%s)", rt, s); @@ -2576,9 +2578,9 @@ static const char *AND_32_(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("AND %s, %s, %s", rd, rs, rt); } @@ -2601,7 +2603,7 @@ static const char *ANDI_16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *eu = IMMEDIATE(encode_eu_from_u_andi16(eu_value)); + const char *eu = IMMEDIATE_UI(encode_eu_from_u_andi16(eu_value)); const char *ret = img_format("ANDI %s, %s, %s", rt3, rs3, eu); free((char *)eu); @@ -2625,9 +2627,9 @@ static const char *ANDI_32_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("ANDI %s, %s, %s", rt, rs, u); free((char *)u); @@ -2651,9 +2653,9 @@ static const char *APPEND(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("APPEND %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -2677,9 +2679,9 @@ static const char *ASET(uint64 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); - const char *bit = IMMEDIATE(copy(bit_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *bit = IMMEDIATE_UI(copy_ui(bit_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("ASET %s, %s(%s)", bit, s, rs); free((char *)bit); @@ -2747,8 +2749,8 @@ static const char *BALRSC(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("BALRSC %s, %s", rt, rs); } @@ -2770,8 +2772,8 @@ static const char *BBEQZC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *bit = IMMEDIATE(copy(bit_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *bit = IMMEDIATE_UI(copy_ui(bit_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BBEQZC %s, %s, %s", rt, bit, s); @@ -2797,8 +2799,8 @@ static const char *BBNEZC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *bit = IMMEDIATE(copy(bit_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *bit = IMMEDIATE_UI(copy_ui(bit_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BBNEZC %s, %s, %s", rt, bit, s); @@ -2867,7 +2869,7 @@ static const char *BC1EQZC(uint64 instruction) 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(copy(ft_value)); + const char *ft = FPR(copy_ui(ft_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BC1EQZC %s, %s", ft, s); @@ -2891,7 +2893,7 @@ static const char *BC1NEZC(uint64 instruction) 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(copy(ft_value)); + const char *ft = FPR(copy_ui(ft_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BC1NEZC %s, %s", ft, s); @@ -2915,7 +2917,7 @@ static const char *BC2EQZC(uint64 instruction) uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *ct = CPR(copy(ct_value)); + const char *ct = CPR(copy_ui(ct_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BC2EQZC %s, %s", ct, s); @@ -2939,7 +2941,7 @@ static const char *BC2NEZC(uint64 instruction) uint64 ct_value = extract_ct_25_24_23_22_21(instruction); int64 s_value = extract_s__se14_0_13_to_1_s1(instruction); - const char *ct = CPR(copy(ct_value)); + const char *ct = CPR(copy_ui(ct_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BC2NEZC %s, %s", ct, s); @@ -2990,8 +2992,8 @@ static const char *BEQC_32_(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BEQC %s, %s, %s", rs, rt, s); @@ -3016,8 +3018,8 @@ static const char *BEQIC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BEQIC %s, %s, %s", rt, u, s); @@ -3067,8 +3069,8 @@ static const char *BGEC(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BGEC %s, %s, %s", rs, rt, s); @@ -3093,8 +3095,8 @@ static const char *BGEIC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BGEIC %s, %s, %s", rt, u, s); @@ -3120,8 +3122,8 @@ static const char *BGEIUC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BGEIUC %s, %s, %s", rt, u, s); @@ -3147,8 +3149,8 @@ static const char *BGEUC(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BGEUC %s, %s, %s", rs, rt, s); @@ -3173,8 +3175,8 @@ static const char *BLTC(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BLTC %s, %s, %s", rs, rt, s); @@ -3199,8 +3201,8 @@ static const char *BLTIC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BLTIC %s, %s, %s", rt, u, s); @@ -3226,8 +3228,8 @@ static const char *BLTIUC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BLTIUC %s, %s, %s", rt, u, s); @@ -3253,8 +3255,8 @@ static const char *BLTUC(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BLTUC %s, %s, %s", rs, rt, s); @@ -3305,8 +3307,8 @@ static const char *BNEC_32_(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BNEC %s, %s, %s", rs, rt, s); @@ -3331,8 +3333,8 @@ static const char *BNEIC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 4); const char *ret = img_format("BNEIC %s, %s, %s", rt, u, s); @@ -3402,7 +3404,7 @@ static const char *BREAK_16_(uint64 instruction) { uint64 code_value = extract_code_2_1_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("BREAK %s", code); free((char *)code); @@ -3424,7 +3426,7 @@ static const char *BREAK_32_(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("BREAK %s", code); free((char *)code); @@ -3446,7 +3448,7 @@ static const char *BRSC(uint64 instruction) { uint64 rs_value = extract_rs_20_19_18_17_16(instruction); - const char *rs = GPR(copy(rs_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("BRSC %s", rs); } @@ -3468,9 +3470,9 @@ static const char *CACHE(uint64 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); - const char *op = IMMEDIATE(copy(op_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *op = IMMEDIATE_UI(copy_ui(op_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("CACHE %s, %s(%s)", op, s, rs); free((char *)op); @@ -3495,9 +3497,9 @@ static const char *CACHEE(uint64 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); - const char *op = IMMEDIATE(copy(op_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *op = IMMEDIATE_UI(copy_ui(op_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("CACHEE %s, %s(%s)", op, s, rs); free((char *)op); @@ -3521,8 +3523,8 @@ static const char *CEIL_L_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CEIL.L.D %s, %s", ft, fs); } @@ -3543,8 +3545,8 @@ static const char *CEIL_L_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CEIL.L.S %s, %s", ft, fs); } @@ -3565,8 +3567,8 @@ static const char *CEIL_W_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CEIL.W.D %s, %s", ft, fs); } @@ -3587,8 +3589,8 @@ static const char *CEIL_W_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CEIL.W.S %s, %s", ft, fs); } @@ -3609,8 +3611,8 @@ static const char *CFC1(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("CFC1 %s, %s", rt, cs); } @@ -3631,8 +3633,8 @@ static const char *CFC2(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("CFC2 %s, %s", rt, cs); } @@ -3653,8 +3655,8 @@ static const char *CLASS_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CLASS.D %s, %s", ft, fs); } @@ -3675,8 +3677,8 @@ static const char *CLASS_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CLASS.S %s, %s", ft, fs); } @@ -3697,8 +3699,8 @@ static const char *CLO(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("CLO %s, %s", rt, rs); } @@ -3719,8 +3721,8 @@ static const char *CLZ(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("CLZ %s, %s", rt, rs); } @@ -3742,9 +3744,9 @@ static const char *CMP_AF_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.AF.D %s, %s, %s", fd, fs, ft); } @@ -3766,9 +3768,9 @@ static const char *CMP_AF_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.AF.S %s, %s, %s", fd, fs, ft); } @@ -3790,9 +3792,9 @@ static const char *CMP_EQ_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.EQ.D %s, %s, %s", fd, fs, ft); } @@ -3812,8 +3814,8 @@ static const char *CMP_EQ_PH(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMP.EQ.PH %s, %s", rs, rt); } @@ -3835,9 +3837,9 @@ static const char *CMP_EQ_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.EQ.S %s, %s, %s", fd, fs, ft); } @@ -3859,9 +3861,9 @@ static const char *CMP_LE_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.LE.D %s, %s, %s", fd, fs, ft); } @@ -3881,8 +3883,8 @@ static const char *CMP_LE_PH(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMP.LE.PH %s, %s", rs, rt); } @@ -3904,9 +3906,9 @@ static const char *CMP_LE_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.LE.S %s, %s, %s", fd, fs, ft); } @@ -3928,9 +3930,9 @@ static const char *CMP_LT_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.LT.D %s, %s, %s", fd, fs, ft); } @@ -3950,8 +3952,8 @@ static const char *CMP_LT_PH(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMP.LT.PH %s, %s", rs, rt); } @@ -3973,9 +3975,9 @@ static const char *CMP_LT_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.LT.S %s, %s, %s", fd, fs, ft); } @@ -3997,9 +3999,9 @@ static const char *CMP_NE_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.NE.D %s, %s, %s", fd, fs, ft); } @@ -4021,9 +4023,9 @@ static const char *CMP_NE_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.NE.S %s, %s, %s", fd, fs, ft); } @@ -4045,9 +4047,9 @@ static const char *CMP_OR_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.OR.D %s, %s, %s", fd, fs, ft); } @@ -4069,9 +4071,9 @@ static const char *CMP_OR_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.OR.S %s, %s, %s", fd, fs, ft); } @@ -4093,9 +4095,9 @@ static const char *CMP_SAF_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SAF.D %s, %s, %s", fd, fs, ft); } @@ -4117,9 +4119,9 @@ static const char *CMP_SAF_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SAF.S %s, %s, %s", fd, fs, ft); } @@ -4141,9 +4143,9 @@ static const char *CMP_SEQ_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SEQ.D %s, %s, %s", fd, fs, ft); } @@ -4165,9 +4167,9 @@ static const char *CMP_SEQ_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SEQ.S %s, %s, %s", fd, fs, ft); } @@ -4189,9 +4191,9 @@ static const char *CMP_SLE_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SLE.D %s, %s, %s", fd, fs, ft); } @@ -4213,9 +4215,9 @@ static const char *CMP_SLE_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SLE.S %s, %s, %s", fd, fs, ft); } @@ -4237,9 +4239,9 @@ static const char *CMP_SLT_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SLT.D %s, %s, %s", fd, fs, ft); } @@ -4261,9 +4263,9 @@ static const char *CMP_SLT_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SLT.S %s, %s, %s", fd, fs, ft); } @@ -4285,9 +4287,9 @@ static const char *CMP_SNE_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SNE.D %s, %s, %s", fd, fs, ft); } @@ -4309,9 +4311,9 @@ static const char *CMP_SNE_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SNE.S %s, %s, %s", fd, fs, ft); } @@ -4333,9 +4335,9 @@ static const char *CMP_SOR_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SOR.D %s, %s, %s", fd, fs, ft); } @@ -4357,9 +4359,9 @@ static const char *CMP_SOR_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SOR.S %s, %s, %s", fd, fs, ft); } @@ -4381,9 +4383,9 @@ static const char *CMP_SUEQ_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SUEQ.D %s, %s, %s", fd, fs, ft); } @@ -4405,9 +4407,9 @@ static const char *CMP_SUEQ_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SUEQ.S %s, %s, %s", fd, fs, ft); } @@ -4429,9 +4431,9 @@ static const char *CMP_SULE_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SULE.D %s, %s, %s", fd, fs, ft); } @@ -4453,9 +4455,9 @@ static const char *CMP_SULE_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SULE.S %s, %s, %s", fd, fs, ft); } @@ -4477,9 +4479,9 @@ static const char *CMP_SULT_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SULT.D %s, %s, %s", fd, fs, ft); } @@ -4501,9 +4503,9 @@ static const char *CMP_SULT_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SULT.S %s, %s, %s", fd, fs, ft); } @@ -4525,9 +4527,9 @@ static const char *CMP_SUN_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SUN.D %s, %s, %s", fd, fs, ft); } @@ -4549,9 +4551,9 @@ static const char *CMP_SUNE_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SUNE.D %s, %s, %s", fd, fs, ft); } @@ -4573,9 +4575,9 @@ static const char *CMP_SUNE_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SUNE.S %s, %s, %s", fd, fs, ft); } @@ -4597,9 +4599,9 @@ static const char *CMP_SUN_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.SUN.S %s, %s, %s", fd, fs, ft); } @@ -4621,9 +4623,9 @@ static const char *CMP_UEQ_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.UEQ.D %s, %s, %s", fd, fs, ft); } @@ -4645,9 +4647,9 @@ static const char *CMP_UEQ_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.UEQ.S %s, %s, %s", fd, fs, ft); } @@ -4669,9 +4671,9 @@ static const char *CMP_ULE_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.ULE.D %s, %s, %s", fd, fs, ft); } @@ -4693,9 +4695,9 @@ static const char *CMP_ULE_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.ULE.S %s, %s, %s", fd, fs, ft); } @@ -4717,9 +4719,9 @@ static const char *CMP_ULT_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.ULT.D %s, %s, %s", fd, fs, ft); } @@ -4741,9 +4743,9 @@ static const char *CMP_ULT_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.ULT.S %s, %s, %s", fd, fs, ft); } @@ -4765,9 +4767,9 @@ static const char *CMP_UN_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.UN.D %s, %s, %s", fd, fs, ft); } @@ -4789,9 +4791,9 @@ static const char *CMP_UNE_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.UNE.D %s, %s, %s", fd, fs, ft); } @@ -4813,9 +4815,9 @@ static const char *CMP_UNE_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.UNE.S %s, %s, %s", fd, fs, ft); } @@ -4837,9 +4839,9 @@ static const char *CMP_UN_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("CMP.UN.S %s, %s, %s", fd, fs, ft); } @@ -4862,9 +4864,9 @@ static const char *CMPGDU_EQ_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPGDU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4887,9 +4889,9 @@ static const char *CMPGDU_LE_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPGDU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4912,9 +4914,9 @@ static const char *CMPGDU_LT_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPGDU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -4937,9 +4939,9 @@ static const char *CMPGU_EQ_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPGU.EQ.QB %s, %s, %s", rd, rs, rt); } @@ -4962,9 +4964,9 @@ static const char *CMPGU_LE_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPGU.LE.QB %s, %s, %s", rd, rs, rt); } @@ -4987,9 +4989,9 @@ static const char *CMPGU_LT_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPGU.LT.QB %s, %s, %s", rd, rs, rt); } @@ -5010,8 +5012,8 @@ static const char *CMPU_EQ_QB(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPU.EQ.QB %s, %s", rs, rt); } @@ -5032,8 +5034,8 @@ static const char *CMPU_LE_QB(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPU.LE.QB %s, %s", rs, rt); } @@ -5054,8 +5056,8 @@ static const char *CMPU_LT_QB(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("CMPU.LT.QB %s, %s", rs, rt); } @@ -5075,7 +5077,7 @@ static const char *COP2_1(uint64 instruction) { uint64 cofun_value = extract_cofun_25_24_23(instruction); - const char *cofun = IMMEDIATE(copy(cofun_value)); + const char *cofun = IMMEDIATE_UI(copy_ui(cofun_value)); const char *ret = img_format("COP2_1 %s", cofun); free((char *)cofun); @@ -5098,8 +5100,8 @@ static const char *CTC1(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("CTC1 %s, %s", rt, cs); } @@ -5120,8 +5122,8 @@ static const char *CTC2(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("CTC2 %s, %s", rt, cs); } @@ -5142,8 +5144,8 @@ static const char *CVT_D_L(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.D.L %s, %s", ft, fs); } @@ -5164,8 +5166,8 @@ static const char *CVT_D_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.D.S %s, %s", ft, fs); } @@ -5186,8 +5188,8 @@ static const char *CVT_D_W(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.D.W %s, %s", ft, fs); } @@ -5208,8 +5210,8 @@ static const char *CVT_L_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.L.D %s, %s", ft, fs); } @@ -5230,8 +5232,8 @@ static const char *CVT_L_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.L.S %s, %s", ft, fs); } @@ -5252,8 +5254,8 @@ static const char *CVT_S_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.S.D %s, %s", ft, fs); } @@ -5274,8 +5276,8 @@ static const char *CVT_S_L(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.S.L %s, %s", ft, fs); } @@ -5296,8 +5298,8 @@ static const char *CVT_S_PL(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.S.PL %s, %s", ft, fs); } @@ -5318,8 +5320,8 @@ static const char *CVT_S_PU(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.S.PU %s, %s", ft, fs); } @@ -5340,8 +5342,8 @@ static const char *CVT_S_W(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.S.W %s, %s", ft, fs); } @@ -5362,8 +5364,8 @@ static const char *CVT_W_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.W.D %s, %s", ft, fs); } @@ -5384,8 +5386,8 @@ static const char *CVT_W_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("CVT.W.S %s, %s", ft, fs); } @@ -5406,8 +5408,8 @@ static const char *DADDIU_48_(uint64 instruction) 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(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); const char *ret = img_format("DADDIU %s, %s", rt, s); free((char *)s); @@ -5431,9 +5433,9 @@ static const char *DADDIU_NEG_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(neg_copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(neg_copy(u_value)); const char *ret = img_format("DADDIU %s, %s, %s", rt, rs, u); free((char *)u); @@ -5457,9 +5459,9 @@ static const char *DADDIU_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("DADDIU %s, %s, %s", rt, rs, u); free((char *)u); @@ -5483,9 +5485,9 @@ static const char *DADD(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DADD %s, %s, %s", rd, rs, rt); } @@ -5507,9 +5509,9 @@ static const char *DADDU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DADDU %s, %s, %s", rd, rs, rt); } @@ -5530,8 +5532,8 @@ static const char *DCLO(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("DCLO %s, %s", rt, rs); } @@ -5552,8 +5554,8 @@ static const char *DCLZ(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("DCLZ %s, %s", rt, rs); } @@ -5575,9 +5577,9 @@ static const char *DDIV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DDIV %s, %s, %s", rd, rs, rt); } @@ -5599,9 +5601,9 @@ static const char *DDIVU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DDIVU %s, %s, %s", rd, rs, rt); } @@ -5642,10 +5644,10 @@ static const char *DEXTM(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *lsb = IMMEDIATE(copy(lsb_value)); - const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *lsb = IMMEDIATE_UI(copy_ui(lsb_value)); + const char *msbd = IMMEDIATE_UI(encode_msbd_from_size(msbd_value)); const char *ret = img_format("DEXTM %s, %s, %s, %s", rt, rs, lsb, msbd); free((char *)lsb); @@ -5671,10 +5673,10 @@ static const char *DEXT(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *lsb = IMMEDIATE(copy(lsb_value)); - const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *lsb = IMMEDIATE_UI(copy_ui(lsb_value)); + const char *msbd = IMMEDIATE_UI(encode_msbd_from_size(msbd_value)); const char *ret = img_format("DEXT %s, %s, %s, %s", rt, rs, lsb, msbd); free((char *)lsb); @@ -5700,10 +5702,10 @@ static const char *DEXTU(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *lsb = IMMEDIATE(copy(lsb_value)); - const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *lsb = IMMEDIATE_UI(copy_ui(lsb_value)); + const char *msbd = IMMEDIATE_UI(encode_msbd_from_size(msbd_value)); const char *ret = img_format("DEXTU %s, %s, %s, %s", rt, rs, lsb, msbd); free((char *)lsb); @@ -5729,10 +5731,10 @@ static const char *DINSM(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); - const char *size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *pos = IMMEDIATE_UI(encode_lsb_from_pos_and_size(lsb_value)); + const char *size = IMMEDIATE_UI(encode_lsb_from_pos_and_size(msbd_value)); /* !!!!!!!!!! - no conversion function */ const char *ret = img_format("DINSM %s, %s, %s, %s", rt, rs, pos, size); @@ -5760,10 +5762,10 @@ static const char *DINS(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); - const char *size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *pos = IMMEDIATE_UI(encode_lsb_from_pos_and_size(lsb_value)); + const char *size = IMMEDIATE_UI(encode_lsb_from_pos_and_size(msbd_value)); /* !!!!!!!!!! - no conversion function */ const char *ret = img_format("DINS %s, %s, %s, %s", rt, rs, pos, size); @@ -5791,10 +5793,10 @@ static const char *DINSU(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); - const char *size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *pos = IMMEDIATE_UI(encode_lsb_from_pos_and_size(lsb_value)); + const char *size = IMMEDIATE_UI(encode_lsb_from_pos_and_size(msbd_value)); /* !!!!!!!!!! - no conversion function */ const char *ret = img_format("DINSU %s, %s, %s, %s", rt, rs, pos, size); @@ -5819,7 +5821,7 @@ static const char *DI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DI %s", rt); } @@ -5841,9 +5843,9 @@ static const char *DIV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DIV %s, %s, %s", rd, rs, rt); } @@ -5865,9 +5867,9 @@ static const char *DIV_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("DIV.D %s, %s, %s", fd, fs, ft); } @@ -5889,9 +5891,9 @@ static const char *DIV_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("DIV.S %s, %s, %s", fd, fs, ft); } @@ -5913,9 +5915,9 @@ static const char *DIVU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DIVU %s, %s, %s", rd, rs, rt); } @@ -5938,10 +5940,10 @@ static const char *DLSA(uint64 instruction) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 u2_value = extract_u2_10_9(instruction); - const char *rd = GPR(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); - const char *u2 = IMMEDIATE(copy(u2_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u2 = IMMEDIATE_UI(copy_ui(u2_value)); const char *ret = img_format("DLSA %s, %s, %s, %s", rd, rs, rt, u2); free((char *)u2); @@ -5964,8 +5966,8 @@ static const char *DLUI_48_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("DLUI %s, %s", rt, u); free((char *)u); @@ -5989,9 +5991,9 @@ static const char *DMFC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("DMFC0 %s, %s, %s", rt, c0s, sel); free((char *)sel); @@ -6014,8 +6016,8 @@ static const char *DMFC1(uint64 instruction) 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(copy(rt_value)); - const char *fs = FPR(copy(fs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("DMFC1 %s, %s", rt, fs); } @@ -6036,8 +6038,8 @@ static const char *DMFC2(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("DMFC2 %s, %s", rt, cs); } @@ -6059,9 +6061,9 @@ static const char *DMFGC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("DMFGC0 %s, %s, %s", rt, c0s, sel); free((char *)sel); @@ -6085,9 +6087,9 @@ static const char *DMOD(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DMOD %s, %s, %s", rd, rs, rt); } @@ -6109,9 +6111,9 @@ static const char *DMODU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DMODU %s, %s, %s", rd, rs, rt); } @@ -6133,9 +6135,9 @@ static const char *DMTC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("DMTC0 %s, %s, %s", rt, c0s, sel); free((char *)sel); @@ -6158,8 +6160,8 @@ static const char *DMTC1(uint64 instruction) 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(copy(rt_value)); - const char *fs = FPR(copy(fs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("DMTC1 %s, %s", rt, fs); } @@ -6180,8 +6182,8 @@ static const char *DMTC2(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("DMTC2 %s, %s", rt, cs); } @@ -6203,9 +6205,9 @@ static const char *DMTGC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("DMTGC0 %s, %s, %s", rt, c0s, sel); free((char *)sel); @@ -6227,7 +6229,7 @@ static const char *DMT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DMT %s", rt); } @@ -6249,9 +6251,9 @@ static const char *DMUH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DMUH %s, %s, %s", rd, rs, rt); } @@ -6273,9 +6275,9 @@ static const char *DMUHU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DMUHU %s, %s, %s", rd, rs, rt); } @@ -6297,9 +6299,9 @@ static const char *DMUL(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DMUL %s, %s, %s", rd, rs, rt); } @@ -6321,9 +6323,9 @@ static const char *DMULU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DMULU %s, %s, %s", rd, rs, rt); } @@ -6346,9 +6348,9 @@ static const char *DPA_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6370,9 +6372,9 @@ static const char *DPAQ_SA_L_W(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPAQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6394,9 +6396,9 @@ static const char *DPAQ_S_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6418,9 +6420,9 @@ static const char *DPAQX_SA_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPAQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6442,9 +6444,9 @@ static const char *DPAQX_S_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPAQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6466,9 +6468,9 @@ static const char *DPAU_H_QBL(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPAU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6490,9 +6492,9 @@ static const char *DPAU_H_QBR(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPAU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6514,9 +6516,9 @@ static const char *DPAX_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPAX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6538,9 +6540,9 @@ static const char *DPS_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPS.W.PH %s, %s, %s", ac, rs, rt); } @@ -6562,9 +6564,9 @@ static const char *DPSQ_SA_L_W(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPSQ_SA.L.W %s, %s, %s", ac, rs, rt); } @@ -6586,9 +6588,9 @@ static const char *DPSQ_S_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPSQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6610,9 +6612,9 @@ static const char *DPSQX_SA_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPSQX_SA.W.PH %s, %s, %s", ac, rs, rt); } @@ -6634,9 +6636,9 @@ static const char *DPSQX_S_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPSQX_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -6658,9 +6660,9 @@ static const char *DPSU_H_QBL(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPSU.H.QBL %s, %s, %s", ac, rs, rt); } @@ -6682,9 +6684,9 @@ static const char *DPSU_H_QBR(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPSU.H.QBR %s, %s, %s", ac, rs, rt); } @@ -6706,9 +6708,9 @@ static const char *DPSX_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DPSX.W.PH %s, %s, %s", ac, rs, rt); } @@ -6730,9 +6732,9 @@ static const char *DROTR(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("DROTR %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -6756,9 +6758,9 @@ static const char *DROTR32(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("DROTR32 %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -6782,9 +6784,9 @@ static const char *DROTRV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DROTRV %s, %s, %s", rd, rs, rt); } @@ -6807,10 +6809,10 @@ static const char *DROTX(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); - const char *shiftx = IMMEDIATE(copy(shiftx_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); + const char *shiftx = IMMEDIATE_UI(copy_ui(shiftx_value)); const char *ret = img_format("DROTX %s, %s, %s, %s", rt, rs, shift, shiftx); free((char *)shift); @@ -6835,9 +6837,9 @@ static const char *DSLL(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("DSLL %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -6861,9 +6863,9 @@ static const char *DSLL32(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("DSLL32 %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -6887,9 +6889,9 @@ static const char *DSLLV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DSLLV %s, %s, %s", rd, rs, rt); } @@ -6911,9 +6913,9 @@ static const char *DSRA(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("DSRA %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -6937,9 +6939,9 @@ static const char *DSRA32(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("DSRA32 %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -6963,9 +6965,9 @@ static const char *DSRAV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DSRAV %s, %s, %s", rd, rs, rt); } @@ -6987,9 +6989,9 @@ static const char *DSRL(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("DSRL %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -7013,9 +7015,9 @@ static const char *DSRL32(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("DSRL32 %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -7039,9 +7041,9 @@ static const char *DSRLV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DSRLV %s, %s, %s", rd, rs, rt); } @@ -7063,9 +7065,9 @@ static const char *DSUB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DSUB %s, %s, %s", rd, rs, rt); } @@ -7087,9 +7089,9 @@ static const char *DSUBU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DSUBU %s, %s, %s", rd, rs, rt); } @@ -7109,7 +7111,7 @@ static const char *DVPE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DVPE %s", rt); } @@ -7129,7 +7131,7 @@ static const char *DVP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("DVP %s", rt); } @@ -7167,7 +7169,7 @@ static const char *EI(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("EI %s", rt); } @@ -7187,7 +7189,7 @@ static const char *EMT(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("EMT %s", rt); } @@ -7243,7 +7245,7 @@ static const char *EVP(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("EVP %s", rt); } @@ -7263,7 +7265,7 @@ static const char *EVPE(uint64 instruction) { uint64 rt_value = extract_rt_25_24_23_22_21(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("EVPE %s", rt); } @@ -7286,10 +7288,10 @@ static const char *EXT(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *lsb = IMMEDIATE(copy(lsb_value)); - const char *msbd = IMMEDIATE(encode_msbd_from_size(msbd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *lsb = IMMEDIATE_UI(copy_ui(lsb_value)); + const char *msbd = IMMEDIATE_UI(encode_msbd_from_size(msbd_value)); const char *ret = img_format("EXT %s, %s, %s, %s", rt, rs, lsb, msbd); free((char *)lsb); @@ -7315,10 +7317,10 @@ static const char *EXTD(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("EXTD %s, %s, %s, %s", rd, rs, rt, shift); free((char *)shift); @@ -7343,10 +7345,10 @@ static const char *EXTD32(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("EXTD32 %s, %s, %s, %s", rd, rs, rt, shift); free((char *)shift); @@ -7370,9 +7372,9 @@ static const char *EXTPDP(uint64 instruction) uint64 size_value = extract_size_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *size = IMMEDIATE(copy(size_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *size = IMMEDIATE_UI(copy_ui(size_value)); const char *ret = img_format("EXTPDP %s, %s, %s", rt, ac, size); free((char *)size); @@ -7396,9 +7398,9 @@ static const char *EXTPDPV(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("EXTPDPV %s, %s, %s", rt, ac, rs); } @@ -7420,9 +7422,9 @@ static const char *EXTP(uint64 instruction) uint64 size_value = extract_size_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *size = IMMEDIATE(copy(size_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *size = IMMEDIATE_UI(copy_ui(size_value)); const char *ret = img_format("EXTP %s, %s, %s", rt, ac, size); free((char *)size); @@ -7446,9 +7448,9 @@ static const char *EXTPV(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("EXTPV %s, %s, %s", rt, ac, rs); } @@ -7471,9 +7473,9 @@ static const char *EXTR_RS_W(uint64 instruction) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("EXTR_RS.W %s, %s, %s", rt, ac, shift); free((char *)shift); @@ -7498,9 +7500,9 @@ static const char *EXTR_R_W(uint64 instruction) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("EXTR_R.W %s, %s, %s", rt, ac, shift); free((char *)shift); @@ -7525,9 +7527,9 @@ static const char *EXTR_S_H(uint64 instruction) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("EXTR_S.H %s, %s, %s", rt, ac, shift); free((char *)shift); @@ -7552,9 +7554,9 @@ static const char *EXTR_W(uint64 instruction) uint64 shift_value = extract_shift_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("EXTR.W %s, %s, %s", rt, ac, shift); free((char *)shift); @@ -7579,9 +7581,9 @@ static const char *EXTRV_RS_W(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("EXTRV_RS.W %s, %s, %s", rt, ac, rs); } @@ -7604,9 +7606,9 @@ static const char *EXTRV_R_W(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("EXTRV_R.W %s, %s, %s", rt, ac, rs); } @@ -7629,9 +7631,9 @@ static const char *EXTRV_S_H(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("EXTRV_S.H %s, %s, %s", rt, ac, rs); } @@ -7654,9 +7656,9 @@ static const char *EXTRV_W(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("EXTRV.W %s, %s, %s", rt, ac, rs); } @@ -7680,10 +7682,10 @@ static const char *EXTW(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("EXTW %s, %s, %s, %s", rd, rs, rt, shift); free((char *)shift); @@ -7706,8 +7708,8 @@ static const char *FLOOR_L_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("FLOOR.L.D %s, %s", ft, fs); } @@ -7728,8 +7730,8 @@ static const char *FLOOR_L_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("FLOOR.L.S %s, %s", ft, fs); } @@ -7750,8 +7752,8 @@ static const char *FLOOR_W_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("FLOOR.W.D %s, %s", ft, fs); } @@ -7772,8 +7774,8 @@ static const char *FLOOR_W_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("FLOOR.W.S %s, %s", ft, fs); } @@ -7795,9 +7797,9 @@ static const char *FORK(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("FORK %s, %s, %s", rd, rs, rt); } @@ -7817,7 +7819,7 @@ static const char *HYPCALL(uint64 instruction) { uint64 code_value = extract_code_17_to_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("HYPCALL %s", code); free((char *)code); @@ -7839,7 +7841,7 @@ static const char *HYPCALL_16_(uint64 instruction) { uint64 code_value = extract_code_1_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("HYPCALL %s", code); free((char *)code); @@ -7864,10 +7866,10 @@ static const char *INS(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *pos = IMMEDIATE(encode_lsb_from_pos_and_size(lsb_value)); - const char *size = IMMEDIATE(encode_lsb_from_pos_and_size(msbd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *pos = IMMEDIATE_UI(encode_lsb_from_pos_and_size(lsb_value)); + const char *size = IMMEDIATE_UI(encode_lsb_from_pos_and_size(msbd_value)); /* !!!!!!!!!! - no conversion function */ const char *ret = img_format("INS %s, %s, %s, %s", rt, rs, pos, size); @@ -7892,8 +7894,8 @@ static const char *INSV(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("INSV %s, %s", rt, rs); } @@ -7931,7 +7933,7 @@ static const char *JALRC_16_(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("JALRC $%d, %s", 31, rt); } @@ -7952,8 +7954,8 @@ static const char *JALRC_32_(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("JALRC %s, %s", rt, rs); } @@ -7974,8 +7976,8 @@ static const char *JALRC_HB(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("JALRC.HB %s, %s", rt, rs); } @@ -7995,7 +7997,7 @@ static const char *JRC(uint64 instruction) { uint64 rt_value = extract_rt_9_8_7_6_5(instruction); - const char *rt = GPR(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("JRC %s", rt); } @@ -8018,7 +8020,7 @@ static const char *LB_16_(uint64 instruction) uint64 u_value = extract_u_1_0(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *ret = img_format("LB %s, %s(%s)", rt3, u, rs3); @@ -8042,8 +8044,8 @@ static const char *LB_GP_(uint64 instruction) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LB %s, %s($%d)", rt, u, 28); free((char *)u); @@ -8067,9 +8069,9 @@ static const char *LB_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LB %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8093,9 +8095,9 @@ static const char *LB_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LB %s, %s(%s)", rt, u, rs); free((char *)u); @@ -8119,9 +8121,9 @@ static const char *LBE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LBE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8146,7 +8148,7 @@ static const char *LBU_16_(uint64 instruction) uint64 u_value = extract_u_1_0(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *ret = img_format("LBU %s, %s(%s)", rt3, u, rs3); @@ -8170,8 +8172,8 @@ static const char *LBU_GP_(uint64 instruction) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LBU %s, %s($%d)", rt, u, 28); free((char *)u); @@ -8195,9 +8197,9 @@ static const char *LBU_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LBU %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8221,9 +8223,9 @@ static const char *LBU_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LBU %s, %s(%s)", rt, u, rs); free((char *)u); @@ -8247,9 +8249,9 @@ static const char *LBUE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LBUE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8273,9 +8275,9 @@ static const char *LBUX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LBUX %s, %s(%s)", rd, rs, rt); } @@ -8297,9 +8299,9 @@ static const char *LBX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LBX %s, %s(%s)", rd, rs, rt); } @@ -8320,8 +8322,8 @@ static const char *LD_GP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LD %s, %s($%d)", rt, u, 28); free((char *)u); @@ -8345,9 +8347,9 @@ static const char *LD_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LD %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8371,9 +8373,9 @@ static const char *LD_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LD %s, %s(%s)", rt, u, rs); free((char *)u); @@ -8396,8 +8398,8 @@ static const char *LDC1_GP_(uint64 instruction) 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(copy(ft_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LDC1 %s, %s($%d)", ft, u, 28); free((char *)u); @@ -8421,9 +8423,9 @@ static const char *LDC1_S9_(uint64 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); - const char *ft = FPR(copy(ft_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LDC1 %s, %s(%s)", ft, s, rs); free((char *)s); @@ -8447,9 +8449,9 @@ static const char *LDC1_U12_(uint64 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); - const char *ft = FPR(copy(ft_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LDC1 %s, %s(%s)", ft, u, rs); free((char *)u); @@ -8473,9 +8475,9 @@ static const char *LDC1XS(uint64 instruction) 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(copy(ft_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LDC1XS %s, %s(%s)", ft, rs, rt); } @@ -8497,9 +8499,9 @@ static const char *LDC1X(uint64 instruction) 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(copy(ft_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LDC1X %s, %s(%s)", ft, rs, rt); } @@ -8521,9 +8523,9 @@ static const char *LDC2(uint64 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); - const char *ct = CPR(copy(ct_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *ct = CPR(copy_ui(ct_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LDC2 %s, %s(%s)", ct, s, rs); free((char *)s); @@ -8548,10 +8550,10 @@ static const char *LDM(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); - const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *count3 = IMMEDIATE_UI(encode_count3_from_count(count3_value)); const char *ret = img_format("LDM %s, %s(%s), %s", rt, s, rs, count3); free((char *)s); @@ -8575,7 +8577,7 @@ static const char *LDPC_48_(uint64 instruction) 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(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); const char *ret = img_format("LDPC %s, %s", rt, s); @@ -8600,9 +8602,9 @@ static const char *LDX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LDX %s, %s(%s)", rd, rs, rt); } @@ -8624,9 +8626,9 @@ static const char *LDXS(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LDXS %s, %s(%s)", rd, rs, rt); } @@ -8649,7 +8651,7 @@ static const char *LH_16_(uint64 instruction) uint64 u_value = extract_u_2_1__s1(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *ret = img_format("LH %s, %s(%s)", rt3, u, rs3); @@ -8673,8 +8675,8 @@ static const char *LH_GP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LH %s, %s($%d)", rt, u, 28); free((char *)u); @@ -8698,9 +8700,9 @@ static const char *LH_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LH %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8724,9 +8726,9 @@ static const char *LH_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LH %s, %s(%s)", rt, u, rs); free((char *)u); @@ -8750,9 +8752,9 @@ static const char *LHE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LHE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8777,7 +8779,7 @@ static const char *LHU_16_(uint64 instruction) uint64 u_value = extract_u_2_1__s1(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *ret = img_format("LHU %s, %s(%s)", rt3, u, rs3); @@ -8801,8 +8803,8 @@ static const char *LHU_GP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LHU %s, %s($%d)", rt, u, 28); free((char *)u); @@ -8826,9 +8828,9 @@ static const char *LHU_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LHU %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8852,9 +8854,9 @@ static const char *LHU_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LHU %s, %s(%s)", rt, u, rs); free((char *)u); @@ -8878,9 +8880,9 @@ static const char *LHUE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LHUE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -8904,9 +8906,9 @@ static const char *LHUX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LHUX %s, %s(%s)", rd, rs, rt); } @@ -8928,9 +8930,9 @@ static const char *LHUXS(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LHUXS %s, %s(%s)", rd, rs, rt); } @@ -8952,9 +8954,9 @@ static const char *LHXS(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LHXS %s, %s(%s)", rd, rs, rt); } @@ -8976,9 +8978,9 @@ static const char *LHX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LHX %s, %s(%s)", rd, rs, rt); } @@ -9000,7 +9002,7 @@ static const char *LI_16_(uint64 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 *eu = IMMEDIATE(encode_eu_from_s_li16(eu_value)); + const char *eu = IMMEDIATE_I(encode_eu_from_s_li16(eu_value)); const char *ret = img_format("LI %s, %s", rt3, eu); free((char *)eu); @@ -9023,8 +9025,8 @@ static const char *LI_48_(uint64 instruction) 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(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); const char *ret = img_format("LI %s, %s", rt, s); free((char *)s); @@ -9048,9 +9050,9 @@ static const char *LL(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LL %s, %s(%s)", rt, s, rs); free((char *)s); @@ -9074,9 +9076,9 @@ static const char *LLD(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LLD %s, %s(%s)", rt, s, rs); free((char *)s); @@ -9100,9 +9102,9 @@ static const char *LLDP(uint64 instruction) 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(copy(rt_value)); - const char *ru = GPR(copy(ru_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ru = GPR(copy_ui(ru_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("LLDP %s, %s, (%s)", rt, ru, rs); } @@ -9124,9 +9126,9 @@ static const char *LLE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LLE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -9150,9 +9152,9 @@ static const char *LLWP(uint64 instruction) 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(copy(rt_value)); - const char *ru = GPR(copy(ru_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ru = GPR(copy_ui(ru_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("LLWP %s, %s, (%s)", rt, ru, rs); } @@ -9174,9 +9176,9 @@ static const char *LLWPE(uint64 instruction) 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(copy(rt_value)); - const char *ru = GPR(copy(ru_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ru = GPR(copy_ui(ru_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("LLWPE %s, %s, (%s)", rt, ru, rs); } @@ -9199,10 +9201,10 @@ static const char *LSA(uint64 instruction) uint64 rd_value = extract_rd_15_14_13_12_11(instruction); uint64 u2_value = extract_u2_10_9(instruction); - const char *rd = GPR(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); - const char *u2 = IMMEDIATE(copy(u2_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u2 = IMMEDIATE_UI(copy_ui(u2_value)); const char *ret = img_format("LSA %s, %s, %s, %s", rd, rs, rt, u2); free((char *)u2); @@ -9225,8 +9227,8 @@ static const char *LUI(uint64 instruction) 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(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); const char *ret = img_format("LUI %s, %%hi(%s)", rt, s); free((char *)s); @@ -9251,7 +9253,7 @@ static const char *LW_16_(uint64 instruction) uint64 u_value = extract_u_3_2_1_0__s2(instruction); const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *ret = img_format("LW %s, %s(%s)", rt3, u, rs3); @@ -9277,7 +9279,7 @@ static const char *LW_4X4_(uint64 instruction) uint64 u_value = extract_u_3_8__s2(instruction); const char *rt4 = GPR(decode_gpr_gpr4(rt4_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); const char *ret = img_format("LW %s, %s(%s)", rt4, u, rs4); @@ -9301,8 +9303,8 @@ static const char *LW_GP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LW %s, %s($%d)", rt, u, 28); free((char *)u); @@ -9326,7 +9328,7 @@ static const char *LW_GP16_(uint64 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 *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LW %s, %s($%d)", rt3, u, 28); free((char *)u); @@ -9350,9 +9352,9 @@ static const char *LW_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LW %s, %s(%s)", rt, s, rs); free((char *)s); @@ -9375,8 +9377,8 @@ static const char *LW_SP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LW %s, %s($%d)", rt, u, 29); free((char *)u); @@ -9400,9 +9402,9 @@ static const char *LW_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LW %s, %s(%s)", rt, u, rs); free((char *)u); @@ -9425,8 +9427,8 @@ static const char *LWC1_GP_(uint64 instruction) 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(copy(ft_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LWC1 %s, %s($%d)", ft, u, 28); free((char *)u); @@ -9450,9 +9452,9 @@ static const char *LWC1_S9_(uint64 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); - const char *ft = FPR(copy(ft_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LWC1 %s, %s(%s)", ft, s, rs); free((char *)s); @@ -9476,9 +9478,9 @@ static const char *LWC1_U12_(uint64 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); - const char *ft = FPR(copy(ft_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LWC1 %s, %s(%s)", ft, u, rs); free((char *)u); @@ -9502,9 +9504,9 @@ static const char *LWC1X(uint64 instruction) 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(copy(ft_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LWC1X %s, %s(%s)", ft, rs, rt); } @@ -9526,9 +9528,9 @@ static const char *LWC1XS(uint64 instruction) 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(copy(ft_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LWC1XS %s, %s(%s)", ft, rs, rt); } @@ -9550,9 +9552,9 @@ static const char *LWC2(uint64 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); - const char *ct = CPR(copy(ct_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *ct = CPR(copy_ui(ct_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LWC2 %s, %s(%s)", ct, s, rs); free((char *)s); @@ -9576,9 +9578,9 @@ static const char *LWE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LWE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -9603,10 +9605,10 @@ static const char *LWM(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); - const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *count3 = IMMEDIATE_UI(encode_count3_from_count(count3_value)); const char *ret = img_format("LWM %s, %s(%s), %s", rt, s, rs, count3); free((char *)s); @@ -9630,7 +9632,7 @@ static const char *LWPC_48_(uint64 instruction) 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(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); const char *ret = img_format("LWPC %s, %s", rt, s); @@ -9654,8 +9656,8 @@ static const char *LWU_GP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("LWU %s, %s($%d)", rt, u, 28); free((char *)u); @@ -9679,9 +9681,9 @@ static const char *LWU_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LWU %s, %s(%s)", rt, s, rs); free((char *)s); @@ -9705,9 +9707,9 @@ static const char *LWU_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("LWU %s, %s(%s)", rt, u, rs); free((char *)u); @@ -9731,9 +9733,9 @@ static const char *LWUX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LWUX %s, %s(%s)", rd, rs, rt); } @@ -9755,9 +9757,9 @@ static const char *LWUXS(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LWUXS %s, %s(%s)", rd, rs, rt); } @@ -9779,9 +9781,9 @@ static const char *LWX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LWX %s, %s(%s)", rd, rs, rt); } @@ -9805,7 +9807,7 @@ static const char *LWXS_16_(uint64 instruction) const char *rd3 = GPR(decode_gpr_gpr3(rd3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *rt3 = IMMEDIATE(decode_gpr_gpr3(rt3_value)); + const char *rt3 = IMMEDIATE_UI(decode_gpr_gpr3(rt3_value)); const char *ret = img_format("LWXS %s, %s(%s)", rd3, rs3, rt3); free((char *)rt3); @@ -9829,9 +9831,9 @@ static const char *LWXS_32_(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("LWXS %s, %s(%s)", rd, rs, rt); } @@ -9854,9 +9856,9 @@ static const char *MADD_DSP_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MADD %s, %s, %s", ac, rs, rt); } @@ -9878,9 +9880,9 @@ static const char *MADDF_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MADDF.D %s, %s, %s", fd, fs, ft); } @@ -9902,9 +9904,9 @@ static const char *MADDF_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MADDF.S %s, %s, %s", fd, fs, ft); } @@ -9927,9 +9929,9 @@ static const char *MADDU_DSP_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MADDU %s, %s, %s", ac, rs, rt); } @@ -9952,9 +9954,9 @@ static const char *MAQ_S_W_PHL(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MAQ_S.W.PHL %s, %s, %s", ac, rs, rt); } @@ -9977,9 +9979,9 @@ static const char *MAQ_S_W_PHR(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MAQ_S.W.PHR %s, %s, %s", ac, rs, rt); } @@ -10002,9 +10004,9 @@ static const char *MAQ_SA_W_PHL(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MAQ_SA.W.PHL %s, %s, %s", ac, rs, rt); } @@ -10027,9 +10029,9 @@ static const char *MAQ_SA_W_PHR(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MAQ_SA.W.PHR %s, %s, %s", ac, rs, rt); } @@ -10051,9 +10053,9 @@ static const char *MAX_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MAX.D %s, %s, %s", fd, fs, ft); } @@ -10075,9 +10077,9 @@ static const char *MAX_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MAX.S %s, %s, %s", fd, fs, ft); } @@ -10099,9 +10101,9 @@ static const char *MAXA_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MAXA.D %s, %s, %s", fd, fs, ft); } @@ -10123,9 +10125,9 @@ static const char *MAXA_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MAXA.S %s, %s, %s", fd, fs, ft); } @@ -10147,9 +10149,9 @@ static const char *MFC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MFC0 %s, %s, %s", rt, c0s, sel); free((char *)c0s); @@ -10173,8 +10175,8 @@ static const char *MFC1(uint64 instruction) 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(copy(rt_value)); - const char *fs = FPR(copy(fs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("MFC1 %s, %s", rt, fs); } @@ -10195,8 +10197,8 @@ static const char *MFC2(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("MFC2 %s, %s", rt, cs); } @@ -10218,9 +10220,9 @@ static const char *MFGC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MFGC0 %s, %s, %s", rt, c0s, sel); free((char *)c0s); @@ -10245,9 +10247,9 @@ static const char *MFHC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MFHC0 %s, %s, %s", rt, c0s, sel); free((char *)c0s); @@ -10271,8 +10273,8 @@ static const char *MFHC1(uint64 instruction) 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(copy(rt_value)); - const char *fs = FPR(copy(fs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("MFHC1 %s, %s", rt, fs); } @@ -10293,8 +10295,8 @@ static const char *MFHC2(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("MFHC2 %s, %s", rt, cs); } @@ -10316,9 +10318,9 @@ static const char *MFHGC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MFHGC0 %s, %s, %s", rt, c0s, sel); free((char *)c0s); @@ -10341,8 +10343,8 @@ static const char *MFHI_DSP_(uint64 instruction) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); return img_format("MFHI %s, %s", rt, ac); } @@ -10365,10 +10367,10 @@ static const char *MFHTR(uint64 instruction) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - const char *rt = GPR(copy(rt_value)); - const char *c0s = IMMEDIATE(copy(c0s_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = IMMEDIATE_UI(copy_ui(c0s_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MFHTR %s, %s, %s, %s", rt, c0s, u, sel); free((char *)c0s); @@ -10392,8 +10394,8 @@ static const char *MFLO_DSP_(uint64 instruction) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rt = GPR(copy(rt_value)); - const char *ac = AC(copy(ac_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ac = AC(copy_ui(ac_value)); return img_format("MFLO %s, %s", rt, ac); } @@ -10416,10 +10418,10 @@ static const char *MFTR(uint64 instruction) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - const char *rt = GPR(copy(rt_value)); - const char *c0s = IMMEDIATE(copy(c0s_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = IMMEDIATE_UI(copy_ui(c0s_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MFTR %s, %s, %s, %s", rt, c0s, u, sel); free((char *)c0s); @@ -10445,9 +10447,9 @@ static const char *MIN_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MIN.D %s, %s, %s", fd, fs, ft); } @@ -10469,9 +10471,9 @@ static const char *MIN_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MIN.S %s, %s, %s", fd, fs, ft); } @@ -10493,9 +10495,9 @@ static const char *MINA_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MINA.D %s, %s, %s", fd, fs, ft); } @@ -10517,9 +10519,9 @@ static const char *MINA_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MINA.S %s, %s, %s", fd, fs, ft); } @@ -10541,9 +10543,9 @@ static const char *MOD(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MOD %s, %s, %s", rd, rs, rt); } @@ -10565,9 +10567,9 @@ static const char *MODSUB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MODSUB %s, %s, %s", rd, rs, rt); } @@ -10589,9 +10591,9 @@ static const char *MODU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MODU %s, %s, %s", rd, rs, rt); } @@ -10612,8 +10614,8 @@ static const char *MOV_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("MOV.D %s, %s", ft, fs); } @@ -10634,8 +10636,8 @@ static const char *MOV_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("MOV.S %s, %s", ft, fs); } @@ -10736,8 +10738,8 @@ static const char *MOVE(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("MOVE %s, %s", rt, rs); } @@ -10759,9 +10761,9 @@ static const char *MOVN(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MOVN %s, %s, %s", rd, rs, rt); } @@ -10783,9 +10785,9 @@ static const char *MOVZ(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MOVZ %s, %s, %s", rd, rs, rt); } @@ -10807,9 +10809,9 @@ static const char *MSUB_DSP_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MSUB %s, %s, %s", ac, rs, rt); } @@ -10831,9 +10833,9 @@ static const char *MSUBF_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MSUBF.D %s, %s, %s", fd, fs, ft); } @@ -10855,9 +10857,9 @@ static const char *MSUBF_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MSUBF.S %s, %s, %s", fd, fs, ft); } @@ -10879,9 +10881,9 @@ static const char *MSUBU_DSP_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MSUBU %s, %s, %s", ac, rs, rt); } @@ -10903,9 +10905,9 @@ static const char *MTC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MTC0 %s, %s, %s", rt, c0s, sel); free((char *)c0s); @@ -10929,8 +10931,8 @@ static const char *MTC1(uint64 instruction) 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(copy(rt_value)); - const char *fs = FPR(copy(fs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("MTC1 %s, %s", rt, fs); } @@ -10951,8 +10953,8 @@ static const char *MTC2(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("MTC2 %s, %s", rt, cs); } @@ -10974,9 +10976,9 @@ static const char *MTGC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MTGC0 %s, %s, %s", rt, c0s, sel); free((char *)c0s); @@ -11001,9 +11003,9 @@ static const char *MTHC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MTHC0 %s, %s, %s", rt, c0s, sel); free((char *)c0s); @@ -11027,8 +11029,8 @@ static const char *MTHC1(uint64 instruction) 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(copy(rt_value)); - const char *fs = FPR(copy(fs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("MTHC1 %s, %s", rt, fs); } @@ -11049,8 +11051,8 @@ static const char *MTHC2(uint64 instruction) 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(copy(rt_value)); - const char *cs = CPR(copy(cs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *cs = CPR(copy_ui(cs_value)); return img_format("MTHC2 %s, %s", rt, cs); } @@ -11072,9 +11074,9 @@ static const char *MTHGC0(uint64 instruction) 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(copy(rt_value)); - const char *c0s = CPR(copy(c0s_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = CPR(copy_ui(c0s_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MTHGC0 %s, %s, %s", rt, c0s, sel); free((char *)c0s); @@ -11097,8 +11099,8 @@ static const char *MTHI_DSP_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rs = GPR(copy(rs_value)); - const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *ac = AC(copy_ui(ac_value)); return img_format("MTHI %s, %s", rs, ac); } @@ -11118,8 +11120,8 @@ static const char *MTHLIP(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rs = GPR(copy(rs_value)); - const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *ac = AC(copy_ui(ac_value)); return img_format("MTHLIP %s, %s", rs, ac); } @@ -11142,10 +11144,10 @@ static const char *MTHTR(uint64 instruction) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - const char *rt = GPR(copy(rt_value)); - const char *c0s = IMMEDIATE(copy(c0s_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = IMMEDIATE_UI(copy_ui(c0s_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MTHTR %s, %s, %s, %s", rt, c0s, u, sel); free((char *)c0s); @@ -11169,8 +11171,8 @@ static const char *MTLO_DSP_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rs = GPR(copy(rs_value)); - const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *ac = AC(copy_ui(ac_value)); return img_format("MTLO %s, %s", rs, ac); } @@ -11193,10 +11195,10 @@ static const char *MTTR(uint64 instruction) uint64 sel_value = extract_sel_15_14_13_12_11(instruction); uint64 u_value = extract_u_10(instruction); - const char *rt = GPR(copy(rt_value)); - const char *c0s = IMMEDIATE(copy(c0s_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *c0s = IMMEDIATE_UI(copy_ui(c0s_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("MTTR %s, %s, %s, %s", rt, c0s, u, sel); free((char *)c0s); @@ -11222,9 +11224,9 @@ static const char *MUH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MUH %s, %s, %s", rd, rs, rt); } @@ -11246,9 +11248,9 @@ static const char *MUHU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MUHU %s, %s, %s", rd, rs, rt); } @@ -11270,9 +11272,9 @@ static const char *MUL_32_(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MUL %s, %s, %s", rd, rs, rt); } @@ -11316,9 +11318,9 @@ static const char *MUL_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MUL.D %s, %s, %s", fd, fs, ft); } @@ -11341,9 +11343,9 @@ static const char *MUL_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MUL.PH %s, %s, %s", rd, rs, rt); } @@ -11366,9 +11368,9 @@ static const char *MUL_S_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MUL_S.PH %s, %s, %s", rd, rs, rt); } @@ -11390,9 +11392,9 @@ static const char *MUL_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("MUL.S %s, %s, %s", fd, fs, ft); } @@ -11415,9 +11417,9 @@ static const char *MULEQ_S_W_PHL(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULEQ_S.W.PHL %s, %s, %s", rd, rs, rt); } @@ -11440,9 +11442,9 @@ static const char *MULEQ_S_W_PHR(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULEQ_S.W.PHR %s, %s, %s", rd, rs, rt); } @@ -11465,9 +11467,9 @@ static const char *MULEU_S_PH_QBL(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULEU_S.PH.QBL %s, %s, %s", rd, rs, rt); } @@ -11490,9 +11492,9 @@ static const char *MULEU_S_PH_QBR(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULEU_S.PH.QBR %s, %s, %s", rd, rs, rt); } @@ -11515,9 +11517,9 @@ static const char *MULQ_RS_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULQ_RS.PH %s, %s, %s", rd, rs, rt); } @@ -11540,9 +11542,9 @@ static const char *MULQ_RS_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULQ_RS.W %s, %s, %s", rd, rs, rt); } @@ -11565,9 +11567,9 @@ static const char *MULQ_S_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -11590,9 +11592,9 @@ static const char *MULQ_S_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULQ_S.W %s, %s, %s", rd, rs, rt); } @@ -11615,9 +11617,9 @@ static const char *MULSA_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULSA.W.PH %s, %s, %s", ac, rs, rt); } @@ -11640,9 +11642,9 @@ static const char *MULSAQ_S_W_PH(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULSAQ_S.W.PH %s, %s, %s", ac, rs, rt); } @@ -11664,9 +11666,9 @@ static const char *MULT_DSP_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULT %s, %s, %s", ac, rs, rt); } @@ -11688,9 +11690,9 @@ static const char *MULTU_DSP_(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *ac = AC(copy(ac_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ac = AC(copy_ui(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULTU %s, %s, %s", ac, rs, rt); } @@ -11712,9 +11714,9 @@ static const char *MULU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("MULU %s, %s, %s", rd, rs, rt); } @@ -11735,8 +11737,8 @@ static const char *NEG_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("NEG.D %s, %s", ft, fs); } @@ -11757,8 +11759,8 @@ static const char *NEG_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("NEG.S %s, %s", ft, fs); } @@ -11816,9 +11818,9 @@ static const char *NOR(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("NOR %s, %s, %s", rd, rs, rt); } @@ -11884,9 +11886,9 @@ static const char *OR_32_(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("OR %s, %s, %s", rd, rs, rt); } @@ -11908,9 +11910,9 @@ static const char *ORI(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("ORI %s, %s, %s", rt, rs, u); free((char *)u); @@ -11935,9 +11937,9 @@ static const char *PACKRL_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("PACKRL.PH %s, %s, %s", rd, rs, rt); } @@ -11978,9 +11980,9 @@ static const char *PICK_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("PICK.PH %s, %s, %s", rd, rs, rt); } @@ -12003,9 +12005,9 @@ static const char *PICK_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("PICK.QB %s, %s, %s", rd, rs, rt); } @@ -12027,8 +12029,8 @@ static const char *PRECEQ_W_PHL(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEQ.W.PHL %s, %s", rt, rs); } @@ -12050,8 +12052,8 @@ static const char *PRECEQ_W_PHR(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEQ.W.PHR %s, %s", rt, rs); } @@ -12073,8 +12075,8 @@ static const char *PRECEQU_PH_QBLA(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEQU.PH.QBLA %s, %s", rt, rs); } @@ -12096,8 +12098,8 @@ static const char *PRECEQU_PH_QBL(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEQU.PH.QBL %s, %s", rt, rs); } @@ -12119,8 +12121,8 @@ static const char *PRECEQU_PH_QBRA(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEQU.PH.QBRA %s, %s", rt, rs); } @@ -12142,8 +12144,8 @@ static const char *PRECEQU_PH_QBR(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEQU.PH.QBR %s, %s", rt, rs); } @@ -12166,8 +12168,8 @@ static const char *PRECEU_PH_QBLA(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEU.PH.QBLA %s, %s", rt, rs); } @@ -12189,8 +12191,8 @@ static const char *PRECEU_PH_QBL(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEU.PH.QBL %s, %s", rt, rs); } @@ -12213,8 +12215,8 @@ static const char *PRECEU_PH_QBRA(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEU.PH.QBRA %s, %s", rt, rs); } @@ -12236,8 +12238,8 @@ static const char *PRECEU_PH_QBR(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("PRECEU.PH.QBR %s, %s", rt, rs); } @@ -12260,9 +12262,9 @@ static const char *PRECR_QB_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("PRECR.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12285,9 +12287,9 @@ static const char *PRECR_SRA_PH_W(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("PRECR_SRA.PH.W %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -12312,9 +12314,9 @@ static const char *PRECR_SRA_R_PH_W(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("PRECR_SRA_R.PH.W %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -12339,9 +12341,9 @@ static const char *PRECRQ_PH_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("PRECRQ.PH.W %s, %s, %s", rd, rs, rt); } @@ -12364,9 +12366,9 @@ static const char *PRECRQ_QB_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("PRECRQ.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12389,9 +12391,9 @@ static const char *PRECRQ_RS_PH_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("PRECRQ_RS.PH.W %s, %s, %s", rd, rs, rt); } @@ -12414,9 +12416,9 @@ static const char *PRECRQU_S_QB_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("PRECRQU_S.QB.PH %s, %s, %s", rd, rs, rt); } @@ -12438,9 +12440,9 @@ static const char *PREF_S9_(uint64 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); - const char *hint = IMMEDIATE(copy(hint_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *hint = IMMEDIATE_UI(copy_ui(hint_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("PREF %s, %s(%s)", hint, s, rs); free((char *)hint); @@ -12465,9 +12467,9 @@ static const char *PREF_U12_(uint64 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); - const char *hint = IMMEDIATE(copy(hint_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *hint = IMMEDIATE_UI(copy_ui(hint_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("PREF %s, %s(%s)", hint, u, rs); free((char *)hint); @@ -12492,9 +12494,9 @@ static const char *PREFE(uint64 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); - const char *hint = IMMEDIATE(copy(hint_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *hint = IMMEDIATE_UI(copy_ui(hint_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("PREFE %s, %s(%s)", hint, s, rs); free((char *)hint); @@ -12519,9 +12521,9 @@ static const char *PREPEND(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("PREPEND %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -12543,8 +12545,8 @@ static const char *RADDU_W_QB(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("RADDU.W.QB %s, %s", rt, rs); } @@ -12564,8 +12566,8 @@ static const char *RDDSP(uint64 instruction) 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(copy(rt_value)); - const char *mask = IMMEDIATE(copy(mask_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *mask = IMMEDIATE_UI(copy_ui(mask_value)); const char *ret = img_format("RDDSP %s, %s", rt, mask); free((char *)mask); @@ -12589,9 +12591,9 @@ static const char *RDHWR(uint64 instruction) uint64 hs_value = extract_hs_20_19_18_17_16(instruction); uint64 sel_value = extract_sel_13_12_11(instruction); - const char *rt = GPR(copy(rt_value)); - const char *hs = CPR(copy(hs_value)); - const char *sel = IMMEDIATE(copy(sel_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *hs = CPR(copy_ui(hs_value)); + const char *sel = IMMEDIATE_UI(copy_ui(sel_value)); const char *ret = img_format("RDHWR %s, %s, %s", rt, hs, sel); free((char *)hs); @@ -12615,8 +12617,8 @@ static const char *RDPGPR(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("RDPGPR %s, %s", rt, rs); } @@ -12637,8 +12639,8 @@ static const char *RECIP_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("RECIP.D %s, %s", ft, fs); } @@ -12659,8 +12661,8 @@ static const char *RECIP_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("RECIP.S %s, %s", ft, fs); } @@ -12681,8 +12683,8 @@ static const char *REPL_PH(uint64 instruction) 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(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); return img_format("REPL.PH %s, %s", rt, s); @@ -12704,8 +12706,8 @@ static const char *REPL_QB(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("REPL.QB %s, %s", rt, u); free((char *)u); @@ -12728,8 +12730,8 @@ static const char *REPLV_PH(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("REPLV.PH %s, %s", rt, rs); } @@ -12749,8 +12751,8 @@ static const char *REPLV_QB(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("REPLV.QB %s, %s", rt, rs); } @@ -12773,7 +12775,7 @@ static const char *RESTORE_32_(uint64 instruction) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *save_restore_str = save_restore_list( rt_value, count_value, gp_value); @@ -12800,7 +12802,7 @@ static const char *RESTORE_JRC_16_(uint64 instruction) uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *save_restore_str = save_restore_list( encode_rt1_from_rt(rt1_value), count_value, 0); @@ -12828,7 +12830,7 @@ static const char *RESTORE_JRC_32_(uint64 instruction) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *save_restore_str = save_restore_list( rt_value, count_value, gp_value); @@ -12854,8 +12856,8 @@ static const char *RESTOREF(uint64 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); - const char *u = IMMEDIATE(copy(u_value)); - const char *count = IMMEDIATE(copy(count_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *count = IMMEDIATE_UI(copy_ui(count_value)); const char *ret = img_format("RESTOREF %s, %s", u, count); free((char *)u); @@ -12879,8 +12881,8 @@ static const char *RINT_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("RINT.D %s, %s", ft, fs); } @@ -12901,8 +12903,8 @@ static const char *RINT_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("RINT.S %s, %s", ft, fs); } @@ -12924,9 +12926,9 @@ static const char *ROTR(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("ROTR %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -12950,9 +12952,9 @@ static const char *ROTRV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("ROTRV %s, %s, %s", rd, rs, rt); } @@ -12976,11 +12978,11 @@ static const char *ROTX(uint64 instruction) uint64 stripe_value = extract_stripe_6(instruction); uint64 shift_value = extract_shift_4_3_2_1_0(instruction); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); - const char *shiftx = IMMEDIATE(copy(shiftx_value)); - const char *stripe = IMMEDIATE(copy(stripe_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); + const char *shiftx = IMMEDIATE_UI(copy_ui(shiftx_value)); + const char *stripe = IMMEDIATE_UI(copy_ui(stripe_value)); const char *ret = img_format("ROTX %s, %s, %s, %s, %s", rt, rs, shift, shiftx, stripe); @@ -13006,8 +13008,8 @@ static const char *ROUND_L_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("ROUND.L.D %s, %s", ft, fs); } @@ -13028,8 +13030,8 @@ static const char *ROUND_L_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("ROUND.L.S %s, %s", ft, fs); } @@ -13050,8 +13052,8 @@ static const char *ROUND_W_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("ROUND.W.D %s, %s", ft, fs); } @@ -13072,8 +13074,8 @@ static const char *ROUND_W_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("ROUND.W.S %s, %s", ft, fs); } @@ -13094,8 +13096,8 @@ static const char *RSQRT_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("RSQRT.D %s, %s", ft, fs); } @@ -13116,8 +13118,8 @@ static const char *RSQRT_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("RSQRT.S %s, %s", ft, fs); } @@ -13139,7 +13141,7 @@ static const char *SAVE_16_(uint64 instruction) uint64 u_value = extract_u_7_6_5_4__s4(instruction); uint64 count_value = extract_count_3_2_1_0(instruction); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *save_restore_str = save_restore_list( encode_rt1_from_rt(rt1_value), count_value, 0); @@ -13167,7 +13169,7 @@ static const char *SAVE_32_(uint64 instruction) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); uint64 gp_value = extract_gp_2(instruction); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *save_restore_str = save_restore_list( rt_value, count_value, gp_value); @@ -13193,8 +13195,8 @@ static const char *SAVEF(uint64 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); - const char *u = IMMEDIATE(copy(u_value)); - const char *count = IMMEDIATE(copy(count_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *count = IMMEDIATE_UI(copy_ui(count_value)); const char *ret = img_format("SAVEF %s, %s", u, count); free((char *)u); @@ -13220,7 +13222,7 @@ static const char *SB_16_(uint64 instruction) uint64 u_value = extract_u_1_0(instruction); const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *ret = img_format("SB %s, %s(%s)", rtz3, u, rs3); @@ -13244,8 +13246,8 @@ static const char *SB_GP_(uint64 instruction) uint64 rt_value = extract_rt_25_24_23_22_21(instruction); uint64 u_value = extract_u_17_to_0(instruction); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SB %s, %s($%d)", rt, u, 28); free((char *)u); @@ -13269,9 +13271,9 @@ static const char *SB_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SB %s, %s(%s)", rt, s, rs); free((char *)s); @@ -13295,9 +13297,9 @@ static const char *SB_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SB %s, %s(%s)", rt, u, rs); free((char *)u); @@ -13321,9 +13323,9 @@ static const char *SBE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SBE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -13347,9 +13349,9 @@ static const char *SBX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SBX %s, %s(%s)", rd, rs, rt); } @@ -13371,9 +13373,9 @@ static const char *SC(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SC %s, %s(%s)", rt, s, rs); free((char *)s); @@ -13397,9 +13399,9 @@ static const char *SCD(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SCD %s, %s(%s)", rt, s, rs); free((char *)s); @@ -13423,9 +13425,9 @@ static const char *SCDP(uint64 instruction) 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(copy(rt_value)); - const char *ru = GPR(copy(ru_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ru = GPR(copy_ui(ru_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SCDP %s, %s, (%s)", rt, ru, rs); } @@ -13447,9 +13449,9 @@ static const char *SCE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SCE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -13473,9 +13475,9 @@ static const char *SCWP(uint64 instruction) 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(copy(rt_value)); - const char *ru = GPR(copy(ru_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ru = GPR(copy_ui(ru_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SCWP %s, %s, (%s)", rt, ru, rs); } @@ -13497,9 +13499,9 @@ static const char *SCWPE(uint64 instruction) 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(copy(rt_value)); - const char *ru = GPR(copy(ru_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *ru = GPR(copy_ui(ru_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SCWPE %s, %s, (%s)", rt, ru, rs); } @@ -13520,8 +13522,8 @@ static const char *SD_GP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SD %s, %s($%d)", rt, u, 28); free((char *)u); @@ -13545,9 +13547,9 @@ static const char *SD_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SD %s, %s(%s)", rt, s, rs); free((char *)s); @@ -13571,9 +13573,9 @@ static const char *SD_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SD %s, %s(%s)", rt, u, rs); free((char *)u); @@ -13595,7 +13597,7 @@ static const char *SDBBP_16_(uint64 instruction) { uint64 code_value = extract_code_2_1_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("SDBBP %s", code); free((char *)code); @@ -13617,7 +13619,7 @@ static const char *SDBBP_32_(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("SDBBP %s", code); free((char *)code); @@ -13640,8 +13642,8 @@ static const char *SDC1_GP_(uint64 instruction) 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(copy(ft_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SDC1 %s, %s($%d)", ft, u, 28); free((char *)u); @@ -13665,9 +13667,9 @@ static const char *SDC1_S9_(uint64 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); - const char *ft = FPR(copy(ft_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SDC1 %s, %s(%s)", ft, s, rs); free((char *)s); @@ -13691,9 +13693,9 @@ static const char *SDC1_U12_(uint64 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); - const char *ft = FPR(copy(ft_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SDC1 %s, %s(%s)", ft, u, rs); free((char *)u); @@ -13717,9 +13719,9 @@ static const char *SDC1X(uint64 instruction) 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(copy(ft_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SDC1X %s, %s(%s)", ft, rs, rt); } @@ -13741,9 +13743,9 @@ static const char *SDC1XS(uint64 instruction) 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(copy(ft_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SDC1XS %s, %s(%s)", ft, rs, rt); } @@ -13765,9 +13767,9 @@ static const char *SDC2(uint64 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); - const char *cs = CPR(copy(cs_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *cs = CPR(copy_ui(cs_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SDC2 %s, %s(%s)", cs, s, rs); free((char *)s); @@ -13792,10 +13794,10 @@ static const char *SDM(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); - const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *count3 = IMMEDIATE_UI(encode_count3_from_count(count3_value)); const char *ret = img_format("SDM %s, %s(%s), %s", rt, s, rs, count3); free((char *)s); @@ -13819,7 +13821,7 @@ static const char *SDPC_48_(uint64 instruction) 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(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); const char *ret = img_format("SDPC %s, %s", rt, s); @@ -13844,9 +13846,9 @@ static const char *SDXS(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SDXS %s, %s(%s)", rd, rs, rt); } @@ -13868,9 +13870,9 @@ static const char *SDX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SDX %s, %s(%s)", rd, rs, rt); } @@ -13891,8 +13893,8 @@ static const char *SEB(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SEB %s, %s", rt, rs); } @@ -13913,8 +13915,8 @@ static const char *SEH(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SEH %s, %s", rt, rs); } @@ -13936,9 +13938,9 @@ static const char *SEL_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("SEL.D %s, %s, %s", fd, fs, ft); } @@ -13960,9 +13962,9 @@ static const char *SEL_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("SEL.S %s, %s, %s", fd, fs, ft); } @@ -13984,9 +13986,9 @@ static const char *SELEQZ_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("SELEQZ.D %s, %s, %s", fd, fs, ft); } @@ -14008,9 +14010,9 @@ static const char *SELEQZ_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("SELEQZ.S %s, %s, %s", fd, fs, ft); } @@ -14032,9 +14034,9 @@ static const char *SELNEZ_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("SELNEZ.D %s, %s, %s", fd, fs, ft); } @@ -14056,9 +14058,9 @@ static const char *SELNEZ_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("SELNEZ.S %s, %s, %s", fd, fs, ft); } @@ -14080,9 +14082,9 @@ static const char *SEQI(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SEQI %s, %s, %s", rt, rs, u); free((char *)u); @@ -14107,7 +14109,7 @@ static const char *SH_16_(uint64 instruction) uint64 u_value = extract_u_2_1__s1(instruction); const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *ret = img_format("SH %s, %s(%s)", rtz3, u, rs3); @@ -14131,8 +14133,8 @@ static const char *SH_GP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SH %s, %s($%d)", rt, u, 28); free((char *)u); @@ -14156,9 +14158,9 @@ static const char *SH_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SH %s, %s(%s)", rt, s, rs); free((char *)s); @@ -14182,9 +14184,9 @@ static const char *SH_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SH %s, %s(%s)", rt, u, rs); free((char *)u); @@ -14208,9 +14210,9 @@ static const char *SHE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SHE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -14233,8 +14235,8 @@ static const char *SHILO(uint64 instruction) int64 shift_value = extract_shift__se5_21_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *shift = IMMEDIATE(copy(shift_value)); - const char *ac = AC(copy(ac_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); + const char *ac = AC(copy_ui(ac_value)); const char *ret = img_format("SHILO %s, %s", ac, shift); free((char *)shift); @@ -14257,8 +14259,8 @@ static const char *SHILOV(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 ac_value = extract_ac_15_14(instruction); - const char *rs = GPR(copy(rs_value)); - const char *ac = AC(copy(ac_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *ac = AC(copy_ui(ac_value)); return img_format("SHILOV %s, %s", ac, rs); } @@ -14280,9 +14282,9 @@ static const char *SHLL_PH(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHLL.PH %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14306,9 +14308,9 @@ static const char *SHLL_QB(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHLL.QB %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14333,9 +14335,9 @@ static const char *SHLL_S_PH(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHLL_S.PH %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14359,9 +14361,9 @@ static const char *SHLL_S_W(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHLL_S.W %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14386,9 +14388,9 @@ static const char *SHLLV_PH(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHLLV.PH %s, %s, %s", rd, rt, rs); } @@ -14410,9 +14412,9 @@ static const char *SHLLV_QB(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHLLV.QB %s, %s, %s", rd, rt, rs); } @@ -14435,9 +14437,9 @@ static const char *SHLLV_S_PH(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHLLV_S.PH %s, %s, %s", rd, rt, rs); } @@ -14459,9 +14461,9 @@ static const char *SHLLV_S_W(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHLLV_S.W %s, %s, %s", rd, rt, rs); } @@ -14483,9 +14485,9 @@ static const char *SHRA_PH(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHRA.PH %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14509,9 +14511,9 @@ static const char *SHRA_QB(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHRA.QB %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14535,9 +14537,9 @@ static const char *SHRA_R_PH(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHRA_R.PH %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14561,9 +14563,9 @@ static const char *SHRA_R_QB(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHRA_R.QB %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14587,9 +14589,9 @@ static const char *SHRA_R_W(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHRA_R.W %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14613,9 +14615,9 @@ static const char *SHRAV_PH(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHRAV.PH %s, %s, %s", rd, rt, rs); } @@ -14637,9 +14639,9 @@ static const char *SHRAV_QB(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHRAV.QB %s, %s, %s", rd, rt, rs); } @@ -14661,9 +14663,9 @@ static const char *SHRAV_R_PH(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHRAV_R.PH %s, %s, %s", rd, rt, rs); } @@ -14685,9 +14687,9 @@ static const char *SHRAV_R_QB(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHRAV_R.QB %s, %s, %s", rd, rt, rs); } @@ -14709,9 +14711,9 @@ static const char *SHRAV_R_W(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHRAV_R.W %s, %s, %s", rd, rt, rs); } @@ -14733,9 +14735,9 @@ static const char *SHRL_PH(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHRL.PH %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14759,9 +14761,9 @@ static const char *SHRL_QB(uint64 instruction) uint64 rs_value = extract_rs_20_19_18_17_16(instruction); uint64 sa_value = extract_sa_15_14_13(instruction); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *sa = IMMEDIATE(copy(sa_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *sa = IMMEDIATE_UI(copy_ui(sa_value)); const char *ret = img_format("SHRL.QB %s, %s, %s", rt, rs, sa); free((char *)sa); @@ -14786,9 +14788,9 @@ static const char *SHRLV_PH(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHRLV.PH %s, %s, %s", rd, rt, rs); } @@ -14810,9 +14812,9 @@ static const char *SHRLV_QB(uint64 instruction) 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(copy(rd_value)); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("SHRLV.QB %s, %s, %s", rd, rt, rs); } @@ -14834,9 +14836,9 @@ static const char *SHX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SHX %s, %s(%s)", rd, rs, rt); } @@ -14858,9 +14860,9 @@ static const char *SHXS(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SHXS %s, %s(%s)", rd, rs, rt); } @@ -14880,7 +14882,7 @@ static const char *SIGRIE(uint64 instruction) { uint64 code_value = extract_code_18_to_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("SIGRIE %s", code); free((char *)code); @@ -14906,7 +14908,7 @@ static const char *SLL_16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); + const char *shift3 = IMMEDIATE_UI(encode_shift3_from_shift(shift3_value)); const char *ret = img_format("SLL %s, %s, %s", rt3, rs3, shift3); free((char *)shift3); @@ -14930,9 +14932,9 @@ static const char *SLL_32_(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("SLL %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -14956,9 +14958,9 @@ static const char *SLLV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SLLV %s, %s, %s", rd, rs, rt); } @@ -14980,9 +14982,9 @@ static const char *SLT(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SLT %s, %s, %s", rd, rs, rt); } @@ -15004,9 +15006,9 @@ static const char *SLTI(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SLTI %s, %s, %s", rt, rs, u); free((char *)u); @@ -15030,9 +15032,9 @@ static const char *SLTIU(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SLTIU %s, %s, %s", rt, rs, u); free((char *)u); @@ -15056,9 +15058,9 @@ static const char *SLTU(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SLTU %s, %s, %s", rd, rs, rt); } @@ -15080,9 +15082,9 @@ static const char *SOV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SOV %s, %s, %s", rd, rs, rt); } @@ -15102,7 +15104,7 @@ static const char *SPECIAL2(uint64 instruction) { uint64 op_value = extract_op_25_to_3(instruction); - const char *op = IMMEDIATE(copy(op_value)); + const char *op = IMMEDIATE_UI(copy_ui(op_value)); const char *ret = img_format("SPECIAL2 %s", op); free((char *)op); @@ -15125,8 +15127,8 @@ static const char *SQRT_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("SQRT.D %s, %s", ft, fs); } @@ -15147,8 +15149,8 @@ static const char *SQRT_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("SQRT.S %s, %s", ft, fs); } @@ -15170,9 +15172,9 @@ static const char *SRA(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("SRA %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -15196,9 +15198,9 @@ static const char *SRAV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SRAV %s, %s, %s", rd, rs, rt); } @@ -15222,7 +15224,7 @@ static const char *SRL_16_(uint64 instruction) const char *rt3 = GPR(decode_gpr_gpr3(rt3_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); - const char *shift3 = IMMEDIATE(encode_shift3_from_shift(shift3_value)); + const char *shift3 = IMMEDIATE_UI(encode_shift3_from_shift(shift3_value)); const char *ret = img_format("SRL %s, %s, %s", rt3, rs3, shift3); free((char *)shift3); @@ -15246,9 +15248,9 @@ static const char *SRL_32_(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *shift = IMMEDIATE(copy(shift_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *shift = IMMEDIATE_UI(copy_ui(shift_value)); const char *ret = img_format("SRL %s, %s, %s", rt, rs, shift); free((char *)shift); @@ -15272,9 +15274,9 @@ static const char *SRLV(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SRLV %s, %s, %s", rd, rs, rt); } @@ -15296,9 +15298,9 @@ static const char *SUB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUB %s, %s, %s", rd, rs, rt); } @@ -15320,9 +15322,9 @@ static const char *SUB_D(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("SUB.D %s, %s, %s", fd, fs, ft); } @@ -15344,9 +15346,9 @@ static const char *SUB_S(uint64 instruction) 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(copy(fd_value)); - const char *fs = FPR(copy(fs_value)); - const char *ft = FPR(copy(ft_value)); + const char *fd = FPR(copy_ui(fd_value)); + const char *fs = FPR(copy_ui(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); return img_format("SUB.S %s, %s, %s", fd, fs, ft); } @@ -15368,9 +15370,9 @@ static const char *SUBQ_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBQ.PH %s, %s, %s", rd, rs, rt); } @@ -15393,9 +15395,9 @@ static const char *SUBQ_S_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBQ_S.PH %s, %s, %s", rd, rs, rt); } @@ -15418,9 +15420,9 @@ static const char *SUBQ_S_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBQ_S.W %s, %s, %s", rd, rs, rt); } @@ -15443,9 +15445,9 @@ static const char *SUBQH_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBQH.PH %s, %s, %s", rd, rs, rt); } @@ -15468,9 +15470,9 @@ static const char *SUBQH_R_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBQH_R.PH %s, %s, %s", rd, rs, rt); } @@ -15493,9 +15495,9 @@ static const char *SUBQH_R_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBQH_R.W %s, %s, %s", rd, rs, rt); } @@ -15518,9 +15520,9 @@ static const char *SUBQH_W(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBQH.W %s, %s, %s", rd, rs, rt); } @@ -15566,9 +15568,9 @@ static const char *SUBU_32_(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBU %s, %s, %s", rd, rs, rt); } @@ -15590,9 +15592,9 @@ static const char *SUBU_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBU.PH %s, %s, %s", rd, rs, rt); } @@ -15614,9 +15616,9 @@ static const char *SUBU_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBU.QB %s, %s, %s", rd, rs, rt); } @@ -15639,9 +15641,9 @@ static const char *SUBU_S_PH(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBU_S.PH %s, %s, %s", rd, rs, rt); } @@ -15664,9 +15666,9 @@ static const char *SUBU_S_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBU_S.QB %s, %s, %s", rd, rs, rt); } @@ -15689,9 +15691,9 @@ static const char *SUBUH_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBUH.QB %s, %s, %s", rd, rs, rt); } @@ -15714,9 +15716,9 @@ static const char *SUBUH_R_QB(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SUBUH_R.QB %s, %s, %s", rd, rs, rt); } @@ -15739,7 +15741,7 @@ static const char *SW_16_(uint64 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 *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs3 = GPR(decode_gpr_gpr3(rs3_value)); const char *ret = img_format("SW %s, %s(%s)", rtz3, u, rs3); @@ -15765,7 +15767,7 @@ static const char *SW_4X4_(uint64 instruction) uint64 u_value = extract_u_3_8__s2(instruction); const char *rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *rs4 = GPR(decode_gpr_gpr4(rs4_value)); const char *ret = img_format("SW %s, %s(%s)", rtz4, u, rs4); @@ -15790,7 +15792,7 @@ static const char *SW_GP16_(uint64 instruction) uint64 rtz3_value = extract_rtz3_9_8_7(instruction); const char *rtz3 = GPR(decode_gpr_gpr3_src_store(rtz3_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SW %s, %s($%d)", rtz3, u, 28); free((char *)u); @@ -15813,8 +15815,8 @@ static const char *SW_GP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SW %s, %s($%d)", rt, u, 28); free((char *)u); @@ -15838,9 +15840,9 @@ static const char *SW_S9_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SW %s, %s(%s)", rt, s, rs); free((char *)s); @@ -15863,8 +15865,8 @@ static const char *SW_SP_(uint64 instruction) 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(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SW %s, %s($%d)", rt, u, 29); free((char *)u); @@ -15888,9 +15890,9 @@ static const char *SW_U12_(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SW %s, %s(%s)", rt, u, rs); free((char *)u); @@ -15913,8 +15915,8 @@ static const char *SWC1_GP_(uint64 instruction) 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(copy(ft_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("SWC1 %s, %s($%d)", ft, u, 28); free((char *)u); @@ -15938,9 +15940,9 @@ static const char *SWC1_S9_(uint64 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); - const char *ft = FPR(copy(ft_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SWC1 %s, %s(%s)", ft, s, rs); free((char *)s); @@ -15964,9 +15966,9 @@ static const char *SWC1_U12_(uint64 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); - const char *ft = FPR(copy(ft_value)); - const char *u = IMMEDIATE(copy(u_value)); - const char *rs = GPR(copy(rs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SWC1 %s, %s(%s)", ft, u, rs); free((char *)u); @@ -15990,9 +15992,9 @@ static const char *SWC1X(uint64 instruction) 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(copy(ft_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SWC1X %s, %s(%s)", ft, rs, rt); } @@ -16014,9 +16016,9 @@ static const char *SWC1XS(uint64 instruction) 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(copy(ft_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SWC1XS %s, %s(%s)", ft, rs, rt); } @@ -16038,9 +16040,9 @@ static const char *SWC2(uint64 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); - const char *cs = CPR(copy(cs_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *cs = CPR(copy_ui(cs_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SWC2 %s, %s(%s)", cs, s, rs); free((char *)s); @@ -16064,9 +16066,9 @@ static const char *SWE(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SWE %s, %s(%s)", rt, s, rs); free((char *)s); @@ -16091,10 +16093,10 @@ static const char *SWM(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); - const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *count3 = IMMEDIATE_UI(encode_count3_from_count(count3_value)); const char *ret = img_format("SWM %s, %s(%s), %s", rt, s, rs, count3); free((char *)s); @@ -16118,7 +16120,7 @@ static const char *SWPC_48_(uint64 instruction) 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(copy(rt_value)); + const char *rt = GPR(copy_ui(rt_value)); const char *s = ADDRESS(encode_s_from_address(s_value), 6); const char *ret = img_format("SWPC %s, %s", rt, s); @@ -16143,9 +16145,9 @@ static const char *SWX(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SWX %s, %s(%s)", rd, rs, rt); } @@ -16167,9 +16169,9 @@ static const char *SWXS(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("SWXS %s, %s(%s)", rd, rs, rt); } @@ -16189,7 +16191,7 @@ static const char *SYNC(uint64 instruction) { uint64 stype_value = extract_stype_20_19_18_17_16(instruction); - const char *stype = IMMEDIATE(copy(stype_value)); + const char *stype = IMMEDIATE_UI(copy_ui(stype_value)); const char *ret = img_format("SYNC %s", stype); free((char *)stype); @@ -16212,8 +16214,8 @@ static const char *SYNCI(uint64 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); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SYNCI %s(%s)", s, rs); free((char *)s); @@ -16236,8 +16238,8 @@ static const char *SYNCIE(uint64 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); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("SYNCIE %s(%s)", s, rs); free((char *)s); @@ -16259,7 +16261,7 @@ static const char *SYSCALL_16_(uint64 instruction) { uint64 code_value = extract_code_1_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("SYSCALL %s", code); free((char *)code); @@ -16279,7 +16281,7 @@ static const char *SYSCALL_32_(uint64 instruction) { uint64 code_value = extract_code_17_to_0(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("SYSCALL %s", code); free((char *)code); @@ -16302,8 +16304,8 @@ static const char *TEQ(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("TEQ %s, %s", rs, rt); } @@ -16540,8 +16542,8 @@ static const char *TNE(uint64 instruction) 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(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("TNE %s, %s", rs, rt); } @@ -16562,8 +16564,8 @@ static const char *TRUNC_L_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("TRUNC.L.D %s, %s", ft, fs); } @@ -16584,8 +16586,8 @@ static const char *TRUNC_L_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("TRUNC.L.S %s, %s", ft, fs); } @@ -16606,8 +16608,8 @@ static const char *TRUNC_W_D(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("TRUNC.W.D %s, %s", ft, fs); } @@ -16628,8 +16630,8 @@ static const char *TRUNC_W_S(uint64 instruction) 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(copy(ft_value)); - const char *fs = FPR(copy(fs_value)); + const char *ft = FPR(copy_ui(ft_value)); + const char *fs = FPR(copy_ui(fs_value)); return img_format("TRUNC.W.S %s, %s", ft, fs); } @@ -16652,10 +16654,10 @@ static const char *UALDM(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); - const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *count3 = IMMEDIATE_UI(encode_count3_from_count(count3_value)); const char *ret = img_format("UALDM %s, %s(%s), %s", rt, s, rs, count3); free((char *)s); @@ -16680,9 +16682,9 @@ static const char *UALH(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("UALH %s, %s(%s)", rt, s, rs); free((char *)s); @@ -16707,10 +16709,10 @@ static const char *UALWM(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); - const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *count3 = IMMEDIATE_UI(encode_count3_from_count(count3_value)); const char *ret = img_format("UALWM %s, %s(%s), %s", rt, s, rs, count3); free((char *)s); @@ -16736,10 +16738,10 @@ static const char *UASDM(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); - const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *count3 = IMMEDIATE_UI(encode_count3_from_count(count3_value)); const char *ret = img_format("UASDM %s, %s(%s), %s", rt, s, rs, count3); free((char *)s); @@ -16764,9 +16766,9 @@ static const char *UASH(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); const char *ret = img_format("UASH %s, %s(%s)", rt, s, rs); free((char *)s); @@ -16791,10 +16793,10 @@ static const char *UASWM(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *s = IMMEDIATE(copy(s_value)); - const char *rs = GPR(copy(rs_value)); - const char *count3 = IMMEDIATE(encode_count3_from_count(count3_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *s = IMMEDIATE_I(copy_i(s_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *count3 = IMMEDIATE_UI(encode_count3_from_count(count3_value)); const char *ret = img_format("UASWM %s, %s(%s), %s", rt, s, rs, count3); free((char *)s); @@ -16817,7 +16819,7 @@ static const char *UDI(uint64 instruction) { uint64 op_value = extract_op_25_to_3(instruction); - const char *op = IMMEDIATE(copy(op_value)); + const char *op = IMMEDIATE_UI(copy_ui(op_value)); const char *ret = img_format("UDI %s", op); free((char *)op); @@ -16837,7 +16839,7 @@ static const char *WAIT(uint64 instruction) { uint64 code_value = extract_code_25_24_23_22_21_20_19_18_17_16(instruction); - const char *code = IMMEDIATE(copy(code_value)); + const char *code = IMMEDIATE_UI(copy_ui(code_value)); const char *ret = img_format("WAIT %s", code); free((char *)code); @@ -16860,8 +16862,8 @@ static const char *WRDSP(uint64 instruction) 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(copy(rt_value)); - const char *mask = IMMEDIATE(copy(mask_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *mask = IMMEDIATE_UI(copy_ui(mask_value)); const char *ret = img_format("WRDSP %s, %s", rt, mask); free((char *)mask); @@ -16884,8 +16886,8 @@ static const char *WRPGPR(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("WRPGPR %s, %s", rt, rs); } @@ -16929,9 +16931,9 @@ static const char *XOR_32_(uint64 instruction) 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(copy(rd_value)); - const char *rs = GPR(copy(rs_value)); - const char *rt = GPR(copy(rt_value)); + const char *rd = GPR(copy_ui(rd_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); return img_format("XOR %s, %s, %s", rd, rs, rt); } @@ -16953,9 +16955,9 @@ static const char *XORI(uint64 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); - const char *rt = GPR(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); - const char *u = IMMEDIATE(copy(u_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); + const char *u = IMMEDIATE_UI(copy_ui(u_value)); const char *ret = img_format("XORI %s, %s, %s", rt, rs, u); free((char *)u); @@ -16977,8 +16979,8 @@ static const char *YIELD(uint64 instruction) 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(copy(rt_value)); - const char *rs = GPR(copy(rs_value)); + const char *rt = GPR(copy_ui(rt_value)); + const char *rs = GPR(copy_ui(rs_value)); return img_format("YIELD %s, %s", rt, rs); } @@ -22781,11 +22783,6 @@ static struct Pool MAJOR[2] = { 0x0 }, /* P16 */ }; -static int Disassemble(const uint16 *data, char *dis, - TABLE_ENTRY_TYPE & type) -{ - return Disassemble(data, dis, type, MAJOR, 2); -} int nanomips_dis(char *buf, unsigned address, @@ -22799,7 +22796,7 @@ int nanomips_dis(char *buf, TABLE_ENTRY_TYPE type; m_pc = address; m_requested_instruction_categories = ALL_ATTRIBUTES; - int size = Disassemble(bits, disasm, type); + int size = Disassemble(bits, disasm, type, MAJOR, 2); strcpy(buf, disasm); return size; From patchwork Mon Aug 15 07: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: 12943229 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 C71DAC00140 for ; Mon, 15 Aug 2022 07:46:29 +0000 (UTC) Received: from localhost ([::1]:53224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUns-0005EP-Lq for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:46:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUZX-00017o-Rc for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:31:39 -0400 Received: from mail-eopbgr50098.outbound.protection.outlook.com ([40.107.5.98]:11086 helo=EUR03-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 1oNUZV-0001Au-Su for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:31:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J0UQgjeuuPQ5rinVMouw8AlHUaB9EmGPm9xyeOFb4NsB4MFPgZce9BVirFWeh5sfpICl+/oaosjXIPZXB8yE79D8kUMKx8GHr+t9Jej3JgEG+nDVDatCQIfyK9GCWuLodPulJU6zt4WNTQNPBlNOIAkhp9rRnx26CdfJ3Ne4rOdQUta6YdcLm7QPqu7Y3zLkTCbXdPl81HvK3cUIS9jVNWV2JdOTQML2EyzUEA2OtYZIHPFrls+8RJWck4hhKy2ZYCtCP7Oil9u6vSFvbtBW2KAtr+03GZ15p8jNi6szM1FxSas5SgX7Hsh9pQXNexB8M0OECITeI6hW8Wvox4DtQA== 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=iaES7A8kAWzkTdZNDYyI84C4VLeHa+Bvwj3BlYBBBdc=; b=cjndF54TiE13YOaqi1tepIboOcnuWu7zFEA2vVWqG4Hf27ir2nZZjPPSHTLM56qkqi/apMdI9Jf0Ump2Av5Gt0+VTypsl3w5oDUO3ArFOyp6gWa97a+3xPt20MMLa+7HpkG77vyivHZt47bT0CFMprVUumRxQIjUeQ8zBqBFae4euIx30sywn3kAaec1lOAEX0Bl8ju4gLWDr1dsnsoiim5T2GT9CNhvyAdmzMoHN5biT8Qb72f/1fJunTMZw3lOdMWdlEp7R/WLDPQri6r6SEKhejLTc7B2cJLLKvFQI+arVKaMA+v+lGVN6vkJ4+vFcLANvd3sgLup3wFywD4BPw== 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=iaES7A8kAWzkTdZNDYyI84C4VLeHa+Bvwj3BlYBBBdc=; b=b9jR/aSGOFygiRwDoG9TCZYmwFUf6tJIKyTOI1dvSnQrp0SPZ/k+FXKlhBZWKKxcGIHous+2GgFyY6kHFfyX1ffKQvBXJAWoLpZWAzi7BNKJyo6ZZOhA+MvGlOV54P70tElgadIXLlNZTGdt+sErTpQzuQLI1zymJ8m+lkfz2S0= 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 DU0PR03MB9152.eurprd03.prod.outlook.com (2603:10a6:10:471::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Mon, 15 Aug 2022 07:31:31 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:31: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 15/20] disas/nanomips: Replace exception handling Date: Mon, 15 Aug 2022 09:26:24 +0200 Message-Id: <20220815072629.12865-16-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 62e9d9cd-56f8-4cf5-2f32-08da7e902ca4 X-MS-TrafficTypeDiagnostic: DU0PR03MB9152:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9Dvvmy+IIK/PMtx0oPbQ1k9U46gXGoqcxmyuzBzDOe3L7HuL8HnHbv+TV05/A9SH13EeioGKDWvoZrfYOnOxIq9UM1tJGBDfvqiNdwNwHnoMxlf6pg+KdnkSHYh+U/Pi3lL5GGRUWSwD52L7ezTnQnf+2ye3VxFfVTuv23V53UdbEGekpdbxQZdXBzWSqSPnnbz9K0xQGT07PhjQv2Msfsd56ZuqUy9DMvNr7pcoqL+lZCNXIDkJuAYktNM57lnvHHlBZM8xfW386SAG8CYB4n0l0KzPS+YxsBkcGqDez9IjsVUUE6pQQSfnQkoBUiiIX7/jM44zhCyzVstKhi2lfcD5GDO/1N8jySQv/jO+sqaKPhIKxt7KObc/lhLR7W2Mln22+IZNn2BTba6kGdxqRDRIrpmyxr03v7Oe3IVvxEiwzw8kp4r8iKQ5tiRwT8v7WlJE07MYnyvYkW0aiZFuhNNsrCRcmqu/yfeuxHB38pg1tut+f6tY6HxTEnaK2VTIzQLobChBCZ8n4wpgp0KuE5yBBSXgUGUre5fA4HfTsD7AbBuoDlwbQ8J3ObfbI0i86FkNG5BzrX2HHRJKvVQWeiPBlgd7YZkpjfdQXiKkIk27GiKhPvfQLuAqXP7O2AaqJPNVvm07CTDWp0h/haf96jHnTQE0e8szSO3FS8NIQ/dykR2EsZcSf4eOOaxBh7uL3zlK4WD2rwLaMfpRNlfOl2KNxyG/QZQ7mkxPyh/AHDLxUMPD/6dNFrdj5iVIpzr7M6y5yhjh7UQ9Ysk/QURBo8/W21zPamSAkihK961GPcs= 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)(39840400004)(376002)(396003)(136003)(346002)(366004)(52116002)(1076003)(8936002)(5660300002)(44832011)(2906002)(26005)(86362001)(41300700001)(66476007)(186003)(6666004)(2616005)(6506007)(6512007)(83380400001)(478600001)(38100700002)(4326008)(8676002)(66556008)(316002)(107886003)(6916009)(38350700002)(6486002)(66946007)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xxIsVttx/5QUTYF8zO8MsX3EwG/JqvxrWQFPD9XqTU+SYXWRVPKnXTPywwG1VChlgII5fjWjfp/1odyR9X4TVaTxVZ5P6r8ggxlq6VBhoY1psz2+PPjDjb7n1UaaYa+RuIX5dk6bVsEm1KgWWgwJnpcaxschBBI6al0/8vQqbXsQaw9dK9fAa3FifZVuujQ+4yxvFF5IfPKClj6wTssqK/HAU6zAd9IZA9bNjaIsDgiOycNxOggqMTAsN996dtsMyyRSlLZSj28dIL9x5p8HgGtI35qn4Kb6SdGx7nZKWXKk5TZjq6AQtnp5YFz5NbIk4MyuDuPIrp90i74jSKn0ezs5vVtfyV0I0as5+c1aPItQZVXuHZcIs6nnl6q2xwhhPxRJ5jKgap6hQ4OAdr41NNw74ej159j/R8w09QaY4HVVzzaYH1I288Ri8ju9xMyalSi9voUR9J8eHHr4xuafi57oG3PAu0qvnnsgYoEzDm94kYiIBEtz1CsTcfzYD7r5N4tpMWLMSroqsXm2U6kUvy1LijhA7lRlVIbAlBZHkeuRAUtE0BPPucy7AIxaHVl2qExErvh6NpmksIVcT8kZRVmeRQShhEX76UyIKvwvzokcVMUxRYLzhiM9TrOgxntZGRCqiXSmL8CzVyPJrk6obqukL1Rq+sOQV7Ekn2T2BRQ4sEyflK3pFwgJjP6FyD3YRZy1Ml6ErPcT3s5e5HdzVvzu0Nt2z+GPm18PgQyxJXm9UvryqnIDSJ7XGAT88V7ygDGw4J7QnMFflVYgtIjQu59dFoJg7Q67y7EL6usDpONZWnNhbdEKYFFCwaTANjrMWP0fJb4ue46pDLpZA/pkRO6+613O/aRerwzEjDXAramRBIK0X6xrbcZg0oDD0+zAiNhTI7vevmu81XBllgCyEgGcUOJEoND3Q0oL/ejXWgRsd5QDNMVvfP7Fk06HS4ONkSJe2690KdmH2ce4f3uDs2/vA1rTzzuz5gb7RWmhPHmatlM2U8ConLFRuuxq2s4BpamIwN1CewVSIp7o3WNM0Jy+iMX0/IpUfroRM9qICBJwWqoSZLxivlAEZT5i/gcpOeSordAHqUw9uRqtLUzRwK+FbrfFLvBVNglt48P8bmzDNw0oyINAIiamiy4Yco80clqpFzIoRbp5bpsv1fIySUHJhTYNpo5Q3RD55zGNgWdF4qxlqiliTJdvoFBIqvTpKwQw/7+kuVjY7GUqsRw5dHX8ICSGimGiUncfgQ3KLOy8sNG6NWU/2y5fRd9vIx6QUi3TynN6p1btRr06aMklSsckYRB4y4Rm7L3YzFFVbe39dNapwYrse8yN2j9oaQ9x0Vnrg/aoKLUxmaRWGUtyyzuER/PJeptZi7CHDT5XqfudTo7QFES9YHeypjsMriKu7WBHtJX2w9DJ+5YS47hgPaFTAQsapsFdMitpFQNgHoyudJUIcEUSTm+1bZa+w5VRhNGZzHNiW7tbZCqdk9gTDiJIG1OybYXYyHI5xxnVJjnbex6zgparuusqQjIMAYeSwNzRSGx4JiGn7We02RlKmGQ95ITUWkJ/doUzmGKvEFATp5imJ2u4HOS6qoI4bparrt3zj3CnhycL3p31kPOKxQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62e9d9cd-56f8-4cf5-2f32-08da7e902ca4 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:31:31.6944 (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: p6GvJKJcB7nWBdxpVo0HtFA8cdHrjuXNh8iRl+5gThGPIPFjD8xe8j24U+Uy2TspxX34IVeqSYc8x4YtP65NOuNVYX3SLkLe0HZWhlXY7ro= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB9152 Received-SPF: pass client-ip=40.107.5.98; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR03-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" 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 --- disas/nanomips.cpp | 135 +++++++++++++++++++++++---------------------- 1 file changed, 69 insertions(+), 66 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 769368a984..a8cd878809 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -31,7 +31,6 @@ #include "disas/dis-asm.h" #include -#include #include #include @@ -90,6 +89,8 @@ struct Pool { static img_address m_pc; static TABLE_ATTRIBUTE_TYPE m_requested_instruction_categories; +static struct disassemble_info *disassm_info; +static jmp_buf j_buf; static const char *img_format(const char *format, ...) { @@ -133,10 +134,13 @@ 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)); + const char *err = img_format( + "Invalid register mapping index %" PRIu64 + ", size of list = %zu", + index, register_list_size); + (*disassm_info->fprintf_func)(disassm_info->stream, "%s", err); + free((char *)err); + siglongjmp(j_buf, 1); } @@ -513,8 +517,11 @@ static const char *GPR(uint64 reg) return gpr_reg[reg]; } - throw std::runtime_error(img_format("Invalid GPR register index %" PRIu64, - reg)); + const char *err = img_format("Invalid GPR register index %" PRIu64, + reg); + (*disassm_info->fprintf_func)(disassm_info->stream, "%s", err); + free((char *)err); + siglongjmp(j_buf, 1); } @@ -548,8 +555,11 @@ static const char *FPR(uint64 reg) return fpr_reg[reg]; } - throw std::runtime_error(img_format("Invalid FPR register index %" PRIu64, - reg)); + const char *err = img_format("Invalid FPR register index %" PRIu64, + reg); + (*disassm_info->fprintf_func)(disassm_info->stream, "%s", err); + free((char *)err); + siglongjmp(j_buf, 1); } @@ -563,8 +573,11 @@ static const char *AC(uint64 reg) return ac_reg[reg]; } - throw std::runtime_error(img_format("Invalid AC register index %" PRIu64, - reg)); + const char *err = img_format("Invalid AC register index %" PRIu64, + reg); + (*disassm_info->fprintf_func)(disassm_info->stream, "%s", err); + free((char *)err); + siglongjmp(j_buf, 1); } @@ -628,67 +641,50 @@ static int Disassemble(const uint16 *data, char *dis, TABLE_ENTRY_TYPE & type, const Pool *table, int table_size) { - 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 == 0) || (cond)(op_code)) { - try - { - if (table[i].type == pool) { - return Disassemble(data, dis, type, - table[i].next_table, - table[i].next_table_size); - } else if ((table[i].type == instruction) || - (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 - */ - strcpy(dis, "ASE attribute mismatch"); - return -5; - } - disassembly_function dis_fn = table[i].disassembly; - if (dis_fn == 0) { - strcpy(dis, - "disassembler failure - bad table entry"); - return -6; - } - type = table[i].type; - const char *dis_str = dis_fn(op_code); - strcpy(dis, dis_str); - free((char *)dis_str); - return table[i].instructions_size; - } else { - strcpy(dis, "reserved instruction"); - return -2; - } + 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 == 0) || (cond)(op_code)) { + if (table[i].type == pool) { + return Disassemble(data, dis, type, + table[i].next_table, + table[i].next_table_size); + } else if ((table[i].type == instruction) || + (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 + */ + strcpy(dis, "ASE attribute mismatch"); + return -5; } - catch (std::runtime_error & e) - { - strcpy(dis, e.what()); - return -3; /* runtime error */ + disassembly_function dis_fn = table[i].disassembly; + if (dis_fn == 0) { + strcpy(dis, + "disassembler failure - bad table entry"); + return -6; } + type = table[i].type; + const char *dis_str = dis_fn(op_code); + strcpy(dis, dis_str); + free((char *)dis_str); + return table[i].instructions_size; + } else { + strcpy(dis, "reserved instruction"); + return -2; } } } } - catch (std::exception & e) - { - strcpy(dis, e.what()); - return -4; /* runtime error */ - } - strcpy(dis, "failed to disassemble"); return -1; /* failed to disassemble */ } @@ -22817,6 +22813,7 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) info->insn_type = dis_nonbranch; info->target = 0; info->target2 = 0; + disassm_info = info; status = (*info->read_memory_func)(memaddr, buffer, 2, info); if (status != 0) { @@ -22866,6 +22863,12 @@ int print_insn_nanomips(bfd_vma memaddr, struct disassemble_info *info) (*info->fprintf_func)(info->stream, " "); } + /* Handle runtime errors. */ + if (sigsetjmp(j_buf, 0) != 0) { + info->insn_type = dis_noninsn; + return insn3 ? 6 : insn2 ? 4 : 2; + } + int length = nanomips_dis(buf, memaddr, insn1, insn2, insn3); /* FIXME: Should probably use a hash table on the major opcode here. */ From patchwork Mon Aug 15 07: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: 12943231 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 F3986C00140 for ; Mon, 15 Aug 2022 07:49:32 +0000 (UTC) Received: from localhost ([::1]:56078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUqp-0007Lc-Oa for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:49:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUZk-0001Gf-UV for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:31:53 -0400 Received: from mail-eopbgr130123.outbound.protection.outlook.com ([40.107.13.123]:62853 helo=EUR01-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 1oNUZj-0001DF-BO for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:31:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TvhNq5f7TCMLzpCWnuJDhQU0ARd2pZs9lzySuHXihX2dRpoalIt1SbX7aSb/hfoK3cLtmJ/Fn9DafiToqmBzyv8xjdg+JUvikSuRfJ8pg8ZlIdzY4l9zIC9okWMl682ZGiEEPpGn+VOfpz1apB+Mux5cfExC7M2G6H+XcYLHoWwzItaYjoqVJsEWKTtxSh3OcYj89FKctRU/04SAViwTfE0pkGlKG6O3c/LdN16+vID5yazEhXehWp5XiH8584H9kaK/jLi/jzrjxySfqKiHwoTCHRj1NHuW9fQkBlTOjaAG9KWSq2BHmX95R1cGNWKiUyMIQ1OKxXKhU+XssTtsXQ== 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=bf6BXyHkHS/2ZlvufP1+er50Fo5Z+SmABjiDo0y1tAI=; b=NWIIvoKYkOtseJmur3obpShhXgaAsoDBVqQwOmLel1vyFLKOpNY9Ec9mbBRRDDfX4ly3Ervf8DJr/GFN2lPyC73HBSnuIl9w4q8EEYbtNQFXGiXhMKBL422dKk4s0k5Iudf0FXLPKeXwSQj0Gk/C/l0O3Yg48xsPVoRv82Co1VWlCKxwBJACsxmR0BCpodT8oUTVPXMiCuH7o2Y06tdYQZh1votVQKC/Ky/USf+A6SkShENcPFe5b/3eLNll8w5lYu23FKP87Sl7p8Ai0GuY4LYX2OoxVS0pb8JUQOMKkMGUC+YWZrucdvg4TRymKSB38r+SBvtLdn8UOKsOcGIyUA== 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=bf6BXyHkHS/2ZlvufP1+er50Fo5Z+SmABjiDo0y1tAI=; b=WSVwLIsxPsUOxVBdAn4e50isMrkiri3fOIZYeFIc2gTwJ0qI1imWDUQyth86q16llWXfdjdDPv6z7Og/7u1KaofHt9mMqdRGNcjedsAGlcVOU3WStGSG3qm0cgd/UUym2+gd5h4iihEGopAX2hbD1a2IKGBV3VqbMDMnc6+ieSk= 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 DU0PR03MB9152.eurprd03.prod.outlook.com (2603:10a6:10:471::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Mon, 15 Aug 2022 07:31:46 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07: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 16/20] disas/nanomips: Replace Cpp enums for C enums Date: Mon, 15 Aug 2022 09:26:25 +0200 Message-Id: <20220815072629.12865-17-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 595c6171-cf82-4c87-c7a6-08da7e903581 X-MS-TrafficTypeDiagnostic: DU0PR03MB9152:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qx8cN/CACpd+RY0BMIpvnWyi4twJY+3vg8zMJ9zMy4mFiQnCEW2DUocbAbyVVbQS5N4Va+5WJNeGPLQgJEd20J3VLj94DmJ8UcemyG6Y11nrHx5OpoiEXuc3HlNA/Mv2dSvl8M6WeXtlCzsEnRjY2Vg/JOhPhlAdq/+o2Gjfybz4dOOMRpRvkcEV0jsjYiA3jy4Dxf9v1dCcZPizjFYED1QExDkoyBZ2Z71QRgtDgnX5K8kG3c44C85m9sfUcTo94iQiyBx9sepSeH7Zggk2DsfrFM4cYRs/sNdLrpCV//ssi3IA7y7KlnjcJeY4nzfYBj18jq/FEGic2uKJXu8XWL34LSsoVx/Cm4cRaZtQyoK3xTo4ORAJNuI2bq0oFfyU4S27l6sYbQWdfC7qYdTjg/vVbJnMW8cc9ow71ZUnKxk1UgR6DklZ6Y7SzvjKf/iABQmdR8o2RADYvWoPwYTWxZMXanCZRgbk1/v6LyXcrwlUhAGGx3zOWJbErY//y0ia4XpRsitRA33rbQUx9P+B/Ki/5W2pF7PXhEi8BPhXUACU6D2lVxewBOncpprcM+wVwlUgdEVkShVl1Uvd+MhgVGuG4rgiV/znvMMaYea+SfNGOPymN0ugumKQdIAC5NeEgvul/YXiPO9IGwdqJb8r6Zcam4/VWidcx+dEzfMLftygzmtUL+MV+HhPKGIS2rObuSk1hCcCn1QMjgMfIl9O7KdqlwDXHtkKYGTCWgBqvNy2r+bEOm+3bF5EHEt8uMej1XV4iwqXw6XRltKw/jjCJLz9Ra+Zxui8+huat5DitOM= 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)(39840400004)(376002)(396003)(136003)(346002)(366004)(52116002)(1076003)(8936002)(5660300002)(44832011)(2906002)(26005)(86362001)(4744005)(41300700001)(66476007)(186003)(6666004)(2616005)(6506007)(6512007)(83380400001)(478600001)(38100700002)(4326008)(8676002)(66556008)(316002)(107886003)(6916009)(38350700002)(6486002)(66946007)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: El0TU9FA7NM69M9x1heQefkiyuXpKB/NTp0oI7Lm7Q1iA72OzvU5hCK2pTn1mvL3obCKXU/xNN7o0OuP/HDOpNwsfHP0tfP3+eXLIbqb2X6skRIXVG5QpDc7P4X0MJ4C+o7donMVxhpzJsLaLL04FwIveNnJmJoJSMbkWg2S64Agiaj/q1tOkzvpzvyKQUShoZkq7BETSNyAuYj9Tnpatc+S/8wU1AGSwPeyRD55ivNnyiLueaBv7faW6iq9Yiy2Wk5tkoqLu80G1u6FqaImsfGJ9RtvMz2jnYMcV4tj2kHzE+EH0dIqJnNQVI13rAS1Iqn+kIE4DQes8UES9OSIFlJT8XYbIYRQu6ctdcxOUaxnr8suYEpf3tNB6JnZmMf6Q53grIgfloTCu2k+TJB3TowggH8/9ZEhYjVxgy7W1INoDbd7p8xMGLzKkXeQR9ScYV4TiXwgEaWXM/eMuUuEmMEupnZxt6RbD2ruY6lxRYgZ7Z/vMCIDIYbWYzqpz3u64YkJNgh2zAnmvzOz/OJ9vAu9wIHaxhOknlVlQAE4ldVtqNAsPGpLU+UwYBon3doQCSlVcOeYmxuHrsGwOVbwGWd7QXFnZMXsrNCfwGuPjuz4VXTP0JhInUKMrg8mHff3SPl3R2wcf7fmspZPjtPgaYaFI8YYe9Lb90PQW0ZBu6zgDnI/E8SM0p3Iox/vg/pRESt6WiAsyhHOlH+/Qw7xw/L/u6dEbkUst50m4k0/wo/xPYE3fqHGydwCgsuam3XUBsCXAE4k+kf9Sf3d9V3dnV4+zMS4d9cUGJRSEYT2Y9DhMITK/VlTXj4eEc0JyVG/P5rG8pBuxZ4ofeL2CiK+uiWe3tINSD8T6+1yvNpYphS9Gznlwq6jkV1fihhNtsaJiyiW08+9gasMTceOh9R+BGVq6zJDkQsj4bG6bzQRi96P0AKBVRh/yrDuoTETjBWH9wK4DKhUGv00y1STnYIjPrtUtPjLOmK3cDB7RvV6FYQwq0gwKBAk1MInmirRgpJudqN+hqHGjCMok43lv8IKwjbb50u6lrWiSNcAnfo+udoHH3a+HoNNW3Vd8+YdQxJxDUTddsun8Ynag5a6ZljcWwOZOg6vbhRi+gmdCqGUOIaPk70i7ZCZ/ugQ27R5RUyW842MFngKt3jyrkgH4VJ2CHIDWwzbXYY9D4QYULRpwMNWfAHt+EYNT2z1Hxh58bWDT4OVGjgZ6P6fwhMJau1bvcxc2VhOhOObekwCI1lqiPtbbeOg9RrNvCcTWkbOMIsAUldEMg6uSlwtydTCu72zQs4k9RQwCl9WEupCIYBzHrCp2mgItsKaDypdjd8jYsB3+d3X4FfAFN49HJG4IOZonxCCYo36CC/lrAAQ+z8EwA1y5b7ThbYEiezvC2Q1sm9s7By9RaCU+BPbUel1FjvEqclMOrq+rP1ZLFwHY06wZzfNWd9DUZkb19STXEkeLVgwq5ZN+inLpVb4PaFO21T9x2zuIYzeSnOpUvDKohtd/I6sKcWxSx99CtKDh65ufmXN0Eu8AqSsrn24r9LEnarhYQEdJP8uWuTqXyd1qBl6iYbisbLsIygcTnzuPJle5LLVUsQMfVTpnEexex2M67pv4g== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 595c6171-cf82-4c87-c7a6-08da7e903581 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:31:46.5528 (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: C0xR5gl+yw0OlBnIazijB6pgp4rsUElUa6d4/+/OUPXq65YK4wgWoBMYeBwStKLXkH0KcQCJsrA2iZgWQ8LL/SwVcgwp5GMFLDvPoh2ZuyU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB9152 Received-SPF: pass client-ip=40.107.13.123; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR01-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 --- disas/nanomips.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index a8cd878809..9406805367 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -43,16 +43,16 @@ typedef uint64_t img_address; typedef bool(*conditional_function)(uint64 instruction); typedef const char *(*disassembly_function)(uint64 instruction); -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, @@ -70,7 +70,7 @@ enum TABLE_ATTRIBUTE_TYPE { TLB_ = 0x00004000, MVH_ = 0x00008000, ALL_ATTRIBUTES = 0xffffffffull, -}; +} TABLE_ATTRIBUTE_TYPE; struct Pool { TABLE_ENTRY_TYPE type; From patchwork Mon Aug 15 07: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: 12943241 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 10E29C00140 for ; Mon, 15 Aug 2022 08:01:41 +0000 (UTC) Received: from localhost ([::1]:45590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNV2a-0002zS-Pb for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 04:01:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUZt-0001IN-Nj for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:32:01 -0400 Received: from mail-eopbgr130138.outbound.protection.outlook.com ([40.107.13.138]:27730 helo=EUR01-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 1oNUZs-0001EN-1d for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:32:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jLYUO8pddp8Y10fticOi9+HRy5DJWcZYkebrD7ZEuBWfOuSAYiMHY3HC9gbpChAvvk+1rEqVPsBoAh/sUTTXKw/MgoWVIqDyYE127KWTqK8HNw8opND+Dn7cm9OfUY2sF3EE5KPGS1g2x4Rb3yJ6XZoQ+FbVFXnbnHeHXCV6jbNC1BQr8cmF/OG4VnsSAeooqApmX6oTzrBXOYcAfOARGXkIkbRaioT5ofkVtA2Wreu7K68D1Fw/0qQi+muMQizSAyL/g2Fr+jCt+lvPWb5VDsfQ6JTTRUYRrOygzbj73nx+Bi2r5LU1/gSKHVm0vqUVkJkStU7J8n8+Ceh/B+corg== 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=yxsnHziiPhy3f/geTKEG3yMpBfhtdES4wcNlMUUwuuQ=; b=A3OcLR3JVN2xz0hof1zRh5uK3kkT1Dw/riOGLNbnMoBBvx6eKV/fL4nZTGrCHDy/xdW/4MNDLYHilkpLaTzpsxECKLVMEY47TOZpxNqFh4xUztk89tW4FHG6QLaoq/3IwZTLyL1fy4KUNJKuiIm349aJSRLeZGz3NB1DTmxS6rYVH446c55hvqOVRrUz6dWKKaMcjoeVhECDXIEA14k8knjtoW68q7g5dvp8hVam6xkicgRjyNPKYC7vLY1kI2AVRgzEnQbsRMtkVLnpOav1AidWkEr7YQDkVCI1kMNdkgbJtouKq57seup/uTmPBCHtAjFlwyT9TzTyAm17V6v1Qg== 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=yxsnHziiPhy3f/geTKEG3yMpBfhtdES4wcNlMUUwuuQ=; b=XbQ0LMgZpEgE/LZkDL508DTOXONN+xf+x6SX0P7fTgVTjeuFRsDi+fVdSbBGKViYan1qxl5v1+jBeP0J4U61u2Mng2F0lUJx4eM8xQZdmAGg/aBbDfw8eh5wgM/ZMdz3QV4aGeThV85IjelKLXSUZOKsVLOvsoCQe4eqUaS+Jq4= 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 DU0PR03MB9152.eurprd03.prod.outlook.com (2603:10a6:10:471::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Mon, 15 Aug 2022 07:31:53 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:31:53 +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 17/20] disas/nanomips: Remove argument passing by ref Date: Mon, 15 Aug 2022 09:26:26 +0200 Message-Id: <20220815072629.12865-18-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2e540557-17f9-4c89-3585-08da7e9039b0 X-MS-TrafficTypeDiagnostic: DU0PR03MB9152:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d84Nni9XqVNfhZ8LnYdFTX+RY9pvyJFbfFZqeUhTtZD2CRvtWyUqXp5lmvP3BGLvd5eDN7DmNB+H4rVFhWzaR69P+6lTRddyM5H/iZzJ3s5kaNjZ55oh59VUBQiwuZK5oE8PCQn01zLlOS5GQ1hhL0hKI8pyOjW4Irgormb7FexPjEoEhlNMlsRQGPKbBhBHgpwyy1mFNtjIh32FSppIfO8Y9hkutWaXhVGWev0lTp03v/tPJBwosibS6LY6jHQ5IhvKTY6q++yoBGg3INHbSHeifBzGi/EmnXfNGhl+XkeOIErOXMJFqWU/Al+3tRvXW7KPFKI3z69o+g6NsJV/VDCVlfm8Wr1E3fUJqduJyqqnKQqLFVXRTpPLpBiIyJldC+Ovkf4YWRH7O09QIYVVwyX95ROqplDgrwPMJVNmG/ybV3mQZljFE3sz/b+cypSKdm5cKkvmwD8EsSzm8nPUY570UtZ2Itvipl17HIShGoSviImSipofX0v+xACVQkF6TWTCowcPn027z5OZKNukhsLQ2YKr6P2PcA0AmsUfFWa6piljAHAe3sdEQSM5tSy72XnfFyDL6lJKhTAZ/E0G6eEtDI9vSynEUzkgnP6Y8hNyQRFUeJQtFZkS4fNs7sUVkBrs3VTsHSIWMkEYX+gsWiGkDAPE6jhBKkfwNHCs8PxOFI/CI68Z5fw4wxU/8rfj1QHhbao/YYi2lXfw2rbfDbu9IGj5elare9SnjS5f8trkWqLqsfq+ZHxWZTFKNWy6eo8QAi4GNdYwY7Eun1jSAK7os+Zz3ftIq/dxbdE3Ufw= 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)(39840400004)(376002)(396003)(136003)(346002)(366004)(52116002)(1076003)(8936002)(5660300002)(44832011)(2906002)(26005)(86362001)(41300700001)(66476007)(186003)(6666004)(2616005)(6506007)(6512007)(83380400001)(478600001)(38100700002)(4326008)(8676002)(66556008)(316002)(107886003)(6916009)(38350700002)(6486002)(66946007)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: x+CFQnGLpwMjVbIhWug1zdnhEmFm54/e06Vo9jUfta1xvVD7Bm6+vk1Honf4Qra2ek45TTe4FKyeOtGsJawe5AVXFPd0LHO3fpw6hBgX7CWvzkKEtyr4QhNa3oxjx+bxdAnaO03D34+WN2XKrmtY4c1oNLmddnGLkXG4JTKGDWA+FHfcTNBqcAANZnC26B4pu+OCjnfpBpIJY7nJXw9KjYFa2dRXDtmgaayhy7A7nlSFcDufuf11YsxNIuZ+ptIWSSyykWQvAVeB3X7436stHDqMSB64O6kQjxhUZD0cD+bzJanivm6uEVjrv6EU0wxYTL03TQqOBTZoSeP1Zoy0Wv9Ntr6rXtPv4yodYYi0SxY2IYnVn5SErjenZtucuvLgKFbAVkfZdqcEXfB+EKbybZphwzl5TNsj4vMP/+NP7ex0jhVk+iAQknezSnnBc08MWyNn1b3eWww+nW/hxNesmY6duCLG3vnCL8T5IPUy9tSLv+pcS4OYmsjFNG1USUWGdT7Xax9vKJaweXrleIQzyCWSTS0qCNl9MzMpohdhivSGlNws3zE4U5R2CMyp+Woj8Lh9+oBMIg/+ql6HzyjcMDrW4sjXjCG0gAdfnN6kHsRDspLPlEPWx4iUE02LzZJK5wgoJYIZjz0eQdJLVl44PVcy+87/rRnAWU1pkZs5I9741DOJbMOdl5DOvkD41gLtcGn9rLaJd9y2jtoosXQeaCx77jvtnSLIJyI0Q9U1Q4Hy7dfKUZq5RQDIC73BH+iagz9G4lleX2TfA0djLQ1Zx9NxC5zgRMOoVUsuFxD70cs2Ggep40/G8X5p665GyCdtk3PSNX9LFKcQbcn6F1ai5XchtJ0CGgRw/7nAfzHJOb/A2RK3f02v0GzXr4an3ehuAFGyrSITODu6dGIMZCgHfVzCSeaWg2M9ZsD8mI655X3nervOmT/z+UUtE5ii8znI4j3vvj1UzdOZsnuvETY1CNH/RWhFjIv2KdCgUhHvN6xiEfFOZggA09XEt+6OoE34ZISVfVx++UJ/Aqs6iniQfXR67Ouf3JOACnuoaoGqU/foWUMO8c55K+GWVjMorrm7c9qZCe/5bsVnmIeagmtn2S80p9DwJm6v4y338d/qNpMsyIoWgot01gGoGXQOQWLXFAhm4hv8Q7OB171BlYPEU6ldOnlmLmKi6MXEFeLblqkIWS/M6IioRL1rf65LwJwPMVmcUjBtOWRfSmaXIpWXRiU1hRxwvWiaCBdseirGI+Qgxh62VsQo0UuPx2KmpLFRw7c0mB/Ydo/yQbOm0ZLMCL3S/s3uufjplxb2t9z0wvMs2xuGbUlJY4T/KKFEyUNdJAemZ385oAYQMN5ZRTI8pd47HjjoFrauyZX6zLsLiv9kjbvt+w3PuTI8rV91WZvfMq0Tt/rUvfPY5eHCPOfYR8Dt/VwH/DHeRWzf5pYUR9UwkejxKWKuz0iK8V5jHKHIPtuULkoD3S9AXKR8K+wiNU4UNQcQ1+aL1hHMoatOcfqqj6q/Iiv1i5GigZfDc8rQJkBsCKNxnIXq6rHcGDh/t5Pd3qm8qawOdgcAYK0bG9sXB4v74A1XCnCXiLnNKTMv4FNaEN71W4jk0vsbudi9QA== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e540557-17f9-4c89-3585-08da7e9039b0 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:31:53.5523 (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: NDtuVw2kGksTP5Jua657HphYyMZOGf/aFXXqVwW5/yo9TIrJ4KRVx58hxyRS96PJMWWtbzHb7oTvhd+iRzDI+Ul9KMxkn73K4HeOmccfoUM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB9152 Received-SPF: pass client-ip=40.107.13.138; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR01-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 --- disas/nanomips.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 9406805367..7dfefdc5ed 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -638,7 +638,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) { for (int i = 0; i < table_size; i++) { @@ -673,7 +673,7 @@ static int Disassemble(const uint16 *data, char *dis, "disassembler failure - bad table entry"); return -6; } - type = table[i].type; + *type = table[i].type; const char *dis_str = dis_fn(op_code); strcpy(dis, dis_str); free((char *)dis_str); @@ -22792,7 +22792,7 @@ int nanomips_dis(char *buf, TABLE_ENTRY_TYPE type; m_pc = address; m_requested_instruction_categories = ALL_ATTRIBUTES; - int size = Disassemble(bits, disasm, type, MAJOR, 2); + int size = Disassemble(bits, disasm, &type, MAJOR, 2); strcpy(buf, disasm); return size; From patchwork Mon Aug 15 07: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: 12943258 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 38BBBC00140 for ; Mon, 15 Aug 2022 08:33:37 +0000 (UTC) Received: from localhost ([::1]:44054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNVXT-00030Y-R3 for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 04:33:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUaD-0001NV-6q for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:32:26 -0400 Received: from mail-eopbgr130101.outbound.protection.outlook.com ([40.107.13.101]:9382 helo=EUR01-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 1oNUZv-0001Ew-FI for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:32:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ja8/ydMAou94zw/y5vDcdZnw7z4Sa2xj1eGx029HQSsT9MOBKv3VP7gneB2WzGJCzB2vm9CtyjaPyUyJxx2rFh17Ure4+VMnTcOzrKXmABjfht2Qwr34bzdP1pWyHVlg2PLXl0uN1sLF97Kq2bHj+znWZtISVhi2FbCitojT6cL59BQH5oyJeLiq/HTh6AlQO3/qO4MqqctVwz9CKjM/TKuKYbU/QqiXdRK/BiX922gv4l13X8dFMn4tuiP9dH/Il+7MzFIz3kU1LvUL2YuxJSMfiG6MnDNXZSoslqi0pzScX6WyDuvz5X0CG3tnvh1fDa2L2/nGkJ8K1gVe3mhdNQ== 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=W8OJU3rJZoa/pMIsrfD8bai9v6W7HqgZirV1PrqHZAE=; b=Lpa1/Z7uUMV9qeN62ihbDiU+geFpXrSmEUCuIcYjUOY7aLUUqIwL4TIWXIQOoY8j3xKQLIBe9fOWo5wI/bb2k/aqlSq5iPMtbkz6VCLc+XM8CNfaAWB6Xvdk9a2qu8laW4JlvJ3MEFsHgFVA5O/eUROqBFgcajumEl8oAZm+G9yxhovcL5fm2NzKKoYhRFAKa7u+8wSUYBKzOa19qlvz6o0wlfBHdRk9frFpM+WdBibYP42fR5iyg2BkoVaKIXs7WIE5ExOdHJS3hRFCe3IA8Z1IkQqm6ZGIJUtbg0a489QE4Yky34OZKzdfq6zsHY6PYvPJ8vEChCKGFqQb5OOrJw== 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=W8OJU3rJZoa/pMIsrfD8bai9v6W7HqgZirV1PrqHZAE=; b=JKEFRMc8WKXga6bGjFWVJ4LwZzvxCfACf1c7TqDdvpAMRg2FRp+1ZhIg//5C3c/VC0c45BxrP6lSkmt51nlg6kXmcRwXu9tRFiPF0whbivSZfYxHj27CtJzICJ/Pw3cD+76ZwC76oGQqya83ROWe4xhUsMRiddl3zWpjgSpJ5o4= 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 DU0PR03MB9152.eurprd03.prod.outlook.com (2603:10a6:10:471::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Mon, 15 Aug 2022 07:32:01 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:32:01 +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 18/20] disas/nanomips: Add struct keyword Date: Mon, 15 Aug 2022 09:26:27 +0200 Message-Id: <20220815072629.12865-19-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3d1133e9-8a55-42b7-4d9b-08da7e903e4c X-MS-TrafficTypeDiagnostic: DU0PR03MB9152:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eCla+FA/AMTBPqKr/2+SSg2ecJ/I3NzVIwMmGQ0+mnu5zuYWhZ7Cpo5Wx0L+/RpmhYjuAfyQV3X6cMVOpcPY8Joy1nuJ1PAN93GHc2Js7ChzZtS6boF9DhA74i7KR4IwI6KLaoohM+kiIJnwBrPADDtGO8/isvxWMsJgxk0Ohh6WLWoTWximbd6qGFcd3TAIcBgYRd9bAkQy0xliUKOiAoVBEtm3WWovGze7G8LG9Nj3OXTEj6QzNKMLL13TuLOEh0dq3sC3D/GBWmJXqngBwX/oDF9Jp8UN7fnJcS7ufmM/gWR3TTXhzDpDDWR8BoO1xCe4Hg9OGDA2KKBVd0pbbZC4wUQtkqJc0pzz3vWN5/EKIGlR55nzf76GLX03puf88slwzvO5dU6uEw3HloiMWxYtE6jvw5j97lww48yiEdRNdT4n5uh7Lphyy4f8ngr4J8JYKKCXJq2qB6ipueUH2DUPywXEfWlczstl7dGI/fGvyxg35FSl+WeW3KaktQkw+QKFcPtX6ifUY9AbBVrN9D8cgqenBmXsvg/eSvR/UU2xZ9hbiYk9CKF/ULqXuIfxMr7wpUK819u3N8ZkaF/31L1I1TwRXIZGmV3eLmfduA1spu9jr+VVKGREdWPl8h9jAetA7BnVCczS5RpgCTclFIRRQ/CwvBOrtcJxfaqItc1dKCe6jumyI4eguZEw6A2P4PWi6FiMi2aa93jaImKRTf6nX952yDn/4+zc2L6nt5JkTAW/NBBg8jP6ThudrI8Y+SDQR/eqlsZ6suGUuMsEm4/Gi8zaOexHUKKW0AGr/eE= 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)(39840400004)(376002)(396003)(136003)(346002)(366004)(52116002)(1076003)(8936002)(5660300002)(44832011)(2906002)(26005)(86362001)(4744005)(41300700001)(66476007)(186003)(6666004)(2616005)(6506007)(6512007)(83380400001)(478600001)(38100700002)(4326008)(8676002)(66556008)(316002)(107886003)(6916009)(38350700002)(6486002)(66946007)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HEdy1zn+IkzqiUZhiHDH2/u4nmz2G47xB9FXIyZI76QB0ZqjKfrHqxom7C6MCkQs0uPBgxN2m3eviklR4CN1qMMr/5K8lWRwnBNujnhc1ZO2QLxJY725NLuWcxYR7g3GPYx/kXIxvMgDQlld0Nb7YFD5WnhAchDF8Dr5rPWUkSqLsHBH5LdIhy70cTwmY36NRPh2b/qCI18SM9K9qamDfTvf6H3VC6dX9tbRC0kQf6JDojsCijGD+OPaEng1twxXCJCvQypPNZS60QeIXrL/cPE4EV86Mb6IzBKr+TL0Qg0QWZ79PQFaVZBcrS2SJQbdnaIaLRImxQL7TFDAysJC7gtctgNVKVV2aYG4vBcHRBVq+ZOnLJVRfRxk12xZYYIdnwU7kBeYXFWHvWBV/GNiteQzF28JF3x3mAblB3kxIY+y3RaahC6JaYmnZRKGrb73VLy7xRKbxve9Rb1ydGVzbOfd3dZhhFX09KAPr47+RJmQutdjjhaiHVeqxKJfWEF1nqx1rfvMQgJYxZZbLPBWZmmLWT7h94KtlCN5EYE/4f9bmQjzB0Ac9MG6nJMLI3RCIlANas0a4W9c4XTg6o/w7WnEo8EBlfAENt0+m3HDoew3UTg6HCp55bHhPQG77aFezdI8SLjDuCYcPXNBSwtuNNv1snTdWVub9D1selWWWIa8idGJBMKvC5whB0GQTQ8KtPJqG9C4s85p8Uq7uBUkRSN+bkagx9N94u7KeoC7GTVg4mKfe5w4O40hdQxrg6fEIemG9u5sHxuchBg+zYhkRI4Q17V2fqUdmUr2FL0yYMEZYVyjIQ2t5JZZeDmITZVvQx1AVqX/N6J25OA6jCRyzVyBrmj0PYUKnEMUlCiwBDoLp2FSCs0jLZuuKhN6N/mGW+RL1cTAPqXG9gT6qrRJEzWpi5PpOOTAMl/3EujzYyfWBWHQD+VJ4IWrURiL+PxxVNLuI+SIWel3HCmLrEXBXVSqGu9BHbnGwZlyhhzGGj/h81ghMWB1+4595HffFBs+gidJhF9D8PUjQZqBw78LRjAWoJDB0MjiF+NxrqANi2ZMYZ/HEF83s+kT7s8j6FAgjrfXwE6zn/soMcIDOk3TVySUM6s1KU4pNNamtzGQ8jv50sl/tFc3AqmNti0AtY9qrXPE7o5gKwUwQCJEuhWpny/vfuJjfalDrzuO8/F5HbNumejUPi4uo4QeDxBtUVJOZkzhvP3VtVL/BI+h+wZmB4jC389FAFrPtIdtfX2yBGYjPobSyfBVGedVlvt0mKybwqskgNqLEEQ1dkGK4/nSz+ymiSKDiMyKpea4dEyj+wLgs8QzAXh01Cm+Qv59fUqcI9+JrG3q9RURxdM5IVDCGzw1Ojf9Zo1MNeFZbpX821hyn7BrI/TLWlGHuRgeX8TlkHiVWPiwoC2TTeKez8UPAOeKnJLLnmY+5efpLH9xySIOswNHONnYIUKj2APnEse9QIrSV1WiLSUaYVOaqE72lVqBLsQL8wmGy/5l9/W6Dap1F6lDm/1UnbjsK/6DGsD/6C6ki4AhLVphJ5irkFyymV48EnRjioAxuKc65260afb2cgyqNH0NdFztEJSqPNQHj5O6CMLbkYkU4zafNcATlQ== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d1133e9-8a55-42b7-4d9b-08da7e903e4c X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:32:01.3174 (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: SOfqWpHUbfCl2mLABopaLDt0u6wnOjv+FRSBKwxp+0tRe9+rqSlrO5kofMHUUV7ylloj0JDNlR4zfjvE9YKdhm6mwfqyV/oGA4Z/GH0UCYw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB9152 Received-SPF: pass client-ip=40.107.13.101; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR01-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" Changed the type of the table parameter in Disassemble function: - from const Pool * - to const struct Pool * Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth --- disas/nanomips.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index 7dfefdc5ed..e7d6bffe84 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -638,7 +638,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 struct Pool *table, int table_size) { for (int i = 0; i < table_size; i++) { From patchwork Mon Aug 15 07: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: 12943236 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 7E3DFC00140 for ; Mon, 15 Aug 2022 07:53:44 +0000 (UTC) Received: from localhost ([::1]:33062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNUut-0002ea-I2 for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:53:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUaH-0001Ny-GB for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:32:32 -0400 Received: from mail-eopbgr130101.outbound.protection.outlook.com ([40.107.13.101]:9382 helo=EUR01-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 1oNUaF-0001Ew-4B for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:32:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jrE8ytwuNOW4nd+XP53gIgBbp7Kiz1iVYmNnDxE10+MMXTblmBQKfAUw3hLeABA6fgnt2EXRMxSULEYj4Y69dOCOieCJmETOW+b/3Ep4GgJ5/oUoLfw/IvIAQ69PfnPk0a/C+5MsAc1s0iG56q4MlyYRtavc5/oqyhwLKzDqxhB/5Ywdp5Mz+avAjap47WQtl4hHzswqgFJXOWGNLVoelvrOO25ILU0mv2x1zEZ1AR6x6DB47gaPWs85UJzpJau9CP76w8ihTgljp/XrLLqsyCEv7mSvclCl5ST6nwK90vjXyqrKbGICIU7U+14YZI89jZDbwPPBOrHjuqzPE2pQ9g== 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=k/lakJP8HG6nRG2Twh7MGTDE1e4PussKHSAMvDko8wI=; b=fTUOtreLqx0Ce7xAiV2+XoL7nj5zO9XpszUX6x3UZeAFiBHUUVW7XcckukCYHqJekMlwboZa9B0uZj2J95qE1JCrKW00JWNGIFBml8sZY/aJ/Ss1GZ6X+7mMNajlME+Ky2e+s6R2/K9SVQEjsXRpcjFRXsOsYV0U9IH9h69SOn3dwVO7AfViP7mmrgJExmjmliKoNOJAjIxfYUBB6ds5JNjc+GDg0yFi40VhfhUU6g0bpWbFena1F62BXenPoCZ6/xpHysxsrl/3dGHRvt2p83xSxIbjbdiJimiVcwCRSHtPbewKLLWeD0r1buEcCDTt+so/eqgltMEn+srF+df9SQ== 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=k/lakJP8HG6nRG2Twh7MGTDE1e4PussKHSAMvDko8wI=; b=ALvk22hNaswFjjQfhVM4KUe3zRq3Kf6kuOcUZHCVi28aS8ZnV+22JB/DaEZyYwVslIXZIm1BWNf1VGbsXFNgjzNC/sMR2QcxBDjg7h/OvGEap13Q1ewFJbS1rGluJfoqjN9pqZny8ax/iLPuKJK9f2gJeM6wkyKukPTPVW6w1Zg= 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 DU0PR03MB9152.eurprd03.prod.outlook.com (2603:10a6:10:471::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Mon, 15 Aug 2022 07:32:10 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:32: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 19/20] disas/nanomips: Add modifier static Date: Mon, 15 Aug 2022 09:26:28 +0200 Message-Id: <20220815072629.12865-20-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d150bfd0-6e2f-416e-a9cf-08da7e904391 X-MS-TrafficTypeDiagnostic: DU0PR03MB9152:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /1ofGCLJXjk3rbmftrelFexGiu/t3Xdgz93N1+WgenDNWFrL/kl9GdUV8vfaAv1QBytJ9Hr54QfI14qjgfDSDNWSYrzxSQcdYXqTIKtLRUnLgvOYN+YSkXMWaN9u1BxQh4aQGQj68agSt9CUWJ42BTfC3BeB5WGOkevJgig6kt1rwU9eV/Ky9C9N89ZUuE+/cELT9Mlwa1U+CI3cwKAMoQBi2sSvW9eAFfULdJar8xaN3KMeK+vq3gZoDIlH/oOq+m6z8a8CSNb11VQBz54z6+ASrJKtv3tLE89k90W/scWq6MZEXtU1ZbMhOl/SOrHt8Iqx++0PL72ks2bSHspyKsnoXUFVTNuEPHYBpI5jDxnKEdFDcMcmUusFQrsbTFUrCHdnWpsql6arlaGfS7c4BuOUNu947E6l651jOtv0xl14GWCYj+fs/B48sCuvdQSZKhOQqFzEl4AqYi9kkat1EAkhgnS12AhlqIVEvt/q9bZdG8RfwSyXxnClAG70/BJQGr3k2ejaGKnmnSHrTuREW+lA06UGLf/KVzXVfqInWq0L0dh8Cvl7JMDckZAqqNsTS6spdLiZrrhmPWgVEIOWgEqRMarH/226lol25IR9Y6xNW5O6yfwWpxebgTwjWX6S9h+pCfx0FRJ+4SkIY/gNlkKnMM1j44QDU6Hz7eR8f1TQDNQk3F6T1wFTIgxX7QQSKE9kUw7gjQSDpRJ0RibC1GQQco0D+O0rATogOiqvnEC8ENoob441q7UqaOZ+t0h1ilyVsrkGy3p8ZGFTyB7zy6QQkgPCa2uOdZv0Z1wE5gk= 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)(39840400004)(376002)(396003)(136003)(346002)(366004)(52116002)(1076003)(8936002)(5660300002)(44832011)(2906002)(26005)(86362001)(41300700001)(66476007)(186003)(6666004)(2616005)(6506007)(6512007)(83380400001)(478600001)(38100700002)(4326008)(8676002)(66556008)(316002)(107886003)(6916009)(38350700002)(6486002)(66946007)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2/tgShAARjMiHM5k9ctwq1wi4hu9fQy65R79xE4Va39EXyzut8xrG1CsarBdDYoYuP0Qxgnkyo3hCHPIgnd0J3T3N8Dnj7xBPpstYIsybMRgHh7tGttuqtOeS7wyB/F4HqGxz1i7u6SiJTZWetv4h/1O6COtYlFx7SquYWPblpWiGhzljfVNrCe/JofCfqWBsPWvfDgHIVaZV8eWgvSsOfTUS/Fe6/GE+B0hG7qdZ+RvIs70nRJrqENCDyUJf3dRy4Rui8Kn6PhAI/u7J+cbMrYVf72GmnlPBeYsQpdzu0NUtJJN4FHH2ckP+67PjD6ETnnOdCV1ZJSCjN0sW8/hxyaPod3TPK5T7pcY5cGRarJiizhRtKV6PmGktzGeK0khklD9RzZOzHMC0k7QMSKCYzDHcPISMj9XQcByqMjXUkeUT6N2aAIIC8wJgMIYzJepTrdLST2p5Jq99wgqArzVCE5LZjO2QPH2iGC75izuKjWXfBLdc0eEP3w0DJ/hw1nGIERVz4YCRRS2Q5lLuRiHEjiGPMa/75Xi4d2gG+XycG7TnbvCxVi9kK42W/B0cSwOYQKydNkPnnQUXFzFtqTzY7Tp5bqa3E4P15ygjeVmhR5058RBu76GH3irlHK7014fg8CWPsKKMneBedst6DPyJgkH8bNvfKNbTYJ5KhQzoe9Yp+BPSRzrFm/jJk+/JNc2rTWjYI66ljNzDAKa1O/xYBYsc8GVd/66HyiW2kKzAVGNKB2/tRg0MdFI+GSK+Q8NgXcOdbFOV8qDB8wjegqyqdPmzp9beh0FwvdfocP1GfSJUvKSlWaK6SYguAS+Hos7gQGCUU1iamz2uuPpMGPmlxW47xCWFwI6OlfTVkiA22gNSGhhvwVBDnK6Ync4sMTaj68d4rqMtwNizsQAsWXdn+AM38n/euhCtBKgLwFd3AleaNvp5T7rvVBPorNHGuqla3y756MVtyky7RuHU4BOfwPU1zwEEBCuLi4afL6YMqtqz8OqMOj1Z6QohH+8oWGqXBBninOouwr+A8yC7W/43/U6ChNuYEy4it0tQK58hBB1L2CYTcRVQAkgFE8mdSskDdZYGHCltWSJ7aA/3fOuLuk4MCzLa4XvYF/1W46dPvkqU8fElpc7LQ/ek2AFytqC1th1oKVh/9lHHXMwAITbUALUfxYV8mI2/OdrYVFiWH0FSqZt/MWXR2BUEJY39TuOVm8jzFv+tKKds0V+Ww0SR4ky2r8qv9AAnuOaa/TiwIohgP5m8JJICceIMJ7MGEwLp6d83u6zG1IaOpMYnnMbf76mAh5MH1RmOi2hx6ZByUq8zQoORcfcSNCtk+eoB80htaFhCpEsomozYSqVFq+1BK1nFgdoBby8DFHVAMTcEfhP+XLMd4ugIfmXck8713XWYnZCLfBPqc5j7v2WP5OUbrDJ5VhhL7hwh8tEZIACcgCPdkEyl7nFpmze/9RJVHsYqmmWMKiV2UrVh1EaFSEaiv1leCsBoQ05Kl3EosAxXYAMS1wXN5yBKNG31Y1xStgBSw6Nl5jjXNRZz9sUcZLx0agiH4OHW2YZ6/Cyxn/oFbRo/xxlpMTnCKHHPwexgXbrNGt9jkzSyoLsklYg24oz2A== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d150bfd0-6e2f-416e-a9cf-08da7e904391 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:32:10.1450 (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: D23H0YfNYG1MBpucqWeSMY9WTlXeH+9Su8qoZOWPyx9o1li5hIZVagy9SBinY5Mo+URzJF3XwGBq+GmHu2ImFd/BIYH3KSbbewTvIvM52tg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB9152 Received-SPF: pass client-ip=40.107.13.101; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR01-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" Modifier static has been added to the remaining functions that shouldn't be used outside of the nanomips disassembler. Signed-off-by: Milica Lazarevic Reviewed-by: Thomas Huth --- disas/nanomips.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index e7d6bffe84..6cb527d1f7 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -114,13 +114,13 @@ static const char *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; @@ -463,7 +463,7 @@ static uint64 encode_shift3_from_shift(uint64 d) /* special value for load literal */ -int64 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; @@ -22780,7 +22780,7 @@ static struct Pool MAJOR[2] = { }; -int nanomips_dis(char *buf, +static int nanomips_dis(char *buf, unsigned address, unsigned short one, unsigned short two, From patchwork Mon Aug 15 07: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: 12943240 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 58838C00140 for ; Mon, 15 Aug 2022 07:59:06 +0000 (UTC) Received: from localhost ([::1]:41548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNV05-0000D2-Cx for qemu-devel@archiver.kernel.org; Mon, 15 Aug 2022 03:59:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNUaK-0001OB-BX for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:32:37 -0400 Received: from mail-eopbgr130101.outbound.protection.outlook.com ([40.107.13.101]:9382 helo=EUR01-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 1oNUaI-0001Ew-M4 for qemu-devel@nongnu.org; Mon, 15 Aug 2022 03:32:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S/+W5wLZhF/oO2L/x2oNZ6nGaBU+QpQgI1gvyDchuYmtOvpqCqUR/BIE+0a2daY7Y5T52AFajhEUaxYy5sitz+G9+o1WX+uXKMhr5eIzG309nIqSHcx5xGvs0ZIbGojZEU7y57tU0T1kdvx9d9TgvV1F3Bz/rF84GeFFtqtNW+18uRQSGINrIHgAm/W589vmXEZTKMP/ky7YVExOQRJYUq7uKkMOGqrxy0rKMYPm7iqGrFDKCkqSxYihZBOsXGkYExVPPIGEwblElt2ZUKZXdC9wxwc0EZIG8NzZ7D0ko9Unfiix2NGU6Ab4zOowMiieaRhy+Qp3m018rRIIjnIAzQ== 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=d22DJtARdqNaQfUb/tjwpSScSiVmXJWAe4uuyEFu6jEFhmP/iz52zzxIen9lBQyUe6SvAJF7XDrhVAHmaLKn7LhAk286FxaMekqsw3yu4cu6FaUFzz91tZMFnB/Qzr2SGqicp+oJiceIMSXXMP5rgu6gnfbwGWLEtSBzn1t/JKuNXSK3BumM63IStYnA/BdaV5YAllvg+9UntDe0CTd3wTXx/+qBDFO+w80ihJhVSy1tJpyUVoiBBl3bVnbCCAyNpGATithkdCQMm80FzkGrA02WD6asHq6iD3aFyzovyLrDrpyIpxDnx1QHH3XfhYNkaBnEPLsxm1anm5apJYdwXw== 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=WJeXAz91KVD6BrXbkrFo2aivg5J7/zuuEsxezlEvjAIb6y9wPu8rIOuA8XWbj3jcCe802h5zg6do5mLey4Wv42zzMJ65YrKY9pu6fLtDP5loXVZ4WgQ2EjS2R/yf9xPppIGYT+Bat+fSGuiEtiFAHxUhVLo/ChSrJfSc2KxpnaU= 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 DU0PR03MB9152.eurprd03.prod.outlook.com (2603:10a6:10:471::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Mon, 15 Aug 2022 07:32:19 +0000 Received: from VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745]) by VE1PR03MB6045.eurprd03.prod.outlook.com ([fe80::7996:9fde:76d3:745%5]) with mapi id 15.20.5525.010; Mon, 15 Aug 2022 07:32:19 +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 20/20] disas/nanomips: Rename nanomips.cpp to nanomips.c Date: Mon, 15 Aug 2022 09:26:29 +0200 Message-Id: <20220815072629.12865-21-milica.lazarevic@syrmia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815072629.12865-1-milica.lazarevic@syrmia.com> References: <20220815072629.12865-1-milica.lazarevic@syrmia.com> X-ClientProxiedBy: VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) To VE1PR03MB6045.eurprd03.prod.outlook.com (2603:10a6:803:112::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49d2640c-689c-44ea-7501-08da7e904949 X-MS-TrafficTypeDiagnostic: DU0PR03MB9152:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pHB8excA4JnKD8QNR1EnzNNm42Q33DmmTnkVNUiDQMx9xN8GydJXin72wop3t8WISWtJZ10JWOVDnIWuOZ53pKgPdZ3ZJ8SkVxXkl6PiLooqI4mig4PJUa68h/MZLmQ3qR30SO5WtN5LxNw34qOz7wEm1S0GIfPFNdPgCVW9AfS6y3aIZgYrqsc6io3xBsfOAxdCtGHyU0RRzMoRQzNjxq2eW0UBxTcuoHC/fcXjJoSuYCP9TVg59zGdLIRnE7mx1ZdSgC9ZVCug2EFTxNul+EasynZSCeocDqmhak8+E7tIUqURVPYkJQvH5Vb3U3o/zxEE/Z74MV5Rki2Um1qGzwfEC8Hn2ftlo8Cr0okbBgVax/Y56tnrowshjaOQGJev/l5iqriDmueUWMxVtbvo9Hb+LHOipyOXnh+1Y1+VWJ1B7kuNXYru0smLCI+PBZi6OBhUjmG+V5Z5uBR1Oo1pRDm0Y8JwNTN0vLc0OUXDd63GQqLyhZ6c/YrdBAQQ9THx1gRZmDL+ysVZYAgykq9VCJ7W63v+TW+QfhHLXLOVBJmuGKVYtKblY/zQVM0fZYjMWkPWbzZ9iymaK3aDGge6RVaGsH8Zi5eINmoux+SoSbmqpMnZnfvedWYZm6ee51AVen5lJ+kifEkYJlSN+irbkUHF6aJi3lNECHWAb7bYW1NJzBBP3iqP1988c3d5siiIRLUQ8pTgBFJcZV9a9lHLD1F0b2r/5ABiSw8JRbY5yUKiaQGrtqxyEbmxhtnFDV6245Gw8Rtpopv7/OkV83LXqt/ZqNrq75fzQPDTk7xueas= 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)(39840400004)(376002)(396003)(136003)(346002)(366004)(52116002)(1076003)(8936002)(5660300002)(44832011)(2906002)(26005)(86362001)(41300700001)(66476007)(186003)(6666004)(2616005)(6506007)(6512007)(83380400001)(478600001)(38100700002)(4326008)(8676002)(66556008)(316002)(107886003)(6916009)(38350700002)(6486002)(66946007)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Z5beKhZ4uVhbj5IXh1PY1dpA39FONZo3fMxEoSUwrtcewv+lac1nFziYibSy61LVAHhmrwphZqzdL5HeqYZ8ucqCyYnJyOCA92bDKYpBTdO5cFB99A8TgOQ4RowtdxPee2AO4UFZBce0sOzKSReD+j1qJLcWNCU9DTfIDOrokKpRAZ/eHj/a+NOgkszUS0KQHNbXW108qwHIp2sQMyHKvMYo1RT6E5DGf6oT5WqiMEAtU/zODzWevgHy8DUttriWuem24UAz3Ud163iVeIElrvLhgBIrZtWD78PoAheftx7SsuzeGOVHd7QXu8Q21rMlmAELCQsSSzlE9xcyvRD5QqPAnwUyakRQMKUWinjtlzY7h9LJwU3ktr83YlrvudRU5PK5JyrCJmf6AeC4PAwzZiG78ofL7tGcUddp0CRb2bq6ZAIZ8MYMuamr2yycV4WZhfDPxrrmgOUikVtbUfQvf4M4gM4bwGibfI3gdT85X7FfGB34kTWb9yBgBTpFf/4JSx2M/0Jc1SYzWXKbpMRtoMX11XJ9x2zNkBjSx74IXpK6fA136ETvOGwFXdel0Pj+YlAXSDprIACDBwwUZKB1rkh4MwxjYDAPFI+YUo2GqW4UlggGsOxLj9l0eKz/LjlJAOi2bpbmcyqiLONPAfpfhlI/2aCNgRQF0iPMAc26yX5IWhb799WI1jIoZqhBHjRyRlUnKpmDJ/cYr2Hj0NMMpiaLfvkscUP7rtELPCjx9AkkD4Opq3bjZYTJSZO6Ega3V6Kjp3MZL4w5NIA7I2ksomCAdLGkivbDwoj5SszRFzls0VUAbk4I/kFpXMHcp0OGgB5+2s1NLZ6B6tVSpf7oBoAiRMliVdd7+UqgckCpwps/itVOeFVQl2f5JDs97sZBbIZ1+9tLsnd/qJVt4rYmB8gy843sYf9+7Ws4e+3LHXmSo0sSfy4tacrmHLF0vFgvvb6Q6O+Y3Oqeh1sXLqU6xZOqNKgzMwyHkXnb30mZCJJmeh7G+rBqrs72s1f5BivVj2nRd5gYsv33AnEri4YkXg/TVLEkOj+5k6uywO81W83Br5RRlvcvG9pfvGIkh8BfqnEmNJ+E4O+tx3r6rsSwrUJ3nCX4659ghdlcsue9nBChSHMeLcG10ZEaoQgG4qMDjHPLheNtkIuvlx0AiJ2RVuKEMTwSGRLa1tx2IvIk6AC4DrseU0V7JZwWLgwoOw/A0B8INtDlV9/ggmKrw0TPbTTnxgzbb5RLkRuTUp4ZGpjz6eGdbwkpdcmvPawQVawUhV7aMuUKk39DPvDWxYL6ihID6lSGJ/yGy5QQ1pGYJa9QFtwox9PDxXwRgmfv51FWug72B4FF36dGdf56sys+aM+S0l5QGevTvXCF571iEEjNeF9mNLbOXhxxj8ywqkPCfucDhu25dBc8GlzEXu4LkXpWZSGxJmke8z3wsdHfXRol6YYZr/yLR48Vt8YCyxJEU9pA/gCzb+kmn3FrE/qx1XxaYlZRNrDIHOJcEb1dGGcX8F7WzOT1bvXkNCFqiLX1wolsgnxyvHvw+eKrJd0Wbuzhwqs8IOi0WNzENxhbV3cdeptfuBoSwoYYxjyzvamHPyC9iWuS7pw03LSqFZwkGg== X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49d2640c-689c-44ea-7501-08da7e904949 X-MS-Exchange-CrossTenant-AuthSource: VE1PR03MB6045.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 07:32:19.7381 (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: aUJEoEsh5Lx+rzLxhzmCEhKETbAllAb6qTi17SI2A1GmTuGvoqVNJEbmBUqHbCpfwHSaPQLedge2OMPgw/+O7QOQ/mUkVu1yooixNMKHrFo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB9152 Received-SPF: pass client-ip=40.107.13.101; envelope-from=Milica.Lazarevic@Syrmia.com; helo=EUR01-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: Thomas Huth --- 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