From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) by sourceware.org (Postfix) with ESMTPS id DC50D3857814; Fri, 23 Apr 2021 00:55:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DC50D3857814 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joel.sherrill@gmail.com Received: by mail-lj1-f181.google.com with SMTP id o16so53971597ljp.3; Thu, 22 Apr 2021 17:55:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=K7hPxOuanfFIOg3U7Q6CdQDIUeDXEHT76tJZqbKd8v0=; b=Y6wQ4KPxyr2fjZc/YEC1waPXWO0AdYeYOO421TfBRXtM7bW1l0Y9ZTIc6nasQbVqtw ax88U4AciYGbb6i+UDPtxPa9d6oYle5kOhRjp8uKylJCCPJQiShatp36VWIcMyA80Wnu iTeix/JQf91+b4rRtVfpnaAprrAGb0SHLrLjBQDhTabrbNbex3ilM7C+2g7QqpK+WPDt htg8JXgotNIjQwNYa+bGqv7qCpNvoWdIBmCCImqKRmXj6zSU+UZUeE47kDacZbBBU2iH QSrdcQJ0go+T+m3jUyJEXpLmsFUlF7d2Eg5F7foF32D4hUbIWeE7JnVvkCkkNO29vLd6 4nLg== X-Gm-Message-State: AOAM531IilG0lLZW8KL2hEx7Ibh3EiliFT3skw/OQeHvQanm4Bw9BKeO ktQIZ/ici/BmbfPpQKJKNu6rxrxkypbsgQ== X-Google-Smtp-Source: ABdhPJyZqDVsPBsyUjK0opEPl12JQQ/mhKuDD81Gs56PbFryGcvPzbG0T3FyTR9jDEL388H5uMw5Ew== X-Received: by 2002:a2e:bc25:: with SMTP id b37mr1038302ljf.342.1619139329317; Thu, 22 Apr 2021 17:55:29 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id v7sm396860lfo.297.2021.04.22.17.55.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Apr 2021 17:55:29 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id j18so75038781lfg.5; Thu, 22 Apr 2021 17:55:28 -0700 (PDT) X-Received: by 2002:ac2:5297:: with SMTP id q23mr735759lfm.229.1619139328527; Thu, 22 Apr 2021 17:55:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: joel@rtems.org From: Joel Sherrill Date: Thu, 22 Apr 2021 19:55:16 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Microblaze libgloss and gdb simulator To: Joel Sherrill , Eli Zaretskii via Gdb , Newlib X-Spam-Status: No, score=-3032.1 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2021 00:55:32 -0000 On Thu, Apr 22, 2021, 7:27 PM Mike Frysinger wrote: > On 22 Apr 2021 17:25, Joel Sherrill wrote: > > Sorry to post to both newlib and gdb but I hope someone in one of the > > communities will have the answer. > > > > Does anyone know how to build and run a hello world on the microblaze > > simulator in gdb using the microblaze-elf target and the code in > libgloss? > > > > I don't see a configuration in DejaGNU which would have given me a hint. > I > > didn't see any microblaze GCC test results on that list either so that > > appears to line up. > > i think the answer is you can't with only released open source projects. > > the microblaze gcc config specs refer to a libxil.a that doesn't appear in > gcc > or newlib or libgloss, so i assume it's a bsp thing you get from xilinx. > I assumed that as well. At least their code on GitHub is now mostly permissive licenses. I just haven't figured out what precisely that library would be. I found a directory named xil which I assume is promising. > ignoring that, the microblaze sim doesn't have syscall support hooked up. > so > it's only a CPU simulator atm. > So it has no output whatsoever? Does it get used for anything? We are resurrecting some old work that I did for a Microblaze port. I did write an inbyte() and outbyte() which would normally come from the xil library. But I don't have any idea how I figured out there was a uart at a particular address. I swear I had it working to print then but now it faults after the first instruction. Is there any known good executable for it? Even just seeing it operate with a linked executable that had a crt0 and did something would be helpful at this point. --joel -mike >