Make trying to execute macroops fail with a better error message.
--HG-- extra : convert_revision : e81c0337d6db4b5a33381ed19686750bbb9d9178
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2006 The Regents of The University of Michigan
|
||||
// Copyright (c) 2006-2007 The Regents of The University of Michigan
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
@@ -26,6 +26,33 @@
|
||||
//
|
||||
// Authors: Gabe Black
|
||||
|
||||
//This delcares the initiateAcc function in memory operations
|
||||
def template MacroInitiateAcc {{
|
||||
Fault initiateAcc(%(CPU_exec_context)s *, Trace::InstRecord *) const
|
||||
{
|
||||
panic("Tried to execute a macroop directly!\n");
|
||||
return NoFault;
|
||||
}
|
||||
}};
|
||||
|
||||
def template MacroCompleteAcc {{
|
||||
Fault completeAcc(PacketPtr, %(CPU_exec_context)s *,
|
||||
Trace::InstRecord *) const
|
||||
{
|
||||
panic("Tried to execute a macroop directly!\n");
|
||||
return NoFault;
|
||||
}
|
||||
}};
|
||||
|
||||
//This template provides the execute functions for a store
|
||||
def template MacroExecute {{
|
||||
Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const
|
||||
{
|
||||
panic("Tried to execute a macroop directly!\n");
|
||||
return NoFault;
|
||||
}
|
||||
}};
|
||||
|
||||
output header {{
|
||||
|
||||
class SparcMacroInst : public SparcStaticInst
|
||||
@@ -60,7 +87,9 @@ output header {{
|
||||
return microOps[microPC];
|
||||
}
|
||||
|
||||
%(BasicExecPanic)s
|
||||
%(MacroExecute)s
|
||||
%(MacroInitiateAcc)s
|
||||
%(MacroCompleteAcc)s
|
||||
};
|
||||
|
||||
class SparcMicroInst : public SparcStaticInst
|
||||
|
||||
Reference in New Issue
Block a user