qemu-block
[Top][All Lists]
Advanced

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

Thoughts on CONFIG_TOOLS & CONFIG_USER_ONLY


From: Philippe Mathieu-Daudé
Subject: Thoughts on CONFIG_TOOLS & CONFIG_USER_ONLY
Date: Fri, 31 Dec 2021 12:20:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

Hi,

The CONFIG_USER_ONLY definition allows limiting user-mode
code to user emulation (in contrast to system emulation).
We often use it in common code.

Often the negative form (to *exclude* user-mode) is used.
This works fine with system emulation in mind, but it could
introduce subtle bugs when neither user nor system emulation
are used, for example with tools.

There is a CONFIG_TOOLS definition, but it is not used in C:

  config-host.mak:CONFIG_TOOLS=y
  config-host.h:#define CONFIG_TOOLS 1

Not sure how to clarify / improve, this is a bit confusing.

Just thinking loudly :)

Regards,

Phil.




reply via email to

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