From patchwork Fri Jun 14 17:11:43 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: 166863 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2350835ilk; Fri, 14 Jun 2019 10:53:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCjZ+QJfXx/aLexdJAL2B3GG9K2MK5FV/B5UOLLvjzBfxdD2u1pUVb01HNUymdcf6ogOQA X-Received: by 2002:ac8:3907:: with SMTP id s7mr36183771qtb.374.1560534788116; Fri, 14 Jun 2019 10:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560534788; cv=none; d=google.com; s=arc-20160816; b=H97odgSK9kohZKgVviqEWeHWvDljzFMc9LmT6g/q8ufhSYlAnmvPKjymYOKD59RWPp seMBbJx8kpramYXdpUn2zGPDVrC09Bg+NaVUcmuLbACr2wjOgsV8hQUCUUUqHfj3l5cx bYkaD121OiXtS0Kj2Ftz/0G0MiRgpaShAAL7A665sNk6kBVOFJtnT7V46xdeySUOAHKP DRlOQNljWXitXaEdwLLqArMSxHMtEtLYS9kmbooj8ifix2iNC4I6rTaMvmY2HdWGvGfP xhIcOT2+vtd4YfHY8aCotLRvkohd6WczEbKQzecHg92opL/P6c8XL848ctvQYDo0EkRw /kXg== 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=qBxTdhQNZtrN8TCgxYqVNYuvZXvpIW53Hq/nYGE1p+s=; b=PAcHlonTbIMBzz5FLrzYTIgtOtRmz2bOnuLAjYnOLnZ/WF8enNU767X+ok6Wr/FUMa Dt/qm35w8CRFg29VNlBW5gb8VsnDd3GHDeAwR226dMqEUUhguasG0SGOXfAZEfNBBmSY 7sdABmx9tJxSi3rfLknnlg7oJF0QdeDWScmKQThUSOTp6qsJxGsAA8OrSDnlBLtroYBn eoZ67C674u0pwG86LMyceFfneF4Gp3fEUq1VUt+POsE77q/O4MIxX70Fl2BQMZTFMvLc pQ2QgD5lN4FBqu1OLOaW4pnr94GSztavgeuw/cjFEA/u2HGsYjOYwdrJOMxOxh7nxVaT jHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=M1DmIUjJ; 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 c10si2292749qte.165.2019.06.14.10.53.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jun 2019 10:53:08 -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=M1DmIUjJ; 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]:53902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbqNv-00070w-MD for patch@linaro.org; Fri, 14 Jun 2019 13:53:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58666) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbpqj-0005bE-5a 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 1hbpqe-00078m-TI 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]:39876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbpqe-0006hj-7i for qemu-devel@nongnu.org; Fri, 14 Jun 2019 13:18:44 -0400 Received: by mail-wm1-x341.google.com with SMTP id z23so3055013wma.4 for ; Fri, 14 Jun 2019 10:18:32 -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=qBxTdhQNZtrN8TCgxYqVNYuvZXvpIW53Hq/nYGE1p+s=; b=M1DmIUjJySM8HeXdTGllOAnCV5BQWwrV1ZQFtLnDqxSe2LLP/N+uoi7AKRg70JDFSJ oaPMDLXPqfdBoiN2qTzSdyo9HkxQbKz3psNqrDLueGza2A5702DY+6pfV2by6zN+ksVP 8LNHPNSNEF2dKg9M71LyVkLbHN/3FGYzfouiDnEcWwWmmRappMgfb3EIC6ryJL8Mr8Nq IBWf+blPzV7TKFV+e6rYxhAnMFfjBv7HzzC5q6HtwDy4TXrkm+vr01IK1ep6vOgr/jkE 9wvXj4Rxd0C0sYh1G8L7uf3iAO1OTW2z96pfBTT+nTbpauxHivoN4HDFKn2df36b+UeI ymgA== 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=qBxTdhQNZtrN8TCgxYqVNYuvZXvpIW53Hq/nYGE1p+s=; b=VBjlFLY3lHveV1gIWbiIa2xmed/+SfpBPaG416TcsOWZ4KE7Zwm6EbLk/BvLOy6Nni QVJg0z3m/aGpuZykZBNx35l2etGa4BIHtIZECPfr3DYuLXvwjUtFeRSNuF47mNOWFbtb 5pKK6GeH+DFzhXVy9Zgyt4BSu0YZPv0+mxC+zdw587MuEyrbYARXJI1WcVjaJYG1CA4q DpvvWu3uKkYwxJJ9PDB20O6b6FmNzubv/3mUIxJzW2GxRTYv3AYX6A1LH6l8yl+MJSJg QPW74mhpjaxQ9reBF+6e+rR1edvnYavxa8ZpbRh9+a2opDAULBGVAnq1nOetlzMUVb17 l3xw== X-Gm-Message-State: APjAAAUkkKECLmc5t2OaVKrs4mWOiF65cNDYFeFiorX0pjk5Pf4OBfoV XfepiCz3yaG3elpPRLGTGnTaFw== X-Received: by 2002:a1c:c549:: with SMTP id v70mr8517710wmf.135.1560532711546; Fri, 14 Jun 2019 10:18:31 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id s188sm4164408wmf.40.2019.06.14.10.18.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 10:18:29 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 697DA1FFB8; 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:43 +0100 Message-Id: <20190614171200.21078-34-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 33/50] 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 , "Emilio G. Cota" , Alistair Francis Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota --- target/riscv/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/target/riscv/translate.c b/target/riscv/translate.c index 313c27b700..899abf41fa 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -793,7 +793,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;