basic.isa (12119:e9ef3ee3171d) basic.isa (12234:78ece221f9f5)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2015 RISC-V Foundation
4// Copyright (c) 2016 The University of Virginia
5// All rights reserved.
6//
7// Redistribution and use in source and binary forms, with or without
8// modification, are permitted provided that the following conditions are

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

27// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29//
30// Authors: Maxwell Walter
31// Alec Roelke
32
33// Declarations for execute() methods.
34def template BasicExecDeclare {{
1// -*- mode:c++ -*-
2
3// Copyright (c) 2015 RISC-V Foundation
4// Copyright (c) 2016 The University of Virginia
5// All rights reserved.
6//
7// Redistribution and use in source and binary forms, with or without
8// modification, are permitted provided that the following conditions are

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

27// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29//
30// Authors: Maxwell Walter
31// Alec Roelke
32
33// Declarations for execute() methods.
34def template BasicExecDeclare {{
35 Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const;
35 Fault execute(ExecContext *, Trace::InstRecord *) const;
36}};
37
38// Basic instruction class declaration template.
39def template BasicDeclare {{
40 //
41 // Static instruction class for "%(mnemonic)s".
42 //
43 class %(class_name)s : public %(base_class)s

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

58 %(constructor)s;
59 }
60}};
61
62
63// Basic instruction class execute method template.
64def template BasicExecute {{
65 Fault
36}};
37
38// Basic instruction class declaration template.
39def template BasicDeclare {{
40 //
41 // Static instruction class for "%(mnemonic)s".
42 //
43 class %(class_name)s : public %(base_class)s

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

58 %(constructor)s;
59 }
60}};
61
62
63// Basic instruction class execute method template.
64def template BasicExecute {{
65 Fault
66 %(class_name)s::execute(CPU_EXEC_CONTEXT *xc,
66 %(class_name)s::execute(ExecContext *xc,
67 Trace::InstRecord *traceData) const
68 {
69 Fault fault = NoFault;
70
71 %(op_decl)s;
72 %(op_rd)s;
73 if (fault == NoFault) {
74 %(code)s;

--- 21 unchanged lines hidden ---
67 Trace::InstRecord *traceData) const
68 {
69 Fault fault = NoFault;
70
71 %(op_decl)s;
72 %(op_rd)s;
73 if (fault == NoFault) {
74 %(code)s;

--- 21 unchanged lines hidden ---