static_inst.hh (12326:e88962df29d4) static_inst.hh (12482:35461496d012)
1/*
2 * Copyright (c) 2015 RISC-V Foundation
3 * Copyright (c) 2016 The University of Virginia
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

70 OpClass __opClass) :
71 RiscvStaticInst(mnem, _machInst, __opClass)
72 {
73 flags[IsMacroop] = true;
74 }
75
76 ~RiscvMacroInst() { microops.clear(); }
77
1/*
2 * Copyright (c) 2015 RISC-V Foundation
3 * Copyright (c) 2016 The University of Virginia
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

70 OpClass __opClass) :
71 RiscvStaticInst(mnem, _machInst, __opClass)
72 {
73 flags[IsMacroop] = true;
74 }
75
76 ~RiscvMacroInst() { microops.clear(); }
77
78 StaticInstPtr fetchMicroop(MicroPC upc) const { return microops[upc]; }
78 StaticInstPtr
79 fetchMicroop(MicroPC upc) const override
80 {
81 return microops[upc];
82 }
79
80 Fault
83
84 Fault
81 initiateAcc(ExecContext *xc, Trace::InstRecord *traceData) const
85 initiateAcc(ExecContext *xc, Trace::InstRecord *traceData) const override
82 {
83 panic("Tried to execute a macroop directly!\n");
84 }
85
86 Fault
87 completeAcc(PacketPtr pkt, ExecContext *xc,
86 {
87 panic("Tried to execute a macroop directly!\n");
88 }
89
90 Fault
91 completeAcc(PacketPtr pkt, ExecContext *xc,
88 Trace::InstRecord *traceData) const
92 Trace::InstRecord *traceData) const override
89 {
90 panic("Tried to execute a macroop directly!\n");
91 }
92
93 Fault
93 {
94 panic("Tried to execute a macroop directly!\n");
95 }
96
97 Fault
94 execute(ExecContext *xc, Trace::InstRecord *traceData) const
98 execute(ExecContext *xc, Trace::InstRecord *traceData) const override
95 {
96 panic("Tried to execute a macroop directly!\n");
97 }
98};
99
100/**
101 * Base class for all RISC-V Microops
102 */

--- 16 unchanged lines hidden ---
99 {
100 panic("Tried to execute a macroop directly!\n");
101 }
102};
103
104/**
105 * Base class for all RISC-V Microops
106 */

--- 16 unchanged lines hidden ---