diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-05-17 15:18:04 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-06-09 15:55:02 +0100 |
commit | 6886b98036a8f8f5bce8b10756ce080084cef11b (patch) | |
tree | bc5a3485a81a03200a0f5945445fd6e3b10a9ee4 /cpu-exec-common.c | |
parent | f213e72f2356b77768b9cb73814a3b26ad5a0099 (diff) |
cpu-exec: Rename cpu_resume_from_signal() to cpu_loop_exit_noexc()
The function cpu_resume_from_signal() is now always called with a
NULL puc argument, and is rather misnamed since it is never called
from a signal handler. It is essentially forcing an exit to the
top level cpu loop but without raising any exception, so rename
it to cpu_loop_exit_noexc() and drop the useless unused argument.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Riku Voipio <riku.voipio@linaro.org>
Message-id: 1463494687-25947-4-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'cpu-exec-common.c')
-rw-r--r-- | cpu-exec-common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpu-exec-common.c b/cpu-exec-common.c index 0cb5b6381b..0cb4ae60ef 100644 --- a/cpu-exec-common.c +++ b/cpu-exec-common.c @@ -26,10 +26,8 @@ bool exit_request; CPUState *tcg_current_cpu; -/* exit the current TB from a signal handler. The host registers are - restored in a state compatible with the CPU emulator - */ -void cpu_resume_from_signal(CPUState *cpu, void *puc) +/* exit the current TB, but without causing any exception to be raised */ +void cpu_loop_exit_noexc(CPUState *cpu) { /* XXX: restore cpu registers saved in host registers */ |