From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id G3OCGPY2G2CUaAAAWB0awg (envelope-from ) for ; Wed, 03 Feb 2021 18:51:18 -0500 Received: by simark.ca (Postfix, from userid 112) id 565511EFCB; Wed, 3 Feb 2021 18:51:18 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 483B51E945 for ; Wed, 3 Feb 2021 18:51:17 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B8218393C840; Wed, 3 Feb 2021 23:51:16 +0000 (GMT) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id D9FDD3857820 for ; Wed, 3 Feb 2021 23:51:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D9FDD3857820 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jimw@sifive.com Received: by mail-ed1-x536.google.com with SMTP id l12so1880900edt.3 for ; Wed, 03 Feb 2021 15:51:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sQvCF2VTHLgEEw7D/6sU24tpjPE12R1YDHuURfxhu+4=; b=YT3ZtvJfqTGbJOjQ787p51gAI5vAuGxqma38t8gIVsAKzVGSF0mHyI4bOTrmAdGCrs FYMWgQeNHnuPYDjO4CN8z5ivVe257VcTJ7KnnuvT93b/mowuYtvGdAT0EUPhesB6UrZe 5+5fF5GiCmqFmycQOamno3XiAJ1P161XV/zpHsx/17UH9nFueZxdI30Es5ZyCzECNQB7 u0+X1imGVWbcI4vDsHvlxhEOIF+4RQpThzbPIsQ71jqpZQxhYvLXM+kBjyq0n3+uxA0H J016pwd4MB4xnoOOY/bNwrV5liGftUS4nqlz09BAwNTxLYomYhFLgmn8u/yhr4gO5+Yn N6rw== 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:from:date :message-id:subject:to:cc; bh=sQvCF2VTHLgEEw7D/6sU24tpjPE12R1YDHuURfxhu+4=; b=VxTR8Z8XpKljoqoM6XUtw7gjGUX/YltYW020Bne7bPkQ202IzSN76I1NvYwH0VO6T9 i31JS3caku0qQmI1g3wBPfUFiHdLzCaA2d3KDkNNvZBbFkKOBIzgu2t/WSTqEoA4maaw EJvPVkpgbqqyXxkjwgyapN4/OJ6bmm6rAv/pf8Vs4RZdRwgaReC9wPsrjm098QgQqHp9 upCD7q8otPGHGol5VQx6lxshheQ1yl71wq7pLiyrqADCl9tfrPauRqh618Cm5L44n4FU AYnT0XEmrhoLJeUAXUQDSxUM2oVp2AUbAWN+xhddafbPhA1nrbjvBAv0AjlYdR78+7jM A8jA== X-Gm-Message-State: AOAM530M1IdQbDx63qOYCQaQuWQpy0zlSccwJXrHd0xlT9jKcyv4rpaO YeYXSbXXSGc9JOpHpNkKfACm0xMsLueF5EIywBKNRNcPD0EETg== X-Google-Smtp-Source: ABdhPJxndcW0Tk5Ra22RTrVxAdI7PZNr2J4osg9APA7dAdxxJbOgl/n4QpjlSoQLQhdBlop0EhBF/EOlR79U0ujsxxY= X-Received: by 2002:a05:6402:26c7:: with SMTP id x7mr5710346edd.24.1612396270190; Wed, 03 Feb 2021 15:51:10 -0800 (PST) MIME-Version: 1.0 References: <20210112111842.17223-1-vapier@gentoo.org> In-Reply-To: <20210112111842.17223-1-vapier@gentoo.org> From: Jim Wilson Date: Wed, 3 Feb 2021 15:50:59 -0800 Message-ID: Subject: Re: [PATCH 1/2] sim: riscv: new port To: Mike Frysinger Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" We actually have two RISC-V gdb simulators. The one you originally wrote, and a cgen simulator that Embecosm wrote. I deferred upstreaming your simulator in the hope that the cgen simulator might be better, but unfortunately the cgen simulator has a serious problem that it can't easily support all architecture variations. This is a problem that will only get worse as more extensions are added to the architecture. I don't know if the cgen simulator problems are fixable. So I personally prefer your simulator. But there are others that would like to see the cgen simulator go in. I don't think we can add both of them. I don't know how to resolve that debate. Plus there is the problem that I'm involved in so much stuff that I can't get anything done anymore. But anyways if there is a vote, I'm voting for your simulator. Your simulator wasn't lost. It can be found at https://github.com/riscv/riscv-binutils-gdb/tree/fsf-gdb-10.1-with-sim This includes your original port, with some minor improvements from Kito Cheng and myself, and a number of others. They are listed in the ChangeLog file. This is known to work with the gcc testsuite, though we primarily use qemu for simulator testing so it doesn't get tested very often. This is part of riscv/riscv-gnu-toolchain, and if you do SIM=gdb when building and testing a toolchain, it will use gdb sim to run the gcc testsuite. Or if you want to start over with a new simulator that is OK too. We can fix it to work with the gcc testsuite just like we fixed the old one. Jim