From patchwork Wed May 26 23:46:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 448233 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2b0d:0:0:0:0 with SMTP id gc13csp6043596ejc; Wed, 26 May 2021 16:48:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA9c2y6CMQVPfctcp2r9CKGbTO/8Nm7OGhnmYZ2TDLEFC8Z0Ce7yxOD2amPldKuC81CZLC X-Received: by 2002:a92:d206:: with SMTP id y6mr720310ily.182.1622072897066; Wed, 26 May 2021 16:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622072897; cv=none; d=google.com; s=arc-20160816; b=G3muuD5IkslnclloWMPEgyGj1TQdDS/+5lspf737LAKdSJHQIZkBEMGUMz88l6iaGN lFyh4CQYxvB51N4YJF9o99r26maqw9QK1X9DFyneXJSz7+7f/SS9ZdrRlLLc5q7Yafhf CZNhRgKdYP05i0QHgoSFPQmFL5YsartroP4yD4fMXHn2DdGoV5yAghi+BC8U2flHBS+X 1j84unO0iFGD/TQp69Nr37py/VZY0DSGSK74jc24GW5l243PEJt0iDbe8Qzr26RovlvW T3Ss7XUPKOwI9sZY5+FuZ0FYGSojNPJVi4OKRUTG/p3HXEkwzDZZ0D0Y/O50ipPAUitU zcyg== 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=ctF8jI1PInVtqpUhepZanIEwZw+6zytZ0vAzr9xJPtk=; b=vYVLFFeRW//AhE+AcH3ymLQfJej6wn107+Ns3hjkjulnSXfgeMbV7y6StHRgKbrgV1 XzdN+DglHUBus8+INfgEC/syuipTf7DQmoVhz699byDDchL5zmTfz6bD8MKptw8+1HxH OrAcsLLAHFejyjMxSpfcXcdfXjeKE0+S/6tZYzSfPvOTEz3ptrlHzBvUwEQrgI6IHgmQ AUyz/G/cQ89dANK9c3/XBTHM5SsatwgsVB/cFiuCEKJA9pwtLfVoO8VFoiFI0HvLhW0k MzxiBGwIYyDIkY6WCvW22khR9yqjiqI2uO6J0x8jSsv8kJpZJcWYmdDKI16QoTKJhfri b54Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PFpX273T; 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=pass (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 r17si480730ilq.4.2021.05.26.16.48.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 May 2021 16:48:17 -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=pass header.i=@linaro.org header.s=google header.b=PFpX273T; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm3G4-0005gC-9h for patch@linaro.org; Wed, 26 May 2021 19:48:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm3FH-0005bF-LB for qemu-devel@nongnu.org; Wed, 26 May 2021 19:47:27 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:41912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lm3F9-0004S3-Lf for qemu-devel@nongnu.org; Wed, 26 May 2021 19:47:26 -0400 Received: by mail-pf1-x432.google.com with SMTP id p39so2206395pfw.8 for ; Wed, 26 May 2021 16:47:17 -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=ctF8jI1PInVtqpUhepZanIEwZw+6zytZ0vAzr9xJPtk=; b=PFpX273T5S9DW9mYxZkh0PWBtKf4hHYjOEiTHmzfozmBZOy0tO8V/zzwx30xnDQOy8 vXp3nfusgbFK/zxVd5rMgi7PHCDqTvxvMTXSkq0GqUKLoHpDBBLWbIMWWqCD3J0f/eXL NO91gYcL/lmJd53lx0a3l5VIFf1C5dgHz3u8tcjI6guPDRL3BAbo3rqhbP+Ava/LbzI1 y5/C2DB+QjDgXZPYdlM9XxgQqklaaziW1a1Ag2BW2Gl1tipl1Zu5Fl1Y7hNVRgQ6w6BR ew6QPT4HM1VHOcGh0LAl7+nMu/9m54kWEjHUQ95AoURcL1bePVid9TjlUR0YSxYguox0 WP7Q== 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=ctF8jI1PInVtqpUhepZanIEwZw+6zytZ0vAzr9xJPtk=; b=VIRiXNbvndBVbix5Cd68n7FERuVxcl6FQdu779nixrFThRphnlyXa2VfbuzkbOpQMn W5mWkx6jx4NVVlb6IKIJABtSqH1iaVNsAwUItsyxWq6g6Mz8ZvGSWEFHnqQ3js5ynNVD qiOIsGLp12RXWVNi3qtir83NSesFnGIyG99TeQI2sSvr6fUTehfyv4v8bxjPd+XziHYJ ksz/TgSDoVkHoyUQsXHRf0xMTgVrLTDs6OVYJ0XlnEM54pRU3Ksr6j1o2XvIJnVJUclV FTBTFs1qluQ8Z8uMD00SKlU1+08jcukX1GvUmlmX/EiSj6AoH/IyeeAEzdtKK05QsYuZ bCMA== X-Gm-Message-State: AOAM533E1GfBrOFqHUGKyaLKrLS70pNKN3mI7e19Gr7H1kG07Kyn3gJg dm3CfFiC70WZYsZ1YLZdcvzIWpgcfm9wag== X-Received: by 2002:a63:3e4d:: with SMTP id l74mr995274pga.257.1622072836405; Wed, 26 May 2021 16:47:16 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id g13sm285355pfi.18.2021.05.26.16.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 16:47:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 04/31] exec/memory_ldst_phys: Use correct type sizes Date: Wed, 26 May 2021 16:46:43 -0700 Message-Id: <20210526234710.125396-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210526234710.125396-1-richard.henderson@linaro.org> References: <20210526234710.125396-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Use uint8_t for (unsigned) byte, and uint16_t for (unsigned) 16-bit word. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210518183655.1711377-5-philmd@redhat.com> Signed-off-by: Richard Henderson --- include/exec/memory_ldst_phys.h.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.25.1 diff --git a/include/exec/memory_ldst_phys.h.inc b/include/exec/memory_ldst_phys.h.inc index 4033795add..ecd678610d 100644 --- a/include/exec/memory_ldst_phys.h.inc +++ b/include/exec/memory_ldst_phys.h.inc @@ -20,7 +20,7 @@ */ #ifdef TARGET_ENDIANNESS -static inline uint32_t glue(lduw_phys, SUFFIX)(ARG1_DECL, hwaddr addr) +static inline uint16_t glue(lduw_phys, SUFFIX)(ARG1_DECL, hwaddr addr) { return glue(address_space_lduw, SUFFIX)(ARG1, addr, MEMTXATTRS_UNSPECIFIED, NULL); @@ -38,7 +38,7 @@ static inline uint64_t glue(ldq_phys, SUFFIX)(ARG1_DECL, hwaddr addr) MEMTXATTRS_UNSPECIFIED, NULL); } -static inline void glue(stw_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val) +static inline void glue(stw_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint16_t val) { glue(address_space_stw, SUFFIX)(ARG1, addr, val, MEMTXATTRS_UNSPECIFIED, NULL); @@ -56,19 +56,19 @@ static inline void glue(stq_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint64_t val) MEMTXATTRS_UNSPECIFIED, NULL); } #else -static inline uint32_t glue(ldub_phys, SUFFIX)(ARG1_DECL, hwaddr addr) +static inline uint8_t glue(ldub_phys, SUFFIX)(ARG1_DECL, hwaddr addr) { return glue(address_space_ldub, SUFFIX)(ARG1, addr, MEMTXATTRS_UNSPECIFIED, NULL); } -static inline uint32_t glue(lduw_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr) +static inline uint16_t glue(lduw_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr) { return glue(address_space_lduw_le, SUFFIX)(ARG1, addr, MEMTXATTRS_UNSPECIFIED, NULL); } -static inline uint32_t glue(lduw_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr) +static inline uint16_t glue(lduw_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr) { return glue(address_space_lduw_be, SUFFIX)(ARG1, addr, MEMTXATTRS_UNSPECIFIED, NULL); @@ -98,19 +98,19 @@ static inline uint64_t glue(ldq_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr) MEMTXATTRS_UNSPECIFIED, NULL); } -static inline void glue(stb_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val) +static inline void glue(stb_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint8_t val) { glue(address_space_stb, SUFFIX)(ARG1, addr, val, MEMTXATTRS_UNSPECIFIED, NULL); } -static inline void glue(stw_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val) +static inline void glue(stw_le_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint16_t val) { glue(address_space_stw_le, SUFFIX)(ARG1, addr, val, MEMTXATTRS_UNSPECIFIED, NULL); } -static inline void glue(stw_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val) +static inline void glue(stw_be_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint16_t val) { glue(address_space_stw_be, SUFFIX)(ARG1, addr, val, MEMTXATTRS_UNSPECIFIED, NULL);