linux-mips
[Top] [All Lists]

[PATCH v3 1/3] MIPS: microMIPS: Fix POOL16C minor opcode enum

To: ralf@linux-mips.org, Steven.Hill@imgtec.com, macro@linux-mips.org, david.daney@cavium.com, linux-mips@linux-mips.org
Subject: [PATCH v3 1/3] MIPS: microMIPS: Fix POOL16C minor opcode enum
From: Tony Wu <tung7970@gmail.com>
Date: Mon, 27 May 2013 18:59:59 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=OtNtIUEH2LodtKBt+lAru1v2TEBQjsZCha0wQbrk7Iw=; b=KYAknKU8qFJFZPLExjik6EzPDG8LLeqMn77nujXg2C85o24v3LtQEJygMu4K2XBn7i eYt1HCNHBNnNIDVOHjcr3URfokalq8dHuDsAGV74gkCwJ4vYVqzIEnSXvmONfJLGgj6q CeyovkgobUJ5aNGddrmLuvAcYMw7fQffAO/eVEDgwnX9H2caJKjRb2qHdH/vgDK7XRWS fAEsU6baNvUWzdvPbCoHt1pbpbB31qQBxKi36dUlwMwxm72et7RopCyraR2CSGpXRak+ xVuh8ZwIkn8CUVc6FzLok/jxUHGNdBU4indRegHq4M9lThDbI/1Yrx9sd+RIQc+I2xuU 2v5Q==
In-reply-to: <20130527105810.GA31548@hades>
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>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20130527105810.GA31548@hades>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
As pointed out by Maciej, POOL16C minor opcodes were mostly shifted
by one bit. Correct those opcodes, and also add jraddiusp to the enum.

Signed-off-by: Tony Wu <tung7970@gmail.com>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
---
 arch/mips/include/uapi/asm/inst.h |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/arch/mips/include/uapi/asm/inst.h 
b/arch/mips/include/uapi/asm/inst.h
index 0f4aec2..473a2ac 100644
--- a/arch/mips/include/uapi/asm/inst.h
+++ b/arch/mips/include/uapi/asm/inst.h
@@ -409,10 +409,11 @@ enum mm_32f_73_minor_op {
 enum mm_16c_minor_op {
        mm_lwm16_op = 0x04,
        mm_swm16_op = 0x05,
-       mm_jr16_op = 0x18,
-       mm_jrc_op = 0x1a,
-       mm_jalr16_op = 0x1c,
-       mm_jalrs16_op = 0x1e,
+       mm_jr16_op = 0x0c,
+       mm_jraddiusp_op = 0x18,
+       mm_jrc_op = 0x0d,
+       mm_jalr16_op = 0x1e,
+       mm_jalrs16_op = 0x1f,
 };
 
 /*
-- 
1.7.10.2 (Apple Git-33)

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