From patchwork Thu Feb 16 05:45:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 654021 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp178504wrr; Wed, 15 Feb 2023 21:49:57 -0800 (PST) X-Google-Smtp-Source: AK7set+5uH4hngIP/Eaf+lZAi8LGFeDOvTS+A0R1qdlHF3DA7TsuMnWJ/RxrvIZk2xRLXuambmm8 X-Received: by 2002:a05:622a:1ba4:b0:3b9:b112:e86b with SMTP id bp36-20020a05622a1ba400b003b9b112e86bmr8145111qtb.13.1676526597664; Wed, 15 Feb 2023 21:49:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676526597; cv=none; d=google.com; s=arc-20160816; b=mYGuUe6sTHE43FXGcDmSkM7ufjaJEhUkN21lngrTCKCm8F/hrrnynGMWhaBtBh4WCr VGyP5OrG7SCJxEdhBtitF847a6y0jwONX5xWI13woQeyaKt52/8GReU5GpIFPjV1im22 bHAQbCO6maL+ZyYtGKIgrvOMtRX4ySCnxg03F/DMJgo/JMJ/OkGq1bPLxs+1NKckyg/D Poo1X7EVr8mxTur9jQsFmIH0tNX4vBDswnHC8K65/26mSp3jbG6zVbwR83k66WXCpnRz 0VN7yhLDmWrioaCIeBhL3Y/WpD0/UzgYz45aQ8Lx/BaHaZI47NcMEeQhWi8IUmDlsuui 0Zgg== 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=ADJUDCuJvLZTfwvvTitHGj1Ym2hlIeqZfcpR8Lo5PkU=; b=ahCKW5lgF/gOB11tHIIdOlZC+dHCxk9GxCYCDJNShjYZAlp7txSus5ovow1j1dYCCl Xxp/UAUmO10hWyAziiu3AObA7mY+/0GL8seuOpBBmhyNmNyIGqgyCDR1yL43MYZ0Hg35 J+OSdS6uXm0UVhGdcQKZmQVzaPWrhpwi7b1cFqN78xV3q76SsW+Hoa7eDilehWIHD7SE qsjA08IVqWHJR7a1vnFmpeVLoRwpv1lM1kCebDiRD8WuLr5n7lNpi5nP3XBHNKIj8eZA Ay/qdA/CCxWC0afOC+RheJ6ysZCb3ZmYJumUc2ZqfuZIg7nKxKUmKhDJEXZvajHWYDxs EfUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eo5FFjz8; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 128-20020a370a86000000b0070665b358ebsi714836qkk.139.2023.02.15.21.49.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 21:49:57 -0800 (PST) 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=eo5FFjz8; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSX8D-0004ZI-B5; Thu, 16 Feb 2023 00:48:35 -0500 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 1pSX81-0004M1-Ke for qemu-devel@nongnu.org; Thu, 16 Feb 2023 00:48:22 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSX80-0005Rs-3S for qemu-devel@nongnu.org; Thu, 16 Feb 2023 00:48:21 -0500 Received: by mail-pj1-x102d.google.com with SMTP id oa11-20020a17090b1bcb00b002341a2656e5so1115601pjb.1 for ; Wed, 15 Feb 2023 21:48:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=ADJUDCuJvLZTfwvvTitHGj1Ym2hlIeqZfcpR8Lo5PkU=; b=eo5FFjz8yLATRAi82bpjJ1onqV060Mw8G7Uyq7HZfRGzRbuAu4VIf+blALn1G7Dq5n Qvq/ECAVc9jZOBE1ODnOgsPT4NIK1tJm3WJcYadYAX7fTfs4KzIEoxf0cNhxhpC23aST zAvPJRsX24qO4rWAbhtG7L14OFwwgJUJFWPXI+STuTuEh1kB70IIONS/T0SHSJQWBjpv Twz5XkopgTS+P9kFzTLlspVzYa16EqOe9TNlkt1pfATSo16jIGND6IJ26zNeflzl3xZj +cSys+ZdrY1kCQwcWN6EJjKZ6ADsZQ9k4THf9+padckFQgT6aaO0ZBHFoHSDKzYcq/W6 AIcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ADJUDCuJvLZTfwvvTitHGj1Ym2hlIeqZfcpR8Lo5PkU=; b=AEmPOrsmQhGAnNrejQ+bVDGFIwv2lACFWc7iWViAumiSFMtv3UcIybgxxURyesy3KO 8E/Rm9YeuVv3Y421vqKH7r0swfyvW1o3+5iBqI3O7hHv8zqqh4Gu7BPSM4VhsX54eBXl F8c3NuuEY8YcS8jiGI1EBJu4OJJ+scFXDvj3hT6Um70tXor8XI0V0PQTxqAzTc3a5jvZ NtvodaE97HB/m14axBwo1vxLgfAtTYt84K4r7Thvkkx+9SIQGyK1PVPMccWnl2zQnHsS NCAzgxiRFKgjpJRb2aIXgjmg6rn2eAqP3cTtSJREErwVSw6jbhfSkf9aSoHspU9YvXVC orCw== X-Gm-Message-State: AO0yUKUEcFjPU6RwtpJPh9t6In4FjnaU6WncBK6VJyiwmp3C4PtIzpLc mvErD+qs5nlkyfSYBbSHa1Lt2i+BfliNQubYAnE= X-Received: by 2002:a17:90b:1e05:b0:231:bb3:b36c with SMTP id pg5-20020a17090b1e0500b002310bb3b36cmr5691012pjb.42.1676526498840; Wed, 15 Feb 2023 21:48:18 -0800 (PST) Received: from stoup.. (rrcs-74-87-59-234.west.biz.rr.com. [74.87.59.234]) by smtp.gmail.com with ESMTPSA id j184-20020a6380c1000000b0047917991e83sm358034pgd.48.2023.02.15.21.48.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 21:48:18 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH v2 13/15] linux-user/sparc: Handle unimplemented flush trap Date: Wed, 15 Feb 2023 19:45:14 -1000 Message-Id: <20230216054516.1267305-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230216054516.1267305-1-richard.henderson@linaro.org> References: <20230216054516.1267305-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.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 For sparc64, TT_UNIMP_FLUSH == TT_ILL_INSN, so this is already handled. For sparc32, the kernel uses SKIP_TRAP. Signed-off-by: Richard Henderson --- linux-user/sparc/cpu_loop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/sparc/cpu_loop.c b/linux-user/sparc/cpu_loop.c index bf7e10216f..093358a39a 100644 --- a/linux-user/sparc/cpu_loop.c +++ b/linux-user/sparc/cpu_loop.c @@ -315,6 +315,9 @@ void cpu_loop (CPUSPARCState *env) case TT_NCP_INSN: force_sig_fault(TARGET_SIGILL, TARGET_ILL_COPROC, env->pc); break; + case TT_UNIMP_FLUSH: + next_instruction(env); + break; #endif case EXCP_ATOMIC: cpu_exec_step_atomic(cs);