qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] exec/cpu-defs: Remove TCG backends dependency
@ 2021-02-04 18:03 Philippe Mathieu-Daudé
  2021-02-04 18:19 ` Paolo Bonzini
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-02-04 18:03 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Richard Henderson, Claudio Fontana,
	Philippe Mathieu-Daudé

"exec/cpu-defs.h" contains common CPU definitions for
accelerators, which is not related to the TCG backends.
See tcg/README description:

  4) Backend

  tcg-target.h contains the target specific definitions. tcg-target.c.inc
  contains the target specific code; it is #included by tcg/tcg.c, rather
  than being a standalone C file.

So far only "tcg/tcg.h" requires these headers.

Remove the "target-tcg.h" header dependency on accelerators.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 include/exec/cpu-defs.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
index d1f5e3fc3d8..ba3cd32a1ec 100644
--- a/include/exec/cpu-defs.h
+++ b/include/exec/cpu-defs.h
@@ -25,9 +25,6 @@
 
 #include "qemu/host-utils.h"
 #include "qemu/thread.h"
-#ifdef CONFIG_TCG
-#include "tcg-target.h"
-#endif
 #ifndef CONFIG_USER_ONLY
 #include "exec/hwaddr.h"
 #endif
-- 
2.26.2



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

* Re: [PATCH] exec/cpu-defs: Remove TCG backends dependency
  2021-02-04 18:03 [PATCH] exec/cpu-defs: Remove TCG backends dependency Philippe Mathieu-Daudé
@ 2021-02-04 18:19 ` Paolo Bonzini
  2021-02-04 18:41   ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 4+ messages in thread
From: Paolo Bonzini @ 2021-02-04 18:19 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: Richard Henderson, Claudio Fontana

On 04/02/21 19:03, Philippe Mathieu-Daudé wrote:
> "exec/cpu-defs.h" contains common CPU definitions for
> accelerators, which is not related to the TCG backends.
> See tcg/README description:

Most of the definitions are actually for TCG, not for all accelerators 
(the TLB mostly).

However, they're indeed unrelated to the backends, so

Acked-by: Paolo Bonzini <pbonzini@redhat.com>

I'll let the TCG people pick it up.

Paolo

>    4) Backend
> 
>    tcg-target.h contains the target specific definitions. tcg-target.c.inc
>    contains the target specific code; it is #included by tcg/tcg.c, rather
>    than being a standalone C file.
> 
> So far only "tcg/tcg.h" requires these headers.
> 
> Remove the "target-tcg.h" header dependency on accelerators.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>   include/exec/cpu-defs.h | 3 ---
>   1 file changed, 3 deletions(-)
> 
> diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
> index d1f5e3fc3d8..ba3cd32a1ec 100644
> --- a/include/exec/cpu-defs.h
> +++ b/include/exec/cpu-defs.h
> @@ -25,9 +25,6 @@
>   
>   #include "qemu/host-utils.h"
>   #include "qemu/thread.h"
> -#ifdef CONFIG_TCG
> -#include "tcg-target.h"
> -#endif
>   #ifndef CONFIG_USER_ONLY
>   #include "exec/hwaddr.h"
>   #endif
> 



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

* Re: [PATCH] exec/cpu-defs: Remove TCG backends dependency
  2021-02-04 18:19 ` Paolo Bonzini
@ 2021-02-04 18:41   ` Philippe Mathieu-Daudé
  2021-02-04 18:47     ` Paolo Bonzini
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-02-04 18:41 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Richard Henderson, qemu-devel@nongnu.org Developers,
	Claudio Fontana

On Thu, Feb 4, 2021 at 7:19 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
> On 04/02/21 19:03, Philippe Mathieu-Daudé wrote:
> > "exec/cpu-defs.h" contains common CPU definitions for
> > accelerators, which is not related to the TCG backends.
> > See tcg/README description:
>
> Most of the definitions are actually for TCG, not for all accelerators
> (the TLB mostly).

Ah ok. Richard, could you update the description or do you want
me to respin?

> However, they're indeed unrelated to the backends, so
>
> Acked-by: Paolo Bonzini <pbonzini@redhat.com>

Thanks, this avoids rebuilding the whole tree when doing a single change
in these headers (I'll send a quick mail about it later, proven useful while
bisecting).


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

* Re: [PATCH] exec/cpu-defs: Remove TCG backends dependency
  2021-02-04 18:41   ` Philippe Mathieu-Daudé
@ 2021-02-04 18:47     ` Paolo Bonzini
  0 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2021-02-04 18:47 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Richard Henderson, qemu-devel@nongnu.org Developers,
	Claudio Fontana

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

Il gio 4 feb 2021, 19:41 Philippe Mathieu-Daudé <f4bug@amsat.org> ha
scritto:

> On Thu, Feb 4, 2021 at 7:19 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
> > On 04/02/21 19:03, Philippe Mathieu-Daudé wrote:
> > > "exec/cpu-defs.h" contains common CPU definitions for
> > > accelerators, which is not related to the TCG backends.
> > > See tcg/README description:
> >
> > Most of the definitions are actually for TCG, not for all accelerators
> > (the TLB mostly).
>
> Ah ok. Richard, could you update the description or do you want
> me to respin?
>
> > However, they're indeed unrelated to the backends, so
> >
> > Acked-by: Paolo Bonzini <pbonzini@redhat.com>
>
> Thanks, this avoids rebuilding the whole tree when doing a single change
> in these headers (I'll send a quick mail about it later, proven useful
> while
> bisecting).
>

You could respin and include this info as well.

Paolo


>

[-- Attachment #2: Type: text/html, Size: 1734 bytes --]

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

end of thread, other threads:[~2021-02-04 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-04 18:03 [PATCH] exec/cpu-defs: Remove TCG backends dependency Philippe Mathieu-Daudé
2021-02-04 18:19 ` Paolo Bonzini
2021-02-04 18:41   ` Philippe Mathieu-Daudé
2021-02-04 18:47     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).