basic.isa (8737:770ccf3af571) basic.isa (10037:5cac77888310)
1// -*- mode:c++ -*-
2
1// -*- mode:c++ -*-
2
3// Copyright (c) 2011 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating
9// to a hardware implementation of the functionality of the software
10// licensed hereunder. You may use the software subject to the license
11// terms below provided that you ensure that this notice is replicated
12// unmodified and in its entirety in all distributions of the software,
13// modified or unmodified, in source code or in binary form.
14//
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
9// notice, this list of conditions and the following disclaimer;
10// redistributions in binary form must reproduce the above copyright

--- 44 unchanged lines hidden (view full) ---

55 if (!(condCode == COND_AL || condCode == COND_UC)) {
56 for (int x = 0; x < _numDestRegs; x++) {
57 _srcRegIdx[_numSrcRegs++] = _destRegIdx[x];
58 }
59 }
60 }
61}};
62
15// Copyright (c) 2007-2008 The Florida State University
16// All rights reserved.
17//
18// Redistribution and use in source and binary forms, with or without
19// modification, are permitted provided that the following conditions are
20// met: redistributions of source code must retain the above copyright
21// notice, this list of conditions and the following disclaimer;
22// redistributions in binary form must reproduce the above copyright

--- 44 unchanged lines hidden (view full) ---

67 if (!(condCode == COND_AL || condCode == COND_UC)) {
68 for (int x = 0; x < _numDestRegs; x++) {
69 _srcRegIdx[_numSrcRegs++] = _destRegIdx[x];
70 }
71 }
72 }
73}};
74
75def template BasicConstructor64 {{
76 inline %(class_name)s::%(class_name)s(ExtMachInst machInst) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
77 {
78 %(constructor)s;
79 }
80}};
63
81
82
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 {
68 Fault fault = NoFault;
69
70 %(op_decl)s;
71 %(op_rd)s;

--- 29 unchanged lines hidden ---
83// Basic instruction class execute method template.
84def template BasicExecute {{
85 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const
86 {
87 Fault fault = NoFault;
88
89 %(op_decl)s;
90 %(op_rd)s;

--- 29 unchanged lines hidden ---