From patchwork Fri Jun 14 17:11:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 166861 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2349590ilk; Fri, 14 Jun 2019 10:51:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDmRU0fgjLf2SC9ukDsO17QiL2qYRXXT2RQ5cNkac/iMr/mSznN7sKEBkQNWED8JSUPvLj X-Received: by 2002:a0c:bd86:: with SMTP id n6mr9532239qvg.183.1560534700325; Fri, 14 Jun 2019 10:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560534700; cv=none; d=google.com; s=arc-20160816; b=y0zRDfuiMtZPZVRlBcqbDSB/wdvqYtw26aY6ptusvgOVsZPkF0RiGdBqma8/whrEBr XqjDbhu24mkJaYJDu9PD/utntTGp/piQJaQ3HCahmXNEhTNhZLxX+3hlDKpE9Zqk72hM joYx+sCb7qgz+MtvTB7aUyi3drVSWExPHvnDzoUElLKtVYm4bhr+D/kfiFrr6NmKJUKp GHeFw+t5sDLBKARaWceMRBMv5lmpe3kz3OfcF1WRaZq6cj3Ax/mO29EacWHt4sICUr2D yZ5FVUaXKbkGIdb8G1LOW0npb86MGFEPs8KbKNk2JtTEWzvG2GUMPalHwb1XOWCZgQEC hcjw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=+b63Y9PbLI6+aITJW7vKd87oH1u7+0WksIZYyx+bONM=; b=fJ+/eUyWoLK2XJss23dNQDHscTAl7OKL9CuKUCL/Nfgld0+z6iHdm0cYLKRE+EHCqh D3HxtexQgY4SDnR9bLXnA0Jm8JtfqYl9s3mWJy+D2w83f3oC14m02e/nKn8zbupkkLQ9 OkkzHENzHdinUOVNAaaXcRAlq0LSioJMfyz416Td7TJpGvmM4bPqj5OBHITtQubGcezK vr6TEmyn1TQb6DqOdoYyGEh8h/i2DWJqC2AAyoobMN9jGIlV95u5Dj0oZIpNnmHYwA7q XEJxmPag8vUiv/f8Uczuqr1SX9/gMGcTT8UY/P4keLFlFPIO+C/eFWY9h3II9igDBXtu dW7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TJFWFBhS; 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=fail (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 r19si2174242qvj.40.2019.06.14.10.51.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jun 2019 10:51:40 -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=fail header.i=@linaro.org header.s=google header.b=TJFWFBhS; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbqMV-0005tl-TC for patch@linaro.org; Fri, 14 Jun 2019 13:51:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58667) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbpqj-0005bV-61 for qemu-devel@nongnu.org; Fri, 14 Jun 2019 13:18:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbpqf-0007Ap-Ga for qemu-devel@nongnu.org; Fri, 14 Jun 2019 13:18:47 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:34588) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbpqe-0006aI-As for qemu-devel@nongnu.org; Fri, 14 Jun 2019 13:18:44 -0400 Received: by mail-wm1-x341.google.com with SMTP id w9so9349677wmd.1 for ; Fri, 14 Jun 2019 10:18:28 -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=+b63Y9PbLI6+aITJW7vKd87oH1u7+0WksIZYyx+bONM=; b=TJFWFBhSps8aAPjD6uLAT0Tj95Vx5KdrHJJEcmLqIKy3NVfeifbGwtWU9ASkxDdHcs S5IdMvLLHIFU0jhX5bHV7uwxlaC33Q3qSVYxeK8KjbNuUmzCX30JZT3MkZ0KilqlQ0UM hv8LHFxDRR9N7rjOyNp8kUBTQUgaJsS87DyuiYza0PKxIqD+QmO2wa9aXPNVduRphSYt 6fLVZtMOK3ZlE9WyWK+MyT/T1HVaWzxtpP/JPIesF9MF91qPjbKxGI+8pbjR3zuGrrgZ 96bKRej71AZMxJggZ3/Ol3O5bv7RJwltepRZrJQ+7n234nBZgZwp7oZrEpbJUtlzmis6 dhTQ== 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=+b63Y9PbLI6+aITJW7vKd87oH1u7+0WksIZYyx+bONM=; b=EqYVE+y0Sqv2IkYGB023FKjJ+n++ms50keGfYrhxDnNYrSFv9SFiSxJdtUf1XjxFoZ glDUAf1P+bbDLWsO7DD4CnTeNudoe85GYA5hy1VVCtVa+sb+mY66pgbpnztKKjJG6LKZ FUC2Ru5fbtsLKC+LDd4rmNqx5zu4/idIliSJDCe8Pa3+7puaWmxKliFKixuQJ6o3mk7Q yo1L78SZWouGe/WjHjWUhMABjC0s8V0DvHiEfils2rQXo/8MiQeZeGDPaTLdNLccdoVl dLW5mU6SOOt6Xh49zygiRMP8h77akQ9kos+xq/vmn/9+jD1NjHBZ6uHdKGJkEKAI5oWr x+bg== X-Gm-Message-State: APjAAAVPFHzX6r66g1ObmSHoheiBIRQvxegGiEBQe13dc5lEljuhzEum 3j0Gl1l0qX4hbxlF8SoY7Sx48Q== X-Received: by 2002:a1c:c003:: with SMTP id q3mr8747990wmf.42.1560532707343; Fri, 14 Jun 2019 10:18:27 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o126sm7688314wmo.31.2019.06.14.10.18.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 10:18:26 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9326C1FFBB; Fri, 14 Jun 2019 18:12:03 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 18:11:45 +0100 Message-Id: <20190614171200.21078-36-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190614171200.21078-1-alex.bennee@linaro.org> References: <20190614171200.21078-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PATCH v3 35/50] target/xtensa: fetch code with translator_ld 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: Max Filippov , "Emilio G. Cota" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota --- target/xtensa/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 6f1da87875..cb849ae2d9 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -863,7 +863,7 @@ static int arg_copy_compare(const void *a, const void *b) static void disas_xtensa_insn(CPUXtensaState *env, DisasContext *dc) { xtensa_isa isa = dc->config->isa; - unsigned char b[MAX_INSN_LENGTH] = {cpu_ldub_code(env, dc->pc)}; + unsigned char b[MAX_INSN_LENGTH] = {translator_ldub(env, dc->pc)}; unsigned len = xtensa_op0_insn_len(dc, b[0]); xtensa_format fmt; int slot, slots; @@ -887,7 +887,7 @@ static void disas_xtensa_insn(CPUXtensaState *env, DisasContext *dc) dc->base.pc_next = dc->pc + len; for (i = 1; i < len; ++i) { - b[i] = cpu_ldub_code(env, dc->pc + i); + b[i] = translator_ldub(env, dc->pc + i); } xtensa_insnbuf_from_chars(isa, dc->insnbuf, b, len); fmt = xtensa_format_decode(isa, dc->insnbuf);