From patchwork Thu Oct 17 13:15:47 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: 1178658 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="xS0FBr6W"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46vB1R0Jjmz9sPF for ; Fri, 18 Oct 2019 01:11:55 +1100 (AEDT) Received: from localhost ([::1]:48852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL6VM-0006I4-AA for incoming@patchwork.ozlabs.org; Thu, 17 Oct 2019 10:11:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35591) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL5mX-0002Kb-0o for qemu-devel@nongnu.org; Thu, 17 Oct 2019 09:25:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL5mR-0001Gl-Tr for qemu-devel@nongnu.org; Thu, 17 Oct 2019 09:25:32 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:42511) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL5mR-0001GK-Nn for qemu-devel@nongnu.org; Thu, 17 Oct 2019 09:25:27 -0400 Received: by mail-wr1-x443.google.com with SMTP id n14so2340110wrw.9 for ; Thu, 17 Oct 2019 06:25:27 -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=Bu4rKDpgnn8IvteRUio5V7sQbtET4I/Wc2TO4RaQ0LI=; b=xS0FBr6WVWAXfKPrZTybwn6uwFc1uQOgEnOCcU5ItblD3IOLAPKxgR6W/0qDov2+ri E+KJlCX273ZyMeVG47PpLFIJpJfK6lNodhuNIGUMHKyQQZ34JJBqHyUFOmR+DQa/AI9/ syWkjPqRL45V4/JrxE1sXYje0JPF4yOT9HOpp758En8JTVV0Ts7+5MwCAO45cDLBsG3s MDt3vnij7mhQHRif8ZgRH8ktWO5qYjbrEvkRINKqJepgGPZZ2QOOgjoixPOKcJRoKhfD Z1qWHO/8i1qzJV6ABatwGDN8jc07gHwLeUURT+lKCyzojt8Zi/rMEnKW5KpsHsTd1zry JCVw== 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=Bu4rKDpgnn8IvteRUio5V7sQbtET4I/Wc2TO4RaQ0LI=; b=jPqCMUkRy1ZVxYlBATGY/c2ibblNwrNpR68owvP+1ZLVSs4FdrBZMSyD6Zp4YAo0YQ 2I7XSQ23uRC3fDG1qXPGdbJZVU129d40cQsfwl4muHWOgJr2FB8YrY/tcb3mzDaJKPfp 2gPjwu46ifZGGdHtt6DeiFrjkPeUKu742h4CWnbZllhV2o9UzfHjofDZ0uzPE1lUP8Wu o1Mk9kAS1wqNDdfXFoYAWC5Q5xGAXo4ZV8wfeigvPpBsgCnymzIkPzww00kHd8ZYPJMe jzEZi3ZIhbGWWgaWRYk7PrUE0+4i+2WfV7/jLUSnI3/yC558uEk8y6vNZ1RP8hWFODZc S8zQ== X-Gm-Message-State: APjAAAW8g6WwAosY9rG7zNs5rAnTJFdjSh6u14LSIWYTyrIcBnQBLR4d OGQ+ebLhbeGVkA+Vc08Xb9l5/w== X-Google-Smtp-Source: APXvYqw0s3QwZeOFr8osfdzdaFX5ISZlhcnJB6UxOwbYzSkVJzk1ubKkkOHmE7lWa99/ul51RcSKXA== X-Received: by 2002:adf:a48c:: with SMTP id g12mr2887150wrb.212.1571318726654; Thu, 17 Oct 2019 06:25:26 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y19sm2096038wmi.13.2019.10.17.06.25.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 06:25:25 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 5E1D31FFAF; Thu, 17 Oct 2019 14:16:18 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v6 26/54] target/i386: fetch code with translator_ld Date: Thu, 17 Oct 2019 14:15:47 +0100 Message-Id: <20191017131615.19660-27-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191017131615.19660-1-alex.bennee@linaro.org> References: <20191017131615.19660-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::443 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: Eduardo Habkost , robert.foley@futurewei.com, Richard Henderson , peter.puhov@futurewei.com, aaron@os.amperecomputing.com, cota@braap.org, Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.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/i386/translate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/i386/translate.c b/target/i386/translate.c index 868b0acafe..77e932d827 100644 --- a/target/i386/translate.c +++ b/target/i386/translate.c @@ -1925,28 +1925,28 @@ static uint64_t advance_pc(CPUX86State *env, DisasContext *s, int num_bytes) static inline uint8_t x86_ldub_code(CPUX86State *env, DisasContext *s) { - return cpu_ldub_code(env, advance_pc(env, s, 1)); + return translator_ldub(env, advance_pc(env, s, 1)); } static inline int16_t x86_ldsw_code(CPUX86State *env, DisasContext *s) { - return cpu_ldsw_code(env, advance_pc(env, s, 2)); + return translator_ldsw(env, advance_pc(env, s, 2)); } static inline uint16_t x86_lduw_code(CPUX86State *env, DisasContext *s) { - return cpu_lduw_code(env, advance_pc(env, s, 2)); + return translator_lduw(env, advance_pc(env, s, 2)); } static inline uint32_t x86_ldl_code(CPUX86State *env, DisasContext *s) { - return cpu_ldl_code(env, advance_pc(env, s, 4)); + return translator_ldl(env, advance_pc(env, s, 4)); } #ifdef TARGET_X86_64 static inline uint64_t x86_ldq_code(CPUX86State *env, DisasContext *s) { - return cpu_ldq_code(env, advance_pc(env, s, 8)); + return translator_ldq(env, advance_pc(env, s, 8)); } #endif