[Qemu-devel] [PATCH v2 1/3] target/mips: Add nanoMIPS CRC32 instruction pool

Aleksandar Markovic posted 3 patches 7 years ago
Only 2 patches received!
[Qemu-devel] [PATCH v2 1/3] target/mips: Add nanoMIPS CRC32 instruction pool
Posted by Aleksandar Markovic 7 years ago
From: Aleksandar Markovic <amarkovic@wavecomp.com>

Add nanoMIPS CRC32 instruction pool.

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
---
 target/mips/translate.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/target/mips/translate.c b/target/mips/translate.c
index c44a751..4338b9a 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -17475,6 +17475,16 @@ enum {
     NM_SOV      = 0x7a,
 };
 
+/* CRC32 instruction pool */
+enum {
+    NM_CRC32B   = 0x00,
+    NM_CRC32H   = 0x01,
+    NM_CRC32W   = 0x02,
+    NM_CRC32CB  = 0x04,
+    NM_CRC32CH  = 0x05,
+    NM_CRC32CW  = 0x06,
+};
+
 /* POOL32A5 instruction pool */
 enum {
     NM_CMP_EQ_PH        = 0x00,
-- 
2.7.4


Re: [Qemu-devel] [PATCH v2 1/3] target/mips: Add nanoMIPS CRC32 instruction pool
Posted by Stefan Markovic 7 years ago
On 25.10.18. 10:49, Aleksandar Markovic wrote:
> From: Aleksandar Markovic <amarkovic@wavecomp.com>
>
> Add nanoMIPS CRC32 instruction pool.
>
> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
> ---
>   target/mips/translate.c | 10 ++++++++++
>   1 file changed, 10 insertions(+)


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


> diff --git a/target/mips/translate.c b/target/mips/translate.c
> index c44a751..4338b9a 100644
> --- a/target/mips/translate.c
> +++ b/target/mips/translate.c
> @@ -17475,6 +17475,16 @@ enum {
>       NM_SOV      = 0x7a,
>   };
>   
> +/* CRC32 instruction pool */
> +enum {
> +    NM_CRC32B   = 0x00,
> +    NM_CRC32H   = 0x01,
> +    NM_CRC32W   = 0x02,
> +    NM_CRC32CB  = 0x04,
> +    NM_CRC32CH  = 0x05,
> +    NM_CRC32CW  = 0x06,
> +};
> +
>   /* POOL32A5 instruction pool */
>   enum {
>       NM_CMP_EQ_PH        = 0x00,