linux-mips
[Top] [All Lists]

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

To: ralf@linux-mips.org, macro@linux-mips.org, Steven.Hill@imgtec.com, david.daney@cavium.com, linux-mips@linux-mips.org
Subject: [PATCH v4 1/3] MIPS: microMIPS: Fix POOL16C minor opcode enum
From: Tony Wu <tung7970@gmail.com>
Date: Mon, 27 May 2013 20:44:21 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=WlvLyifPcBYWvayYFdtEyi/dtGSHz0sDsh1/jSho8SU=; b=haV93SGgDZ5EF1JVfdRyNkObFZNfv2QBQNxiozdabmpbvVEd8pebRXWdEpIKLYaSMr /JOxlYUHU0JKN/lZ/FFi79sha8+pk/UOASpo/Lekh3kM7ryNuQ5Ap6sTJNnKX6N2tosc KVIEid10CbzICj2lwacNpqQVqMNkjq3KuiWqBYOHMzWRbiwg+cURY7tbeDPIHZDtvRfa GW/rxshdVyNmGsezkcAzPToAYdvN/Mvcc+kW10uOQpXt0q0sxfcnNva7iuVXKhIcDcSX azyQjBgS8un4bOHe3BFPmoV0GD1M+vBVAw9fWaF6cqwy9iVyiItVnKgRZgqemkIKnsrM f1ow==
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
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..e5a676e 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_jrc_op = 0x0d,
+       mm_jalr16_op = 0x0e,
+       mm_jalrs16_op = 0x0f,
+       mm_jraddiusp_op = 0x18,
 };
 
 /*
-- 
1.7.10.2 (Apple Git-33)


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