From patchwork Tue Sep 3 16:08:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 172832 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp60367ily; Tue, 3 Sep 2019 09:14:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHPsVvdQIAnbwjQDy2PWWI2Fw1DtmUYv5+9R31RgdwHJpZhKrQkOmedyN1G6saSCSpMT3e X-Received: by 2002:a17:906:b896:: with SMTP id hb22mr18879544ejb.59.1567527244962; Tue, 03 Sep 2019 09:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567527244; cv=none; d=google.com; s=arc-20160816; b=uekc/q61rDSUOMqukEnUtkMS6xLdFlAqLk6MvwN3X8XJu9uhPnCwxxESz/yIO4X3Oe nkidWm6hzsF/vlS/SqlCox3gPUf42tJCuOkerGJgEocUuJO/u+0G286ubPuGcKg7MJ5V NLqkc9i1VBF2XdfEd5J8P2ccEmscW89whguiW9YofObbVb4pun9v+zeDBXfDYgI9jKAe gxbtDURm0LiU0TKJaYCnFVkmP6o3LCQIxIrKY5DW4aD9xh5W3xnAEkpJOQoX0joX5BDG Fu1sryG5bYFqTgeUVIUppg8tahIEAXjcnuZnsRFBvLt4R0t2xt1pqLsdXCmazZsD4b9M y9hg== 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=kAhciq3n7FNXsC9Uw/vvM8E58dLHruQP1ECC6wNwlOw=; b=BN6JXhHDlQCS5fdm5I/HOCOTLFUPDDw/MvLlQaK4b6ixCswgYQGgMuF0yRK+eAaujs a5HCEnmUIZV9eWIVrtxaulLpY9J8Gu2jnMY8BOkG3cbygI//bzchoRLL7rU5HdgRSXC7 5NRRw1/5D9mHFu3uo4YaalHGJyv5Vg69Atjyfs4glRHUyr6YoTtfDWeczsgyJF4MStc3 FPL9OMKNqTTtWUuzpXLFAhNsw/tdsTmC8fhoH90aWr/ECzo7mO3mQWTig2IuteYjvBg2 jCtzhCH55nEBva2DZwphUF6hFm5+wnGGcjp/1Dp2sCle2VpwojiQx95HjpU5pNSRQlsY Royw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UlVVfaA6; 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 o31si11764389edc.142.2019.09.03.09.14.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Sep 2019 09:14:04 -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=UlVVfaA6; 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]:48628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5BRT-0004yX-Ec for patch@linaro.org; Tue, 03 Sep 2019 12:14:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37143) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5BMp-00013C-WA for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5BMo-0003hd-Ot for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:15 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:42533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5BMo-0003gK-IL for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:14 -0400 Received: by mail-pg1-x542.google.com with SMTP id p3so9387372pgb.9 for ; Tue, 03 Sep 2019 09:09:12 -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=kAhciq3n7FNXsC9Uw/vvM8E58dLHruQP1ECC6wNwlOw=; b=UlVVfaA6/BkVsIavZ5j+LRDxjD1YD5gONKILYeC82lW2p2aL/7IMU2P0D4yOevWmdQ Ts1oVAHLRdGQ4o8rScpOfWQqqwp0fRcTfjXeWexy+03WWsHhI4mzIbmzU0ipW6CKUnMI vTJOD4lMjUVcL2EHTl8Ma0fUWK8kvSnE9PuIa0l0nEg1/UajkGkNs7nx/soUsOqpML/i I649z9OnBl7J1WAPKYEzIzwigOrMPsXKf+EpmSVIwPS9g7zV5JfADMnI1n9rehHtkrb5 KgUI5+WVmp8oBv8MyrtcPTsA6odyY7+GdZlegdV5wOBhVLYFVCSqmNGnCPJdwgjTKBJu 7Y6g== 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=kAhciq3n7FNXsC9Uw/vvM8E58dLHruQP1ECC6wNwlOw=; b=d/GEOXCRQgrNpH9WSTUj2OnTnsWNCPAxHJhVePHIg9dsQ0JVbj2f3tKPEEjXT7lrMH ed4JcqJ9ft4KlISaJvTKIKa5zYCiHfnc4uaXd4ApRreonydT5i6wJ9of8QKQBX7fCr7N FQW1gkEKwWo9zCWqwNGaVOu27dRhIlRTbXv37h/Q6M9x9GDScv5AafkGHR0wkvAyWq0G PccM8GQ8/dVnIqsgcxGKD3R9b+6NF0bfDNV8eJmCmpz6bRLqnlGMqVvPI0PXM5lZPINM fOpaOaeg+j77+EMLHUC/XxPdVUfTGjKC2RuMKNY3t8+wFtN71z5k7jlWuTiq1ViGj8Xl XDeQ== X-Gm-Message-State: APjAAAXXlK/HGqx+GfvZTgOKglKI/BmtJLhNXWKMQhvfHdZkmSyQaOeF 84/Z3qoAGNvHgKsRVsJBOpH2wYHhbEM= X-Received: by 2002:a17:90a:33e7:: with SMTP id n94mr35016pjb.15.1567526951793; Tue, 03 Sep 2019 09:09:11 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id 127sm28089711pfy.56.2019.09.03.09.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 09:09:11 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 09:08:31 -0700 Message-Id: <20190903160858.5296-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190903160858.5296-1-richard.henderson@linaro.org> References: <20190903160858.5296-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 Subject: [Qemu-devel] [PATCH 09/36] cputlb: Access MemoryRegion with MemOp 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: peter.maydell@linaro.org, Tony Nguyen Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Tony Nguyen The memory_region_dispatch_{read|write} operand "unsigned size" is being converted into a "MemOp op". Convert interfaces by using no-op size_memop. After all interfaces are converted, size_memop will be implemented and the memory_region_dispatch_{read|write} operand "unsigned size" will be converted into a "MemOp op". As size_memop is a no-op, this patch does not change any behaviour. Signed-off-by: Tony Nguyen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- accel/tcg/cputlb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 523be4c848..6c83878f73 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -906,8 +906,8 @@ static uint64_t io_readx(CPUArchState *env, CPUIOTLBEntry *iotlbentry, qemu_mutex_lock_iothread(); locked = true; } - r = memory_region_dispatch_read(mr, mr_offset, - &val, size, iotlbentry->attrs); + r = memory_region_dispatch_read(mr, mr_offset, &val, size_memop(size), + iotlbentry->attrs); if (r != MEMTX_OK) { hwaddr physaddr = mr_offset + section->offset_within_address_space - @@ -947,8 +947,8 @@ static void io_writex(CPUArchState *env, CPUIOTLBEntry *iotlbentry, qemu_mutex_lock_iothread(); locked = true; } - r = memory_region_dispatch_write(mr, mr_offset, - val, size, iotlbentry->attrs); + r = memory_region_dispatch_write(mr, mr_offset, val, size_memop(size), + iotlbentry->attrs); if (r != MEMTX_OK) { hwaddr physaddr = mr_offset + section->offset_within_address_space -