bitfields.isa revision 2029
18544Sguodeyuan@tsinghua.org.cn////////////////////////////////////////////////////////////////////
211274Sshingarov@labware.com//
310595Sgabeblack@google.com// Bitfield definitions.
48544Sguodeyuan@tsinghua.org.cn//
58544Sguodeyuan@tsinghua.org.cn
68544Sguodeyuan@tsinghua.org.cndef bitfield OPCODE_HI  <31:29>;
78544Sguodeyuan@tsinghua.org.cndef bitfield OPCODE_LO  <28:26>;
88544Sguodeyuan@tsinghua.org.cn
98544Sguodeyuan@tsinghua.org.cndef bitfield FUNCTION_HI   < 5: 3>;
108544Sguodeyuan@tsinghua.org.cndef bitfield FUNCTION_LO   < 2: 0>;
118544Sguodeyuan@tsinghua.org.cn
128544Sguodeyuan@tsinghua.org.cndef bitfield RT	      <20:16>;
138544Sguodeyuan@tsinghua.org.cndef bitfield RT_HI    <20:19>;
148544Sguodeyuan@tsinghua.org.cndef bitfield RT_LO    <18:16>;
158544Sguodeyuan@tsinghua.org.cn
168544Sguodeyuan@tsinghua.org.cndef bitfield RS	      <25:21>;
178544Sguodeyuan@tsinghua.org.cndef bitfield RS_HI    <25:24>;
188544Sguodeyuan@tsinghua.org.cndef bitfield RS_LO    <23:21>;
198544Sguodeyuan@tsinghua.org.cn
208544Sguodeyuan@tsinghua.org.cndef bitfield RD	      <15:11>;
218544Sguodeyuan@tsinghua.org.cn
228544Sguodeyuan@tsinghua.org.cn// Floating-point operate format
238544Sguodeyuan@tsinghua.org.cndef bitfield FMT	  <25:21>;
248544Sguodeyuan@tsinghua.org.cndef bitfield FT	      <20:16>;
258544Sguodeyuan@tsinghua.org.cndef bitfield FS	      <15:11>;
268544Sguodeyuan@tsinghua.org.cndef bitfield FD	      <10:6>;
278544Sguodeyuan@tsinghua.org.cn
288544Sguodeyuan@tsinghua.org.cndef bitfield MOVCI    <16:16>;
298544Sguodeyuan@tsinghua.org.cndef bitfield MOVCF    <16:16>;
308544Sguodeyuan@tsinghua.org.cndef bitfield SRL      <21:21>;
318544Sguodeyuan@tsinghua.org.cndef bitfield SRLV     < 6: 6>;
328544Sguodeyuan@tsinghua.org.cndef bitfield SA       <10: 6>;
338544Sguodeyuan@tsinghua.org.cn
348544Sguodeyuan@tsinghua.org.cn// Interrupts
358544Sguodeyuan@tsinghua.org.cndef bitfield SC       < 5: 5>;
368544Sguodeyuan@tsinghua.org.cn
378544Sguodeyuan@tsinghua.org.cn// Integer operate format(s>;
388544Sguodeyuan@tsinghua.org.cndef bitfield INTIMM	<15: 0>; // integer immediate (literal)
398544Sguodeyuan@tsinghua.org.cn
408544Sguodeyuan@tsinghua.org.cn// Branch format
418544Sguodeyuan@tsinghua.org.cndef bitfield OFFSET <15: 0>; // displacement
428544Sguodeyuan@tsinghua.org.cn
438544Sguodeyuan@tsinghua.org.cn// Memory-format jumps
448544Sguodeyuan@tsinghua.org.cndef bitfield JMPTARG	<25: 0>;
4511274Sshingarov@labware.comdef bitfield JMPHINT	<10: 6>;
468544Sguodeyuan@tsinghua.org.cn
478544Sguodeyuan@tsinghua.org.cndef bitfield SYSCALLCODE <25: 6>;
488544Sguodeyuan@tsinghua.org.cndef bitfield TRAPCODE    <15:13>;
498544Sguodeyuan@tsinghua.org.cn
508544Sguodeyuan@tsinghua.org.cn// M5 instructions
518544Sguodeyuan@tsinghua.org.cndef bitfield M5FUNC <7:0>;
528544Sguodeyuan@tsinghua.org.cn