diff options
Diffstat (limited to 'lib/arm64/dis-main.inc.h')
-rw-r--r-- | lib/arm64/dis-main.inc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arm64/dis-main.inc.h b/lib/arm64/dis-main.inc.h index a009189..cb24065 100644 --- a/lib/arm64/dis-main.inc.h +++ b/lib/arm64/dis-main.inc.h @@ -65,7 +65,7 @@ static INLINE void P(GPR64_Rn_2_BLR)(tdis_ctx ctx, UNUSED struct bitslice Rn) { } static INLINE void P(dis)(tdis_ctx ctx) { - uint32_t op = ctx->base.op = *(uint32_t *) ctx->base.ptr; + uint32_t op = ctx->base.op = unaligned_r32(ctx->base.ptr); ctx->base.op_size = ctx->base.newop_size = 4; /* clang doesn't realize that this is unreachable and generates code like * "and ecx, 0x1f; cmp ecx, 0x1f; ja abort". Yeah, nice job there. */ |