From patchwork Mon Dec 7 23:55:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 11957111 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FC94C433FE for ; Mon, 7 Dec 2020 23:56:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D8A98239D0 for ; Mon, 7 Dec 2020 23:56:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728237AbgLGX4X (ORCPT ); Mon, 7 Dec 2020 18:56:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727157AbgLGX4X (ORCPT ); Mon, 7 Dec 2020 18:56:23 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03E9AC061749 for ; Mon, 7 Dec 2020 15:55:42 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id bo9so21976774ejb.13 for ; Mon, 07 Dec 2020 15:55:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Kzl0AALsmS8BSI2s1yWwb1eTTjeSxRukzNssdVVqA8I=; b=PN/ZQBXNMBzJU80aKISghDI5zOgu9bkTExQbUVp9TffgV4DSdh8Gm0j09upPo7OVfV QIQVYYkLya7Whmg74erX1jwfvODegvzHQ+IDK2F+7S4yvyvKHrHSW7MFE+v8iRDgwrBb qEvRmCnLAN6FJERQwnSiTOyMnvUYPhvyg3Ii9Q/ZrFVJcG8cN8NINRsYfLuD3N0Dg+1A 17FM47FM1HcYrdAg6PATgIKW/Xj4wFpfEDQ8J3wFWbROIxSUlwuDQIgmFz6ecTQ6jZK4 UilqtuW3YV6B7gOEml3D5jC06nYF/busfgH4b+UHzdshegdwbUzH0sq7yjbWBEGLdjGl SPcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Kzl0AALsmS8BSI2s1yWwb1eTTjeSxRukzNssdVVqA8I=; b=oeNYtIy7zd6kfCZPkcn9fAU+GY0/8E06JUryD416vM11PRK0AjDOag9LhZ9Koa3Ecg baMSgaVaP8emGd40Ye8HpJGwlumvZ3qBy3zqEuFyVC50cY1MmD0A8oX6w/RBUBojf8i6 m/8SKPyDuP3xlJJBOPKB2S1BIkFON6ZamSUTY7A43cNyqiqQeF/g7+LbowdK0bIHhp8a MWaAhh6iqmYlWfR4s2H09YRuLFaNgpNAaDvFN742XQhVD38Ew7XwxLd9wS/ktkd3x2K6 H/79E3ChgWC3XoeYqETkXWiF9ZZiIKvzVxciF/jivGOpqot5vJ2qU6qsN6JJbuON+OXL /eXw== X-Gm-Message-State: AOAM532FE4sHdIuVxuP4fBE+o8fqbynbwibHwo5oyNjK40tB8VwmLcig ubwVy1zDFm3qGMQLyWwl2TbHfTb1Z2c= X-Google-Smtp-Source: ABdhPJzVOcw+tUDWczT7m8MPPc4QIS0c7OXNkIN6I3lbJUhs0wn/J5cPJB+VnQLTpOm6ehLZyXX/7A== X-Received: by 2002:a17:906:1945:: with SMTP id b5mr22157491eje.388.1607385341622; Mon, 07 Dec 2020 15:55:41 -0800 (PST) Received: from x1w.redhat.com (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id dd18sm13785298ejb.53.2020.12.07.15.55.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 15:55:40 -0800 (PST) Sender: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , Paolo Bonzini , Aurelien Jarno , Aleksandar Rikalo , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Laurent Vivier , Richard Henderson , Huacai Chen , kvm@vger.kernel.org Subject: [PATCH 0/7] target/mips: Add translate.h and fpu_translate.h headers Date: Tue, 8 Dec 2020 00:55:32 +0100 Message-Id: <20201207235539.4070364-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org As the 'extract MSA' series keep growing, yet another preliminary series. Basically we add declarations for everything that will be reused by code extracted from the big translate.c. Doing so now, we avoid the intermediate step of using .c.inc files, and we compile as different objects. (We would have to do this later anyway). Slower, as it involve more series, but we can bisect. This series is common to the other 'extract XYZ from translate.c' series. Regards, Phil. Based-on: mips-next (https://gitlab.com/philmd/qemu/-/tree/mips-next) Philippe Mathieu-Daudé (7): target/mips/translate: Extract DisasContext structure target/mips/translate: Add declarations for generic code target/mips: Use FloatRoundMode enum for FCR31 modes conversion target/mips: Extract FPU helpers to 'fpu_helper.h' target/mips/fpu_helper: Remove unused headers target/mips: Declare generic FPU functions in 'fpu_translate.h' target/mips: Extract FPU specific definitions to fpu_translate.h target/mips/fpu_helper.h | 59 +++++++++++++ target/mips/fpu_translate.h | 96 +++++++++++++++++++++ target/mips/internal.h | 49 ----------- target/mips/translate.h | 83 ++++++++++++++++++ linux-user/mips/cpu_loop.c | 1 + target/mips/fpu_helper.c | 7 +- target/mips/gdbstub.c | 1 + target/mips/kvm.c | 1 + target/mips/machine.c | 1 + target/mips/msa_helper.c | 1 + target/mips/op_helper.c | 1 + target/mips/translate.c | 163 +++++------------------------------- 12 files changed, 267 insertions(+), 196 deletions(-) create mode 100644 target/mips/fpu_helper.h create mode 100644 target/mips/fpu_translate.h create mode 100644 target/mips/translate.h