From patchwork Thu Jan 28 08:23:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 372533 Delivered-To: patch@linaro.org Received: by 2002:a17:906:24d5:0:0:0:0 with SMTP id f21csp648602ejb; Thu, 28 Jan 2021 00:29:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxNZODkQm/O60cTBxq1N2/Wz5KGc4TLk70FWZx1ZJ3cg9HCRFEnmiC7FU//3sr9M/+TOo9 X-Received: by 2002:a25:e6c8:: with SMTP id d191mr10133735ybh.358.1611822578554; Thu, 28 Jan 2021 00:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611822578; cv=none; d=google.com; s=arc-20160816; b=WkNvFDLwIUvaquBz2ZITDwNk6nejF7YCSbydB7vhMEGoFyeftmgCnxDl0Ou2F7Eg8g xuIyIvUwwZLozjtVpHkykA43Rrkvfv7fLhDMVp1jQp7IPRZKLUZ9yX+1PH6IP3tyx1x7 sSS0Go7TDB97xUOn/v3vEDQlD8hrx5hCjVeFrG3FXQs+5JwFNKYSFAoQpW1UnHmrV5F8 t6+p2GuDLK4Q1cZoKR1CT9v7rt9b0rPD/bfRbBrFPE5TdaC4aueDcndu7IWx54rylabH IWnOA+GyTnhG40aK1PayBw3EHeQG7ZMQKDoiuw3w7Cv4Qh2NQ/Lmux8Jpsc6/KlCxl5C o/Hw== 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=7upBAxh+r6e67PJNYJC15zDRNacBwT3vrKSjjXc1s0Q=; b=R5vd+qMQCxtylKD6eNB0RjXZ0D2msS4fnXKDfdl/WC6LmgdOkv9RQhukE+cH/N8WNE DkgJNNh8vdd5M+cAaVb/yNAaiP6XQ6I22WOJXioklGBkXjw0GBZ2HAKCKChb8MWy5Us5 rdNA5ifHs9V5YmsMReuO0SceqMnJ6Cquu1YJcpzeBUcs1iQBU5ER+YEQ2LYhbxC7oBlz +sW4nlSFWx4+NsnhZskYq57YCfZWqtHpVw4zam/GfBIe0MLPQVeh/RhPXXrEesja4KLW kHpo++AklvK7I8EQ5i0HIVzSgnaZYepLXzor7LqRp+UL89NasEzqg9HnLLWIVSgMx6/5 iZBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jGAh5On0; 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 f8si6229042ybm.306.2021.01.28.00.29.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jan 2021 00:29:38 -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=jGAh5On0; 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]:46126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l52gM-0004Im-0i for patch@linaro.org; Thu, 28 Jan 2021 03:29:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l52am-0005jJ-25 for qemu-devel@nongnu.org; Thu, 28 Jan 2021 03:23:52 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:43191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l52af-0005e4-K0 for qemu-devel@nongnu.org; Thu, 28 Jan 2021 03:23:51 -0500 Received: by mail-pl1-x631.google.com with SMTP id 31so2908147plb.10 for ; Thu, 28 Jan 2021 00:23:44 -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=7upBAxh+r6e67PJNYJC15zDRNacBwT3vrKSjjXc1s0Q=; b=jGAh5On0geQZGQLoV+mk0Cdxo7APB7y2C4I9jg//oJjt4Kb2XcCvllYpv6mWWl/8p7 3jHR7Dz8rbxZy3rI+ayRtERDFpKT2nAgnj7gmWHKMU3Xc1Ud5kE0RsSEGCpRID/ZR2zs FIyvpKBVh4yoy4XrzR0dNnDWbssBcNDogRUJEpB98UsdzzOycqpaumjkQiEla2vxRgo3 6NYMiYZUwXSs63tR88Dwp6cDDJ6QPaC2prLK7QxMtjgE0EHE/Qv2oDVpiIO503J1ATXR yrhxQkv/s7N5IcK8Ws0ko4T7+xC/y3ZF8wVVMcOi1w3+aFhM1VyXXBdJFAScUcoAl30o hOsg== 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=7upBAxh+r6e67PJNYJC15zDRNacBwT3vrKSjjXc1s0Q=; b=UL2ysjLEqluPPTkLsJEBVqzymgcwre/z1SAA2gHuBji/opNP6sZOHtx83HmTna10S/ Jp6XxeOY5qZfQ7g8RmOtVqkqhS3hXBVaNc61xedfePBGjTmolF2Zu1eDOln/XRWZiloL XAb3EGv9CztnA+l330beRZNfNKAk8y0AYR0KokTVK12/BeL4AJDSjrTzNOc9b+IwMfIB fRf4mC1N/4clYFistSZN7KSZqAOhk2L4rgEdvW+L47eU3f6dZn9gfwdRozeVPUFUhl4s N1ynBn7fuXG46L+5c+h5KW+Xdit1orJH3nhGetGxNf42LQrZNruvnz0gmY18PR/QajqC g95Q== X-Gm-Message-State: AOAM532ZkHquMs51hewthy76eqmATwXEP6W6i1b6LFqjb4fSkJ5Efav9 huzyDi1AcBvA6TcRVxgqj/aYDT2zLru2vp8P X-Received: by 2002:a17:90a:cb0f:: with SMTP id z15mr10375103pjt.88.1611822224056; Thu, 28 Jan 2021 00:23:44 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 00:23:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 05/23] tcg/tci: Implement INDEX_op_ld8s_i64 Date: Wed, 27 Jan 2021 22:23:13 -1000 Message-Id: <20210128082331.196801-6-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::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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: <20210128020425.2055454-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 2edb47506e..0e1b8e8383 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -882,7 +882,10 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, tci_write_reg8(regs, t0, *(uint8_t *)(t1 + t2)); break; case INDEX_op_ld8s_i64: - TODO(); + t0 = *tb_ptr++; + t1 = tci_read_r(regs, &tb_ptr); + t2 = tci_read_s32(&tb_ptr); + tci_write_reg(regs, t0, *(int8_t *)(t1 + t2)); break; case INDEX_op_ld16u_i64: t0 = *tb_ptr++;