From: Ben Widawsky <ben@bwidawsk.net>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] intel-gen4asm: have a C-like binary output
Date: Thu, 17 Mar 2011 19:37:10 -0700 [thread overview]
Message-ID: <20110318023710.GA3450@lundgren.kumite> (raw)
In-Reply-To: <1300415343-3321-1-git-send-email-ben@bwidawsk.net>
On Thu, Mar 17, 2011 at 07:29:03PM -0700, Ben Widawsky wrote:
> From: Ben Widawsky <bwidawsk@gmail.com>
>
> 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
next prev parent reply other threads:[~2011-03-18 2:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 2:29 [PATCH] intel-gen4asm: have a C-like binary output Ben Widawsky
2011-03-18 2:37 ` Ben Widawsky [this message]
2011-03-18 18:32 ` Eric Anholt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110318023710.GA3450@lundgren.kumite \
--to=ben@bwidawsk.net \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox