aboutsummaryrefslogtreecommitdiff
path: root/risu.h
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2017-06-21 16:42:39 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-06-29 12:12:02 +0100
commitdfa43a107c89d1f391dfb6096be8b8d8ba58011f (patch)
tree8206c329acf05fa53e715923fcefe9a4cde89178 /risu.h
parentcb6c52b42559a0730cf6d7ae7ed841e31399496f (diff)
risu: add header to trace stream
I've also added a header packet with pc/risu op in it so we can keep better track of how things are going. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> [PMM: flipped header check to early-bailout so diff is easier to read] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20170621154244.28309-6-alex.bennee@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'risu.h')
-rw-r--r--risu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/risu.h b/risu.h
index 8eb6227..9f15662 100644
--- a/risu.h
+++ b/risu.h
@@ -55,6 +55,11 @@ extern int test_fp_exc;
*/
struct reginfo;
+typedef struct {
+ uintptr_t pc;
+ uint32_t risu_op;
+} trace_header_t;
+
/* Functions operating on reginfo */
/* Function prototypes for read/write helper functions.
@@ -108,6 +113,9 @@ uint64_t get_reginfo_paramreg(struct reginfo *ri);
*/
int get_risuop(struct reginfo *ri);
+/* Return the PC from a reginfo */
+uintptr_t get_pc(struct reginfo *ri);
+
/* initialize structure from a ucontext */
void reginfo_init(struct reginfo *ri, ucontext_t *uc);