Message ID | 20230216054516.1267305-13-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp178400wrr; Wed, 15 Feb 2023 21:49:36 -0800 (PST) X-Google-Smtp-Source: AK7set9K6hCturfdZchoL2+DIAjL48ChVDAtUsICfkZKTMSeXRlIKtCq2/pRprfvN9jMsUoARM+8 X-Received: by 2002:ac8:7f91:0:b0:3ba:3ac7:ccf1 with SMTP id z17-20020ac87f91000000b003ba3ac7ccf1mr7922895qtj.58.1676526576731; Wed, 15 Feb 2023 21:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676526576; cv=none; d=google.com; s=arc-20160816; b=thFngUt8VltmtbwnX0J0X5nijKkW5JbCv2zqbSRY1a0V6UAFNwP+IaDjukHFJSMnrh fGGpWqeTHPlHVivSK+umTZE2qClsNX5JQ/xsKupavX+va7zRpwVa9/qoSoIvFMI/9kqJ oIY4Mre8lh8cj2VnrGvDKquaHoE92XyVgetSLOp6+vaCyW7W3Rw8QTwh/HKAq7lDVKEc PbC3FdJSDUKI8fHLm1kOlvlZrVEOqwkaKHuDCSH8+ugSRJq0YXcHIWnQb1bhMpf2zrtz H7md8b2Mmery+lcAyukU0EzDbxPAfWuQJAcvhCEavvNUaRNTo7jRmo5po3mkA0dEv2Np kQcQ== 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=0RV/Pw0nPLtehqObgMiaovu9PpCvAiBoNRoo5G4UtrA=; b=txfkgmxRqPTH8P4ZLv+tYTOoRreJ993Zt9Aew14OMWrsGqdi74mZkCwpAggOhIiq4h O5dpQvxkKfkrnQ9pQOfKs0sCxaC3OvSoiXTp1Zs2LnQSzZmxxFVsEML2B8nOpiHvQrXC 1efchxhQNGCpg/TMa5QE42Jjb+tGAOpO9X+lIClkXLh9olOxjFxuW3IJs0ysu18BfX1k Bn1ja+RJLhxWy5dqsSIeUXZCWnCQfPoWf/oIzmmFCOonZb8VDJx3IyAEelmCSMEoeFff 8YSg+6BkaSIKM0I2K8rEdpd7JH9QHfYJGz4CGfxEufo2QBW7SIPFypzReBnscolA76AT yOnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ibS+aqAH; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y4-20020a05622a004400b003acfa987080si879535qtw.16.2023.02.15.21.49.36 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 21:49:36 -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=ibS+aqAH; 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 <qemu-devel-bounces@nongnu.org>) id 1pSX82-0004Jn-76; Thu, 16 Feb 2023 00:48:24 -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 <richard.henderson@linaro.org>) id 1pSX7y-0004IZ-UN for qemu-devel@nongnu.org; Thu, 16 Feb 2023 00:48:20 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pSX7x-0005RM-A7 for qemu-devel@nongnu.org; Thu, 16 Feb 2023 00:48:18 -0500 Received: by mail-pj1-x1035.google.com with SMTP id f16-20020a17090a9b1000b0023058bbd7b2so1145696pjp.0 for <qemu-devel@nongnu.org>; Wed, 15 Feb 2023 21:48:16 -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=0RV/Pw0nPLtehqObgMiaovu9PpCvAiBoNRoo5G4UtrA=; b=ibS+aqAHi20YDxR6+3nRSJQIDs1qahGY3mJ7rc/E3Ls2SGd4tSDkVQGLnVo+/0p+/S 18GHHFyLmf0AKMVVrFHkivqVf4jqFgsAk5xNCBw0JQRvvDCDBaQhC6G+cBGOHHRFsNrN xpv/djp88Q5aZYoD3DwQCbQvbgW2dVUEQuL5YAGBxp1wY96VHPA/dFxuEfXxWyFzMAfc dUoxM8iTTbAzETGYGy+kQk9W8Fx9tEOff2vpHpjTFQFA58+loh7xm0mrh/PBX+IhRZQt Jyc5P9IwAoh7MCwh2xXHlTailYutoYUxtZLXC+TcNVteTIcnfpCooM9/QExelkyddZ0h G4fg== 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=0RV/Pw0nPLtehqObgMiaovu9PpCvAiBoNRoo5G4UtrA=; b=j9oHI0Tjnry6bB8sE8zXv5dNkrmv2HOvKSJV78HPK6mOON3lJV3uUj5Lmej31b39fD 6Fa4Dbqlk31dATPY9epvcfNL1xj6UeXGrqJBxIkK/sfUrw8M60Soq9GKMhRwmXb9XXux EVXgDon4XXsnSFljE3sQ1upuVNv73oAifaB/b6WvTEmYnanDDMx8ENdzw/AboV/F78C1 jX9Lg1sBLx8fVi8wxPRP3IG4wTQW1sn+qf7lpHG5yYtt01okuaC+ItqzsqObL6bd+UbA 2ImkzPuwRg1C4Ei7JZGl0Vfn3JMl6mZToVIIdKQMuhLctNx4Y5pZ4FcVdL1RkZKWeqLy DjjA== X-Gm-Message-State: AO0yUKWhtH1DmIgbfK2rIPM5rQj5xS0ucUnrClCmG8WlUq85Y9h88+tw KwpzSFwhx7Y2MXrlxQvG0HczI10MqMxfTJJpd10= X-Received: by 2002:a05:6a20:3948:b0:b8:90aa:1956 with SMTP id r8-20020a056a20394800b000b890aa1956mr5651413pzg.20.1676526495932; Wed, 15 Feb 2023 21:48:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 21:48:15 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH v2 12/15] linux-user/sparc: Handle coprocessor disabled trap Date: Wed, 15 Feb 2023 19:45:13 -1000 Message-Id: <20230216054516.1267305-13-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
linux-user/sparc: Handle missing traps
|
expand
|
diff --git a/linux-user/sparc/cpu_loop.c b/linux-user/sparc/cpu_loop.c index 43f19fbd91..bf7e10216f 100644 --- a/linux-user/sparc/cpu_loop.c +++ b/linux-user/sparc/cpu_loop.c @@ -311,6 +311,10 @@ void cpu_loop (CPUSPARCState *env) /* Note do_privact defers to do_privop. */ force_sig_fault(TARGET_SIGILL, TARGET_ILL_PRVOPC, env->pc); break; +#else + case TT_NCP_INSN: + force_sig_fault(TARGET_SIGILL, TARGET_ILL_COPROC, env->pc); + break; #endif case EXCP_ATOMIC: cpu_exec_step_atomic(cs);
Since qemu does not implement a sparc coprocessor, all such instructions raise this trap. Because of that, we never raise the coprocessor exception trap, which would be vector 0x28. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- linux-user/sparc/cpu_loop.c | 4 ++++ 1 file changed, 4 insertions(+)