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: 1412318 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=PN/ZQBXN; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4CqgFS17tnz9sW0 for ; Tue, 8 Dec 2020 10:56:27 +1100 (AEDT) Received: from localhost ([::1]:44264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmQMf-0003s5-Vs for incoming@patchwork.ozlabs.org; Mon, 07 Dec 2020 18:56:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmQM5-0003rr-NU for qemu-devel@nongnu.org; Mon, 07 Dec 2020 18:55:45 -0500 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]:40510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmQM3-00042o-Sr for qemu-devel@nongnu.org; Mon, 07 Dec 2020 18:55:45 -0500 Received: by mail-ej1-x644.google.com with SMTP id x16so22045349ejj.7 for ; Mon, 07 Dec 2020 15:55:43 -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=Gvs18lNTOf7oqfX3v+d8MKciAdxSfpM4ur478UH4gFc1IvRfhMz+nDH46XmFfA8sxy AuVnYpCoOf4AtMXO0iguKlmA9jQbo77OEgfmXrsoi9Sz168qVdrP19yWCsNPcJlqqNjz kIQl3SWdwDRsj57k5Nh4I2DhgGZhMxKexSZsG4viw8PNuFDxXDthkqDoxidh7OqcNXjR d1G3EowMKgP6howXItbk1s6sAz+tZc8fpymCYop2K4QnrQsgVvMGaP9WH1B26yMWt2cK g8dK1HmyEHMVq0hnh/xhrtoPhtRipAyHG0V3TPKogpUYZOpPvZW2BPNLtt2NLvmHhdct VdSA== X-Gm-Message-State: AOAM530N0Rdv2WKPoheb6VCUzihsN0T5Loe3SOjqbwEJx4VH8tCuaFM0 /rfEK2R1dNvQKuzx2aJxcQJYKehqslQ= 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) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.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 Received-SPF: pass client-ip=2a00:1450:4864:20::644; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-x644.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksandar Rikalo , kvm@vger.kernel.org, Huacai Chen , Richard Henderson , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Aurelien Jarno Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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