From nobody Sun Nov 24 14:08:02 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=1723356288; cv=none; d=zohomail.com; s=zohoarc; b=De1FANt8BbjFF6n7VSzx/kRJphz7BZPqbAdYY0IA1L8zw/XoSETtyoqBYOdeQizHPzj83rp3FeMgJTCWz8kfZwctBr17teJkiMOq4Y4PTJJx5/AtPeW0u2A8gLV1R2Ja/MbfzPqyrFzS/p48+AJmcMGvkTcFI+dzd0yFMXG+Llo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1723356288; 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=VzItYijJPaMNqZz+qP0d2nu+dmwVfFfcXFnVA7iYnHZdEW4buTnri+WIg6WmWmilpTRYkP8IjGBWc6349hyVD+dpJnJ4LawKhwKDwmXK5MDo1up1Bmr/htZn/XhYgX+K+cjy3TCZKDb2GqtEZ9PMumCKJUJ856cinGcBhV8NCho= 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 1723356288048251.70078078281188; Sat, 10 Aug 2024 23:04:48 -0700 (PDT) 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) 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) 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-Google-Smtp-Source: AGHT+IGf64F9ZThs7xHxoG80IvGuO2h4TLyt+as2TJuI5DMdwP6xdg3sBjOOtPFdQEDn5lOP6c1PyQ== 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) 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 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::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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1723356290116116600 Content-Type: text/plain; charset="utf-8" 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, }; =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