Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D956EC43462 for ; Wed, 28 Apr 2021 09:06:44 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1D9346109E for ; Wed, 28 Apr 2021 09:06:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1D9346109E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbg9a-0002Px-Rx for qemu-devel@archiver.kernel.org; Wed, 28 Apr 2021 05:06:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbg8N-0001xO-PH for qemu-devel@nongnu.org; Wed, 28 Apr 2021 05:05:27 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:45929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbg8L-00039V-Cj for qemu-devel@nongnu.org; Wed, 28 Apr 2021 05:05:27 -0400 Received: by mail-wr1-x42f.google.com with SMTP id h4so53151189wrt.12 for ; Wed, 28 Apr 2021 02:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nn/NHPqnxAetQqES2AeTF8N6lv/vJYqFMVwWFP7NXAg=; b=aPjvCZ6iF+2NPNNemnwOYvSOJm4e1onfVyT4UUbpNFl+jk9nTBoWBEHw/PUK0T/Oy/ H/2TlwC61RbGBSrM2SnkG0NkOxvNDtYieK5urS9SXCcCqycVmzTCPmwnXyQuGvtlTXho 3ApeTmkSWH5x6XhFxrVv22NdAblXvbmjgkuyEPetMILfcMlBF6eCHwpj9Ea99nPRgfzs 8cevGmoHKdVdrob4YWqU6hrv6LOZW8uJgNcsi8+v35BlCnsFivt9GNAWEM1ZBnhzeTry hMe/nFj6V2YNIpq9jCLYwVcsHFqldpAwb1/yePCH/9gFqwBIE3vlPkGi0P+xot96ceHa FGQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=nn/NHPqnxAetQqES2AeTF8N6lv/vJYqFMVwWFP7NXAg=; b=YPPXHMp6Rzr1zt8cdRP7+Mrsj8AiEEBx8dEsr5+UVD5i9hr3zta6P/Z+tZwDpC/Oam je5nA7CXCYR+0K5B3qkc4RlcNck2IMFnE0xSXDo8zTN/qgUVKhPyEwBfLF1HlqJP2pMq QwURConzw6vQDAzFtkTDecDXa1NypLZ4ykDw9MIgMNdKFFKaGVFe0me7A+axjq3sBukZ pggVQF+Uc9FWImg3uO9wIhEaSBkNRfAmpvZ95pHnqGDsgJGP3erERFN/2klZu3YTTSVp XFRAFY8+8OdIdIaIGqs+tf8P5wWSH/NzDoUFAqodwteIitIEV7YXuVAg6vWsOei44ave yAfQ== X-Gm-Message-State: AOAM532TtDI4Zczvwb8rbAaD2m8BSXiXihpWDLqZ7Fm+WbBbXMOfjaXA HM8y11DoYQWPZXFQFd5hFpSfEg== X-Google-Smtp-Source: ABdhPJxcoWY15yy3jZEcML49akQrrJSnL5j4CPlx1ZIdDnpTb9JjudV8pTtVeJfBcWOjup+5NcyGtA== X-Received: by 2002:adf:f84e:: with SMTP id d14mr25962382wrq.342.1619600722820; Wed, 28 Apr 2021 02:05:22 -0700 (PDT) Received: from localhost.localdomain (lfbn-tou-1-1482-80.w90-89.abo.wanadoo.fr. [90.89.5.80]) by smtp.gmail.com with ESMTPSA id u14sm7117074wrq.65.2021.04.28.02.05.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Apr 2021 02:05:22 -0700 (PDT) Subject: Re: [PATCH 0/2] hw/sparc: Kconfig fixes to build with/without the leon3 machine To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org References: <20210427192658.266933-1-f4bug@amsat.org> From: Fred Konrad Message-ID: <8367c951-d068-c87d-1171-df0548591767@adacore.com> Date: Wed, 28 Apr 2021 11:05:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210427192658.266933-1-f4bug@amsat.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=konrad@adacore.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.001, 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: Thomas Huth , Mark Cave-Ayland , Richard Henderson , Fabien Chouteau , KONRAD Frederic , Artyom Tarasenko Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Le 4/27/21 à 9:26 PM, Philippe Mathieu-Daudé a écrit : > This series fixes link failure when building either the leon3 > machine or the sun4m ones. > > The problem is we have hardware specific code in the architectural > translation code. Move this code to hw/sparc/. > > The link failures can be reproduced doing: > > $ echo CONFIG_LEON3=y > default-configs/devices/sparc-softmmu.mak > $ configure --without-default-devices > $ ninja qemu-system-sparc Indeed: libqemu-sparc-softmmu.fa.p/target_sparc_win_helper.c.o: \ In function `cpu_put_psr': xxx/qemu/build/../target/sparc/win_helper.c:91: \ undefined reference to `cpu_check_irqs' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. > $ ./qemu-system-sparc -M leon3 -S > > or: > > $ echo CONFIG_SUN4M=y > default-configs/devices/sparc-softmmu.mak > > Philippe Mathieu-Daudé (2): > hw/sparc: Allow building the leon3 machine stand-alone > hw/sparc: Allow building without the leon3 machine > > target/sparc/cpu.h | 6 ---- > hw/sparc/irq.c | 61 +++++++++++++++++++++++++++++++++++++ > hw/sparc/leon3.c | 37 +++++++++++++++++++++- > hw/sparc/sun4m.c | 32 ------------------- > target/sparc/int32_helper.c | 37 ---------------------- > hw/sparc/meson.build | 1 + > hw/sparc/trace-events | 2 ++ > target/sparc/trace-events | 4 --- > 8 files changed, 100 insertions(+), 80 deletions(-) > create mode 100644 hw/sparc/irq.c >