diff options
author | Korey Sewell <ksewell@umich.edu> | 2006-02-03 03:56:57 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2006-02-03 03:56:57 -0500 |
commit | 1e222c1502f8cf40535fed23b3f51c5f25a6c29f (patch) | |
tree | 6d6790032575173c471db468464d78f91cbd6e05 /arch/mips/isa/bitfields.def | |
parent | de1f3a7b6bd21845faaf48c8fa509a432c01c165 (diff) | |
download | gem5-1e222c1502f8cf40535fed23b3f51c5f25a6c29f.tar.xz |
.h -> .def
--HG--
rename : arch/mips/isa/bitfields.h => arch/mips/isa/bitfields.def
rename : arch/mips/isa/decoder.h => arch/mips/isa/decoder.def
rename : arch/mips/isa/formats.h => arch/mips/isa/formats.def
rename : arch/mips/isa/operands.h => arch/mips/isa/operands.def
extra : convert_revision : 45cb5485311d51982ebcaf1c7eec34e8751c31f5
Diffstat (limited to 'arch/mips/isa/bitfields.def')
-rw-r--r-- | arch/mips/isa/bitfields.def | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/mips/isa/bitfields.def b/arch/mips/isa/bitfields.def new file mode 100644 index 000000000..0a9497899 --- /dev/null +++ b/arch/mips/isa/bitfields.def @@ -0,0 +1,51 @@ +//////////////////////////////////////////////////////////////////// +// +// Bitfield definitions. +// + +def bitfield OPCODE_HI <31:29>; +def bitfield OPCODE_LO <28:26>; + +def bitfield FUNCTION_HI < 5: 3>; +def bitfield FUNCTION_LO < 2: 0>; + +def bitfield RT <20:16>; +def bitfield RT_HI <20:19>; +def bitfield RT_LO <18:16>; + +def bitfield RS <25:21>; +def bitfield RS_HI <25:24>; +def bitfield RS_LO <23:21>; + +def bitfield RD <15:11>; + +// Floating-point operate format +def bitfield FMT <25:21>; +def bitfield FT <20:16>; +def bitfield FS <15:11>; +def bitfield FD <10:6>; + +def bitfield MOVCI <16:16>; +def bitfield MOVCF <16:16>; +def bitfield SRL <21:21>; +def bitfield SRLV < 6: 6>; +def bitfield SA <10: 6>; + +// Interrupts +def bitfield SC < 5: 5>; + +// Integer operate format(s>; +def bitfield INTIMM <15: 0>; // integer immediate (literal) + +// Branch format +def bitfield OFFSET <15: 0>; // displacement + +// Memory-format jumps +def bitfield JMPTARG <25: 0>; +def bitfield JMPHINT <10: 6>; + +def bitfield SYSCALLCODE <25: 6>; +def bitfield TRAPCODE <15:13>; + +// M5 instructions +def bitfield M5FUNC <7:0>; |