From patchwork Fri Oct 25 06:36:50 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: 177652 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3265582ill; Fri, 25 Oct 2019 00:13:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwa1GnS3es++Nc/ydChRwrBhl683/Ov1jGQq9zhngT86cuCEncnoN6B7M8l6RqSAhZjCBpq X-Received: by 2002:a05:620a:12b9:: with SMTP id x25mr1580278qki.4.1571987615228; Fri, 25 Oct 2019 00:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571987615; cv=none; d=google.com; s=arc-20160816; b=qF8LfnF65y8dxgx3zwpVo6jcgCRxYnFAqUdY5i/dMK+/nsQNXiRbZRSBGe4ldcTkuo Cm7Ipe0Kp6QbtaG94OGN/MuRwuS2WCuXyJydpQ/aKeXv9mRrytISwKHL3kVWyetT6PN9 xOcsQA6G6/fAxnnZm6p3mrq4TyZH5A+hr6OMa1XwRHNv/44oHToKoLxqHYeTZnwFTSVv zGsC1stXuPyV2MImarSSlWg0diGmVnyMOlhZIzDiS07J6KRl1aesftFz0NxYiIfVfPV1 T7ff3P2dqVOcr+muFmyHW2UBpgHkqxueLb+Dohga6hy/LP4XdplCywrWeDwfPwXJPF9y jtmw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=jFa/hOu9KHZ8ebr83jt0r9dYBdNGFT8yLTa2Nx/5eIw=; b=u/ss2DWRjjFz0GX165tPUSMGpem9VsrHsRbJ9erWijpNsT4TH5W9Izd0v6qkq7uVd2 Ew+RZTzO00f882He8XLg+1f3pdNNKjOc2IwqUyo4qHpWA1T+s4Jv75vmSYInsGLcbiFf eH5DvnAv77HpxCIdUtl8L5+IYGrZK+aPw9Uo5JH06GZQADsuzK2jLmjLffJ4/HuNVIRo oZk9JRkAyxOMm72zrnxy0QqlcXdg8yegMlxy2XoLAndYLLGh0quUFFvKmPgUs+izawBx HuVP5obIx6e+39RQ+pZbkHgtxjCAF6WT2BF3LhLp9yJMotMxyfIhAiB68ESoRKx07Tsp SWtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=lvqRnqz9; 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 o188si791789qkf.352.2019.10.25.00.13.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Oct 2019 00:13:35 -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=lvqRnqz9; 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]:56470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNtmu-000605-JF for patch@linaro.org; Fri, 25 Oct 2019 03:13:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37070) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNtN7-00088R-Vk for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:46:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNtN6-0003Hm-Ty for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:46:53 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:39772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNtN5-0003Aw-D4 for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:46:52 -0400 Received: by mail-wm1-x331.google.com with SMTP id r141so776628wme.4 for ; Thu, 24 Oct 2019 23:46:41 -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=jFa/hOu9KHZ8ebr83jt0r9dYBdNGFT8yLTa2Nx/5eIw=; b=lvqRnqz98JlEd9uvJ5JM9/fjGz10OL5WoKXPl7IXscz4f2YbppADPoMQl48ELI3LLJ ySAJtlJ46mVQGFEqxG1VEGx0eA1K2nKs0osMcmMy7C4bCnvKeJq5kCcp3TLdsgM0qTnh AmVGZZJcvxr6fIgOqmoT9aMjL856SdSzbOowNzlsDjj+Jm3ZHouKRGuGByo8IR5f4lNs b4jO6bjGWxX7Fd1Hso+EJUx2R9tPXefjDj3G3li7+oVZTjx8FlcMNkHBXvxeblbjUU6Y pt+Ya+AG0bJbwvG04oz+bgmb1i93V0Cya6WZi+l84Pv94hhoIKlhZk6H39E6c7ZBVRs9 I8Fg== 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=jFa/hOu9KHZ8ebr83jt0r9dYBdNGFT8yLTa2Nx/5eIw=; b=tvZP2MZK5xXhALmbYaDdwQ0bf46K6yY1kWQNBK1z9khSsjqKvhA6/c0rijv9i36CmZ G6iFsrzvYNowI2XoxPmjtFFzR9sm3QAWidMnylUABm7G/kWykNInaR9kYpWKlVkt13Lr RqNIf3H0meea08LYdx6gMptVk5L5e8R0gdKXANB4Nduv8LGnYYiigqX3IyNt9ii5pEcs DT2JBAGR9PQoY880nD+aY2cbUd5tg6xSHU62Id7hJ+cne8Khn4Z5XoSqD9l5aNAdv0/X nTZwi4ag1Kbvv8hztvUjgDM1eDjppdMu75wpb5XunrlBJQG5UHaeE+/1GwryuvWINaiX pKIw== X-Gm-Message-State: APjAAAWhmZQnXxJli4BijbAjJYH908dsJu+6pyChfgdDrD4kL0bn2Yn5 Dyp8Iy3tOgpTCHYBI81pcF8sLQ== X-Received: by 2002:a7b:c216:: with SMTP id x22mr1920672wmi.161.1571986000366; Thu, 24 Oct 2019 23:46:40 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f17sm1136373wrs.66.2019.10.24.23.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 23:46:36 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6B0AC1FFCA; Fri, 25 Oct 2019 07:37:18 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v2 50/73] target/openrisc: fetch code with translator_ld Date: Fri, 25 Oct 2019 07:36:50 +0100 Message-Id: <20191025063713.23374-51-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025063713.23374-1-alex.bennee@linaro.org> References: <20191025063713.23374-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::331 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: =?utf-8?q?Alex_Benn=C3=A9e?= , Stafford Horne , "Emilio G. Cota" , Richard Henderson , qemu-devel@nongnu.org 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 -- 2.20.1 diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index 6addbac8d63..8dd28d6cf17 100644 --- a/target/openrisc/translate.c +++ b/target/openrisc/translate.c @@ -1645,7 +1645,7 @@ static void openrisc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs) { DisasContext *dc = container_of(dcbase, DisasContext, base); OpenRISCCPU *cpu = OPENRISC_CPU(cs); - uint32_t insn = cpu_ldl_code(&cpu->env, dc->base.pc_next); + uint32_t insn = translator_ldl(&cpu->env, dc->base.pc_next); if (!decode(dc, insn)) { gen_illegal_exception(dc);