summary refs log tree commit diff stats
path: root/hw/core/qdev.c
diff options
context:
space:
mode:
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>2015-02-25 11:55:52 +0000
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>2015-03-16 15:44:48 +0000
commit068fac77c81b5d227903d0b7ecd108edff4eb0eb (patch)
tree52042b0430e1bfa0f9f41bc1652c0645985167ca /hw/core/qdev.c
parent62e47b2e6d17020b78a676e086bf98cfeba595b7 (diff)
downloadfocaccia-qemu-068fac77c81b5d227903d0b7ecd108edff4eb0eb.tar.gz
focaccia-qemu-068fac77c81b5d227903d0b7ecd108edff4eb0eb.zip
target-tricore: Add instructions of RRR1 opcode format, which have 0xe3 as first opcode
Add helpers helper_subadr_h/_ssov which subs one halfword and adds one
halfword, rounds / and saturates each half word independently.

Add microcode helper functions:
    * gen_msubad_h/ads_h: multiply two halfwords left justified and sub from the
                          first one word and add the second one word
                          / and saturate each resulting word independetly.
    * gen_msubadm_h/adms_h: multiply two halfwords in q-format left justified
                            and sub from the first one word and add to
                            the second one word / and saturate each resulting
                            word independetly.
    * gen_msubadr32_h/32s_h: multiply two halfwords in q-format left justified
                             and sub from the first one word and add to
                             the second one word, round both results / and
                             saturate each resulting word independetly.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Diffstat (limited to 'hw/core/qdev.c')
0 files changed, 0 insertions, 0 deletions