From patchwork Mon Sep 9 17:28:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 826643 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp2131349wrb; Mon, 9 Sep 2024 10:32:19 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXA4zwK3sh85buk9OduN+SX8sjggnuA3CucKJyK4kgYPdH+1yvTWrBmr1txMcYuB8AkL5nz5Q==@linaro.org X-Google-Smtp-Source: AGHT+IG4L12sD1RLcCSjgDn1WcS50gtl5+mxZGGyWPuvve1USDk1rmj7DNtnSa+CTbqNHEICneHY X-Received: by 2002:a05:6214:418c:b0:6c5:540d:2048 with SMTP id 6a1803df08f44-6c5540d20demr9347336d6.8.1725903138971; Mon, 09 Sep 2024 10:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725903138; cv=none; d=google.com; s=arc-20240605; b=SCZZAOE0pVEKNQc0M+c0oaVFxgJ5bybluC/PcJYqWpDTfxuzNUxKTQk3uD1v4p+KC6 073bKCJDoK0jqH5AsYCPez6phxU102PsVNqv7RzyisTC8be0ZR/X4d9YOV58TtnWz3Bg D4I4c9HwS9Qq7zI7o4pRkCAPzPoC/pSZzE+BD7tRGtEI3xgbtZZyb9FQ8kAlnpJ4opWm kZ5xhRblJoYaT01h6AMlm4lUvWK2RZl6hWMGFARFEeACd9DJt4jNge4fnxH5JxHDrD78 RTqRNgwqnh5ZaWwGxKCuDOoqd5DDnkGDWmQTH0M3FfmyJevqn71NaGgv9eXFVnLseX7r asSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=x6Arbealq7Du7diM22GihreKOWvo4phbCNo2pJpa0rw=; fh=vcwsOoqbz6OOwV49wjn5grcThaa1ddCD12N2st4CmAI=; b=fIaq29r+5KodgfpfyG+jM9ngBAXNkEQZlHGV0MmmJjoaWzAYsS9sAUb5xtCKnQTzAF /izNurkXBrZO/UAVyeB1ub982Fyw2xG5RCgBjAZXlRpEWJNnc8lW1x6AjwUsCDbNPvFi bvm0QNdiVnL9xvj8+6H5okYpICpbxH9urymKI0xKznwesfv00+oOd9+FXC5qLKODQ9yj oeZypASZe4DZ8SIyLNLjs9rLqq1MepvYmpr9vGU7hxPtrwjgYAvSyOjROF9DSWH4IIBW aMHi7FLyza6OnQo9+hpWlDzu4CpF/BGggzeNLseab+u8BKnRcZs2avrj9Gp3ICCDUS0D 1YlA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PkLPutRM; 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-6c5347821dasi60086686d6.334.2024.09.09.10.32.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Sep 2024 10:32:18 -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=PkLPutRM; 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 1sniBt-0004Xn-BF; Mon, 09 Sep 2024 13:28:41 -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 1sniBo-0004Fh-QT for qemu-devel@nongnu.org; Mon, 09 Sep 2024 13:28:37 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sniBm-00061F-1U for qemu-devel@nongnu.org; Mon, 09 Sep 2024 13:28:35 -0400 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-205909af9b5so35747515ad.3 for ; Mon, 09 Sep 2024 10:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725902913; x=1726507713; 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=x6Arbealq7Du7diM22GihreKOWvo4phbCNo2pJpa0rw=; b=PkLPutRMFk0MuN6tqpXDZOpgVePGUae1ML6g/1KNrF5uGG77KFJqGbgyTKYgEv47Oi iNBIUTVz++1BlTn0Q1q5Mn/ETdc6MgHvteT8+gpQvtRV5dFhEyS2YGzYjv98wZSkn9Zf VTkIj16jwBme8Hy0JPxdbSfAfkv+WMMpJtsQ0jvikhJcwWXk0qnz6CoaK1ff30Xt0tDO APwsn4ZChZr1vB6hD1/ZVk4BegPRS3APqJ67LHsuprAEu4IkmmsNSHGBAP1/WvGbJY+s 6zo2voZnrVKt0PRbwHsAZLsM9Ek1HmqyIyCs5q2Zt+cUHkIdgaIYwlqdqiUVMAt7AbOu jKAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725902913; x=1726507713; 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=x6Arbealq7Du7diM22GihreKOWvo4phbCNo2pJpa0rw=; b=B2XQPtSRagH3uA+45mEHZf4hM29SNYT0navehcPs6c863kSxG2b2SnTjaE//wQQ16W CEn4QF11BD3inPbJctR5yjqM86cBq9YT9LAnzm0YscS2wsrO0sZSBdWgMOz8bV3TuTt6 +nBs7OWYec2zzbvgLcQmNFI88VJcWBWBDzFywjR+h1Eeol5ba0OmHhuMbScX+mV4CIkj WK9qlp28KOp+h6IYLQNZ631svyu3bdg1SFF2Cu8Co3EtcFmkgpjDz8Ara7q1tZCmx8FK bTrp3nZjYAnhoiubc59J/P4l9r2O2QCjtz4pUoTrWV9zHUd93tR6v1spPiwNymqItXIc xx9w== X-Gm-Message-State: AOJu0YwuBuVcObGLnbNW7tB3S3sCz0fbsqRIMRhFK0vigCoxO/nO5M2h fdxb1EhEpC+rGSygfR4WzKlRu9rfsrihxArhE7GJ9soqZK9OwWtfXX54PRTEYYhI7Yu2zhdnBEd D X-Received: by 2002:a17:902:f68b:b0:1fb:62e8:ae98 with SMTP id d9443c01a7336-206f04a10dbmr159117575ad.3.1725902912704; Mon, 09 Sep 2024 10:28:32 -0700 (PDT) Received: from stoup.. (174-21-81-121.tukw.qwest.net. [174.21.81.121]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710e11e02sm36539875ad.14.2024.09.09.10.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 10:28:32 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu, daniel@0x0f.com, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v3 08/26] target/m68k: Introduce M68K_FEATURE_FPU_PACKED_DECIMAL Date: Mon, 9 Sep 2024 10:28:05 -0700 Message-ID: <20240909172823.649837-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240909172823.649837-1-richard.henderson@linaro.org> References: <20240909172823.649837-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.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. Reviewed-by: Philippe Mathieu-Daudé 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 389cd1f364..b40c5b64fe 100644 --- a/target/m68k/cpu.h +++ b/target/m68k/cpu.h @@ -572,6 +572,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 8c28db2e95..188afc57f8 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); }