From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A7AACC433FE for ; Mon, 25 Apr 2022 13:34:39 +0000 (UTC) Received: from localhost ([::1]:44598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niyrO-0007tM-Kd for qemu-devel@archiver.kernel.org; Mon, 25 Apr 2022 09:34:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nirSx-0003vE-0a for qemu-devel@nongnu.org; Mon, 25 Apr 2022 01:40:56 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:43629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nirSv-00018T-4D for qemu-devel@nongnu.org; Mon, 25 Apr 2022 01:40:54 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6D85B320100E; Mon, 25 Apr 2022 01:40:51 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Mon, 25 Apr 2022 01:40:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=simonsafar.com; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1650865250; x=1650951650; bh=am BqIJHB91Prh2Cad6wOkshGz7dE/wW6KeB8O5FhQsw=; b=ipU+x25m7ka3XkTQvL nRxwkA0kS8GgklTM4pLND7QB0c1eggsZh+wF4YuGhmFcBzpBlm4tXrM+vnFXpU0l 18kJJcO9c+6mzpuxkD2QYB9mZaN8jj2fjHvzyt2xjvRSBysxtS5Lyjw7pyvc+U6T HYFUH5fvfzcL31jH/YKfHayQRSPiUto8gFijhAvUr13scFNGAvyWKzi6ms+ELmGJ w8Si7UTb1Xzjlm/podMarEVNuAp2/1jo7exQGz0Ii7VNUfRL+/B+dO6MP9qO5IPy ACrvi1MTL9qU4XBdJ4Sq5ravTSL2jMl1oz/qs04OYe+nFAdL+1SRunj+emyIXGMk y5cw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650865250; x= 1650951650; bh=amBqIJHB91Prh2Cad6wOkshGz7dE/wW6KeB8O5FhQsw=; b=C 37oN4iv3JvJfbcW7Pxo3XCDtiqEinYaksdBPW/glohzOEKLpkvpLIgo79ZkqVlc6 gamu3WJIWxwt8fN0J8Nv089JZFBW/1ji0xtfW4prMnZAvPR9xI/Kac0HoJDP8DW6 ayTTJBLt6YGYtzb5VnReveqPN/GZxMBxbTS/uDA4AxwgsZ1c6A0A9vqSyYmEYM1F DeeQYbI3Tf2Vy0WmOZ6UfEP185S2q3IKaKUiuRkxskipw+7s41fPPQiCWehwCLec jJm5zNJu1pQDxjOViHhlPEZMHRrJ1UDic9ez0QAncmFgPWA6CUtpZjvAIc2cN2dh WvOrk+LIDmOZQqh2hyfIA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddtgdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvfevufgtsegrtd erreerredtnecuhfhrohhmpedfufhimhhonhcuufgrfhgrrhdfuceoshhimhhonhesshhi mhhonhhsrghfrghrrdgtohhmqeenucggtffrrghtthgvrhhnpefhtedvheffgfffhfduie eivddvkeduueeuhfetgfeggeegfffhtdejgeeggfdvgeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsihhmohhnsehsihhmohhnshgrfhgrrh drtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9DB1E1920089; Mon, 25 Apr 2022 01:40:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-569-g7622ad95cc-fm-20220421.002-g7622ad95 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20220421155726.31986-1-simon@simonsafar.com> <331420f7-9bc8-44b6-b9db-e1d82cfdd399@www.fastmail.com> Date: Sun, 24 Apr 2022 22:40:17 -0700 To: "Max Filippov" Cc: qemu-devel Subject: Re: [PATCH] target/xtensa: import core lx106 Content-Type: multipart/alternative; boundary=4b2a1a439f664503b60dd14f6b9776ca Received-SPF: pass client-ip=64.147.123.25; envelope-from=simon@simonsafar.com; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 25 Apr 2022 09:31:24 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Reply-to: "Simon Safar" From: "Simon Safar" via --4b2a1a439f664503b60dd14f6b9776ca Content-Type: text/plain On Sat, Apr 23, 2022, at 2:26 PM, Max Filippov wrote: > > It's for a (future...) Lisp compiler! Somewhat in the style of MicroPython; the idea > > is to make code editable on the fly, without reflashing (... or restarting, even). > > Interesting. Do you use libisa or do you do instruction encoding on your own? It's my own; it's generating opcodes from the tree of tables in the Xtensa reference. A large part of the actual code looks a lot like those tables themselves; there are still some missing parts for some (e.g. overriding some defaults on which instruction is taking what kinds of parameters), which I'm just filling in on the go. It's fairly hacky, but it might fit together well with the eventual purpose of maybe running some of this in that 40k RAM onboard & keeping it all Lisp. (I'll put it up somewhere eventually once it's not a complete mess & starts doing something interesting! assuming this ever happens, of course.) Simon --4b2a1a439f664503b60dd14f6b9776ca Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Sat, Ap= r 23, 2022, at 2:26 PM, Max Filippov wrote:
> It's for a (future...) Lisp compil= er! Somewhat in the style of MicroPython; the idea
> is= to make code editable on the fly, without reflashing (... or restarting= , even).

Interesting. Do you use libisa or = do you do instruction encoding on your own?
<= br>
It's my own; it's generating opcodes from the tree of tabl= es in the Xtensa reference. A large part of the actual code looks a lot = like those tables themselves; there are still some missing parts for som= e (e.g. overriding some defaults on which instruction is taking what kin= ds of parameters), which I'm just filling in on the go. It's fairly hack= y, but it might fit together well with the eventual purpose of maybe run= ning some of this in that 40k RAM onboard & keeping it all Lisp.
=

(I'll put it up somewhere eventually once it's= not a complete mess & starts doing something interesting! assuming = this ever happens, of course.)

Simon

--4b2a1a439f664503b60dd14f6b9776ca--