From 1f7ed5b7b4f0435ef61f5db6c701f22aacee369d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 8 Jun 2007 16:09:43 +0000 Subject: Big changes to use the new microcode assembler. --HG-- extra : convert_revision : 7d1a43c5791a2e7e30533746da3dd7036a5b8799 --- src/arch/x86/isa/formats/multi.isa | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/arch/x86/isa/formats') diff --git a/src/arch/x86/isa/formats/multi.isa b/src/arch/x86/isa/formats/multi.isa index 8f91c249c..e47c8776e 100644 --- a/src/arch/x86/isa/formats/multi.isa +++ b/src/arch/x86/isa/formats/multi.isa @@ -60,27 +60,13 @@ // Instructions that do the same thing to multiple sets of arguments. // -let {{ - def doInst(name, Name, opTypeSet): - if not instDict.has_key(Name): - raise Exception, "Unrecognized instruction: %s" % Name - inst = instDict[Name]() - return inst.emit(opTypeSet) -}}; - def format Inst(*opTypeSet) {{ - (header_output, - decoder_output, - decode_block, - exce_output) = doInst(name, Name, list(opTypeSet)).makeList() + decode_block = specializeInst(Name, list(opTypeSet), EmulEnv()) }}; def format MultiInst(switchVal, *opTypeSets) {{ switcher = {} for (count, opTypeSet) in zip(xrange(len(opTypeSets)), opTypeSets): - switcher[count] = (opTypeSet,) - (header_output, - decoder_output, - decode_block, - exec_output) = doSplitDecode(name, Name, doInst, switchVal, switcher).makeList() + switcher[count] = (opTypeSet, EmulEnv()) + decode_block = doSplitDecode(Name, specializeInst, switchVal, switcher) }}; -- cgit v1.2.3