From patchwork Wed Jul 31 16:07:03 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: 170178 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4233919ile; Wed, 31 Jul 2019 09:26:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwS5DLHdDDvmE0dooMrGQ6T9dHU69E4w9F6Ogkj70V6JHd2C/VsMDU+v7PJBMt9fGUCnIK X-Received: by 2002:a37:494:: with SMTP id 142mr78129826qke.239.1564590417333; Wed, 31 Jul 2019 09:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564590417; cv=none; d=google.com; s=arc-20160816; b=mpRxWYF0GxFoQ9ziby5L064gtQMqCL2hWO6tZNPRHWMQX881Jxn2Py7kpzuxWXCpaR ZDlhlRFCwGRZuZIIdlM7dhUuo7PdU0IsYSzcPmPKC3sbrK/3ndXSRTHhWGqDMWtpJOPQ b2lVfgTP/FmT7BDnsYnvq96Cny1YioqQKDgCdGt6I5N0121G7H6JP95CMDum3xZ/RL/w fJhmVM2JehLGl2kooubctsKBCHfvUDZpPbOE+5zVXIhJG1N818qK6Uq7kPPFf5gJ1Rdr 99k1e/VmU8T6d3TAJgI161WVh12e3gMg7Goo3iuRsW59alGSyDg/aMa1/HwH7M9Mbi2U K3iQ== 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=3KilUfW5qE8/qCyjKP1J8YJaC2amH5E2ZqjPJpVHgBQ=; b=pHeYu+7ukjAJIUAs+imM1rlRTKUR25mENRKzBF/KPrCPDQbZTe7wKq90ClNSGqJeQq AW3zBo3QGW/hMWiaibNBSx53WnwiSHzcyGxFj6Lg1O/DvIlzS7izQuI7rpbYOItUi/J3 SU8HDqJF490ppV6IpxusI/gwGhdRymzeQNtBtDTgSJeYcJiLLu0dmkuiTQBitaKfqwcM nhOv8c6S3JPJjswMZY7ERrgBSoL4JsJc5KBf52lV82Iq//FNW7xucmgxbbsJFJb5P+Jn GguvTtwo07Ujgt4TskblHgWMfL1qLe/EBHH6SNnfR25S8yJcEMFLgRfDaGqsMkTiczeL zcqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=tj7Eo6sq; 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 t53si41708547qvc.91.2019.07.31.09.26.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 09:26:57 -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=tj7Eo6sq; 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]:42720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsrRI-00008l-U4 for patch@linaro.org; Wed, 31 Jul 2019 12:26:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45038) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsrPh-0004k9-37 for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsrPg-0000Ge-3X for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:25:17 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:36797) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsrPf-0000Eb-UG for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:25:16 -0400 Received: by mail-wr1-x441.google.com with SMTP id n4so70447861wrs.3 for ; Wed, 31 Jul 2019 09:25:14 -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=3KilUfW5qE8/qCyjKP1J8YJaC2amH5E2ZqjPJpVHgBQ=; b=tj7Eo6sqm2GcI0DJtEVG85i84SqjoykzrrEnT52+0xcOKzYKLkz+AB0JBDVKDoMI9v TGxYf1c25rKALLef4Tn3KF6jLEI9vEd1gZCdMP60aWR22I6M2yTES8+6AfVXOyHUAhpx bNJ5eCJoTUpEr7lzQ6Yc2n9VBC++ROgAjaDC+NE6Oy1GwhsA+4EMX9rQbqa0VbWh+Koz 2ot0fA2FwuAg+07dlc56oOsW4jr9UeOc+rHMcBuMnvLcEWBFzW2lnt+82p2pGdQ01D12 q4N8HdEL+zYdAlGmcrmDj3oi2S5oxaskz5E6x1svlmeLpL0XvwYu8lMpH5kfylQm1nt9 n2ew== 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=3KilUfW5qE8/qCyjKP1J8YJaC2amH5E2ZqjPJpVHgBQ=; b=eBfMdn3bBTLgwBNz7KY4eoOxQdPsTPRU3KPJCMwVtTpnXUcOTYRWndv3Eb5gr126kg d1IB40fobGVpEEiorGWiGJKqzBdAmQnPyC/lAl60UAdjcAOBSVnmIWrGyxSgbwqhslnG F0M9JoS+QULnhHQdOdjFvGyYah1tNYFLdk0Hlf8Nk6OfmqMXcMKXeqpB87dmmcomRkya TmnIPWK3yYVLfFRrCOfyn2nJqCoh9qz68B5rGWN3+6PlMlB6vPRQJbnQ9E1rOsbuwfUi 5Z1gvtgz3BWeuEfnhWJL5tT/ZA5xJHjaKOtgsmU688i8sgb+dLMo63v+ZcmOgwO3TEan S58w== X-Gm-Message-State: APjAAAVLyHAD09tJuOoTuwiwt+S3Ey+GqV1UFSIdW11eZLT67/snNjvk ImZAK0VS77KIhJB7NyFGQJrBxQ== X-Received: by 2002:a5d:4e06:: with SMTP id p6mr54233807wrt.336.1564590313436; Wed, 31 Jul 2019 09:25:13 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id w67sm89785102wma.24.2019.07.31.09.25.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 09:25:12 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0A82C1FF91; 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:03 +0100 Message-Id: <20190731160719.11396-39-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::441 Subject: [Qemu-devel] [PATCH v4 38/54] target/riscv: 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: "open list:RISC-V TCG CPUs" , Sagar Karandikar , Bastian Koppelmann , Palmer Dabbelt , Richard Henderson , aaron@os.amperecomputing.com, cota@braap.org, Alistair Francis , 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/riscv/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/target/riscv/translate.c b/target/riscv/translate.c index 8d6ab732588..73cea63e4a2 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -796,7 +796,7 @@ static void riscv_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu) DisasContext *ctx = container_of(dcbase, DisasContext, base); CPURISCVState *env = cpu->env_ptr; - ctx->opcode = cpu_ldl_code(env, ctx->base.pc_next); + ctx->opcode = translator_ldl(env, ctx->base.pc_next); decode_opc(ctx); ctx->base.pc_next = ctx->pc_succ_insn;