basic.isa (12236:126ac9da6050) | basic.isa (12482:35461496d012) |
---|---|
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 --- 26 unchanged lines hidden (view full) --- 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); | 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 --- 26 unchanged lines hidden (view full) --- 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; | 43 Fault execute(ExecContext *, Trace::InstRecord *) const override; |
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 --- | 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 --- |