[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/1] tci: eliminate UB due to unaligned reads
From: |
Stefan Weil |
Subject: |
Re: [Qemu-devel] [PATCH 1/1] tci: eliminate UB due to unaligned reads |
Date: |
Sat, 27 Jan 2018 17:38:21 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
Am 27.01.2018 um 14:49 schrieb Anatoly Trosinenko:
> Use ldl_he_p / ldq_he_p functions instead of a plain memory access
> through pointer.
>
> Signed-off-by: Anatoly Trosinenko <address@hidden>
> ---
> tcg/tci.c | 16 +++++++++++-----
> 1 file changed, 11 insertions(+), 5 deletions(-)
A better alternative might be aligning the relevant data when generating
the bytecode. See also my comment on alignment in tcg/tci/README.
Stefan
signature.asc
Description: OpenPGP digital signature