From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 9BF673861038 for ; Wed, 12 Aug 2020 19:57:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9BF673861038 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-513-o01MGgxjOP2w_HCESpOiOA-1; Wed, 12 Aug 2020 15:57:04 -0400 X-MC-Unique: o01MGgxjOP2w_HCESpOiOA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 113E4800FE1; Wed, 12 Aug 2020 19:57:03 +0000 (UTC) Received: from redhat.com (ovpn-112-64.phx2.redhat.com [10.3.112.64]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DE58119D71; Wed, 12 Aug 2020 19:57:02 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.94) (envelope-from ) id 1k5wrt-0007Mc-Eq; Wed, 12 Aug 2020 15:57:01 -0400 Date: Wed, 12 Aug 2020 15:57:01 -0400 From: "Frank Ch. Eigler" To: Sergey Belyashov Cc: "Jose E. Marchesi" , "Frank Ch. Eigler via Cgen" Subject: Re: BUG: non-fixed-length ISAs are unsupported for now Message-ID: <20200812195701.GD27698@redhat.com> References: <20200811153823.GA20457@redhat.com> <20200811160847.GB20457@redhat.com> <20200812183611.GA27698@redhat.com> <87pn7v1yrt.fsf@oracle.com> <20200812192115.GB27698@redhat.com> <87eeob1x7n.fsf@oracle.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 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:57:09 -0000 Hi - > Ok. How to handle variable size instructions then? For example: > NOP - 0x00 > NEG - 0xed 0x44 > RLC B - 0xcb 0x00 > LD HL, 0x1234 - 0x21 0x34 0x12 > LD IY, 0x1234 - 0xfd 0x21 0x34 0x12 > LD DE, (0x1234) - 0xed 0x5b 0x34 0x12 > RR (IX+9) - 0xdd 0xcb 0x09 0x1e (here 0x09 is 8-bit signed immediate) Simply, make no change other than setting the base-insn large enough to contain all the opcode fields. Amongst all these cases, that seems to be 16 or perhaps 24 bits. I suggest trying 32. - FChE