From a6bac4ada53c465718e01fad0a7b0c57ef7687d8 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 10 Jun 2011 19:54:02 -0700 Subject: [sim, opcodes] made sim more decoupled from opcodes --- parse-opcodes | 64 +++++------------------------------------------------------ 1 file changed, 5 insertions(+), 59 deletions(-) (limited to 'parse-opcodes') diff --git a/parse-opcodes b/parse-opcodes index 4cf0b84..707947e 100755 --- a/parse-opcodes +++ b/parse-opcodes @@ -85,64 +85,10 @@ def make_disasm_table(match,mask): print '#define MATCH_%s %s' % (name2, hex(match)) print '#define MASK_%s %s' % (name2, hex(mask[name])) -def make_switch(match, mask, dir): - switch_base = 0 - switch_size = 10 - switch_mask = ((1<<(switch_base+switch_size))-(1<> %d) & %d)\n' % (switch_base, (1<> start) & ((1 << len) - 1) @@ -839,6 +785,6 @@ elif sys.argv[1] == '-verilog': elif sys.argv[1] == '-disasm': make_disasm_table(match,mask) elif sys.argv[1] == '-switch': - make_switch(match,mask,sys.argv[2]) + make_switch(match,mask) else: assert 0 -- cgit v1.2.3