From dc7d9af582a192f5a50fcbc72073e7aab1a57097 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 15 Oct 2006 20:54:35 -0400 Subject: Added an execute function to the macro op so it can be instantiated. --HG-- extra : convert_revision : 89dd46f5bbac966e6eb4f6f747419fa1d344eb87 --- src/arch/sparc/isa/formats/basic.isa | 8 ++++++++ src/arch/sparc/isa/formats/micro.isa | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/arch/sparc/isa/formats/basic.isa b/src/arch/sparc/isa/formats/basic.isa index db77b1a15..042201de4 100644 --- a/src/arch/sparc/isa/formats/basic.isa +++ b/src/arch/sparc/isa/formats/basic.isa @@ -33,6 +33,14 @@ def template BasicExecDeclare {{ Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const; }}; +// Definitions of execute methods that panic. +def template BasicExecPanic {{ + Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const + { + panic("Execute method called when it shouldn't!"); + } +}}; + // Basic instruction class declaration template. def template BasicDeclare {{ /** diff --git a/src/arch/sparc/isa/formats/micro.isa b/src/arch/sparc/isa/formats/micro.isa index 867179cfd..320603a6a 100644 --- a/src/arch/sparc/isa/formats/micro.isa +++ b/src/arch/sparc/isa/formats/micro.isa @@ -59,6 +59,8 @@ output header {{ assert(microPC < numMicroOps); return microOps[microPC]; } + + %(BasicExecPanic)s }; class SparcMicroInst : public SparcStaticInst -- cgit v1.2.3