From patchwork Fri Feb 24 07:38:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 656246 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp763736wrb; Thu, 23 Feb 2023 23:40:48 -0800 (PST) X-Google-Smtp-Source: AK7set+EWk2OTzLzIPeNUXziIYO3Y3+OC0on6b+AsWPb9Wkx0HNlpJE/lVDyrIny1UmRvWhwAecN X-Received: by 2002:ad4:594a:0:b0:56e:ace7:6a03 with SMTP id eo10-20020ad4594a000000b0056eace76a03mr31567220qvb.6.1677224447899; Thu, 23 Feb 2023 23:40:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677224447; cv=none; d=google.com; s=arc-20160816; b=alH/Ls1j88+at6shUOFpL9jjTQfRtSw6AWPthqqTd9sCY5IyUTPqjkNfLpS1Cr2+m8 0rCIQk02UIDV8Rd6lYzolgw5Jk8tmL/LuJVfsOeKf7YOAkBPaCpsi3X/urg4+EuXLP8w IyiNR9R+7OL2/Azg0IMh8HuxxUpRZpLvnFOmtwTQ6DQUeqXuXGNoBiNeWbn+1o4ff9E2 5b9rt9N06s5NzchvdC+MWDp6tYD3Tos0+8SxtK77utHhGSAbnne9u2QqFr/+Pe+sUXoR dlGPwOGUhUREFkGZrGkRtyb0UUzF6o+AzY6pwslbDIK4vxMx/V2YFP6O408T4qFWp3GT GS9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=EeYArS5hWZCjgwU4Fv516wl6zFFk8QoPAiu0DqtwGv4=; b=Cv2J6E+Qj0aq6YlzRp1bU1MaMZeVLur77qvlO7robb7b6xFR+6h2r8/WYu+kuX8WY4 7x/OmoVP1sLpN+zj9YjGpbO2H3Ue6GqNcw2/09Tx1cXdzj1SRQqO+2nOtaqqy1SpiQuH r2dcd9hE5D41lrl5IklLtb9Sancs2RQlWRdsWtIdCuWPfgzijTG5e3Y76JFRNu7cONVu 57/NtSo906w4O2dWrRvYoxvFXPPdC2RQNgfPsQ8YdWFaooW7xnxrQb+iGQSO8y4++AIs +MQIyUZbW6/HRzTMGl7BWavZtIergg17NNEDaY4yYpjdi4Dt3WsatzUmzJGZyisWyyUD IMQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=haCWqaJb; 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 bp32-20020a05620a45a000b00739136cc027si2473942qkb.358.2023.02.23.23.40.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 23:40:47 -0800 (PST) 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=haCWqaJb; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVSfX-0006TO-94; Fri, 24 Feb 2023 02:39:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVSfQ-0006SJ-48 for qemu-devel@nongnu.org; Fri, 24 Feb 2023 02:38:56 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVSfO-0006ms-Ec for qemu-devel@nongnu.org; Fri, 24 Feb 2023 02:38:55 -0500 Received: by mail-wm1-x336.google.com with SMTP id iv11-20020a05600c548b00b003dc52fed235so1154956wmb.1 for ; Thu, 23 Feb 2023 23:38:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EeYArS5hWZCjgwU4Fv516wl6zFFk8QoPAiu0DqtwGv4=; b=haCWqaJboAoaQU4SqSQTz4A033cxnEKyLMvVULtoBbOUCUVev3PgTAVBY/TqcCULlJ XxQyyE5vdIFhxmlJsMIUs7xfFzeSnYFK0yY4/DrdutL9Fsp1kFvrYMVeadmH8NhxfMmt V95tPibpNLSy8Tdy4zdleqCo9GAoI1aIQstpyBh3n3kV/phaosTntOxXOG6sKxBGVLVR ThogNpIaTYm1ZZR19+GKLEKw7I1YSsGxWRP70VbCjdoi00iTZAUkpGOeAT2adGx51/nM 3DcwZvMDZ9Y+dye31Rnv0vRBfyXbjxaYKgCs77tnurOjo8SE/DBbp0SqVauWf1r0Nor2 dyyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EeYArS5hWZCjgwU4Fv516wl6zFFk8QoPAiu0DqtwGv4=; b=x4ntqvdUJJN533A3tZwinT8sY3Z1bdyln88K2zzS9ZE0eVDM8gYwOQTNpduziZVKO0 IXQWYo7zzrswn1c0jARXypAQ6lsQg/UBg8cPaydQRkuR3J/LZweV5l395vHORoik5njZ kSPk18p0R04Jdbet5ZKTuWms1PmV3jlHn5SUyulqjcCPPynIP9kKkwNpDTYWXorC5O3j 7QXZsqE1lABNzd0Gx5kkxqOCHs+0+FEbRawlC2a4SsEa5PlOGOOmKfEH43++huLaYiLM 63wdF6c9yb+5e09FmJG5HuNjFeRn6G1DRkccrD8FHmXMftWvtQJqjx8E2TNaFEgdHCqr C2pA== X-Gm-Message-State: AO0yUKWdJL4t4IP3wayiI9VhXP2qKA/QjssauHxGWdIzCq9jrhjt/VID TcCGsDBW9DuSmMva1UTfFCWf7c5tgNM0utb/ X-Received: by 2002:a05:600c:3089:b0:3eb:29fe:734a with SMTP id g9-20020a05600c308900b003eb29fe734amr1675wmn.39.1677224332387; Thu, 23 Feb 2023 23:38:52 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id d8-20020a05600c34c800b003dc4480df80sm1955798wmq.34.2023.02.23.23.38.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Feb 2023 23:38:51 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Janosch Frank , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Subject: [PATCH v5 0/5] dump: Make most of it target agnostic (build once) Date: Fri, 24 Feb 2023 08:38:45 +0100 Message-Id: <20230224073850.84913-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Since v4: - more unused headers removed - KISS, use a bit of #ifdef'ry to avoid a stub file Thanks to Richard help, we can now build dump.o once for all targets, keeping win_dump.o for x86* targets. Philippe Mathieu-Daudé (5): dump: Replace tswapN() -> cpu_to_dumpN() dump: Replace TARGET_PAGE_SIZE -> qemu_target_page_size() dump: Clean included headers dump: Introduce win_dump_available() dump: Add create_win_dump() stub for non-x86 targets dump/dump-hmp-cmds.c | 2 +- dump/dump.c | 35 +++++++++++++---------------------- dump/meson.build | 4 ++-- dump/win_dump.c | 38 ++++++++++++++++++++++++++++---------- dump/win_dump.h | 5 ++++- 5 files changed, 48 insertions(+), 36 deletions(-)