vc4: Fix bus errors on dumping CL on hardware.

The kernel can't fixup unaligned float traps for us, so deref as a
uint32_t first.
This commit is contained in:
Eric Anholt 2015-07-27 23:15:39 -07:00
parent 736c6f3cfc
commit b0193adbe9

View file

@ -34,7 +34,7 @@ dump_float(void *cl, uint32_t offset, uint32_t hw_offset)
void *f = cl + offset;
fprintf(stderr, "0x%08x 0x%08x: %f (0x%08x)\n",
offset, hw_offset, *(float *)f, *(uint32_t *)f);
offset, hw_offset, uif(*(uint32_t *)f), *(uint32_t *)f);
}
static void