qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Markovic <smarkovic@wavecomp.com>
To: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>,
	qemu-devel@nongnu.org
Cc: aurelien@aurel32.net, jancraig@amazon.com,
	amarkovic@wavecomp.com, pjovanovic@wavecomp.com
Subject: Re: [Qemu-devel] [PATCH 3/4] target/mips: Add organizational chart of MXU ASE
Date: Tue, 16 Oct 2018 15:34:47 +0200	[thread overview]
Message-ID: <742ae6ab-7fd8-e832-a6e9-dc44d813468a@wavecomp.com> (raw)
In-Reply-To: <1539692044-15732-4-git-send-email-aleksandar.markovic@rt-rk.com>


On 16.10.18. 14:14, Aleksandar Markovic wrote:
> From: Aleksandar Markovic <amarkovic@wavecomp.com>
>
> Add a comment that contains an organizational chart of MXU ASE
> instructions.
>
> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
> ---
>   target/mips/translate.c | 156 ++++++++++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 156 insertions(+)


Reviewed-by: Stefan Markovic <smarkovic@wavecomp.com>


>
> diff --git a/target/mips/translate.c b/target/mips/translate.c
> index 73d971e..4dfc360 100644
> --- a/target/mips/translate.c
> +++ b/target/mips/translate.c
> @@ -1490,6 +1490,162 @@ enum {
>    *  Q16SCOP XRa, XRb, XRc, XRd        S32M2I XRa, Rb
>    *  Q16SAT XRa, XRb, XRc              S32I2M XRa, Rb
>    *
> + *
> + *              bits
> + *             05..00
> + *
> + *          ┌─ 000000 ─ OPC_MXU_S32MADD
> + *          ├─ 000001 ─ OPC_MXU_S32MADDU
> + *          ├─ 000010 ─ <not assigned>
> + *          │                               20..18  (25..21 must be 0)
> + *          ├─ 000011 ─ OPC_MXU__POOL00 ─┬─ 000 ─ OPC_MXU_S32MAX
> + *          │                            ├─ 001 ─ OPC_MXU_S32MIN
> + *          │                            ├─ 010 ─ OPC_MXU_D16MAX
> + *          │                            ├─ 011 ─ OPC_MXU_D16MIN
> + *          │                            ├─ 100 ─ OPC_MXU_Q8MAX
> + *          │                            ├─ 101 ─ OPC_MXU_Q8MIN
> + *          │                            ├─ 110 ─ OPC_MXU_Q8SLT
> + *          │                            └─ 111 ─ OPC_MXU_Q8SLTU
> + *          ├─ 000100 ─ OPC_MXU_S32MSUB
> + *          ├─ 000101 ─ OPC_MXU_S32MSUBU    20..18  (25..21 must be 0,
> + *          │                                         except for Q8ADD)
> + *          ├─ 000110 ─ OPC_MXU__POOL01 ─┬─ 000 ─ OPC_MXU_S32SLT
> + *          │                            ├─ 001 ─ OPC_MXU_D16SLT
> + *          │                            ├─ 010 ─ OPC_MXU_D16AVG
> + *          │                            ├─ 011 ─ OPC_MXU_D16AVGR
> + *          │                            ├─ 100 ─ OPC_MXU_Q8AVG
> + *          │                            ├─ 101 ─ OPC_MXU_Q8AVGR
> + *          │                            └─ 111 ─ OPC_MXU_Q8ADD
> + *          │
> + *          │                               20..18  (25..21 must be 0)
> + *          ├─ 000111 ─ OPC_MXU__POOL02 ─┬─ 000 ─ OPC_MXU_S32CPS
> + *          │                            ├─ 010 ─ OPC_MXU_D16CPS
> + *          │                            ├─ 100 ─ OPC_MXU_Q8ABD
> + *          │                            └─ 110 ─ OPC_MXU_Q16SAT
> + *          ├─ 001000 ─ OPC_MXU_D16MUL
> + *          │                               25..24
> + *          ├─ 001001 ─ OPC_MXU__POOL03 ─┬─ 00 ─ OPC_MXU_D16MULF
> + *          │                            └─ 01 ─ OPC_MXU_D16MULE
> + *          ├─ 001010 ─ OPC_MXU_D16MAC
> + *          ├─ 001011 ─ OPC_MXU_D16MACF
> + *          ├─ 001100 ─ OPC_MXU_D16MADL
> + *          │                               25..24
> + *          ├─ 001101 ─ OPC_MXU__POOL04 ─┬─ 00 ─ OPC_MXU_S16MAD
> + *          │                            └─ 01 ─ OPC_MXU_S16MAD_1
> + *          ├─ 001110 ─ OPC_MXU_Q16ADD
> + *          ├─ 001111 ─ OPC_MXU_D16MACE
> + *          │                               23
> + *          ├─ 010000 ─ OPC_MXU__POOL05 ─┬─ 0 ─ OPC_MXU_S32LDD
> + *          │                            └─ 1 ─ OPC_MXU_S32LDDR
> + *          │
> + *          │                               23
> + *          ├─ 010001 ─ OPC_MXU__POOL06 ─┬─ 0 ─ OPC_MXU_S32STD
> + *          │                            └─ 1 ─ OPC_MXU_S32STDR
> + *          │
> + *          │                               13..10
> + *          ├─ 010010 ─ OPC_MXU__POOL07 ─┬─ 0000 ─ OPC_MXU_S32LDDV
> + *          │                            └─ 0001 ─ OPC_MXU_S32LDDVR
> + *          │
> + *          │                               13..10
> + *          ├─ 010011 ─ OPC_MXU__POOL08 ─┬─ 0000 ─ OPC_MXU_S32TDV
> + *          │                            └─ 0001 ─ OPC_MXU_S32TDVR
> + *          │
> + *          │                               23
> + *          ├─ 010100 ─ OPC_MXU__POOL09 ─┬─ 0 ─ OPC_MXU_S32LDI
> + *          │                            └─ 1 ─ OPC_MXU_S32LDIR
> + *          │
> + *          │                               23
> + *          ├─ 010101 ─ OPC_MXU__POOL10 ─┬─ 0 ─ OPC_MXU_S32SDI
> + *          │                            └─ 1 ─ OPC_MXU_S32SDIR
> + *          │
> + *          │                               13..10
> + *          ├─ 010110 ─ OPC_MXU__POOL11 ─┬─ 0000 ─ OPC_MXU_S32LDIV
> + *          │                            └─ 0001 ─ OPC_MXU_S32LDIVR
> + *          │
> + *          │                               13..10
> + *          ├─ 010111 ─ OPC_MXU__POOL12 ─┬─ 0000 ─ OPC_MXU_S32SDIV
> + *          │                            └─ 0001 ─ OPC_MXU_S32SDIVR
> + *          ├─ 011000 ─ OPC_MXU_D32ADD
> + *          │
> + *   MXU    ├─ 011001 ─ OPC_MXU__POOL13 ─┬─ 00 ─ OPC_MXU_D32ACC
> + * opcodes ─┤                            ├─ 01 ─ OPC_MXU_D32ACCM
> + *          │                            └─ 10 ─ OPC_MXU_D32ASUM
> + *          ├─ 011010 ─ <not assigned>
> + *          │
> + *          ├─ 011011 ─ OPC_MXU__POOL14 ─┬─ 00 ─ OPC_MXU_Q16ACC
> + *          │                            ├─ 01 ─ OPC_MXU_Q16ACCM
> + *          │                            └─ 10 ─ OPC_MXU_Q16ASUM
> + *          │
> + *          │
> + *          ├─ 011100 ─ OPC_MXU__POOL15 ─┬─ 00 ─ OPC_MXU_Q8ADDE
> + *          │                            ├─ 01 ─ OPC_MXU_D8SUM
> + *          ├─ 011101 ─ OPC_MXU_Q8ACCE   └─ 10 ─ OPC_MXU_D8SUMC
> + *          ├─ 011110 ─ <not assigned>
> + *          ├─ 011111 ─ <not assigned>
> + *          ├─ 100000 ─ <not assigned>
> + *          ├─ 100001 ─ <not assigned>
> + *          ├─ 100010 ─ OPC_MXU_S8LDD
> + *          ├─ 100011 ─ OPC_MXU_S8STD
> + *          ├─ 100100 ─ OPC_MXU_S8LDI
> + *          ├─ 100101 ─ OPC_MXU_S8SDI
> + *          │
> + *          ├─ 100110 ─ OPC_MXU__POOL16 ─┬─ 00 ─ OPC_MXU_S32MUL
> + *          │                            ├─ 00 ─ OPC_MXU_S32MULU
> + *          │                            ├─ 00 ─ OPC_MXU_S32EXTR
> + *          │                            └─ 00 ─ OPC_MXU_S32EXTRV
> + *          │
> + *          │
> + *          ├─ 100111 ─ OPC_MXU__POOL17 ─┬─ 000 ─ OPC_MXU_D32SARW
> + *          │                            ├─ 001 ─ OPC_MXU_S32ALN
> + *          ├─ 101000 ─ OPC_MXU_LXB      ├─ 010 ─ OPC_MXU_S32ALNI
> + *          ├─ 101001 ─ <not assigned>   ├─ 011 ─ OPC_MXU_S32NOR
> + *          ├─ 101010 ─ OPC_MXU_S16LDD   ├─ 100 ─ OPC_MXU_S32AND
> + *          ├─ 101011 ─ OPC_MXU_S16STD   ├─ 101 ─ OPC_MXU_S32OR
> + *          ├─ 101100 ─ OPC_MXU_S16LDI   ├─ 110 ─ OPC_MXU_S32XOR
> + *          ├─ 101101 ─ OPC_MXU_S16SDI   └─ 111 ─ OPC_MXU_S32LUI
> + *          ├─ 101000 ─ <not assigned>
> + *          ├─ 101001 ─ <not assigned>
> + *          ├─ 101010 ─ <not assigned>
> + *          ├─ 101011 ─ <not assigned>
> + *          ├─ 101100 ─ <not assigned>
> + *          ├─ 101101 ─ <not assigned>
> + *          ├─ 101110 ─ OPC_MXU_S32M2I
> + *          ├─ 101111 ─ OPC_MXU_S32I2M
> + *          ├─ 110000 ─ OPC_MXU_D32SLL
> + *          ├─ 110001 ─ OPC_MXU_D32SLR
> + *          ├─ 110010 ─ OPC_MXU_D32SARL
> + *          ├─ 110011 ─ OPC_MXU_D32SAR
> + *          ├─ 110100 ─ OPC_MXU_Q16SLL
> + *          ├─ 110101 ─ OPC_MXU_Q16SLR
> + *          ├─ 110110 ─ OPC_MXU__POOL18 ─┬─ 000 ─ OPC_MXU_D32SLLV
> + *          │                            ├─ 001 ─ OPC_MXU_D32SLRV
> + *          │                            ├─ 010 ─ OPC_MXU_D32SARV
> + *          │                            ├─ 011 ─ OPC_MXU_Q16SLLV
> + *          │                            ├─ 100 ─ OPC_MXU_Q16SLRV
> + *          │                            └─ 101 ─ OPC_MXU_Q16SARV
> + *          ├─ 110111 ─ OPC_MXU_Q16SAR
> + *          │
> + *          ├─ 111000 ─ OPC_MXU__POOL19 ─┬─ 00 ─ OPC_MXU_Q8MUL
> + *          │                            └─ 01 ─ OPC_MXU_Q8MULSU
> + *          │
> + *          │
> + *          ├─ 111001 ─ OPC_MXU__POOL20 ─┬─ 000 ─ OPC_MXU_Q8MOVZ
> + *          │                            ├─ 001 ─ OPC_MXU_Q8MOVN
> + *          │                            ├─ 010 ─ OPC_MXU_D16MOVZ
> + *          │                            ├─ 011 ─ OPC_MXU_D16MOVN
> + *          │                            ├─ 100 ─ OPC_MXU_S32MOVZ
> + *          │                            └─ 101 ─ OPC_MXU_S32MOV
> + *          │
> + *          │
> + *          ├─ 111010 ─ OPC_MXU__POOL21 ─┬─ 00 ─ OPC_MXU_Q8MAC
> + *          │                            └─ 10 ─ OPC_MXU_Q8MACSU
> + *          ├─ 111011 ─ OPC_MXU_Q16SCOP
> + *          ├─ 111100 ─ OPC_MXU_Q8MADL
> + *          ├─ 111101 ─ OPC_MXU_S32SFL
> + *          ├─ 111110 ─ OPC_MXU_Q8SAD
> + *          └─ 111111 ─ <not assigned>
> + *
> + *
>    *   Compiled after:
>    *
>    *   "XBurst® Instruction Set Architecture MIPS eXtension/enhanced Unit

  reply	other threads:[~2018-10-16 13:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-16 12:14 [Qemu-devel] [PATCH 0/4] target/mips: Add Ingenic's MXU ASE opcodes Aleksandar Markovic
2018-10-16 12:14 ` [Qemu-devel] [PATCH 1/4] target/mips: Add basic description of MXU ASE Aleksandar Markovic
2018-10-16 13:27   ` Stefan Markovic
2018-10-16 12:14 ` [Qemu-devel] [PATCH 2/4] target/mips: Add assembler mnemonics list for " Aleksandar Markovic
2018-10-16 13:33   ` Stefan Markovic
2018-10-16 12:14 ` [Qemu-devel] [PATCH 3/4] target/mips: Add organizational chart of " Aleksandar Markovic
2018-10-16 13:34   ` Stefan Markovic [this message]
2018-10-16 12:14 ` [Qemu-devel] [PATCH 4/4] target/mips: Add opcode values " Aleksandar Markovic
2018-10-16 13:40   ` Stefan Markovic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=742ae6ab-7fd8-e832-a6e9-dc44d813468a@wavecomp.com \
    --to=smarkovic@wavecomp.com \
    --cc=aleksandar.markovic@rt-rk.com \
    --cc=amarkovic@wavecomp.com \
    --cc=aurelien@aurel32.net \
    --cc=jancraig@amazon.com \
    --cc=pjovanovic@wavecomp.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).