basic.isa (2935:d1223a6c9156) | basic.isa (3951:727778d649ae) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2006 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 74 unchanged lines hidden (view full) --- 83 84// Basic decode template, passing mnemonic in as string arg to constructor. 85def template BasicDecodeWithMnemonic {{ 86 return new %(class_name)s("%(mnemonic)s", machInst); 87}}; 88 89// The most basic instruction format... 90def format BasicOp(code, *flags) {{ | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2006 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 74 unchanged lines hidden (view full) --- 83 84// Basic decode template, passing mnemonic in as string arg to constructor. 85def template BasicDecodeWithMnemonic {{ 86 return new %(class_name)s("%(mnemonic)s", machInst); 87}}; 88 89// The most basic instruction format... 90def format BasicOp(code, *flags) {{ |
91 iop = InstObjParams(name, Name, 'MipsStaticInst', CodeBlock(code), flags) | 91 iop = InstObjParams(name, Name, 'MipsStaticInst', code, flags) |
92 header_output = BasicDeclare.subst(iop) 93 decoder_output = BasicConstructor.subst(iop) 94 decode_block = BasicDecode.subst(iop) 95 exec_output = BasicExecute.subst(iop) 96}}; | 92 header_output = BasicDeclare.subst(iop) 93 decoder_output = BasicConstructor.subst(iop) 94 decode_block = BasicDecode.subst(iop) 95 exec_output = BasicExecute.subst(iop) 96}}; |