On Thu, Mar 17, 2011 at 07:29:03PM -0700, Ben Widawsky wrote:
> From: Ben Widawsky <bwida...@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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to