|
From: | Stefan Weil |
Subject: | Re: [Qemu-trivial] [Qemu-devel] [PATCH] tci: Remove invalid assertions |
Date: | Thu, 2 Feb 2017 21:10:26 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
Am 02.02.2017 um 21:00 schrieb Eric Blake:
On 02/02/2017 01:56 PM, Stefan Weil wrote:tb_jmp_insn_offset and tb_jmp_reset_offset are pointers and cannot be used with ARRAY_SIZE. Signed-off-by: Stefan Weil <address@hidden> --- tcg/tci/tcg-target.inc.c | 2 -- 1 file changed, 2 deletions(-)mst posted an alternative patch: https://lists.gnu.org/archive/html/qemu-devel/2017-02/msg00551.html
Yes, I noticed that, too. It's not obvious that this new assertion will be correct, and none of the other targets has that kind of assertion. Only two targets use an assertion which detects NULL pointers, but NULL pointers will result in an abort anyway. Do you think that there are reasons why TCI should use the assertion suggested by Michael? Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |