basic.isa (12234:78ece221f9f5) | basic.isa (12236:126ac9da6050) |
---|---|
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 | 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// Declarations for execute() methods. 34def template BasicExecDeclare {{ 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 44 { 45 public: 46 /// Constructor. 47 %(class_name)s(MachInst machInst); | 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); |
48 %(BasicExecDeclare)s | 43 Fault execute(ExecContext *, Trace::InstRecord *) const; |
49 using %(base_class)s::generateDisassembly; 50 }; 51}}; 52 53// Basic instruction class constructor template. 54def template BasicConstructor {{ 55 %(class_name)s::%(class_name)s(MachInst machInst) 56 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) --- 39 unchanged lines hidden --- | 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 --- |