Re: [PATCH 02/15] powerpc/watchpoint: Add SPRN macros for second DAWR
From: Segher Boessenkool
Date: Wed Mar 18 2020 - 14:31:10 EST
On Tue, Mar 17, 2020 at 11:16:34AM +0100, Christophe Leroy wrote:
>
>
> Le 09/03/2020 à 09:57, Ravi Bangoria a écrit :
> >Future Power architecture is introducing second DAWR. Add SPRN_ macros
> >for the same.
>
> I'm not sure this is called 'macros'. For me a macro is something more
> complex.
It is called "macros" in the C standard, and in common usage as well.
"Object-like macros", as opposed to "function-like macros": there are
no arguments.
> For me those are 'constants'.
That would be more like "static const" in C since 1990 ;-)
Segher