comminsts.scala 975 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package uvm.comminsts

import uvm._

case class CommInst(val id: Int, val name: Option[String]) extends Identified

object CommInsts extends SimpleNamespace[CommInst] {

  private def commInst(id: Int, name: String) {
    val ci = CommInst(id, Some(name))
    add(ci)
  }

  commInst(0x201, "@uvm.new_thread")
  commInst(0x202, "@uvm.kill_stack")
  commInst(0x203, "@uvm.thread_exit")
  commInst(0x204, "@uvm.current_stack")

  commInst(0x211, "@uvm.tr64.is_fp")
  commInst(0x212, "@uvm.tr64.is_int")
  commInst(0x213, "@uvm.tr64.is_ref")
  commInst(0x214, "@uvm.tr64.from_fp")
  commInst(0x215, "@uvm.tr64.from_int")
  commInst(0x216, "@uvm.tr64.from_ref")
  commInst(0x217, "@uvm.tr64.to_fp")
  commInst(0x218, "@uvm.tr64.to_int")
  commInst(0x219, "@uvm.tr64.to_ref")
  commInst(0x21a, "@uvm.tr64.to_tag")

  commInst(0x220, "@uvm.futex.wait")
Kunshan Wang's avatar
Kunshan Wang committed
31 32 33
  commInst(0x221, "@uvm.futex.wait_timeout")
  commInst(0x222, "@uvm.futex.wake")
  commInst(0x223, "@uvm.futex.cmp_requeue")
34 35

}