From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH] intel-gen4asm: have a C-like binary output Date: Thu, 17 Mar 2011 19:37:10 -0700 Message-ID: <20110318023710.GA3450@lundgren.kumite> References: <1300415343-3321-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 8456D9E79E for ; Thu, 17 Mar 2011 19:37:12 -0700 (PDT) Received: from lundgren.kumite (unknown [67.208.96.87]) by cloud01.chad-versace.us (Postfix) with ESMTPSA id 3C7DE1D406F for ; Fri, 18 Mar 2011 02:37:40 +0000 (UTC) Content-Disposition: inline In-Reply-To: <1300415343-3321-1-git-send-email-ben@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Mar 17, 2011 at 07:29:03PM -0700, Ben Widawsky wrote: > From: Ben Widawsky > > Have the assembler support creating a byte array for binary blob-like > inclusion. In my case, to write some exception handler which is not > jit'd. I just noticed that the spacing is a little messed up in this one. If someone wants to push this, but doesn't want to fix it, send me an email and I'll resubmit. Here's sample output. It should be shorter lines, with proper spacing... static const char gen4_bytes[] = { 0x05, 0x02, 0x00, 0x00,0x00, 0x1c, 0x00, 0x30,0x00, 0x10, 0x00, 0x00,0xf9, 0xff, 0xff, 0xff, 0x08, 0x02, 0x00, 0x00,0x1d, 0x1d, 0x04, 0x20,0x00, 0x0e, 0x00, 0x00,0x06, 0x00, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00,0xbd, 0x43, 0x04, 0x20,0x04, 0x00, 0x00, 0x00,0x00, 0x0e, 0x00, 0x00, 0x41, 0x02, 0x00, 0x00,0xbd, 0x1f, 0x04, 0x20,0x04, 0x00, 0x00, 0x00,0x00, 0x10, 0x00, 0x00, 0x01, 0x02, 0x60, 0x00,0xbe, 0x03, 0x00, 0x20,0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 0x01, 0x22, 0x80, 0x00,0xbe, 0x03, 0x00, 0x20,0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00,0xbe, 0x1f, 0x02, 0x20,0x04, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 0x31, 0x00, 0x60, 0x00,0x1e, 0x1c, 0x00, 0x20,0x00, 0x00, 0x00, 0x50,0x00, 0x00, 0x18, 0x10, 0x01, 0x00, 0x60, 0x00,0xbe, 0x03, 0xe0, 0x20,0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00,0xbe, 0x1f, 0xe2, 0x20,0x04, 0x00, 0x00, 0x00,0x00, 0x01, 0x00, 0x00, 0x31, 0x00, 0x60, 0x00,0x1e, 0x1c, 0xe0, 0x20,0x00, 0x00, 0x00, 0x50,0x00, 0x00, 0x18, 0x12, }; Ben