diff options
author | Jamie Iles <jamie@nuviainc.com> | 2021-05-26 13:18:45 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-06-03 16:43:25 +0100 |
commit | 154acaba0ea9675f175118787b9ca44cbbbc23b7 (patch) | |
tree | dbc3164a6ab81076c3480b42ffb870103d90afab /target | |
parent | 6e0c60a2be30c333b06d3558a62b0f177199cbfb (diff) | |
download | qemu-154acaba0ea9675f175118787b9ca44cbbbc23b7.zip qemu-154acaba0ea9675f175118787b9ca44cbbbc23b7.tar.gz qemu-154acaba0ea9675f175118787b9ca44cbbbc23b7.tar.bz2 |
target/arm: fold do_raise_exception into raise_exception
Now that there are no other users of do_raise_exception, fold it into
raise_exception.
Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jamie Iles <jamie@nuviainc.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/op_helper.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/target/arm/op_helper.c b/target/arm/op_helper.c index 1a95972..4132f5e 100644 --- a/target/arm/op_helper.c +++ b/target/arm/op_helper.c @@ -27,8 +27,8 @@ #define SIGNBIT (uint32_t)0x80000000 #define SIGNBIT64 ((uint64_t)1 << 63) -static CPUState *do_raise_exception(CPUARMState *env, uint32_t excp, - uint32_t syndrome, uint32_t target_el) +void raise_exception(CPUARMState *env, uint32_t excp, + uint32_t syndrome, uint32_t target_el) { CPUState *cs = env_cpu(env); @@ -49,14 +49,6 @@ static CPUState *do_raise_exception(CPUARMState *env, uint32_t excp, cs->exception_index = excp; env->exception.syndrome = syndrome; env->exception.target_el = target_el; - - return cs; -} - -void raise_exception(CPUARMState *env, uint32_t excp, - uint32_t syndrome, uint32_t target_el) -{ - CPUState *cs = do_raise_exception(env, excp, syndrome, target_el); cpu_loop_exit(cs); } |