qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/4] softmmu: remove useless condition in watchpoint check


From: Richard Henderson
Subject: Re: [PATCH 2/4] softmmu: remove useless condition in watchpoint check
Date: Thu, 28 Oct 2021 12:10:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 10/28/21 4:48 AM, Pavel Dovgalyuk wrote:
cpu_check_watchpoint function checks cpu->watchpoint_hit at the entry.
But then it also does the same in the middle of the function,
while this field can't change.
That is why this patch removes this useless condition.

Signed-off-by: Pavel Dovgalyuk<Pavel.Dovgalyuk@ispras.ru>
---
  softmmu/physmem.c |   41 ++++++++++++++++++++---------------------
  1 file changed, 20 insertions(+), 21 deletions(-)

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

r~



reply via email to

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