Skip to contentSkip to conversation

PPC: Fix compile with profiling enabled

PATCH New Alexander Graf 1 participant 1 message Apr 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: Fix compile with profiling enabled

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.

---
 translate-all.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
translate-all.c +1 -0
index 08dd038..a18bf55 100644
@@ -55,6 +55,7 @@
 #else
 #include "exec/address-spaces.h"
 #endif
+#include "qemu/timer.h"
 
 #include "exec/cputlb.h"
 #include "translate-all.h"
Signature · 1 line
1.6.0.2