From patchwork Mon Jan 4 22:11:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1422263 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=PcKsMbv0; 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 4D8qcv6LNzz9sTv for ; Tue, 5 Jan 2021 09:12:47 +1100 (AEDT) Received: from localhost ([::1]:46300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwY5l-0006FZ-PO for incoming@patchwork.ozlabs.org; Mon, 04 Jan 2021 17:12:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwY53-0006Dj-5U for qemu-devel@nongnu.org; Mon, 04 Jan 2021 17:12:05 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:38144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwY51-0007ku-I8 for qemu-devel@nongnu.org; Mon, 04 Jan 2021 17:12:00 -0500 Received: by mail-wm1-x331.google.com with SMTP id g185so646586wmf.3 for ; Mon, 04 Jan 2021 14:11:59 -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=ZD26O1IyzYzm5t/8wGvrcGIUsqNCSgpLU8lSrgIgrEQ=; b=PcKsMbv0idFTuAbjCgTf89iswwxXUgTHr+hFo5TQdEyDGcV0c5Jdesai4ny3OxkJZE xiAFaj711Bzcnv5Dm40ZBNxCXTpVXWNmIGDluvH5gMKjwJXs60ogQeZRRVwg0rD9D605 +Alzrm+o78uiFWVMJE24ybaMnvzl942IaI4mDyVVcj29VyXte8DcXftW2H1DfDXXYiBv ZFQ9aRy172oAppsxRQWbZlLm6Gxmbkte6s8jgv3AhuYnz4rdoJQwaMZKHi9sT0GN8BLe MN4rgwrmQ7oUmnhyU2JEuCnl8H9b8OQ6GNmJoBkEyYhLbhiy6EQyW3fy4phZPtVDWY0d YVzw== 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=ZD26O1IyzYzm5t/8wGvrcGIUsqNCSgpLU8lSrgIgrEQ=; b=mdA5TsT5sop8UMbALCkHgN7Ya2tdJR5scG+hZ676S4KKcPX+nxLYQGjEsq8yeYY+kH bcMxYcoyg5oq0mHY+lEqcDUlto04eKEZVa664PldKLYXDf2UAycA6Mc8DV1y6hcAWa6l 2pnd385vx8nJ+paXSomkJ8oQKLljzamQEqn5yyAmpjQGkQHaVymOabKn0HMX/MyQhr80 3BCqI75RsHBqXg6Ind3y6LxOJSg9AGJeG7pvFT7h1qUxe6rp0QOldgNIanJAxlDjHho2 HDriG+QOvmcZSn5T/pO+fIsBYzkLw6AqIvhSQweQ+Hz30xc2cSlMOW1pZTj6poI8/eX0 0p8w== X-Gm-Message-State: AOAM533xb/oOfcOs2wuyQFeR5fpc8Eb0I6fkqvoVx0hgAmTrIA2rrWqU jLrryha3HWvZnm0gcpOCLFbpVOmR9N8= X-Google-Smtp-Source: ABdhPJz3IuKE5EQFN0lWI4+ZkvhZKfu0jXUEiq8sVG8709mhJeT9R5twspPTVTpiKpUO1t0zqD9hQg== X-Received: by 2002:a1c:6a10:: with SMTP id f16mr798024wmc.106.1609798317593; Mon, 04 Jan 2021 14:11:57 -0800 (PST) Received: from x1w.redhat.com (241.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.241]) by smtp.gmail.com with ESMTPSA id b83sm1247255wmd.48.2021.01.04.14.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 14:11:56 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 00/15] target/mips/mips-defs: Simplify ISA definitions Date: Mon, 4 Jan 2021 23:11:39 +0100 Message-Id: <20210104221154.3127610-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::331; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x331.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.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, 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 , Paul Burton , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" v3: Replace ISA_MIPS3 by ISA_MIPS64 (Richard) v2: Do not use MIPS3 for 64R1 (Jiaxun) Missing review: 1, 3, 4, 5 As we don't need to duplicate 32/64-bit ISA defititions, this series remove the duplicated 64-bit variants, simplifying the overall. Regards, Phil. $ git backport-diff -u v2 -r ..v3 Key: [----] : patches are identical [####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only The flags [FC] indicate (F)unctional and (C)ontextual differences, respective= ly 001/15:[down] 'target/mips/mips-defs: Remove USE_HOST_FLOAT_REGS comment' 002/15:[----] [--] 'target/mips/mips-defs: Reorder CPU_MIPS5 definition' 003/15:[down] 'target/mips/mips-defs: Rename CPU_MIPSxx Release 1 as CPU_MIPS= xxR1' 004/15:[down] 'target/mips/mips-defs: Introduce CPU_MIPS64 and cpu_type_is_64= bit()' 005/15:[down] 'hw/mips/boston: Check 64-bit support with cpu_type_is_64bit()' 006/15:[0004] [FC] 'target/mips/mips-defs: Use ISA_MIPS32 definition to check= Release 1' 007/15:[0004] [FC] 'target/mips/mips-defs: Use ISA_MIPS32R2 definition to che= ck Release 2' 008/15:[----] [--] 'target/mips/mips-defs: Use ISA_MIPS32R3 definition to che= ck Release 3' 009/15:[----] [--] 'target/mips/mips-defs: Use ISA_MIPS32R5 definition to che= ck Release 5' 010/15:[0002] [FC] 'target/mips/mips-defs: Use ISA_MIPS32R6 definition to che= ck Release 6' 011/15:[0004] [FC] 'target/mips/mips-defs: Rename ISA_MIPS32 as ISA_MIPS_R1' 012/15:[0006] [FC] 'target/mips/mips-defs: Rename ISA_MIPS32R2 as ISA_MIPS_R2' 013/15:[----] [-C] 'target/mips/mips-defs: Rename ISA_MIPS32R3 as ISA_MIPS_R3' 014/15:[----] [--] 'target/mips/mips-defs: Rename ISA_MIPS32R5 as ISA_MIPS_R5' 015/15:[0018] [FC] 'target/mips/mips-defs: Rename ISA_MIPS32R6 as ISA_MIPS_R6' Philippe Mathieu-Daud=C3=A9 (15): target/mips/mips-defs: Remove USE_HOST_FLOAT_REGS comment target/mips/mips-defs: Reorder CPU_MIPS5 definition target/mips/mips-defs: Rename CPU_MIPSxx Release 1 as CPU_MIPSxxR1 target/mips/mips-defs: Introduce CPU_MIPS64 and cpu_type_is_64bit() hw/mips/boston: Check 64-bit support with cpu_type_is_64bit() target/mips/mips-defs: Use ISA_MIPS32 definition to check Release 1 target/mips/mips-defs: Use ISA_MIPS32R2 definition to check Release 2 target/mips/mips-defs: Use ISA_MIPS32R3 definition to check Release 3 target/mips/mips-defs: Use ISA_MIPS32R5 definition to check Release 5 target/mips/mips-defs: Use ISA_MIPS32R6 definition to check Release 6 target/mips/mips-defs: Rename ISA_MIPS32 as ISA_MIPS_R1 target/mips/mips-defs: Rename ISA_MIPS32R2 as ISA_MIPS_R2 target/mips/mips-defs: Rename ISA_MIPS32R3 as ISA_MIPS_R3 target/mips/mips-defs: Rename ISA_MIPS32R5 as ISA_MIPS_R5 target/mips/mips-defs: Rename ISA_MIPS32R6 as ISA_MIPS_R6 target/mips/cpu.h | 5 + target/mips/internal.h | 8 +- target/mips/mips-defs.h | 46 +-- hw/mips/boston.c | 6 +- linux-user/mips/cpu_loop.c | 6 +- target/mips/cp0_helper.c | 18 +- target/mips/cp0_timer.c | 4 +- target/mips/cpu.c | 6 +- target/mips/fpu_helper.c | 4 +- target/mips/helper.c | 12 +- target/mips/translate.c | 620 +++++++++++++++---------------- target/mips/translate_init.c.inc | 14 +- 12 files changed, 370 insertions(+), 379 deletions(-) --=20 2.26.2