Re: [PATCH 2/2] linux-user: Use ARRAY_SIZE with bitmask_transtbl

2023-08-09 Thread Alex Bennée
Richard Henderson writes: > Rather than using a zero tuple to end the table, use a macro > to apply ARRAY_SIZE and pass that on to the convert functions. > > This fixes two bugs in which the conversion functions required > that both the target and host masks be non-zero in order to > continue,

[PATCH 2/2] linux-user: Use ARRAY_SIZE with bitmask_transtbl

2023-08-07 Thread Richard Henderson
Rather than using a zero tuple to end the table, use a macro to apply ARRAY_SIZE and pass that on to the convert functions. This fixes two bugs in which the conversion functions required that both the target and host masks be non-zero in order to continue, rather than require both target and host