This patch implements several Octeon +/II instructions.
PATCH 1/1 This patch implements several Octeon +/II instructions.
From: owl <[email protected]>
Octeon+
- SAA
- SAAD
Octeon2
- LAI
- LAID
- LAD
- LADD
- LAS
- LASD
- LAC
- LACD
- LAA
- LAAD
- LAW
- LAWD
- LWX
- LHX
- LDX
- LBUX
- LWUX
- LHUX
- LBX
--- target/mips/tcg/octeon.decode | 35 ++++ target/mips/tcg/octeon_translate.c | 281 +++++++++++++++++++++++++++++ 2 files changed, 316 insertions(+)
target/mips/tcg/octeon.decode +35 -0
@@ -39,3 +39,38 @@ CINS 011100 ..... ..... ..... ..... 11001 . @bitfield POP 011100 rs:5 00000 rd:5 00000 10110 dw:1 SEQNE 011100 rs:5 rt:5 rd:5 00000 10101 ne:1 SEQNEI 011100 rs:5 rt:5 imm:s10 10111 ne:1 + + +# SAA rt, (base) +# SAAD rt, (base) +SAA 011100 base:5 rt:5 00000 00000 011000 +SAAD 011100 base:5 rt:5 00000 00000 011001 + +LAI 011100 ..... ..... ..... 00010 011111 @r3 +LAID 011100 ..... ..... ..... 00011 011111 @r3 +LAD 011100 ..... ..... ..... 00110 011111 @r3 +LADD 011100 ..... ..... ..... 00111 011111 @r3 +LAS 011100 ..... ..... ..... 01010 011111 @r3 +LASD 011100 ..... ..... ..... 01011 011111 @r3 +LAC 011100 ..... ..... ..... 01110 011111 @r3 +LACD 011100 ..... ..... ..... 01111 011111 @r3 +LAA 011100 ..... ..... ..... 10010 011111 @r3 +LAAD 011100 ..... ..... ..... 10011 011111 @r3 +LAW 011100 ..... ..... ..... 10110 011111 @r3 +LAWD 011100 ..... ..... ..... 10111 011111 @r3 + + +# LWX +# LHX +# LDX +# LBUX +# LWUX +# LHUX +# LBX +LWX 011111 ..... ..... ..... 00000 001010 @r3 +LHX 011111 ..... ..... ..... 00100 001010 @r3 +LDX 011111 ..... ..... ..... 01000 001010 @r3 +LBUX 011111 ..... ..... ..... 00110 001010 @r3 +LWUX 011111 ..... ..... ..... 10000 001010 @r3 +LHUX 011111 ..... ..... ..... 10100 001010 @r3 +LBX 011111 ..... ..... ..... 10110 001010 @r3
target/mips/tcg/octeon_translate.c +281 -0
284 lines not on this page · raw message
Signature · 1 line
2.34.1
Hi,
Quoted 2 lines · On 19/1/24 05:56, [email protected] wrote:
From: owl <[email protected]>
Thank for your patch!
Quoted 4 lines
Octeon+
- SAA
- SAAD
It seems it could be split in 3 parts, SA*, LA* and the rest.
Quoted 22 lines
Octeon2
- LAI
- LAID
- LAD
- LADD
- LAS
- LASD
- LAC
- LACD
- LAA
- LAAD
- LAW
- LAWD- LWX
- LHX
- LDX
- LBUX
- LWUX
- LHUX
- LBX
Quoted 5 lines
Signed-off-by owl <[email protected]>--- target/mips/tcg/octeon.decode | 35 ++++ target/mips/tcg/octeon_translate.c | 281 +++++++++++++++++++++++++++++ 2 files changed, 316 insertions(+)
How can we test it? Is there any distribution producing kernel for Octeon+/2? Per https://github.com/MarvellEmbeddedProcessors/marvell-dpdk
I understand there could be Linux and FreeBSD, is that correct?
Thanks,
Phil.
Hi > How can we test it? Is there any distribution producing kernel for
Quoted 2 lines
Octeon+/2? Per https://github.com/MarvellEmbeddedProcessors/marvell-dpdk
I understand there could be Linux and FreeBSD, is that correct?Actually I don't know how to fully test each intruction.
To the best of my knowledge, the Octeon Instruction is optimized for networking security/application processor.
And the latest reference manual is not public available. (https://dokumen.tips/documents/cavium-networks-octeon-plus-cn50xx-hardware-2008-cavium-networks-octeon-plus.html?page=1 )
I find the Instruction specification from Marvell's toolchain and Vargrind's vex ir translation (https://sourceware.org/git/?p=valgrind.git;a=blob;f=VEX/priv/guest_mips_toIR.c;h=1285edad0b83b0f0a6b21fc63d2235d50f94d204;hb=HEAD#l2909)
I have successfully emulated an ELF binary compiled for Cavium (Marvell) on x86 architecture.
Can you help or give me some suggestions about testing?
Best
owl129