Skip to contentSkip to conversation

exec/cpu-defs: Remove TCG backends dependency

PATCH Applied Philippe Mathieu-Daudé 2 participants 2 messages Feb 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 exec/cpu-defs: Remove TCG backends dependency

"exec/cpu-defs.h" contains generic CPU definitions for the TCG frontends (mostly related to TLB). TCG backends definitions aren't relevant here.

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 TCG frontends, so we don't have to rebuild all frontends when hacking a single backend.

---
v2: Reword description (bonzini)

---
 include/exec/cpu-defs.h | 3 ---
 1 file changed, 3 deletions(-)
include/exec/cpu-defs.h +0 -3
index d1f5e3fc3d8..ba3cd32a1ec 100644
@@ -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
Signature · 1 line
2.26.2
#1 lore raw
Quoted 17 lines · Philippe Mathieu-Daudé

"exec/cpu-defs.h" contains generic CPU definitions for the TCG frontends (mostly related to TLB). TCG backends definitions aren't relevant here.

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 TCG frontends, so we don't have to rebuild all frontends when hacking a single backend.

Quoted 6 lines

---
v2: Reword description (bonzini)

---
 include/exec/cpu-defs.h | 3 ---
 1 file changed, 3 deletions(-)

Queued, thanks.

r~