From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by sourceware.org (Postfix) with ESMTPS id 3141E3861038 for ; Wed, 12 Aug 2020 19:19:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3141E3861038 Received: by mail-qt1-x834.google.com with SMTP id h21so2377277qtp.11 for ; Wed, 12 Aug 2020 12:19:56 -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:from:date :message-id:subject:to:cc; bh=Op/oFWoj9nQE0up5Q3tDUZKt26al/oAtyQsfENVEl6I=; b=WzMiwHj6/DN455sLQ8ElQ5dRWmGkhlREJo++cb1dNIFTtHpmUZegZIdsobTI5D5JS3 cE0SgI8VX4y5FUtuVK6+OFwdYlT52Cvjgd5Ak+xsNsTpzRGdOZqXCONmnAIa3AuiZUfv RQmR45bBQlk5gy6dNLqxNrwtG4kQuFvrvxT0ELuIfVk9/i1RsH39RBzS+BKOtqKZSADV vK0b02wZDPg5Qr1A9R0hzjIA0vzocppeGoUP07CfOZPkh+rkyskmSIsH2RDPhGAUp5Ku bqYIbxxeESQsHXCqlezq6+cvP2jHGFzLpBUAXOs+vOcHGhTvAQxHDCYYQtCfKFwxgaFr OYvQ== X-Gm-Message-State: AOAM530dCW+paaS3OINQg42PdYz30XzytdUuUG9Aa3mZ06raCDTDlv5K SlmXkdKv9MfaFtCVcRLPvv+orQzmsW3CFqkUgIntaO7j X-Google-Smtp-Source: ABdhPJxQ3FyOAOh93C7r3Wn62uWBWAxDSM5UX074LaYeTwaeL12FlsXJVGdVcY9S6B7BkJ9PH9KkwK8t5JeQMsfuPGk= X-Received: by 2002:aed:3587:: with SMTP id c7mr1366331qte.136.1597259995739; Wed, 12 Aug 2020 12:19:55 -0700 (PDT) MIME-Version: 1.0 References: <87pnbsztze.fsf@gnu.org> <87lfmgzoic.fsf@gnu.org> <20200811153823.GA20457@redhat.com> <20200811160847.GB20457@redhat.com> <20200812183611.GA27698@redhat.com> <87pn7v1yrt.fsf@oracle.com> In-Reply-To: <87pn7v1yrt.fsf@oracle.com> From: Sergey Belyashov Date: Wed, 12 Aug 2020 22:19:43 +0300 Message-ID: Subject: Re: BUG: non-fixed-length ISAs are unsupported for now To: "Jose E. Marchesi" Cc: "Frank Ch. Eigler via Cgen" , "Frank Ch. Eigler" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cgen@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cgen mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Aug 2020 19:19:57 -0000 But Zilog eZ80 CPU has instructions up to 6 bytes long: like ld.il bc,(Mmn) (lil/sil prefix 0xed prefix ) . =D1=81=D1=80, 12 =D0=B0=D0=B2=D0=B3. 2020 =D0=B3., 21:53 Jose E. Marchesi <= jose.marchesi@oracle.com>: > > >> I have tried it. Result is the same: ifields are just added (part of > >> generated z80-opc.c): > > > > I'm unfortunately unable to actually run cgen here (apparent > > incompatibility with "new" fedora32-level guile), so am only guessing > > that you could try setting the cpu base-insn-size to 16 or even 32: > > enough bits to tell the instructions apart. > > That looks like the right approach. > > Currently CGEN does not support having opcodes (constant fields) past > the base part of the insn, which by the way is limited to a maximum of > 32-bit.