From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgHCt-0001zR-G9 for qemu-devel@nongnu.org; Sun, 27 Sep 2015 15:01:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgHCs-0007WH-NV for qemu-devel@nongnu.org; Sun, 27 Sep 2015 15:01:55 -0400 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:36311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgHCs-0007WB-Jc for qemu-devel@nongnu.org; Sun, 27 Sep 2015 15:01:54 -0400 Received: by obcxm10 with SMTP id xm10so11345500obc.3 for ; Sun, 27 Sep 2015 12:01:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1443374214-27149-1-git-send-email-jcmvbkbc@gmail.com> <1443374214-27149-4-git-send-email-jcmvbkbc@gmail.com> Date: Sun, 27 Sep 2015 22:01:54 +0300 Message-ID: From: Max Filippov Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 3/3] target-xtensa: xtfpga: support noMMU cores List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: =?UTF-8?Q?Andreas_F=C3=A4rber?= , "qemu-devel@nongnu.org Developers" On Sun, Sep 27, 2015 at 9:43 PM, Peter Crosthwaite wrote: > On Sun, Sep 27, 2015 at 11:13 AM, Max Filippov wrote: >> On Sun, Sep 27, 2015 at 8:38 PM, Peter Crosthwaite >> wrote: >>> On Sun, Sep 27, 2015 at 10:16 AM, Max Filippov wrote: >>>> int n; >>> >>> Blank line. >> >> Why? >> > Just a readability suggestion. You have a collection of short defs > that then runs straight into a lengthy self-contained table. Ok >>>> + mmu = xtensa_option_enabled(env->config, XTENSA_OPTION_MMU); >>> >>> This looks backwards, the board should be in charge of itself and the >>> CPU config, rather than spying on the CPU setup to rewire the board. >> >> Well, it's an FPGA board and all connections are a part of bitstream. >> It's generated that way, I'm just following the specification here. >> > > OK, but the xtensa-CPU is not the bitstream, this board is. What > exactly is the user interface for switching between MMU and no-MMU? Actually they both are. The user interface is a dropbox in the processor generator software where user chooses memory management option. Once it (and a bunch of other parameters) is chosen the bitstream with CPU and peripherals can be generated. > With the major changes of address layout, the no-MMU variation should > be a set of new boards or a machine level parameterisation (i.e. QOM > property of the machine). It needs to be user-visible as different on > the machine level. Why? The layouts are hard-coded based on MMU presence anyway. -- Thanks. -- Max