Re: [PATCH 1/2] scripts/coccinelle: Add cpu_env.cocci_template script

2024-01-26 Thread Philippe Mathieu-Daudé
On 26/1/24 13:34, Philippe Mathieu-Daudé wrote: On 26/1/24 12:24, Paolo Bonzini wrote: On Fri, Jan 26, 2024 at 11:38 AM Philippe Mathieu-Daudé wrote: On 25/1/24 17:56, Philippe Mathieu-Daudé wrote: Add a Coccinelle script to convert the following slow path (due to the QOM cast macro):    

Re: [PATCH 1/2] scripts/coccinelle: Add cpu_env.cocci_template script

2024-01-26 Thread Philippe Mathieu-Daudé
On 26/1/24 12:24, Paolo Bonzini wrote: On Fri, Jan 26, 2024 at 11:38 AM Philippe Mathieu-Daudé wrote: On 25/1/24 17:56, Philippe Mathieu-Daudé wrote: Add a Coccinelle script to convert the following slow path (due to the QOM cast macro): _CPU(..)->env to the following fast path:

Re: [PATCH 1/2] scripts/coccinelle: Add cpu_env.cocci_template script

2024-01-26 Thread Paolo Bonzini
On Fri, Jan 26, 2024 at 11:38 AM Philippe Mathieu-Daudé wrote: > > On 25/1/24 17:56, Philippe Mathieu-Daudé wrote: > > Add a Coccinelle script to convert the following slow path > > (due to the QOM cast macro): > > > >_CPU(..)->env > > > > to the following fast path: > > > >cpu_env(..) >

Re: [PATCH 1/2] scripts/coccinelle: Add cpu_env.cocci_template script

2024-01-26 Thread Philippe Mathieu-Daudé
On 25/1/24 17:56, Philippe Mathieu-Daudé wrote: Add a Coccinelle script to convert the following slow path (due to the QOM cast macro): _CPU(..)->env to the following fast path: cpu_env(..) Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 +

[PATCH 1/2] scripts/coccinelle: Add cpu_env.cocci_template script

2024-01-25 Thread Philippe Mathieu-Daudé
Add a Coccinelle script to convert the following slow path (due to the QOM cast macro): _CPU(..)->env to the following fast path: cpu_env(..) Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 + scripts/coccinelle/cpu_env.cocci_template | 60