GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

comminsts.scala 2.02 KB
Newer Older
1 2 3 4
package uvm.comminsts

import uvm._

5
case class CommInst(val id: Int, val name: Option[String], val isTerminator: Boolean) extends Identified
6 7 8

object CommInsts extends SimpleNamespace[CommInst] {

9 10
  private def commInst(id: Int, name: String, isTerminator: Boolean = false) {
    val ci = CommInst(id, Some(name), isTerminator)
11 12 13
    add(ci)
  }

Kunshan Wang's avatar
Kunshan Wang committed
14
  commInst(0x201, "@uvm.new_stack")
15
  commInst(0x202, "@uvm.kill_stack")
16
  commInst(0x203, "@uvm.thread_exit", isTerminator = true)
17 18 19 20 21 22 23 24 25 26 27 28 29 30
  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
  commInst(0x230, "@uvm.kill_dependency")
36 37 38 39 40 41
  
  commInst(0x240, "@uvm.native.pin")
  commInst(0x241, "@uvm.native.unpin")
  commInst(0x242, "@uvm.native.expose")
  commInst(0x243, "@uvm.native.unexpose")
  commInst(0x244, "@uvm.native.get_cookie")
42 43 44 45 46 47
  
  commInst(0x250, "@uvm.meta.id_of")
  commInst(0x251, "@uvm.meta.name_of")
  commInst(0x252, "@uvm.meta.load_bundle")
  commInst(0x253, "@uvm.meta.load_hail")
  
Kunshan Wang's avatar
Kunshan Wang committed
48 49 50 51
  commInst(0x254, "@uvm.meta.new_cursor")
  commInst(0x255, "@uvm.meta.next_frame")
  commInst(0x256, "@uvm.meta.copy_cursor")
  commInst(0x257, "@uvm.meta.close_cursor")
52
  
Kunshan Wang's avatar
Kunshan Wang committed
53 54 55 56
  commInst(0x258, "@uvm.meta.cur_func")
  commInst(0x259, "@uvm.meta.cur_func_ver")
  commInst(0x25a, "@uvm.meta.cur_inst")
  commInst(0x25b, "@uvm.meta.dump_keepalives")
57
  
Kunshan Wang's avatar
Kunshan Wang committed
58 59
  commInst(0x25c, "@uvm.meta.pop_frames_to")
  commInst(0x25d, "@uvm.meta.push_frame")
60
  
Kunshan Wang's avatar
Kunshan Wang committed
61 62 63 64
  commInst(0x25e, "@uvm.meta.enable_watchpoint")
  commInst(0x25f, "@uvm.meta.disable_watchpoint")
  
  commInst(0x260, "@uvm.meta.set_trap_handler")
65

66
}