basic.isa (7168:54105b48a0a7) | basic.isa (7848:cc5e64f8423f) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 The Florida State University 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 --- 38 unchanged lines hidden (view full) --- 47 }; 48}}; 49 50// Basic instruction class constructor template. 51def template BasicConstructor {{ 52 inline %(class_name)s::%(class_name)s(ExtMachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 53 { 54 %(constructor)s; | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 The Florida State University 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 --- 38 unchanged lines hidden (view full) --- 47 }; 48}}; 49 50// Basic instruction class constructor template. 51def template BasicConstructor {{ 52 inline %(class_name)s::%(class_name)s(ExtMachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 53 { 54 %(constructor)s; |
55 if (!(condCode == COND_AL || condCode == COND_UC)) { 56 for (int x = 0; x < _numDestRegs; x++) { 57 _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; 58 } 59 } |
|
55 } 56}}; 57 58 59// Basic instruction class execute method template. 60def template BasicExecute {{ 61 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 62 { --- 33 unchanged lines hidden --- | 60 } 61}}; 62 63 64// Basic instruction class execute method template. 65def template BasicExecute {{ 66 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 67 { --- 33 unchanged lines hidden --- |