aboutsummaryrefslogtreecommitdiff
path: root/risu_aarch64.c
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_aarch64.c
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_aarch64.c')
-rw-r--r--risu_aarch64.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/risu_aarch64.c b/risu_aarch64.c
index 9c6809d..492d141 100644
--- a/risu_aarch64.c
+++ b/risu_aarch64.c
@@ -40,3 +40,8 @@ int get_risuop(struct reginfo *ri)
uint32_t risukey = 0x00005af0;
return (key != risukey) ? -1 : op;
}
+
+uintptr_t get_pc(struct reginfo *ri)
+{
+ return ri->pc;
+}