memory_mapping: Rework cpu related includes
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
@@ -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
Quoted 24 lines · Peter Crosthwaite
This makes it more consistent with all other core code files, which either just rely on
qemu-common.hinclusion or precedecpu.hwithqemu-common.h.
cpu-all.hshould not be included in addition tocpu.h. Remove it.Signed-off-by Peter Crosthwaite <[email protected]>---
changed since v1:
Leave incpu.hincludePicked up by my multi arch WIP where
target-multi/cpu.hcant handle random core code inclusion without preceededqemu-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
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
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.hinclusion or precedecpu.hwithqemu-common.h.
cpu-all.hshould not be included in addition tocpu.h. Remove it.Signed-off-by Peter Crosthwaite <[email protected]>---
changed since v1:
Leave incpu.hincludePicked up by my multi arch WIP where
target-multi/cpu.hcant handle random core code inclusion without preceededqemu-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
-0memory_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" Acked-by Paolo Bonzini <[email protected]>
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
Quoted 7 lines · Peter Crosthwaite
Quoted 3 lines
Acked-by Paolo Bonzini <[email protected]>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
Ping!
Quoted 36 lines · Peter Crosthwaite
This makes it more consistent with all other core code files, which either just rely on
qemu-common.hinclusion or precedecpu.hwithqemu-common.h.
cpu-all.hshould not be included in addition tocpu.h. Remove it.Signed-off-by Peter Crosthwaite <[email protected]>---
changed since v1:
Leave incpu.hincludePicked up by my multi arch WIP where
target-multi/cpu.hcant handle random core code inclusion without preceededqemu-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@@ -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
Paolo Bonzini
AppliedQuoted 7 lines · Peter Crosthwaite
This makes it more consistent with all other core code files, which either just rely on
qemu-common.hinclusion or precedecpu.hwithqemu-common.h.
cpu-all.hshould not be included in addition tocpu.h. Remove it.Signed-off-by Peter Crosthwaite <[email protected]>
Applied, will send a pull request today or tomorrow.
Paolo
Quoted 26 lines
---
changed since v1:
Leave incpu.hincludePicked up by my multi arch WIP where
target-multi/cpu.hcant handle random core code inclusion without preceededqemu-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@@ -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"