[PATCH v6 30/37] target/hexagon: Add representation to count cycles

Brian Cain posted 37 patches 5 hours ago
Maintainers: Brian Cain <brian.cain@oss.qualcomm.com>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, Laurent Vivier <laurent@vivier.eu>, Alessandro Di Federico <ale@rev.ng>, Anton Johansson <anjo@rev.ng>
[PATCH v6 30/37] target/hexagon: Add representation to count cycles
Posted by Brian Cain 5 hours ago
Add t_cycle_count to CPUArchState for tracking processor
cycle counts in system emulation.

Reviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
---
 target/hexagon/cpu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h
index 3562965c88a..56f89209795 100644
--- a/target/hexagon/cpu.h
+++ b/target/hexagon/cpu.h
@@ -109,6 +109,7 @@ typedef struct CPUArchState {
 
     /* This alias of CPUState.cpu_index is used by imported sources: */
     uint32_t threadId;
+    uint64_t t_cycle_count;
 #endif
     target_ulong new_value_usr;
 
-- 
2.34.1