Received: from eggs.gnu.org ([208.118.235.92]:37487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYvMI-0002iZ-Te for qemu-devel@nongnu.org; Thu, 15 Nov 2012 04:03:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYvMF-0007uu-Rd for qemu-devel@nongnu.org; Thu, 15 Nov 2012 04:03:38 -0500 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:62865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYvMF-0007tw-AT for qemu-devel@nongnu.org; Thu, 15 Nov 2012 04:03:35 -0500 Date: Thu, 15 Nov 2012 17:03:26 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20121115090326.GA24822@cs.nctu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Question about comment on MIPS POOL32AXF encoding List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jia Liu Hi all, I am reading POOL32AXF encoding in target-mips/translate.c, and can't understand what the comment says. For example, /* bits 13..12 for 0x01 */ MFHI_ACC =3D 0x0, MFLO_ACC =3D 0x1, MTHI_ACC =3D 0x2, MTLO_ACC =3D 0x3, I compare this with microMIPS32 manual [1] Table 6.5, but I still don't understand why they're encoded in such way. The comment says "bits 13..12 for 0x01", I can roughly understand the enum list bits 13..12 here, but what "for 0x01" exactly means? Thanks. Regards, chenwj [1] MIPS Architecture for Programmers Volume II-B: The microMIPS32 Instruction Set --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj