Received: from eggs.gnu.org ([2001:4830:134:3::10]:53709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es7v3-0006wp-Dv for qemu-devel@nongnu.org; Sat, 03 Mar 2018 09:13:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1es7v2-0004qM-G0 for qemu-devel@nongnu.org; Sat, 03 Mar 2018 09:13:49 -0500 Sender: Richard Henderson References: <20180127134908.24095-1-anatoly.trosinenko@gmail.com> <20180127134908.24095-2-anatoly.trosinenko@gmail.com> From: Richard Henderson Message-ID: Date: Sat, 3 Mar 2018 06:13:37 -0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] tci: eliminate UB due to unaligned reads List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anatoly Trosinenko Cc: qemu-devel@nongnu.org, Stefan Weil , qemu-trivial@nongnu.org On 03/03/2018 06:07 AM, Anatoly Trosinenko wrote: > Can rewriting TCI in such a way that every operation is aligned at 4- or even > 8-byte boundary fix the situation or are there some more serious problems? With the current TCI, there are also problems with calls to helper functions. The only portable way to do this is to use a library such as libffi. I once rewrote TCI completely in order to address both problems, but that only brought questions as to why TCI is useful at all. So. Why do you want to use TCI instead of a native TCG backend? r~