summaryrefslogtreecommitdiffstats
path: root/target-tricore/helper.h
diff options
context:
space:
mode:
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>2014-09-26 20:36:09 +0100
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>2014-10-20 12:25:07 +0100
commit3a16ecb06355d0bfc8b547eba094ebaa44dce39f (patch)
tree12b8a1f2134b0e6cf4ce0ec71cf876a2cc38eadd /target-tricore/helper.h
parentb74f2b5bb3b7b806a896c97386a597205055bb9e (diff)
downloadhqemu-3a16ecb06355d0bfc8b547eba094ebaa44dce39f.zip
hqemu-3a16ecb06355d0bfc8b547eba094ebaa44dce39f.tar.gz
target-tricore: Add instructions of BO opcode format
Add instructions of BO opcode format. Add microcode generator functions gen_swap, gen_ldmst. Add microcode generator functions gen_st/ld_preincr, which write back the address after the memory access. Add helper for circular and bit reverse addr mode calculation. Add sign extended bitmask for BO_OFF10 field. Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-tricore/helper.h')
-rw-r--r--target-tricore/helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-tricore/helper.h b/target-tricore/helper.h
index fbabbd5..b3fc33c 100644
--- a/target-tricore/helper.h
+++ b/target-tricore/helper.h
@@ -27,3 +27,6 @@ DEF_HELPER_2(ldlcx, void, env, i32)
DEF_HELPER_2(lducx, void, env, i32)
DEF_HELPER_2(stlcx, void, env, i32)
DEF_HELPER_2(stucx, void, env, i32)
+/* Address mode helper */
+DEF_HELPER_1(br_update, i32, i32)
+DEF_HELPER_2(circ_update, i32, i32, i32)
OpenPOWER on IntegriCloud