Message ID | 20220704093357.983255-23-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 4623367697ebb531fce89a10f9c73a820a5ad82a |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1ec:0:0:0:0 with SMTP id 12csp658159map; Mon, 4 Jul 2022 02:56:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u4+jjFF4JF6ktr+GAqzqBvooeDTdjXNS+pPY0JJJFRoxEoCeI+ot7Ba3wxlifM2HBpKXwO X-Received: by 2002:a25:33c4:0:b0:668:cc8d:bc43 with SMTP id z187-20020a2533c4000000b00668cc8dbc43mr29627343ybz.467.1656928565742; Mon, 04 Jul 2022 02:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656928565; cv=none; d=google.com; s=arc-20160816; b=kPPYYjCEl81iVMFT1k2+35wzPOGqx1PLxDvGSXJEaLpoetthoJJDL3oHcdd1dtifkA IbcLhH+vmIKmCUVzuOqMUrxtQxj2eAJEJRBe1eQ0l/iZ3s826XZGu/aWNC0cdlgOOUlg zjEONPerfmbxeN8YfYSgZwrt+GM2doJxJOgHAkoXBBTM6c3LfomWXjbUCG4Z82FAwug+ BoGBav6I9t5MQuIfd2wp3Smsb2x3j0vsbVBjj5URr+0jWWInSBvCsZWK2xt2xVtgOaMJ P4YXC/ICaFtkfL5irVXLwiycKY9evvGNGd2HRMZcWglTTDik1Hr7E8trh5tBLBgg8uBW g5FA== 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=pC1o5dIEfj/X0ZzHAPo5CQX3pETnqwqvqekF8ivkFYs=; b=mAeVPA/7jFsKjlXlUnvQOsx1MinHeOLcPm9dP9PXbrATO4aCJOTVB8t9FzfplbGNuO A2d4/6yzcuMdGOv1aBkRy0ozpmCZB0LGnJCfCAfGYv7GlzwQE0utLBTC3AyireVGZbNu 40rSvFrhIe6t33sttUHTBimZVaY87eV+WDmSagyl98REbb6a+VMWurtp/7hKrE0Keiqp Fb1eAjViZTHWE1Qj+y9Ori6Fmimhs2l+v3L/DFoJ+VtMRVRBBFmGvUsjRN4dsL4iEg0n 0Fw7/rUnL2ijtdbIM8WGN5wDsZ+oisoXsN918cIhOmpXKfcZZzNC+O57ybV8nQ72qUQy L9Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K1gBmBhG; 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 s66-20020a818245000000b002fedebec3basi41620469ywf.459.2022.07.04.02.56.05 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jul 2022 02:56:05 -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=K1gBmBhG; 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]:52212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1o8IoH-00035b-8O for patch@linaro.org; Mon, 04 Jul 2022 05:56:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43272) 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 1o8ITw-0001kD-5c for qemu-devel@nongnu.org; Mon, 04 Jul 2022 05:35:04 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:35534) 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 1o8ITu-0004z5-KF for qemu-devel@nongnu.org; Mon, 04 Jul 2022 05:35:03 -0400 Received: by mail-pl1-x62f.google.com with SMTP id y18so80928plb.2 for <qemu-devel@nongnu.org>; Mon, 04 Jul 2022 02:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pC1o5dIEfj/X0ZzHAPo5CQX3pETnqwqvqekF8ivkFYs=; b=K1gBmBhG8cUNb3sUn5EzyKsvx3RvAjmTm3O+OiVXlr1u68WkSg5x3R1/L57j1+pmqV X9p4vr1/+ryPyBZihmpXwK99hcUnOXycuYXA8vW73Xsax3pe3UxvA44LhdvRK41PwLjM muMrD5cNy976MPPKZjnXMeoO0BPhSFHbdvBJvzW2RpLV/OzVcfeQToOO1i6XGwIFSYhi lsoMt8llA2ICXScAdEw1lFDWT7HLrG4MO5jsJB+CIQBd57hQdJgGBy8J5+aP+WKb+OBn 7tbNbSe96uCfYnXV1IkC1KGfaRSPyWn3HLpr1QBcrZl12rBOqkefuJhULrkksNwPAdko 1pDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pC1o5dIEfj/X0ZzHAPo5CQX3pETnqwqvqekF8ivkFYs=; b=iQVqHEyAcNZadeMPkCk1mbP7ZGxCyVyDKf9CtCgeGr913VK/AmlEIqpJvay//veZrk A7kn30vpqeAa1zNqzSl41XNjo5UEG4++U/A9FEE0CmLSrZ9vvSwEEdf/+XVIf/x/pybh jQn6dj1gNdk9BDiAE5WdLH612cvdotXmUPziInzftEEYaLg3fFn3AbF8ZS/5Ru0fK41t sTUi9Cngce127SsBifDesA3eEvsfEiBZyfKIo5UZyA88pk9dkF0G8dTSFOVu8AAQDKNf tdmnnzIQuEaViaNy2CZ+jVNkkm55VdnNAkFsNDpxKZzPdhfu5F1aMrzFaPnaeQSL2ER0 TdQA== X-Gm-Message-State: AJIora+7eFWzYy5FKE/D3EPY+A6d9FEPbDzpyhuuxodC3zSKFJtCWHvO o0I+2ENvAdjFhf+p9WmJ6FC4URIo/Ts+HfYm X-Received: by 2002:a17:90b:1e02:b0:1ec:d979:4a8e with SMTP id pg2-20020a17090b1e0200b001ecd9794a8emr33195636pjb.181.1656927301818; Mon, 04 Jul 2022 02:35:01 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id z5-20020aa79e45000000b00525b7f3e906sm15353355pfq.27.2022.07.04.02.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 02:35:01 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: Xiaojuan Yang <yangxiaojuan@loongson.cn> Subject: [PULL 22/23] target/loongarch: Fix the meaning of ECFG reg's VS field Date: Mon, 4 Jul 2022 15:03:56 +0530 Message-Id: <20220704093357.983255-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220704093357.983255-1-richard.henderson@linaro.org> References: <20220704093357.983255-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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, T_SCC_BODY_TEXT_LINE=-0.01 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" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
[PULL,01/23] linux-user: Add LoongArch generic header files
|
expand
|
diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 47c0bdd1ac..d2d4667a34 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -223,6 +223,10 @@ static void loongarch_cpu_do_interrupt(CPUState *cs) env->CSR_CRMD = FIELD_DP64(env->CSR_CRMD, CSR_CRMD, PLV, 0); env->CSR_CRMD = FIELD_DP64(env->CSR_CRMD, CSR_CRMD, IE, 0); + if (vec_size) { + vec_size = (1 << vec_size) * 4; + } + if (cs->exception_index == EXCCODE_INT) { /* Interrupt */ uint32_t vector = 0;