multi.isa (4542:f6ca2384b304) | multi.isa (4575:d0017efdfa02) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// Redistribution and use of this software in source and binary forms, 7// with or without modification, are permitted provided that the 8// following conditions are met: --- 56 unchanged lines hidden (view full) --- 65 blocks = specializeInst(Name, list(opTypeSet), EmulEnv()) 66 (header_output, decoder_output, 67 decode_block, exec_output) = blocks.makeList() 68}}; 69 70def format MultiInst(switchVal, *opTypeSets) {{ 71 switcher = {} 72 for (count, opTypeSet) in zip(xrange(len(opTypeSets)), opTypeSets): | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// Redistribution and use of this software in source and binary forms, 7// with or without modification, are permitted provided that the 8// following conditions are met: --- 56 unchanged lines hidden (view full) --- 65 blocks = specializeInst(Name, list(opTypeSet), EmulEnv()) 66 (header_output, decoder_output, 67 decode_block, exec_output) = blocks.makeList() 68}}; 69 70def format MultiInst(switchVal, *opTypeSets) {{ 71 switcher = {} 72 for (count, opTypeSet) in zip(xrange(len(opTypeSets)), opTypeSets): |
73 switcher[count] = (opTypeSet, EmulEnv()) 74 blocks = doSplitDecode(Name, specializeInst, switchVal, switcher) | 73 switcher[count] = (Name, opTypeSet, EmulEnv()) 74 blocks = doSplitDecode(specializeInst, switchVal, switcher) |
75 (header_output, decoder_output, 76 decode_block, exec_output) = blocks.makeList() 77}}; | 75 (header_output, decoder_output, 76 decode_block, exec_output) = blocks.makeList() 77}}; |