All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] target/arm/helper.c: Delete stray obsolete comment
@ 2022-05-13 13:18 Peter Maydell
  2022-05-13 15:08 ` Alex Bennée
  2022-05-13 15:13 ` Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Maydell @ 2022-05-13 13:18 UTC (permalink / raw)
  To: qemu-arm, qemu-devel

In commit 88ce6c6ee85d we switched from directly fishing the number
of breakpoints and watchpoints out of the ID register fields to
abstracting out functions to do this job, but we forgot to delete the
now-obsolete comment in define_debug_regs() about the relation
between the ID field value and the actual number of breakpoints and
watchpoints.  Delete the obsolete comment.

Reported-by: CHRIS HOWARD <cvz185@web.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target/arm/helper.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/arm/helper.c b/target/arm/helper.c
index 432bd819195..3184fcb7797 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -6529,7 +6529,6 @@ static void define_debug_regs(ARMCPU *cpu)
         define_one_arm_cp_reg(cpu, &dbgdidr);
     }
 
-    /* Note that all these register fields hold "number of Xs minus 1". */
     brps = arm_num_brps(cpu);
     wrps = arm_num_wrps(cpu);
     ctx_cmps = arm_num_ctx_cmps(cpu);
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] target/arm/helper.c: Delete stray obsolete comment
  2022-05-13 13:18 [PATCH] target/arm/helper.c: Delete stray obsolete comment Peter Maydell
@ 2022-05-13 15:08 ` Alex Bennée
  2022-05-13 15:13 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Bennée @ 2022-05-13 15:08 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-devel, qemu-arm


Peter Maydell <peter.maydell@linaro.org> writes:

> In commit 88ce6c6ee85d we switched from directly fishing the number
> of breakpoints and watchpoints out of the ID register fields to
> abstracting out functions to do this job, but we forgot to delete the
> now-obsolete comment in define_debug_regs() about the relation
> between the ID field value and the actual number of breakpoints and
> watchpoints.  Delete the obsolete comment.
>
> Reported-by: CHRIS HOWARD <cvz185@web.de>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

-- 
Alex Bennée


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] target/arm/helper.c: Delete stray obsolete comment
  2022-05-13 13:18 [PATCH] target/arm/helper.c: Delete stray obsolete comment Peter Maydell
  2022-05-13 15:08 ` Alex Bennée
@ 2022-05-13 15:13 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2022-05-13 15:13 UTC (permalink / raw)
  To: Peter Maydell, qemu-arm, qemu-devel

On 5/13/22 06:18, Peter Maydell wrote:
> In commit 88ce6c6ee85d we switched from directly fishing the number
> of breakpoints and watchpoints out of the ID register fields to
> abstracting out functions to do this job, but we forgot to delete the
> now-obsolete comment in define_debug_regs() about the relation
> between the ID field value and the actual number of breakpoints and
> watchpoints.  Delete the obsolete comment.
> 
> Reported-by: CHRIS HOWARD<cvz185@web.de>
> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
> ---
>   target/arm/helper.c | 1 -
>   1 file changed, 1 deletion(-)

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

r~


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-13 15:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 13:18 [PATCH] target/arm/helper.c: Delete stray obsolete comment Peter Maydell
2022-05-13 15:08 ` Alex Bennée
2022-05-13 15:13 ` Richard Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.