aboutsummaryrefslogtreecommitdiff
path: root/risu.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-02-24 17:02:25 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-02-24 17:02:58 +0000
commit96d0b66036df61596f6fa5f7a83c6640f8350b23 (patch)
tree5228a308b68f4f9d15a6b59be3c68c67e983d7e9 /risu.h
parent31e34835ebbf98beab46e6d2ae832a1dd6e054de (diff)
Move recv_and_compare_register_info() and report_match_status() to reginfo.c
Move recv_and_compare_register_info() and report_match_status() to reginfo.c -- they are essentially the same for all targets so can be common code. The shared variables they use come with them. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'risu.h')
-rw-r--r--risu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/risu.h b/risu.h
index 0f00b5f..90e4f23 100644
--- a/risu.h
+++ b/risu.h
@@ -57,8 +57,6 @@ struct reginfo;
*/
int send_register_info(int sock, void *uc);
-/* Interface provided by CPU-specific code: */
-
/* Read register info from the socket and compare it with that from the
* ucontext. Return 0 for match, 1 for end-of-test, 2 for mismatch.
* NB: called from a signal handler.
@@ -73,6 +71,8 @@ int recv_and_compare_register_info(int sock, void *uc);
*/
int report_match_status(void);
+/* Interface provided by CPU-specific code: */
+
/* Move the PC past this faulting insn by adjusting ucontext
*/
void advance_pc(void *uc);