From patchwork Mon Sep 9 17:28:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 826636 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp2130959wrb; Mon, 9 Sep 2024 10:31:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW4bVdZJIHeD2VvcBTdpfMLtshRDRhnzpN2ZxJ5m4FU7LbauP/2dFomOepzmb9PPuE5ZDcyiQ==@linaro.org X-Google-Smtp-Source: AGHT+IFvvpY7vRrQ1DRF2b+1K5AKghyyC6k+9pXEUYHieEOfgORt/IMIY+D+rQwhj4MPlhio95ox X-Received: by 2002:a05:6830:6483:b0:710:ebc6:a1aa with SMTP id 46e09a7af769-710ebc6a378mr4480317a34.31.1725903093335; Mon, 09 Sep 2024 10:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725903093; cv=none; d=google.com; s=arc-20240605; b=EkHLRuZbkSTPKVqZqQVcZoqzUDDoZTyyXEz4N6lRpnoR5Tn/m9fumq6LiWHgIVkRV3 NeuqVCZLDK47VH8CSvzy56Xo1a9udy2zTMjPL3JYMgelOCxkERX1yhSUp18sNtho8vtc 51+G5Uugxabo0qX4S2yEew5QIf3U5jkLfvpSZzzYsWHwVVSYAyFpk/lsU0ohtkOC1e4B pSzPQpcLgE5Il3RosrQRX+BP480lZNzbjWwpjFcHvA1m91bUoWqC226fRRJmkFtzD2sZ vV5agE9cqwGZf0z9pqZD4ZVmivczDDan95uBdp0nW8hwBJ0/VpvXf/oDJ9qw2vE3rkxF payg== 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=dSotwpVP0Set/QuWa40e5OXb7QO8R2QJLi2VvBAPNm8=; fh=4bMsMJJHDmTQNFavmZaD/iTPOPK/LdH9YFdHoY+StpE=; b=LZf1ZH/Aumc5Wrq7qKAcAQuMBQ7uPCXOpYRC3cF7iIgdaR0SwrGOtbI/rlRkJHWDHA rfEcWTJOYqpNBD7RrCvb9XK6icMnCLVOrEYI/7cUkcYrFLMImKLTCToAaplthuZqvMn3 jWsRm/vv2x+23DjVCd96vU0QdMlfnG8FWO03lB6Uima9o8cCwL1gloyGuRqhktjDTmI7 k03gvW0tc/HKTaI0ei+LiuyHlLFR2r11x7mJm0nTMxPGKIrqQ6jATHRwhRKUHnYimvBn Y9nQFnE6E3htfFsxddYbaAR15peI6wRSLGa9mOo26kY64/wLfJcBPd6qzYWUX2z+A+42 kzVg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dLJr0qA2; 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 71dfb90a1353d-502c240bcd7si904339e0c.137.2024.09.09.10.31.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Sep 2024 10:31:33 -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=dLJr0qA2; 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 1sniC2-0005EF-Ov; Mon, 09 Sep 2024 13:28:50 -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 1sniBn-00049y-Df for qemu-devel@nongnu.org; Mon, 09 Sep 2024 13:28:35 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sniBl-00061A-9d for qemu-devel@nongnu.org; Mon, 09 Sep 2024 13:28:35 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-7178df70f28so3738119b3a.2 for ; Mon, 09 Sep 2024 10:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725902912; x=1726507712; 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=dSotwpVP0Set/QuWa40e5OXb7QO8R2QJLi2VvBAPNm8=; b=dLJr0qA2moSlIrBpbjvs02C06pmcjI4aPsnFspdaDMNsWfbKlUbc+YR5GaL/I4kai4 yjEVm6oymvz3F8SmmtrfHyCXdIVClfm2pGRAVKR5P5iNVSoz5rm/LIac6ZSnrU63gK+X 1NUuWvzZrP2p+4Y0F7RvDhU/edz5Zvihgr8nJYEYe+UWwjX2lPjaabG6crmmQKS8di2q V7FHk5g5jr3aX3XxHBKBIa/cZ8CMxqt8ZuU3u5fF3kqYoj4DsiJpNcpQqB2LfjmmlfR9 wbxP3Rx8BvyFOvmr9gs7lUNpeokxJ6cLcXtokAaWW8L9MK++S8z7p11rYKfTXLCwwnMw bHVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725902912; x=1726507712; 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=dSotwpVP0Set/QuWa40e5OXb7QO8R2QJLi2VvBAPNm8=; b=Qq84Wn2OsZoJQx+b8muXA7pHseRbKPZQQHY0e4mzO7TvY/ESgBwkuBVgDpFRyqKod4 MEzO70H7sR8Yl/OcQRtblgXK4RANoyQ0eRHq38lyoRuUXFjvHx0OaSbbcXYfOSas5R1T dd30JfnzkFOPZ8GJEOlssh6YSndXtSBNG3+swClW9O8oTPE+kF1/IVNDFpYCysaLKQsZ cVzoipVjUwzFCjHBpEx3mPc7VgvdFeR3stO6fBzcjFLoKG5k36sdbRBoJCAFUCHfl3Mf tEGJrbwdicFEpTZh/SxUwngSq3RmEFbAgVqBHOW3HFKTEzUEe5OradIjH/zNXXfrDd9Y T29Q== X-Gm-Message-State: AOJu0YzilmK24c4a4aaMKfOeITFHsvMG3xtXxwx0DQLTTJGXeQeOPIr2 ivY/j91KuxBpav2GHjdLUS9e20o611yFT/MBnqjOE0671UxpAKOmbO8wVIVSM6hmDfJhh4UyP3U S X-Received: by 2002:a05:6a20:43a2:b0:1c2:905c:dc2 with SMTP id adf61e73a8af0-1cf2a031b07mr7949432637.15.1725902911791; Mon, 09 Sep 2024 10:28:31 -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:31 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu, daniel@0x0f.com Subject: [PATCH v3 07/26] target/m68k: Invoke update_fpsr for FMOVECR Date: Mon, 9 Sep 2024 10:28:04 -0700 Message-ID: <20240909172823.649837-8-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::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.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 This instruction sets CC and EXC bits just like any other. So far we do not properly emulate inexact for the various rom entries, but we can certainly update CC correctly. Signed-off-by: Richard Henderson --- target/m68k/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index 423c663607..003318163c 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -4955,6 +4955,7 @@ DISAS_INSN(fpu) TCGv rom_offset = tcg_constant_i32(opmode); cpu_dest = gen_fp_ptr(REG(ext, 7)); gen_helper_fconst(tcg_env, cpu_dest, rom_offset); + gen_helper_update_fpsr(tcg_env, cpu_dest); return; } break;