uint64_t
getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp)
{
- if (!FullSystem) {
- panic("getArgument() only implemented for full system mode.\n");
- M5_DUMMY_RETURN
- }
+ panic_if(!FullSystem,
+ "getArgument() only implemented for full system mode.");
- if (fp)
- panic("getArgument(): Floating point arguments not implemented\n");
+ panic_if(fp, "getArgument(): Floating point arguments not implemented");
if (inAArch64(tc)) {
if (size == (uint16_t)(-1))
getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp)
{
panic("getArgument() not implemented\n");
- M5_DUMMY_RETURN
}
uint64_t
uint64_t
getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp)
{
- if (!FullSystem) {
- panic("getArgument() only implemented for full system\n");
- M5_DUMMY_RETURN
- }
+ panic_if(!FullSystem, "getArgument() only implemented for full system");
const int NumArgumentRegs = 6;
if (number < NumArgumentRegs) {
#if defined(__GNUC__) // clang or gcc
# define M5_ATTR_NORETURN __attribute__((noreturn))
-# define M5_DUMMY_RETURN
# define M5_VAR_USED __attribute__((unused))
# define M5_ATTR_PACKED __attribute__ ((__packed__))
# define M5_NO_INLINE __attribute__ ((__noinline__))
{
panic("StaticInst::branchTarget() called on instruction "
"that is not a PC-relative branch.");
- M5_DUMMY_RETURN;
}
TheISA::PCState
{
panic("StaticInst::branchTarget() called on instruction "
"that is not an indirect branch.");
- M5_DUMMY_RETURN;
}
const string &
BadDevice::read(PacketPtr pkt)
{
panic("Device %s not imlpmented\n", devname);
- M5_DUMMY_RETURN
}
Tick
BadDevice::write(PacketPtr pkt)
{
panic("Device %s not imlpmented\n", devname);
- M5_DUMMY_RETURN
}
BadDevice *
calcPciConfigAddr(int bus, int dev, int func)
{
panic("Need implementation\n");
- M5_DUMMY_RETURN
}
Addr
calcPciIOAddr(Addr addr)
{
panic("Need implementation\n");
- M5_DUMMY_RETURN
}
Addr
calcPciMemAddr(Addr addr)
{
panic("Need implementation\n");
- M5_DUMMY_RETURN
}
void serialize(CheckpointOut &cp) const override;
T1000::pciToDma(Addr pciAddr) const
{
panic("Need implementation\n");
- M5_DUMMY_RETURN
}
T1000::calcPciConfigAddr(int bus, int dev, int func)
{
panic("Need implementation\n");
- M5_DUMMY_RETURN
}
Addr
T1000::calcPciIOAddr(Addr addr)
{
panic("Need implementation\n");
- M5_DUMMY_RETURN
}
Addr
T1000::calcPciMemAddr(Addr addr)
{
panic("Need implementation\n");
- M5_DUMMY_RETURN
}
T1000 *