From nobody Wed Feb 11 07:12:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1507664625593950.4749536851923; Tue, 10 Oct 2017 12:43:45 -0700 (PDT) Received: from localhost ([::1]:36851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e20RA-0002Qt-2W for importer@patchew.org; Tue, 10 Oct 2017 15:43:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e20EZ-0000mo-DW for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e20ET-00055P-QX for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:31 -0400 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:54759) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e20ET-00054m-Jy for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:25 -0400 Received: by mail-pf0-x233.google.com with SMTP id m28so13339949pfi.11 for ; Tue, 10 Oct 2017 12:30:23 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-104-76.tukw.qwest.net. [97.126.104.76]) by smtp.gmail.com with ESMTPSA id r22sm19859788pfl.15.2017.10.10.12.30.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2017 12:30:21 -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=nCHgQRfd/6L6A+ZFLqYH/ozIQbUkersXx+TPVXfIV2w=; b=fWPlj9AbltdQtnuBqPNPux1kN2vFh8Kyc6GhMNgerN+Tck6b6EFEy6N1O/7pSmdy2u SG3ZHCALoJgC3lS77gqCkZwcjfApjShxbhC8vKsBvYXxdjrkPGFcgdcYAcONwdfeWpBp mDmQt3juUWsnxozpWKmjp4ld8Bw2PQb3EghY4= 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=nCHgQRfd/6L6A+ZFLqYH/ozIQbUkersXx+TPVXfIV2w=; b=Nknr+K12G97lNvW1XRnMSFuk3R+RsGt8MaOeXbkZWTJv3aJ/Io9DEQUfIRPehICATz wm8haKATDVBeHJFmFIZhnpWxnvd6vmpyRgIR3MCdDnQ506IQjHRdT3SVELLrG/x5AGA7 elr70Awd14//OpGUvW6Z2BR5jV+h0XCagtNS7OYhoP+HtgDe/pL3me0++FSBuMjGQ+gz k5PdHq3ZMZm/zdhR4IkbT6MaedpdUhfjnpFU2RqM7/7puq3HBofK15M+fDGDFrU1UClE vYjB2DCTGa1LCU/vQGHvtI78+/c9cPoLyou1e6Ew0zVc3tRcc1i0IQ3LdTK04NSzeO8w vPIw== X-Gm-Message-State: AMCzsaX6rqAhEYIeTKw9kJks1rSYpAQI6DdTr3w8Cq6JId1fjIXz1eUA U7gA8K+sz5CJz26oG2owK2I0HIK/g4A= X-Google-Smtp-Source: AOwi7QC6bmoL69oh9hFA5qv54bdN++zziW0rosKQhlUtpqzA3czzXPQmk8Vt7CTMnU55YzSlM6i9Sg== X-Received: by 10.99.167.68 with SMTP id w4mr12937604pgo.390.1507663822260; Tue, 10 Oct 2017 12:30:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 10 Oct 2017 12:29:55 -0700 Message-Id: <20171010193003.28857-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171010193003.28857-1-richard.henderson@linaro.org> References: <20171010193003.28857-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::233 Subject: [Qemu-devel] [PULL v2 12/20] exec-all: introduce TB_PAGE_ADDR_FMT X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, "Emilio G. Cota" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 From: "Emilio G. Cota" And fix the following warning when DEBUG_TB_INVALIDATE is enabled in translate-all.c: CC mipsn32-linux-user/accel/tcg/translate-all.o /data/src/qemu/accel/tcg/translate-all.c: In function =E2=80=98tb_alloc_pag= e=E2=80=99: /data/src/qemu/accel/tcg/translate-all.c:1201:16: error: format =E2=80=98%l= x=E2=80=99 expects argument of type =E2=80=98long unsigned int=E2=80=99, bu= t argument 2 has type =E2=80=98tb_page_addr_t {aka unsigned int}=E2=80=99 [= -Werror=3Dformat=3D] printf("protecting code page: 0x" TARGET_FMT_lx "\n", ^ cc1: all warnings being treated as errors /data/src/qemu/rules.mak:66: recipe for target 'accel/tcg/translate-all.o' = failed make[1]: *** [accel/tcg/translate-all.o] Error 1 Makefile:328: recipe for target 'subdir-mipsn32-linux-user' failed make: *** [subdir-mipsn32-linux-user] Error 2 cota@flamenco:/data/src/qemu/build ((18f3fe1...) *$)$ Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota Signed-off-by: Richard Henderson --- include/exec/exec-all.h | 2 ++ accel/tcg/translate-all.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 3135aaf4c9..79f8041811 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -31,8 +31,10 @@ type. */ #if defined(CONFIG_USER_ONLY) typedef abi_ulong tb_page_addr_t; +#define TB_PAGE_ADDR_FMT TARGET_ABI_FMT_lx #else typedef ram_addr_t tb_page_addr_t; +#define TB_PAGE_ADDR_FMT RAM_ADDR_FMT #endif =20 #include "qemu/log.h" diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 799b027e79..90b3eed9c6 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -1193,8 +1193,7 @@ static inline void tb_alloc_page(TranslationBlock *tb, mprotect(g2h(page_addr), qemu_host_page_size, (prot & PAGE_BITS) & ~PAGE_WRITE); #ifdef DEBUG_TB_INVALIDATE - printf("protecting code page: 0x" TARGET_FMT_lx "\n", - page_addr); + printf("protecting code page: 0x" TB_PAGE_ADDR_FMT "\n", page_addr= ); #endif } #else --=20 2.13.6