Skip to contentSkip to conversation

memory_mapping: Rework cpu related includes

PATCH Applied Peter Crosthwaite 3 participants 6 messages Jun 7, 2015 – Jun 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 memory_mapping: Rework cpu related includes

This makes it more consistent with all other core code files, which either just rely on qemu-common.h inclusion or precede cpu.h with qemu-common.h.

cpu-all.h should not be included in addition to cpu.h. Remove it.

---
changed since v1:
Leave in cpu.h include

Picked up by my multi arch WIP where target-multi/cpu.h cant handle random core code inclusion without preceeded qemu-common.h. I guess this is the only one in tree?

---
 memory_mapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memory_mapping.c +1 -1
index 7b69801..36d6b26 100644
@@ -13,8 +13,8 @@
 
 #include <glib.h>
 
+#include "qemu-common.h"
 #include "cpu.h"
-#include "exec/cpu-all.h"
 #include "sysemu/memory_mapping.h"
 #include "exec/memory.h"
 #include "exec/address-spaces.h"
Signature · 1 line
1.9.1
Acked-by on v2 1/1
#1 lore raw
Quoted 24 lines · Peter Crosthwaite

This makes it more consistent with all other core code files, which either just rely on qemu-common.h inclusion or precede cpu.h with qemu-common.h.

cpu-all.h should not be included in addition to cpu.h. Remove it.

---
changed since v1:
Leave in cpu.h include

Picked up by my multi arch WIP where target-multi/cpu.h cant handle random core code inclusion without preceeded qemu-common.h. I guess this is the only one in tree?

---
 memory_mapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memory_mapping.c +0 -0
index 7b69801..36d6b26 100644

memory_mapping.c line 20

Quoted 9 lines
memory_mapping.c +1 -1
@@ -13,8 +13,8 @@
 
 #include <glib.h>
 
+#include "qemu-common.h"
 #include "cpu.h"
-#include "exec/cpu-all.h"
 #include "sysemu/memory_mapping.h"
 #include "exec/memory.h"
 #include "exec/address-spaces.h"

About to leave on vacation, so someone else will have to pick it up.

Paolo

#2 lore raw
Quoted 39 lines · Paolo Bonzini
Quoted 24 lines · Peter Crosthwaite

This makes it more consistent with all other core code files, which either just rely on qemu-common.h inclusion or precede cpu.h with qemu-common.h.

cpu-all.h should not be included in addition to cpu.h. Remove it.

---
changed since v1:
Leave in cpu.h include

Picked up by my multi arch WIP where target-multi/cpu.h cant handle random core code inclusion without preceeded qemu-common.h. I guess this is the only one in tree?

---
 memory_mapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memory_mapping.c +0 -0
index 7b69801..36d6b26 100644

memory_mapping.c line 20

Quoted 9 lines
memory_mapping.c +1 -1
@@ -13,8 +13,8 @@
 
 #include <glib.h>
 
+#include "qemu-common.h"
 #include "cpu.h"
-#include "exec/cpu-all.h"
 #include "sysemu/memory_mapping.h"
 #include "exec/memory.h"
 #include "exec/address-spaces.h"
Quoted 2 lines

About to leave on vacation, so someone else will have to pick it up.

Enjoy. If you are not back before soft freeze would you object to me sending a [PULL] for some of the multi-arch related mainloop header patches for which I have RB from Richard from?

Regards,
Peter

Quoted 2 lines

Paolo

#3 lore raw
Quoted 7 lines · Peter Crosthwaite
Quoted 3 lines

About to leave on vacation, so someone else will have to pick it up.

Enjoy. If you are not back before soft freeze would you object to me sending a [PULL] for some of the multi-arch related mainloop header patches for which I have RB from Richard from?

I don't object to you sending a pull request for any multi-arch related changes. Anything that makes fewer patches go through my "misc" pull requests is a good thing for me.

Just consult with Andreas when he's back about what he prefers to go through his tree.

Paolo

#4 lore raw
In reply to Peter Crosthwaite

Ping!

Quoted 36 lines · Peter Crosthwaite

This makes it more consistent with all other core code files, which either just rely on qemu-common.h inclusion or precede cpu.h with qemu-common.h.

cpu-all.h should not be included in addition to cpu.h. Remove it.

---
changed since v1:
Leave in cpu.h include

Picked up by my multi arch WIP where target-multi/cpu.h cant handle random core code inclusion without preceeded qemu-common.h. I guess this is the only one in tree?

---
 memory_mapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memory_mapping.c +1 -2
index 7b69801..36d6b26 100644
@@ -13,8 +13,8 @@
 
 #include <glib.h>
 
+#include "qemu-common.h"
 #include "cpu.h"
-#include "exec/cpu-all.h"
 #include "sysemu/memory_mapping.h"
 #include "exec/memory.h"
 #include "exec/address-spaces.h"
--

1.9.1

#5 lore raw
In reply to Peter Crosthwaite
Quoted 7 lines · Peter Crosthwaite

This makes it more consistent with all other core code files, which either just rely on qemu-common.h inclusion or precede cpu.h with qemu-common.h.

cpu-all.h should not be included in addition to cpu.h. Remove it.

Applied, will send a pull request today or tomorrow.

Paolo

Quoted 26 lines

---
changed since v1:
Leave in cpu.h include

Picked up by my multi arch WIP where target-multi/cpu.h cant handle random core code inclusion without preceeded qemu-common.h. I guess this is the only one in tree?

---
 memory_mapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memory_mapping.c +1 -1
index 7b69801..36d6b26 100644
@@ -13,8 +13,8 @@
 
 #include <glib.h>
 
+#include "qemu-common.h"
 #include "cpu.h"
-#include "exec/cpu-all.h"
 #include "sysemu/memory_mapping.h"
 #include "exec/memory.h"
 #include "exec/address-spaces.h"