diff options
author | Bastian Koppelmann | 2019-08-21 11:02:23 +0200 |
---|---|---|
committer | Bastian Koppelmann | 2019-08-22 12:16:58 +0200 |
commit | 17ebc8c1047a9c9f07c25585156231d34fd4a682 (patch) | |
tree | 76f2c6182ed3e3a14dda977d4fbda043ebe7ec89 /target/tricore/op_helper.c | |
parent | target/tricore: Use translate_loop (diff) | |
download | qemu-17ebc8c1047a9c9f07c25585156231d34fd4a682.tar.gz qemu-17ebc8c1047a9c9f07c25585156231d34fd4a682.tar.xz qemu-17ebc8c1047a9c9f07c25585156231d34fd4a682.zip |
target/tricore: Implement a qemu excptions helper
this helper is only used to raise qemu specific exceptions. We use this
helper to raise it on breakpoints.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Diffstat (limited to 'target/tricore/op_helper.c')
-rw-r--r-- | target/tricore/op_helper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/tricore/op_helper.c b/target/tricore/op_helper.c index 9476d10d00..32c2bc1699 100644 --- a/target/tricore/op_helper.c +++ b/target/tricore/op_helper.c @@ -107,6 +107,13 @@ static void raise_exception_sync_helper(CPUTriCoreState *env, uint32_t class, raise_exception_sync_internal(env, class, tin, pc, 0); } +void helper_qemu_excp(CPUTriCoreState *env, uint32_t excp) +{ + CPUState *cs = env_cpu(env); + cs->exception_index = excp; + cpu_loop_exit(cs); +} + /* Addressing mode helper */ static uint16_t reverse16(uint16_t val) |