Emit encoding lists (WIP).

Compute the u16 representation of encoding lists and emit a big table
concatenating all of them. Use the UniqueSeqTable to share some table space
between CPU modes.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-26 14:44:03 -07:00
parent 6a8a4c43c2
commit 0c8f251bee
2 changed files with 106 additions and 9 deletions

View File

@@ -1030,6 +1030,9 @@ class CPUMode(object):
self.encodings = []
isa.cpumodes.append(self)
def __str__(self):
return self.name
def enc(self, *args, **kwargs):
"""
Add a new encoding to this CPU mode.