Deleted Added
sdiff udiff text old ( 12234:78ece221f9f5 ) new ( 12236:126ac9da6050 )
full compact
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

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

25// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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// Basic instruction class declaration template.
34def template BasicDeclare {{
35 //
36 // Static instruction class for "%(mnemonic)s".
37 //
38 class %(class_name)s : public %(base_class)s
39 {
40 public:
41 /// Constructor.
42 %(class_name)s(MachInst machInst);
43 Fault execute(ExecContext *, Trace::InstRecord *) const;
44 using %(base_class)s::generateDisassembly;
45 };
46}};
47
48// Basic instruction class constructor template.
49def template BasicConstructor {{
50 %(class_name)s::%(class_name)s(MachInst machInst)
51 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s)

--- 39 unchanged lines hidden ---