Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1l8t09-00020m-5l for mharc-qemu-riscv@gnu.org; Sun, 07 Feb 2021 17:57:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8t07-0001zC-Me; Sun, 07 Feb 2021 17:57:55 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:53478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8t06-00013z-6U; Sun, 07 Feb 2021 17:57:55 -0500 Received: by mail-wm1-x32e.google.com with SMTP id j11so11122373wmi.3; Sun, 07 Feb 2021 14:57:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H7DdpVZKuaTFU+QINWMbbbomeFKhPW3S4eDxwf+nJCo=; b=DuwqKccHtBt4dz86RKdnXAtbY1C6a2HgS+5yvCWHJgZFtaXXGTwchErp5vAQyTjPq6 zpDQmq0x0jdwDD9c+O6S01GcEyxWMNZP55PSPzqFB9FWlSW1Ri8O7Wlshqg+s4xaTeAS hRqp7tWRf4EJVztY/4rSkH7FGLB2XnXK2wacllpoOaBiRbXuEtSXeJWDNGEiGOY1/qyn VMQgLGtoxwmohWvTGx0uBr6Zb9T2McbRsYj8f7FgJ3xX6HoXOVFsGmDjg7YQSTjzv3zE UmdR0rIismdm6Vbdy0zaFmpb2SYcPt95TFl5ioS4vJ5x0rUEcZ5JX2Ayhdik84KTEPjm rcvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=H7DdpVZKuaTFU+QINWMbbbomeFKhPW3S4eDxwf+nJCo=; b=V0puv3U8iNirXsbImhztcS8CoERH0ShLz1NQRtl+TNmsnFC3IjdD8NZmbRm0Tb/gq5 m8u4i7G8ZqdSceQul4s5fJij18FzTmItYie++RnBpWpxWW76nwuYRnmnq034dEVqdCAF pjco3nCF7F8pXFQVdkxJ217+FKTrjZtCkEh8G/eaHxOJJGzAWXZ7YU0DJ2DE9NgNMBrR H45fum0RteDBKATl2+tU9lp5QSTZ8FBI8P9gB7BXUyENkb1xbzSJfEHSCHj3nnq2ZMSy 7hz/n7urxZW/1dks2oG1oPpRnU7LF7ry7KNOgolCSze0GYIQLcR84DfNZ4RKDDpAIPNX iAxg== X-Gm-Message-State: AOAM530oBVTmkDexeIqPV+9x0bmxRXA5Q9G6307/YmHR7vVkJfPkzr7J dvYSjUac7CPyxEpgG9jge9m3ykvWDF4= X-Google-Smtp-Source: ABdhPJwwUp3pd9IOFWEbOPAGSNqjz7Z9MdmROAusVzFJqHVWJmI2Yzh/PuF0aoHSDrcg1CGoH1St0A== X-Received: by 2002:a1c:6802:: with SMTP id d2mr11968962wmc.32.1612738672031; Sun, 07 Feb 2021 14:57:52 -0800 (PST) Received: from localhost.localdomain (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id r11sm18905340wmh.9.2021.02.07.14.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 14:57:51 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Bastian Koppelmann , Peter Maydell , Claudio Fontana , Paolo Bonzini , Yoshinori Sato , Aleksandar Rikalo , qemu-arm@nongnu.org, Aurelien Jarno , qemu-riscv@nongnu.org, Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Sagar Karandikar , Jiaxun Yang Subject: [PATCH 2/6] target/m68k: Include missing "tcg/tcg.h" header Date: Sun, 7 Feb 2021 23:57:34 +0100 Message-Id: <20210207225738.2482987-3-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210207225738.2482987-1-f4bug@amsat.org> References: <20210207225738.2482987-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2021 22:57:56 -0000 Commit 14f944063af ("target-m68k: add cas/cas2 ops") introduced use of typedef/prototypes declared in "tcg/tcg.h" without including it. This was not a problem because "tcg/tcg.h" is pulled in by "exec/cpu_ldst.h". To be able to remove this header there, we first need to include it here in op_helper.c, else we get: [953/1018] Compiling C object libqemu-m68k-softmmu.fa.p/target_m68k_op_helper.c.o target/m68k/op_helper.c: In function ‘do_cas2l’: target/m68k/op_helper.c:774:5: error: unknown type name ‘TCGMemOpIdx’ 774 | TCGMemOpIdx oi; | ^~~~~~~~~~~ target/m68k/op_helper.c:787:18: error: implicit declaration of function ‘make_memop_idx’ [-Werror=implicit-function-declaration] 787 | oi = make_memop_idx(MO_BEQ, mmu_idx); | ^~~~~~~~~~~~~~ target/m68k/op_helper.c:787:18: error: nested extern declaration of ‘make_memop_idx’ [-Werror=nested-externs] target/m68k/op_helper.c:788:17: error: implicit declaration of function ‘helper_atomic_cmpxchgq_be_mmu’; did you mean ‘helper_atomic_cmpxchgq_be’? [-Werror=implicit-function-declaration] 788 | l = helper_atomic_cmpxchgq_be_mmu(env, a1, c, u, oi, ra); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | helper_atomic_cmpxchgq_be target/m68k/op_helper.c:788:17: error: nested extern declaration of ‘helper_atomic_cmpxchgq_be_mmu’ [-Werror=nested-externs] cc1: all warnings being treated as errors Signed-off-by: Philippe Mathieu-Daudé --- target/m68k/op_helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/m68k/op_helper.c b/target/m68k/op_helper.c index 202498deb51..36b68fd318f 100644 --- a/target/m68k/op_helper.c +++ b/target/m68k/op_helper.c @@ -18,6 +18,7 @@ */ #include "qemu/osdep.h" #include "cpu.h" +#include "tcg/tcg.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" -- 2.26.2