priv.isa (3274:75d7e0bc4c1b) priv.isa (3418:50e5c0cb3186)
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 decode_block = ROrImmDecode.subst(iop)
117 else:
118 decode_block = BasicDecode.subst(iop)
119 return (header_output, decoder_output, exec_output, decode_block)
120}};
121
122// Primary format for integer operate instructions:
123def format Priv(code, *opt_flags) {{
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 decode_block = ROrImmDecode.subst(iop)
117 else:
118 decode_block = BasicDecode.subst(iop)
119 return (header_output, decoder_output, exec_output, decode_block)
120}};
121
122// Primary format for integer operate instructions:
123def format Priv(code, *opt_flags) {{
124 checkCode = '''((xc->readMiscReg(PrStart + MISCREG_PSTATE))<2:2>) ||
125 ((xc->readMiscReg(HprStart + MISCREG_HPSTATE))<2:2>)'''
124 checkCode = "!(Pstate<2:2> || Hpstate<2:2>)"
126 (header_output, decoder_output,
127 exec_output, decode_block) = doPrivFormat(code,
128 checkCode, name, Name, opt_flags + ('IprAccessOp',))
129}};
130
131def format HPriv(code, *opt_flags) {{
125 (header_output, decoder_output,
126 exec_output, decode_block) = doPrivFormat(code,
127 checkCode, name, Name, opt_flags + ('IprAccessOp',))
128}};
129
130def format HPriv(code, *opt_flags) {{
132 checkCode = "((xc->readMiscReg(HprStart + MISCREG_HPSTATE))<2:2>)"
131 checkCode = "!Hpstate<2:2>"
133 (header_output, decoder_output,
134 exec_output, decode_block) = doPrivFormat(code,
135 checkCode, name, Name, opt_flags + ('IprAccessOp',))
136}};
137
132 (header_output, decoder_output,
133 exec_output, decode_block) = doPrivFormat(code,
134 checkCode, name, Name, opt_flags + ('IprAccessOp',))
135}};
136