From patchwork Fri Oct 25 14:21:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 177746 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3782856ill; Fri, 25 Oct 2019 07:27:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoCmjT7f8HCr4cE+LeJweTgKg2vea1PVJquQBmvwuJDk6qjo1D2RZLS/+lvBuiNv6KjzJR X-Received: by 2002:ac8:729a:: with SMTP id v26mr3453751qto.4.1572013640720; Fri, 25 Oct 2019 07:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572013640; cv=none; d=google.com; s=arc-20160816; b=TA16bC5JWyAemoR8nTLs2gHNJgWiYJ3lWrsrOhwDU7XvYpinDChkoZ3I8tbqFkdZ+t 72nANkVPHPARA36qVNqpAN+P+m7frn72VIcFhlY4oXwNIoa4SaAQa0s8gHaGMBr+CFny BgfWFnDhBcc/ylfZ0fWXYhQhtgN7/XZrCPI0NQ9HfX0x7pOZQtPcm6hgWY2Dj6+nJyPW mddMP6X50/G71P40OFzpOHAZpZKijUw06kVRu0NkfGHm84eIi05Jtu0sD+mJfNW2OeWT IbNrosxxhgmgusDyKZHxsLo9+6m7A63OMRBaixKSDPe00IG9jwLOYhO43AiqZ3sB0CCV 1dCw== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=6YuVFd/F+N1dkaWyOwwHEzclPuT2QS3X/NJFdWUjnuU=; b=nwxJMlC3p4spEi5ToiUAeZSNTTRigwzKwUWY4YciBe1rOxa17ErSVJIVvezkLgNvXY QP5hfUTY2MaJDTQaleU5lvcEwHv1y5HCwJtGz3U+wjAWnITRS6gHV/OvZkBkaxlmj0cs QykMPTXyAD5trpEi9JAHo/FK4sI8iwTCxexpiDU8P6zd6AHW2WW6k5xLdux/uMMiLZ7a SEveizXiv77LK7GeC/nQ6RZgBmldPxw1lpha9mBB5gfX7MHkK8pAy+dZseahkBWawPjd 4f9SEsbv0xBeQR7R5BT5HjaEXKZoBm9Q9hmQgd32kWdoXOnpnD0o49MFvQIQy5WrMxvP hD/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FdLNG+2t; 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 c78si1570187qkb.296.2019.10.25.07.27.20 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Oct 2019 07:27:20 -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=FdLNG+2t; 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]:32780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO0Yg-0005Hp-SA for patch@linaro.org; Fri, 25 Oct 2019 10:27:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44273) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO0Td-0004wb-8E for qemu-devel@nongnu.org; Fri, 25 Oct 2019 10:22:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO0Tb-0001a9-Lx for qemu-devel@nongnu.org; Fri, 25 Oct 2019 10:22:04 -0400 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]:44165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iO0Tb-0001Zu-IO for qemu-devel@nongnu.org; Fri, 25 Oct 2019 10:22:03 -0400 Received: by mail-qk1-x744.google.com with SMTP id g21so1875723qkm.11 for ; Fri, 25 Oct 2019 07:22:03 -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=6YuVFd/F+N1dkaWyOwwHEzclPuT2QS3X/NJFdWUjnuU=; b=FdLNG+2tju8bCKTViuJEg01g+HzjZTN3/JPrrHIAiFKQv0oTvrMaQns/HX0RUvN/dx TQnDPp2EWWtCfC2Z1qyYR3stSvi6UG0bLOr03aA1+SU7jpFViPzAjAl96jjdwL8UkswW 3ajbqJm6xKsW99FFvW9PJcxsGbfVzXWhy6wbdDzES0kqZA+UQ3QBqwrB+8YQUMjSY92X 4qmGt2dOFHux+3NB1CFjFw91PqeEG1PrEpfWia1IjqrIt4DsvVlDrd1xPLMQthE5md6u M6jwkg6tn6xjwHKCQETQW6zfEm75Z7RWt1UxLHhNBzcdP72syrZ5q0VaWoepOrNEZfvn mbhw== 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=6YuVFd/F+N1dkaWyOwwHEzclPuT2QS3X/NJFdWUjnuU=; b=ddNZd1l05GpbmqVLkTswrOTHrZQIvfvGYHEDUHW2UZ2kxNxz2eoc/n+jGgMu2euq6T 0PkAk7P4rqzUym7GH4aHH7nCYor6K0dRT5syjLItMjVBasbjaLiwoVjz47rFg8+51v6U xTEa9REHYf/7pOY8p/+VuMmVqnxdjFvvlFmEZKUqnVFbv1yUHOc19ALJHMvZyrbBKhia vmz3kjS0edx0QG9HXdxbiYCgwQMpom1CrOOhvB2xpS+hdz+YhYCI/oSKzM6RQKuHeAIB X4CbCE7FuY8qENQIQvqg+Se0v+o2IsaSZrpRGxG0pYPpwkv31Q2WiV9NOAlT94AC7SQn zA1A== X-Gm-Message-State: APjAAAWObTY6WxNPtWeavl7fDKjSnPSTI1HjxPBiEgrggB3ZuMLf1Z8j 1hHbh2Jd18tIAndT4UMaChzXMzUvRkI= X-Received: by 2002:a05:620a:14bc:: with SMTP id x28mr2932768qkj.433.1572013322565; Fri, 25 Oct 2019 07:22:02 -0700 (PDT) Received: from localhost.localdomain (rrcs-172-254-253-50.nyc.biz.rr.com. [172.254.253.50]) by smtp.gmail.com with ESMTPSA id q17sm1137050qtq.58.2019.10.25.07.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 07:22:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 01/12] tci: Add implementation for INDEX_op_ld16u_i64 Date: Fri, 25 Oct 2019 10:21:48 -0400 Message-Id: <20191025142159.12459-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191025142159.12459-1-richard.henderson@linaro.org> References: <20191025142159.12459-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::744 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: peter.maydell@linaro.org, Stefan Weil Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Stefan Weil This fixes "make check-tcg" on a Debian x86_64 host. Signed-off-by: Stefan Weil Tested-by: Thomas Huth Message-Id: <20190410194838.10123-1-sw@weilnetz.de> Signed-off-by: Richard Henderson --- tcg/tci.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.17.1 diff --git a/tcg/tci.c b/tcg/tci.c index 33edca1903..a6208653e8 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -127,6 +127,12 @@ static void tci_write_reg8(tcg_target_ulong *regs, TCGReg index, uint8_t value) tci_write_reg(regs, index, value); } +static void +tci_write_reg16(tcg_target_ulong *regs, TCGReg index, uint16_t value) +{ + tci_write_reg(regs, index, value); +} + static void tci_write_reg32(tcg_target_ulong *regs, TCGReg index, uint32_t value) { @@ -585,6 +591,8 @@ uintptr_t tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) tci_write_reg8(regs, t0, *(uint8_t *)(t1 + t2)); break; case INDEX_op_ld8s_i32: + TODO(); + break; case INDEX_op_ld16u_i32: TODO(); break; @@ -854,7 +862,14 @@ uintptr_t tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) tci_write_reg8(regs, t0, *(uint8_t *)(t1 + t2)); break; case INDEX_op_ld8s_i64: + TODO(); + break; case INDEX_op_ld16u_i64: + t0 = *tb_ptr++; + t1 = tci_read_r(regs, &tb_ptr); + t2 = tci_read_s32(&tb_ptr); + tci_write_reg16(regs, t0, *(uint16_t *)(t1 + t2)); + break; case INDEX_op_ld16s_i64: TODO(); break;