[libre-riscv-dev] [Bug 269] auto-conversion / parser of POWER ISA Spec v3.0B

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Sat Apr 4 17:45:56 BST 2020


http://bugs.libre-riscv.org/show_bug.cgi?id=269

--- Comment #16 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
i'm trying _not_ to do ISACaller because i really need to move on
to the hardware-parser version

however, i'm laying the groundwork:

* as you saw in the bug #272 there's a problem with EXTS, which alerted
  me to adding the syntax (RA|0) - this meant adding a function
  "getz" to the prototype class GPR, and also inventing a new syntax
  "_REG" where "_REG" holds the actual bits of the opcode (RA, RB),
  and "REG" holds the *value from the regfile*.

* accessing GPR as GPR(5) is a function: i've converted it to GPR[5]
  then that alerted me to the fact that GPR and MEM do not exist in
  the opcode-function namespace.

  sooo i dragged out that namespace-injection-by-decorator trick,
  and have added a helper function.  this *may* be incorrect
  (as in, self.namespace has to be inside the decorator, not as
  an argument *to* the decorator).

i am going to keep chewing through the files.  moving onto fixedstore.mdwn

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list