diff mbox

[v1,6/6] hw: mb: boot Explicitly include cpu.h for consumers

Message ID 54bef7e49dbcc4a02c504a8d57ec0b506eb453b1.1445842804.git.crosthwaite.peter@gmail.com
State New
Headers show

Commit Message

Peter Crosthwaite Oct. 26, 2015, 3:27 p.m. UTC
From: Peter Crosthwaite <crosthwaitepeter@gmail.com>

boot.c only needs cpu.h for architecture specific reasons. So include
target-microblaze/cpu.h explicitly rather than the one provided by
common code.

This prepares support for multi-arch where the common cpu.h will be
minimal and not contain any arch specifics.

Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
---
Changed since RFCv3:
Made commit message specific to boot.c

 hw/microblaze/boot.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/hw/microblaze/boot.h b/hw/microblaze/boot.h
index 0eb7f8e..a4d7740 100644
--- a/hw/microblaze/boot.h
+++ b/hw/microblaze/boot.h
@@ -3,6 +3,8 @@ 
 
 #include "hw/hw.h"
 
+#include "target-microblaze/cpu.h"
+
 void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base,
                             uint32_t ramsize,
                             const char *initrd_filename,