Patchwork PPC: Fix compile with profiling enabled

login
register
mail settings
Submitter Alexander Graf
Date April 19, 2013, 12:48 a.m.
Message ID <1366332536-8712-1-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/237776/
State New
Headers show

Comments

Alexander Graf - April 19, 2013, 12:48 a.m.
When using profiling, we rely on profile_getclock() being available
at our disposal. Somehow that function got moved from an indirect
include we used to have in translate-init.c, so that we were now
left not properly compiling anymore.

Add an explicit include to timer.h which defines profile_getclock,
so that we can compile again.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 translate-all.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/translate-all.c b/translate-all.c
index 08dd038..a18bf55 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -55,6 +55,7 @@ 
 #else
 #include "exec/address-spaces.h"
 #endif
+#include "qemu/timer.h"
 
 #include "exec/cputlb.h"
 #include "translate-all.h"