From patchwork Wed Jul 31 16:07:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 170172 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4231203ile; Wed, 31 Jul 2019 09:24:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfFBCKJ8S829HQbTzPvh6j7+YwlYDtJ8ZT2n6erN8NZdAF5Vp/QFm4m1qix51tDRViG27n X-Received: by 2002:a17:906:fac7:: with SMTP id lu7mr61038008ejb.109.1564590255088; Wed, 31 Jul 2019 09:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564590255; cv=none; d=google.com; s=arc-20160816; b=aWIucIbmu53Xg6+UMfoSXxNUa46Kg1qRYFkKVTJs1zrJVr/tirlpCw4v+ypr/YhQQc JpNOCKFApIJ6Xx7tqDhg6OtTYfp6e0SGSuLF16fv6b/dpGNp1DxQT3L4gG84pv2f5FT+ JvnO76WRgh2y/qihTbGRwOQXc02P0U+ggyJ9qp6HKfUBxeL8S6EGpdPxauCfFZ2KylnD +SKZiTDZyrBvlnnSSJEqUgTveyPD/Tu/tJ0f4zy6WHhWV9Hi/r/ERtP1+BaLpxeDu+LA jIVkS/dmSFkaDV/idrLPrU9QGmFOxu8FY9YUXj6i8GH1OOXFLfYwRLFJsXVb6Yw/5Sd7 mUFA== 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=9b3X+OxdFS4s7ijxIWOdR10EruuJKJ1r4dNBV9mBKeA=; b=uF19/Uqdx0yX5QVUgLRWegFw+KM2M0PbKkoDK6PsejQ+o88sCNrhEtx+HwCBW4dQHx lkGxD8OfDnICr6YC60ks2biNvCku1sNofy30I68La6BoV8EcWfqKK1FvIXmWyjrPL1t3 YKJ1TkQxS9DHTqyeXjky8YoPQlzJc0GBDEgsfQ2YZc8DklxYzVdDK6w++XwQ9u0CFyEs dxNzHekTwKpu9XwE7IaTJqmrzI19txnInZq4Q+PuJoNxN+iaqCQ0W5VvTGuNlW5O6X5A dKrm9U8wBEtPbR2QuqKd7agXsM1Ma3NbGSVLZtFX4+A/Ke3EuoF2TT+N1AkAJpI29XpR w7ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GqX2unwf; 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 y12si18340117eju.126.2019.07.31.09.24.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 09:24:15 -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=GqX2unwf; 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]:42588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsrOf-0008Mn-Tf for patch@linaro.org; Wed, 31 Jul 2019 12:24:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42450) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsrG8-000610-NQ for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:15:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsrG7-0004BW-Lz for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:15:24 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:51536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsrG7-0004Ao-DG for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:15:23 -0400 Received: by mail-wm1-x341.google.com with SMTP id 207so61462395wma.1 for ; Wed, 31 Jul 2019 09:15:23 -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=9b3X+OxdFS4s7ijxIWOdR10EruuJKJ1r4dNBV9mBKeA=; b=GqX2unwfVNB4UDNslGdAIvSoHlJrPIqSs4kzXFgk1mcCrcKahuPQcvsASyxPI/zAkG C8uE1loDQXi6Q5g/9tJV1Ke8ZB4wiUf50qhO4Dr3lNGmBwMUHlKkXPJQesTVYap8MQsL ZWVS84BsT4xIpjhT1JtxJKLj4wA0/g95WJON2D+Lugnof1YO6iNtFXAUOJnC8pBgRf2C xz3iRFKZ+jLDtuuXjO/fvjphl2mEIoRen9ZAaOvb5a80pIC8dwQvcoezfu6CrDecoCoC aKipOLMDIWSxKJWIcuyQtQpS7YKG0x85wQxlUZRJeXs5dbeNHgOIt6WQJV479qMeZDMs y5sQ== 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=9b3X+OxdFS4s7ijxIWOdR10EruuJKJ1r4dNBV9mBKeA=; b=MIjCd2bsNoTevlaCGzNaawOo7tzF0MAKEG6TXAfSuveqNA8cKk4nbnzxLbAtusHae6 jtUEkuqgpA/ibeB/7hgCiKBCUjGILKM1zZdwbLGtiw/FAqXLiir5gHpBcH1FsS/wNQI0 U+C3yM1p64TGGR5j6TLupwMshVM5bLe+iIGtt7awuUs867ha+AaSEExCEcDZ40pZ8Kpa 4iD36w5Tbdxnu0nc34emGGWlDAsjpOa/mcMazQt6yEBzIv3nCMFPVgCdiXiRERyLoK3y LsE0KP08G37HjfqnaPwNTT8auvb41bN+1BoPq9VYCb6yH+1tqTDqUcOwby/SyzKjZ1Tr bSCg== X-Gm-Message-State: APjAAAVv9VlCRw8dNVIcJqCe8pounyaTE4f/EbVKVa6xiS7XSNp+iGN1 3NGz6byskvkXilhFym/8uQC1Og== X-Received: by 2002:a1c:cc0d:: with SMTP id h13mr109006434wmb.119.1564589722202; Wed, 31 Jul 2019 09:15:22 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n9sm114528408wrp.54.2019.07.31.09.15.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 09:15:17 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 332B41FFBE; Wed, 31 Jul 2019 17:07:23 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 31 Jul 2019 17:07:05 +0100 Message-Id: <20190731160719.11396-41-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190731160719.11396-1-alex.bennee@linaro.org> References: <20190731160719.11396-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 v4 40/54] 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: Richard Henderson , Max Filippov , aaron@os.amperecomputing.com, cota@braap.org, bobby.prani@gmail.com, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée --- target/xtensa/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 6f1da878752..cb849ae2d9b 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);