basic.isa (12275:4b4dd932c710) basic.isa (12616:4b463b4dc098)
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

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

33/**
34 * Static instruction class for "%(mnemonic)s".
35 */
36class %(class_name)s : public %(base_class)s
37{
38 public:
39 // Constructor.
40 %(class_name)s(ExtMachInst machInst);
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

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

33/**
34 * Static instruction class for "%(mnemonic)s".
35 */
36class %(class_name)s : public %(base_class)s
37{
38 public:
39 // Constructor.
40 %(class_name)s(ExtMachInst machInst);
41 Fault execute(ExecContext *, Trace::InstRecord *) const;
41 Fault execute(ExecContext *, Trace::InstRecord *) const override;
42};
43}};
44
45// Basic instruction class declaration template.
46def template FpBasicDeclare {{
47/**
48 * Static instruction class for "%(mnemonic)s".
49 */
50class %(class_name)s : public %(base_class)s
51{
52 public:
53 // Constructor.
54 %(class_name)s(ExtMachInst machInst);
42};
43}};
44
45// Basic instruction class declaration template.
46def template FpBasicDeclare {{
47/**
48 * Static instruction class for "%(mnemonic)s".
49 */
50class %(class_name)s : public %(base_class)s
51{
52 public:
53 // Constructor.
54 %(class_name)s(ExtMachInst machInst);
55 Fault execute(ExecContext *, Trace::InstRecord *) const;
55 Fault execute(ExecContext *, Trace::InstRecord *) const override;
56 Fault doFpOp(ExecContext *, Trace::InstRecord *) const M5_NO_INLINE;
57};
58}};
59
60// Basic instruction class declaration template.
61def template BasicDeclareWithMnemonic {{
62/**
63 * Static instruction class for "%(mnemonic)s".
64 */
65class %(class_name)s : public %(base_class)s
66{
67 public:
68 // Constructor.
69 %(class_name)s(const char *mnemonic, ExtMachInst machInst);
56 Fault doFpOp(ExecContext *, Trace::InstRecord *) const M5_NO_INLINE;
57};
58}};
59
60// Basic instruction class declaration template.
61def template BasicDeclareWithMnemonic {{
62/**
63 * Static instruction class for "%(mnemonic)s".
64 */
65class %(class_name)s : public %(base_class)s
66{
67 public:
68 // Constructor.
69 %(class_name)s(const char *mnemonic, ExtMachInst machInst);
70 Fault execute(ExecContext *, Trace::InstRecord *) const;
70 Fault execute(ExecContext *, Trace::InstRecord *) const override;
71};
72}};
73
74// Basic instruction class constructor template.
75def template BasicConstructor {{
76%(class_name)s::%(class_name)s(ExtMachInst machInst) :
77 %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
78{

--- 97 unchanged lines hidden ---
71};
72}};
73
74// Basic instruction class constructor template.
75def template BasicConstructor {{
76%(class_name)s::%(class_name)s(ExtMachInst machInst) :
77 %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)
78{

--- 97 unchanged lines hidden ---