priv.isa (2944:10dcffb2904f) | priv.isa (3274:75d7e0bc4c1b) |
---|---|
1// Copyright (c) 2006 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 89 unchanged lines hidden (view full) --- 98 } 99}}; 100 101let {{ 102 def doPrivFormat(code, checkCode, name, Name, opt_flags): 103 (usesImm, code, immCode, 104 rString, iString) = splitOutImm(code) 105 iop = InstObjParams(name, Name, 'Priv', code, | 1// Copyright (c) 2006 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 89 unchanged lines hidden (view full) --- 98 } 99}}; 100 101let {{ 102 def doPrivFormat(code, checkCode, name, Name, opt_flags): 103 (usesImm, code, immCode, 104 rString, iString) = splitOutImm(code) 105 iop = InstObjParams(name, Name, 'Priv', code, |
106 opt_flags, ("check", checkCode)) | 106 opt_flags, {"check": checkCode}) |
107 header_output = BasicDeclare.subst(iop) 108 decoder_output = BasicConstructor.subst(iop) 109 exec_output = PrivExecute.subst(iop) 110 if usesImm: 111 imm_iop = InstObjParams(name, Name + 'Imm', 'PrivImm', | 107 header_output = BasicDeclare.subst(iop) 108 decoder_output = BasicConstructor.subst(iop) 109 exec_output = PrivExecute.subst(iop) 110 if usesImm: 111 imm_iop = InstObjParams(name, Name + 'Imm', 'PrivImm', |
112 immCode, opt_flags, ("check", checkCode)) | 112 immCode, opt_flags, {"check": checkCode}) |
113 header_output += BasicDeclare.subst(imm_iop) 114 decoder_output += BasicConstructor.subst(imm_iop) 115 exec_output += PrivExecute.subst(imm_iop) 116 decode_block = ROrImmDecode.subst(iop) 117 else: 118 decode_block = BasicDecode.subst(iop) 119 return (header_output, decoder_output, exec_output, decode_block) 120}}; --- 17 unchanged lines hidden --- | 113 header_output += BasicDeclare.subst(imm_iop) 114 decoder_output += BasicConstructor.subst(imm_iop) 115 exec_output += PrivExecute.subst(imm_iop) 116 decode_block = ROrImmDecode.subst(iop) 117 else: 118 decode_block = BasicDecode.subst(iop) 119 return (header_output, decoder_output, exec_output, decode_block) 120}}; --- 17 unchanged lines hidden --- |