qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 1/1] tcg: add perfmap and jitdump


From: Richard Henderson
Subject: Re: [PATCH v2 1/1] tcg: add perfmap and jitdump
Date: Sun, 8 Jan 2023 14:26:30 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 11/14/22 08:13, Ilya Leoshkevich wrote:
-const void *tcg_splitwx_to_rx(void *rw);
+const void *tcg_splitwx_to_rx(const void *rw);
  void *tcg_splitwx_to_rw(const void *rx);
  #else
-static inline const void *tcg_splitwx_to_rx(void *rw)
+static inline const void *tcg_splitwx_to_rx(const void *rw)

This is incorrect, or at least not as designed.

The idea is that any rw pointer is not const, and any rx pointer is const, and this declaration prevents double-conversion.


r~



reply via email to

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