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 --- 107 unchanged lines hidden (view full) --- 116}}; 117 118// Primary format for integer operate instructions: 119def format Priv(code, *opt_flags) {{ 120 checkCode = '''((xc->readMiscReg(PrStart + MISCREG_PSTATE))<2:2>) || 121 ((xc->readMiscReg(HprStart + MISCREG_HPSTATE))<2:2>)''' 122 (header_output, decoder_output, 123 exec_output, decode_block) = doPrivFormat(code, |
124 checkCode, name, Name, opt_flags + ('IprAccessOp',)) |
125}}; 126 127def format HPriv(code, *opt_flags) {{ 128 checkCode = "((xc->readMiscReg(HprStart + MISCREG_HPSTATE))<2:2>)" 129 (header_output, decoder_output, 130 exec_output, decode_block) = doPrivFormat(code, |
131 checkCode, name, Name, opt_flags + ('IprAccessOp',)) |
132}}; 133 |