From nobody Sun Nov 24 14:32:23 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1723423526; cv=none; d=zohomail.com; s=zohoarc; b=H1v0xfmA6dx+jS1rkZ0b0cfKKyIQwKil8Q22ZQCEbtRnQqC+8t4oAx4jxHTNFcMCDYy//EV+QcqM6TQISaf7ThlSlw8sDf7BWWsYO4d49CXQMnwCig1OoBQalzOsUHaujZKDfcsnvAa+IbZARpItuedbuKY2KQlJa5WVka9bCP0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1723423526; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=aG6Wn5JGKqOVYo7oiDwgDKG/Csj9cM6r0yseNWt8qsc=; b=WCotp71xnOPvK5NtIuRrlWxfzo0O3E+W25o88S0tLBn1GkhcNaXLeE/T5l53BUz03TDD0glhTnjsLXZnfSpVeBXUC9AjavGXhyVP4JuGy1nN0sE0phtOFdn/TwU9gTGib6CKoBLoP6PDbTWmxk9CAz66kgcArM60xv9q1I5+obc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1723423526861567.6333691634372; Sun, 11 Aug 2024 17:45:26 -0700 (PDT) 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) 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) 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-Google-Smtp-Source: AGHT+IHeow8Yi+zSQV4Vu8N5MmUbeeT/MdKcq8/nw7auLPn8Q26aylgotDXYvb0Kmoo25Z/zj7z4zA== 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) 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 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1723423527410116600 Content-Type: text/plain; charset="utf-8" Set for 68020 and 68030, but does nothing so far. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- 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, }; =20 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); } =20 /* @@ -224,6 +225,7 @@ static void m68040_cpu_initfn(Object *obj) =20 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); } =20 --=20 2.43.0