parsedb: ignore mask lines

Signed-off-by: John McMaster <johndmcmaster@gmail.com>
This commit is contained in:
John McMaster 2018-11-13 19:47:53 -08:00
parent 1707c01306
commit 5ecf3a3f45
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ def run(fnin, fnout=None, strict=False, verbose=False):
line = line.strip()
if line == '':
continue
# TODO: figure out what to do with masks
if line.startswith("bit "):
continue
tag, bits, mode = util.parse_db_line(line)
if strict:
assert not mode, "strict: got ill defined line: %s" % (line, )