From patchwork Sun Aug 11 06:03:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 818420 Delivered-To: patch@linaro.org Received: by 2002:a5d:5711:0:b0:367:895a:4699 with SMTP id a17csp906406wrv; Sat, 10 Aug 2024 23:04:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV5Sdviqg8DWzZNqfqXD376OF56O8SAgVOEI6rP9gBT9M61oFk2rE4zwPrs9e2DtnPNsBlCt3PQtemRhsLXAyg2 X-Google-Smtp-Source: AGHT+IH9FrSNdRGRdCVMc132RtwuF9IbL2oSUtz/Pd8rmBgzQgDvAUU1rHhoHhvKg4XSlJhPEdmo X-Received: by 2002:a05:6358:5f03:b0:1af:4626:7e42 with SMTP id e5c5f4694b2df-1b17719595cmr794124455d.25.1723356287742; Sat, 10 Aug 2024 23:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723356287; cv=none; d=google.com; s=arc-20160816; b=Q8ZeHjuZKuQFX6UO5qOPsRq+kB5CxTN7cwlOKsg6Ukzhd39QvJTgRKv8Efnmhn4LyC 6k6Im5YiOMCsFYTPS8b6pUPXp0Xl85dIj58HLzdvwwokYWLm0kVP1ER2tMJKhd58bxa+ lzVhZD8Jp0OpbQ/to6+lFuTrm83fimJefp8HTXLg+ufcQa0AUzll+JcIXE1F9cttywMl j9zR+pII2AoUE92vNonzWAckBsigz4OTPEg+FFd7Cni5r4BJaODAlq2rAGR4pTmVHZJj /p6ikPkszkZzy1/f8k2wqS3UfVxxoAKN3wgLqsVd0206eaQ5ZlXloivJ3MsDC9Z6ojWx +f9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aG6Wn5JGKqOVYo7oiDwgDKG/Csj9cM6r0yseNWt8qsc=; fh=2uesxoqJjyRqtkk3yTfcnBSFtAUtxw8KzQZeBUAogpM=; b=N+b6VdvDWSgq30S/vrMuZJusezTGO9vRFPgiYuBwbbL0kWWfFKN2GuOuPjs4fL4xiD zZTZyN1rzHCw2qV7nRvPOBAd5xFMU2ARnhfTHlK4Flak1lLLxYVJVo57of9dNCyioU2x TP6Z9ThiEAv1G8f+SU33PTn94p4S02xTTE+vIKmE8FkWQyTWTyWCyp8fve15RguUO8eh by89JGmcy8/NdWlyJZfmbsS/g85HOF07wVea1suKGUGp2pIyAzfEuQimJcDFlmuxm4wy Wp/xzC42KUFR5r0JU5je59V9whWXivHHXq3IYy/giCZslr2MlDW4mg2r7euoHeTRDbok yZWA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QLd88T+z; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6bd82e58c75si33517056d6.351.2024.08.10.23.04.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Aug 2024 23:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QLd88T+z; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sd1fw-0001p8-9I; Sun, 11 Aug 2024 02:03:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sd1fv-0001oC-35 for qemu-devel@nongnu.org; Sun, 11 Aug 2024 02:03:31 -0400 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sd1ft-0003Js-Hr for qemu-devel@nongnu.org; Sun, 11 Aug 2024 02:03:30 -0400 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3db1657c0fdso2382545b6e.1 for ; Sat, 10 Aug 2024 23:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723356208; x=1723961008; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aG6Wn5JGKqOVYo7oiDwgDKG/Csj9cM6r0yseNWt8qsc=; b=QLd88T+zwnKINYetrJd1utXJT1JhDHbL+cASaooMERPTE6Kd1cB9+KrsC8cnac4rkj gySqF6xNIgYx0nllP6yr4qUL/hqm/rG3cimTMJsdtKoVJJsuUkbwMF9hFXhSKwrd871D HIkKb5VQ1Z8t442SnX9bsb2BjvKWxQW8tQG5gl7qx8pCrzluR5UNTUIZDUpGqKVIU9qF pRDgrHC2ST6gngdjVK+tDLUC1z+Q8j+WbVg6dUVqCf9+YHU+PnI31Iq6sev9EgK1gxMi r2mihPR3XW+1y8a6be4OHLlrifbSsUVVcZFjcXuXml061e/4VSnDEIC034tZQ4EL8tYI I6Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723356208; x=1723961008; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aG6Wn5JGKqOVYo7oiDwgDKG/Csj9cM6r0yseNWt8qsc=; b=R+SbP7dryCRxzP7/uMHHWwjn1SKnNL4HqLIqb4n9zbCPd5UVR27rFZaGMEQFSd8I+d 9K8oFFRgRwoSZ+pTkfSlKKt2BO/nZ8ecPkQI1dsKjRI9im2h3LUFstEq533pIroxDJGd ksXMlMVcMX9NJqvMX9AgQ33TmK++2ibbXCNWJXblYnen8Nv8jN05ykjqG+vWw4bZbkJG 4JiVz+FSK0D3xOiq3OyEdIn4ZluFj0zOtr/WVnhW2EiGdxd5zwLp1MyrEXyZo2KGE2XS zZgRW33mPznX15roh7sFIR6wWtbsXk+rP5G6KR9YWyVmuegzOh/9flsqJnyiyek0K46O PsjQ== X-Gm-Message-State: AOJu0Yy/6ha6G032GM33VkCBSwWicolCH8SFeuRTG3bI8v86BjxYbLcr OLeEtLREgNLpVJlkcl7qEwNPgS21+HPAm3dTaYTeQEotKrlSlTkPljyYFOvfa4Xh/pctKaiBhqb 5dKFxEQ== X-Received: by 2002:a05:6808:1993:b0:3da:b341:bbbb with SMTP id 5614622812f47-3dc41691784mr7637931b6e.26.1723356207651; Sat, 10 Aug 2024 23:03:27 -0700 (PDT) Received: from stoup.. ([172.58.106.160]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3dd060b5388sm835591b6e.43.2024.08.10.23.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Aug 2024 23:03:27 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH 1/4] target/m68k: Introduce M68K_FEATURE_FPU_PACKED_DECIMAL Date: Sun, 11 Aug 2024 16:03:10 +1000 Message-ID: <20240811060313.730410-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240811060313.730410-1-richard.henderson@linaro.org> References: <20240811060313.730410-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x229.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Set for 68020 and 68030, but does nothing so far. Signed-off-by: Richard Henderson --- target/m68k/cpu.h | 2 ++ target/m68k/cpu.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h index b5bbeedb7a..7114324e4d 100644 --- a/target/m68k/cpu.h +++ b/target/m68k/cpu.h @@ -553,6 +553,8 @@ enum m68k_features { M68K_FEATURE_MOVEFROMSR_PRIV, /* Exception frame with format+vector (from 68010) */ M68K_FEATURE_EXCEPTION_FORMAT_VEC, + /* FPU supports packed decimal real format */ + M68K_FEATURE_FPU_PACKED_DECIMAL, }; static inline bool m68k_feature(CPUM68KState *env, int feature) diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index 1d49f4cb23..65058dd052 100644 --- a/target/m68k/cpu.c +++ b/target/m68k/cpu.c @@ -182,6 +182,7 @@ static void m68020_cpu_initfn(Object *obj) m68k_set_feature(env, M68K_FEATURE_MSP); m68k_set_feature(env, M68K_FEATURE_UNALIGNED_DATA); m68k_set_feature(env, M68K_FEATURE_TRAPCC); + m68k_set_feature(env, M68K_FEATURE_FPU_PACKED_DECIMAL); } /* @@ -224,6 +225,7 @@ static void m68040_cpu_initfn(Object *obj) m68030_cpu_initfn(obj); m68k_unset_feature(env, M68K_FEATURE_M68030); + m68k_unset_feature(env, M68K_FEATURE_FPU_PACKED_DECIMAL); m68k_set_feature(env, M68K_FEATURE_M68040); }