linux-mips
[Top] [All Lists]

Re: [PATCH v4,04/10] Add the MIPS32R2 'ins' and 'ext' instructions for u

To: "Steven J. Hill" <sjhill@mips.com>
Subject: Re: [PATCH v4,04/10] Add the MIPS32R2 'ins' and 'ext' instructions for use by the kernel's micro-assembler.
From: Sergei Shtylyov <sshtylyov@mvista.com>
Date: Sun, 01 Jul 2012 00:06:01 +0400
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
In-reply-to: <1340994924-3922-1-git-send-email-sjhill@mips.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1340994924-3922-1-git-send-email-sjhill@mips.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
Hello.

On 29-06-2012 22:35, Steven J. Hill wrote:

From: "Steven J. Hill"<sjhill@mips.com>

Signed-off-by: Steven J. Hill<sjhill@mips.com>
[...]

diff --git a/arch/mips/mm/uasm.c b/arch/mips/mm/uasm.c
index 5fa1851..663b6b1 100644
--- a/arch/mips/mm/uasm.c
+++ b/arch/mips/mm/uasm.c
[...]
@@ -343,6 +345,13 @@ Ip_u2u1msbu3(op)                                   \
  }                                                     \
  UASM_EXPORT_SYMBOL(uasm_i##op);

+#define I_u2u1mmsbu3(op)                               \
+Ip_u2u1msbu3(op)                                       \
+{                                                      \
+       build_insn(buf, insn##op, b, a, d-1, c);        \
+}                                                      \
+UASM_EXPORT_SYMBOL(uasm_i##op);
+
  #define I_u1u2(op)                                    \
  Ip_u1u2(op)                                           \
  {                                                     \
@@ -396,6 +405,8 @@ I_u2u1u3(_drotr)
  I_u2u1u3(_drotr32)
  I_u3u1u2(_dsubu)
  I_0(_eret)
+I_u2u1mmsbu3(_ext)
+I_u2u1msbu3(_ins)

   Not I_u2u1mmsbu3()?

WBR, Sergei

<Prev in Thread] Current Thread [Next in Thread>