Question about comment on MIPS POOL32AXF encoding
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 = 0x0,
MFLO_ACC = 0x1,
MTHI_ACC = 0x2,
MTLO_ACC = 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
Signature · 5 lines
Wei-Ren Chen (陳韋任) 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
Quoted 19 lines
-----Original Message-----
From: [email protected] [mailto:qemu-devel- [email protected]] On Behalf Of ??? (Wei-Ren Chen)
Sent: Thursday, November 15, 2012 1:03 AM
To: [email protected]
Cc: Jia Liu
Subject: [Qemu-devel] Question about comment on MIPS POOL32AXF encodingHi 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 = 0x0, MFLO_ACC = 0x1, MTHI_ACC = 0x2, MTLO_ACC = 0x3,
Quoted 4 lines
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 "for0x01" exactly means?
Please refer to the following document.
MIPS® Architecture for Programmers VolumeIV-e: The MIPS® DSP Application-Specific Extension to the microMIPS32™ Architecture
-Eric
Quoted 5 lines
Please refer to the following document.
MIPS® Architecture for Programmers VolumeIV-e: The MIPS® DSP Application-Specific Extension to the microMIPS32™ Architecture
Thanks, Eric. I would like to add a comment here to remind
me where they come. :)
Regards,
chenwj
Signature · 5 lines
Wei-Ren Chen (陳韋任) 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