From patchwork Tue Mar 12 16:19:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 10849547 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18BD913B5 for ; Tue, 12 Mar 2019 16:58:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0138E297EA for ; Tue, 12 Mar 2019 16:58:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9927297EE; Tue, 12 Mar 2019 16:58:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 97DB2297EA for ; Tue, 12 Mar 2019 16:58:57 +0000 (UTC) Received: from localhost ([127.0.0.1]:55891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3kjx-0006iW-02 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 12 Mar 2019 12:58:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3k7o-000688-Pk for qemu-devel@nongnu.org; Tue, 12 Mar 2019 12:19:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3k7j-00042O-6X for qemu-devel@nongnu.org; Tue, 12 Mar 2019 12:19:29 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:34659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3k7f-0003wM-HD for qemu-devel@nongnu.org; Tue, 12 Mar 2019 12:19:25 -0400 Received: by mail-pg1-x529.google.com with SMTP id v12so2217408pgq.1 for ; Tue, 12 Mar 2019 09:19:21 -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; bh=/OsS4tNr9ZMYHuULfhS05VN2vAKDB0y9il2P8ildqH4=; b=X3jcs08ssxuO0LyA4oUCkzdV5D278FsIVE4Ws7UNEoB79vDTtMYu7y9oc1eNQ8RdcU vu32yFS9DiPFdRsd9aEfQ/Mc/6pczrvxdllde9GdkX+SNBX7y3/6gooloqh7Uj0LrXwG BwyKonD/brb/lirRlwDgjUlp2XhY8RbgUMoOkx2M6jJuH3R+rjia27KuPDlX0UtIHJ/o akTiL03Rbwo/Sbcngc6HwulRs1FMxfEcPW/M8jaXKf4CWCKl1HQPxe2hq3Cu690L7ZTR MZOY1fI4SGaJEIpaDXCpu8u4JOsZfjVrt8oZeG2TRkW4+V8K4y14PRnxjp66Rn2q9r7L RuUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/OsS4tNr9ZMYHuULfhS05VN2vAKDB0y9il2P8ildqH4=; b=XAcWO/qmTczutqau3XQabsicIW6vNDYIotA3j4Egknb5DaGAf+dob6uhr0H4eLcmtk vo/9unGvX5hzWDCsAdNsnnnM5hnvgsDZG4GFfyHHmzx2DNj+P83Wfsxxa8oUt0eMFxyR fTQjPuh9nFJRUQH/B9WEjtoOX9c9dYRiqMNSzI3Aoe5b3Qe5bTSQMHtqCP1MCqMJk1I8 n4AmSpFnyMZy9H6hgOjRcdTb5rqYkCd1yWtS7BBV4KsHLFzdSXEiVuIiWV+WPMYxrfpV EUHYEH51YAJm8dR3IW5BsSb3xdRKjD1hv+fMfURUAnKeZpSNiM6Ux3vVmyOg5bYW6Oay gITA== X-Gm-Message-State: APjAAAXMikJ3qpwMOYCq9EAjrnhe2Hw35X8HL6AZE2NtD5h074MUg2vC kYJLpikCho/hFP3tDzfDIBra/8h/fCo= X-Google-Smtp-Source: APXvYqzwHfow8guyhlfYr3UW8kk7iSuMLV83NHKcMpL+PYPKVqDTTBKoJ7CD0wFUS9mti7jvNJANTg== X-Received: by 2002:a63:29c3:: with SMTP id p186mr36124528pgp.24.1552407559626; Tue, 12 Mar 2019 09:19:19 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id q62sm12605644pga.32.2019.03.12.09.19.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 09:19:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Mar 2019 09:19:02 -0700 Message-Id: <20190312161904.31130-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190312161904.31130-1-richard.henderson@linaro.org> References: <20190312161904.31130-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::529 Subject: [Qemu-devel] [PULL 09/11] target/hppa: allow multiple itlbp without itlba X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Sven Schnelle Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Sven Schnelle The ODE software calls itlbp on existing TLB entries without calling itlba first, so this seems to be valid. Signed-off-by: Sven Schnelle Message-Id: <20190311191602.25796-9-svens@stackframe.org> Signed-off-by: Richard Henderson --- target/hppa/mem_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index d32ae6e7d9..a69cca9c5d 100644 --- a/target/hppa/mem_helper.c +++ b/target/hppa/mem_helper.c @@ -278,7 +278,7 @@ void HELPER(itlbp)(CPUHPPAState *env, target_ulong addr, target_ureg reg) { hppa_tlb_entry *ent = hppa_find_tlb(env, addr); - if (unlikely(ent == NULL || ent->entry_valid)) { + if (unlikely(ent == NULL)) { qemu_log_mask(LOG_GUEST_ERROR, "ITLBP not following ITLBA\n"); return; }