priv.isa (10184:bbfa3152bdea) | priv.isa (10196:be0e1724eb39) |
---|---|
1// Copyright (c) 2006-2007 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 --- 181 unchanged lines hidden (view full) --- 190 : %(base_class)s("%(mnemonic)s", machInst, 191 %(op_class)s, "%(reg_name)s") 192 { 193 %(constructor)s; 194 } 195}}; 196 197def template PrivExecute {{ | 1// Copyright (c) 2006-2007 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 --- 181 unchanged lines hidden (view full) --- 190 : %(base_class)s("%(mnemonic)s", machInst, 191 %(op_class)s, "%(reg_name)s") 192 { 193 %(constructor)s; 194 } 195}}; 196 197def template PrivExecute {{ |
198 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, | 198 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, |
199 Trace::InstRecord *traceData) const 200 { 201 %(op_decl)s; 202 %(op_rd)s; 203 204 // If the processor isn't in privileged mode, fault out right away 205 if (%(check)s) 206 return new PrivilegedAction; --- 95 unchanged lines hidden --- | 199 Trace::InstRecord *traceData) const 200 { 201 %(op_decl)s; 202 %(op_rd)s; 203 204 // If the processor isn't in privileged mode, fault out right away 205 if (%(check)s) 206 return new PrivilegedAction; --- 95 unchanged lines hidden --- |