qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 7/8] linux-user: Simplify host <-> target errno conversion


From: Richard Henderson
Subject: Re: [PATCH v3 7/8] linux-user: Simplify host <-> target errno conversion using macros
Date: Thu, 8 Jul 2021 10:11:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 7/8/21 10:05 AM, Philippe Mathieu-Daudé wrote:
Convert the host_to_target_errno_table[] array to a switch
case to allow compiler optimizations (such noticing the identity
function when host and guest errnos match). Extract the errnos
list as to a new includible unit, using a generic macro. Remove
the code related to target_to_host_errno_table[] initialization.

Suggested-by: Richard Henderson<richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
---
  linux-user/syscall.c    | 159 ++++------------------------------------
  linux-user/errnos.c.inc | 140 +++++++++++++++++++++++++++++++++++
  2 files changed, 154 insertions(+), 145 deletions(-)
  create mode 100644 linux-user/errnos.c.inc

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]