From patchwork Mon Aug 12 00:44:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 818563 Delivered-To: patch@linaro.org Received: by 2002:a5d:5711:0:b0:367:895a:4699 with SMTP id a17csp1156825wrv; Sun, 11 Aug 2024 17:45:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWuOWikrc41dKAXLUrPqOsJQyRX/EFcIFNEkHjEvVC1ZGL+zuODzeSAV4FO1KJ+IFHDzdlg1upQKnKcCYZb622L X-Google-Smtp-Source: AGHT+IHZZ9NeMAlbpdqdlDU6bdAuGuZdMcQzfz8CGpEXgQqoC2DYgaNWIxqjKTSox2RZzCSFNPgz X-Received: by 2002:a05:6902:15c4:b0:e0b:b2d6:f551 with SMTP id 3f1490d57ef6-e0eb9a3372amr9919079276.37.1723423526523; Sun, 11 Aug 2024 17:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723423526; cv=none; d=google.com; s=arc-20160816; b=EhR3QDE4Sx5snL6UxQYv3NlCvzGjjkyZD1+BOWCLAkOJ/ochCoNe+QyLGg60iyrsjg tjTB5tj+aVlESZjgXPv/2biDky6prLxyL7TYZgAE78kpR/4c+AmpeWz3MACmNZuS9WxE B56PX3Bz1rmjZPYFERttJy94c16QkqyYK8Se56sIMEZlwGEjIdacDhzfaLysJ9WluGEo W+d1/QE/vqtIqmAoPG8Ro1ZgCJu+tMdpFlK3D85VatmwhTRt5DAHtzTAZUkjEznVZgKy L9b6PG77YMTDCiWmW4nkmCBTOVwftlPgGYjFNnrdR1RLrMLqVaadBtfQa54gNxq8Knfv 7tCw== 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=ZR61ShIzSx9N9mgd0W5BiT6ZYUgl6b6cTzUgaREExbHv4KlSb8P5EDYzN3AxPCYmaM s/LdNcp+Sy6FLInT6EYzzANtSgi9lodVs2QA07Ms0E6VZVHQlBaBiP22vptYPvgC0cmB pCPT2lQGJmcu0hoDyvaEKYGq0jdpZS4xRkPq+WdaUreM/siOM2O1LZilrIbQsnpnHzIJ 6AypP/j1S8lqnIgYYDCa3pho+MTBzTjNbV2OErex005rkIuJCQ0vQUTLGSLdmtrTekB3 6AGrbBDy2h4JKlgCRxg+YHT1qdozetTWZ9rW7uTSQZ3B9tsXjXpdAFuXRRU1+40eAg9O OdYw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Il7YuguI; 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 d75a77b69052e-4531c2ae3e8si50484311cf.620.2024.08.11.17.45.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Aug 2024 17:45:26 -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=Il7YuguI; 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 1sdJBK-0003gO-F0; Sun, 11 Aug 2024 20:45:07 -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 1sdJBI-0003a4-QA for qemu-devel@nongnu.org; Sun, 11 Aug 2024 20:45:04 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdJBH-0001ev-5O for qemu-devel@nongnu.org; Sun, 11 Aug 2024 20:45:04 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-710bdddb95cso2127070b3a.3 for ; Sun, 11 Aug 2024 17:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723423502; x=1724028302; 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=Il7YuguIHrWFNDEpQjhmPZVqKbKblsY5aE47NOGJjkgSSzYsxPX34nuKQbdTQcQkH/ WRsY6Fj1qqUWjNOEN/5R/HpKcU8VRV92Tv4IRhMNfePo5ESvbacb0sbXYGNUl76S0ksf WKTUo5C3f8KlmcbniIL/QCgKMx3HhvtpBB+4Pq7A5gk3or0I0egZl3Q826ykMslukpuK C10XyVwrsVNjcxqg2LllM0vqEZAZhYaQo8ZQPBwRT7Rj4Bwrhj4xcGQhnFmR5YODjieT QPhkknI3jaTT1VYCGVuQ5fBrikb6+B5FkHvs9WIqD/CSEfJqP4JmHYKWqYNNsps6F1uH GQyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723423502; x=1724028302; 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=LpysB25hxep4+6ObhTa3ZysgZrPo6UUvYBqk3ArFIVCUISB/SRcPbSkT9woZcj2DNb Xd6lMqkDBV31ETLQJAhbPZxRMlXE/T+V8QzrkBSSP3PXLIknD7e0f9E4EXaKLsqW0BD7 jjAZPVEg/mM3x/0EszYj0Anc9mV3U78IOg9q8fJNuuaZJdfm0aqh3qkCX70uRb2PcHFW hc3BWuzMxOMr7SShhH73+jF86/QF3ZryVMT73SIFYkU37BGismgfGI42TxDAOrchPhF5 5eoFapBK4ZfFttDNlC5ZaIolm4JqyFB4pPzaRrARjfqGKsdH/GuNoBjR7m5vDbuGtksG 3m5g== X-Gm-Message-State: AOJu0YyiLmNdecLKRWE3l3gQBK6BFKd8ljdg8muFLiLSHBpK+WTQsPI4 CsItpWTWAzFzx8rSWaPjpaLjmejkDFvP7TvwDmQAiSCDgBQNMAKzsNbnRL5Ycqqph8EJmdFybZd H4xQ= X-Received: by 2002:a05:6a20:438c:b0:1c0:eba5:e192 with SMTP id adf61e73a8af0-1c89fd220damr6173779637.27.1723423501556; Sun, 11 Aug 2024 17:45:01 -0700 (PDT) Received: from stoup.. ([203.30.4.111]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-200bbb3b758sm27089435ad.257.2024.08.11.17.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 17:45:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH v2 1/4] target/m68k: Introduce M68K_FEATURE_FPU_PACKED_DECIMAL Date: Mon, 12 Aug 2024 10:44:48 +1000 Message-ID: <20240812004451.13711-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240812004451.13711-1-richard.henderson@linaro.org> References: <20240812004451.13711-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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, 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+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 Reviewed-by: Philippe Mathieu-Daudé --- 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); }