From patchwork Thu Jan 28 08:23:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 372534 Delivered-To: patch@linaro.org Received: by 2002:a17:906:24d5:0:0:0:0 with SMTP id f21csp648614ejb; Thu, 28 Jan 2021 00:29:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsMujq72G0bSwo784sVUlmLQbbuMqJPzg8moMXBYtQyGothuMuJR3BwyVewcxK4ppXJXp5 X-Received: by 2002:a25:2102:: with SMTP id h2mr2287008ybh.486.1611822579995; Thu, 28 Jan 2021 00:29:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611822579; cv=none; d=google.com; s=arc-20160816; b=t8K/Ku3iX7kKVubDBR1A1xWCruqqgvk5ErHX/nKAp2MaJPbtBQ5YTDCi3Fscw7QiJj jifFnOCqNLP/sS5n0JcvdXeyspt7DbOqlB7iT/URytBvIUieL5n0C4y/d174hkPEpcy4 sA/+TFTJ7mZjgjRGyizo9gQFE3XwyF/Xj2xzK0kbPJyqjd5PrAV/AVf2px08qxsHDM74 pBGLVx6TOX3bNFCH9ZPcmL1hN760CJ6CkI//Tq0vJbb8aHeyZmHOAuwgjeBb6XGwEqz9 gQx0GMyYyuVjkYhQ1wIZZNI111Vdb3kSsgjvp77O1y9FfnLo9tNPY/0+1oB5BRf7B8V4 ZtgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=ef0r5gdQfikjl87vGZNBaWDeqf7Ic5J6b7LYEuBGeCg=; b=1CWH7js76jcTimnkZjB81kSsDl0crDXMalJuNK0nLfeyAU73Ysic5vNgFVKZCsHvDi Y8VwifH+0SYbeaW4eaaUalY5rFlaS3t3tJ6rVcc37KhBCnLasZ4plabJ/A6RGwuTfVFC SSjV1LMDO7WOmK09eRRswfVijHWp3HY/kG76wvtHVhS9e2ZAO6MuW35Xbw0492rp4Uoi 0d93HELN3W+gzgSSNZ4cA8oiJriMw5JlzRkjcFBix/9K7LB5hKoutb74amHwy53eYRDE ECyW34Cupa8VM0zLpP6PsanqYV7Di23i/YOPRx8j1+N4oYGrAbcGNc3Ez5k4azJ+5+fc dnqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wf0mcJtq; 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 s16si1974936ybc.203.2021.01.28.00.29.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jan 2021 00:29:39 -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=wf0mcJtq; 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]:46270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l52gN-0004MB-Eg for patch@linaro.org; Thu, 28 Jan 2021 03:29:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l52af-0005ez-SX for qemu-devel@nongnu.org; Thu, 28 Jan 2021 03:23:46 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:37398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l52ad-0005dp-UX for qemu-devel@nongnu.org; Thu, 28 Jan 2021 03:23:45 -0500 Received: by mail-pl1-x62e.google.com with SMTP id q2so2925201plk.4 for ; Thu, 28 Jan 2021 00:23:43 -0800 (PST) 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=ef0r5gdQfikjl87vGZNBaWDeqf7Ic5J6b7LYEuBGeCg=; b=wf0mcJtqN9XKwb+ztupLua5SafJF7s+LxA0rbUxDcxDg7241lkLAnkrCMd/Xey2dtS J14bsk6R3Viggc+MFt8How2r+n/CsBCq7yeG1jBQPVLwDKjsRPdJDfFRzbgpd5zFZfLh jURq3aHossuWBFS3hMBQWVQgVzrt8iAuRM35PlVHmKu+Zm5Qmj/aq4SI9QkUwGaaIT8e Ig29/UIABuZFb7G0kvuCTtlM44fPrlaCi5sozRs9lcJ+d7qWJj6VT6TJmSZPbocFot23 mWNJ6qhb/9DGMuUNnKT6O5Wn7rk/rEBa9mbQK/TLW4/GYdsGVz3JZe3O7S90+jidxox4 jzMw== 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:mime-version:content-transfer-encoding; bh=ef0r5gdQfikjl87vGZNBaWDeqf7Ic5J6b7LYEuBGeCg=; b=SuucskBiFZZdxA8XW7skHWRl8knmPMIDklJHWWgn6WGfsNKeD76WkxT25rQD/W9B6U DnkVhLxN8IEnzTDF9RZUllEvzCuIp75xOF976vBr7fGJB+0NLSgrXS7FMDm0PqPPMNBC N7B/x3SPFLgONhiMUnV5v+EhRMJFXH3TYPqJE1ZRGVyja1RPehss+FUglMSHekWoMPe2 8zFymgvVQDw3invN3HcKZ3BhJnR25G55RDWxRfX+C3ksgGO7lumYQsYx0MTCTFlbjQhD D8pUh2zpRxfvsIS+FRdrd+zIckXzj5lKSXaq6B18+rkzzZO/YGlQbixH0E1oNLvOXWlu ur8Q== X-Gm-Message-State: AOAM530cQUUfI8O/3S9TwdLUxqTrPTyr6Ar2T5y51m+tj4NxUzXG9svP V5d7ufAMNy8T7UhPWFqjC5MuiGxcJUSUJ9y0 X-Received: by 2002:a17:90a:5911:: with SMTP id k17mr10055161pji.152.1611822222377; Thu, 28 Jan 2021 00:23:42 -0800 (PST) Received: from localhost.localdomain (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id s24sm4658292pfd.118.2021.01.28.00.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 00:23:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 04/23] tcg/tci: Implement INDEX_op_ld16s_i32 Date: Wed, 27 Jan 2021 22:23:12 -1000 Message-Id: <20210128082331.196801-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210128082331.196801-1-richard.henderson@linaro.org> References: <20210128082331.196801-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sw@weilnetz.de, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Stefan Weil That TCG opcode is used by debian-buster (arm64) running ffmpeg: qemu-aarch64 /usr/bin/ffmpeg -i theora.mkv theora.webm Reported-by: Alex Bennée Signed-off-by: Stefan Weil Message-Id: <20210128024814.2056958-1-sw@weilnetz.de> Signed-off-by: Richard Henderson --- tcg/tci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.25.1 Reviewed-by: Alex Bennée Tested-by: Alex Bennée diff --git a/tcg/tci.c b/tcg/tci.c index 2311aa7d3a..2edb47506e 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -614,7 +614,10 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, TODO(); break; case INDEX_op_ld16s_i32: - TODO(); + t0 = *tb_ptr++; + t1 = tci_read_r(regs, &tb_ptr); + t2 = tci_read_s32(&tb_ptr); + tci_write_reg(regs, t0, *(int16_t *)(t1 + t2)); break; case INDEX_op_ld_i32: t0 = *tb_ptr++;