From: Steve Reinhardt Date: Mon, 13 Nov 2006 06:03:42 +0000 (-0800) Subject: Make setRegWithEffect do something in SE mode. X-Git-Tag: m5_2.0_beta2~48^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f633c5fee2a371bc216ca71192c6ff02dcc3b5c;p=gem5.git Make setRegWithEffect do something in SE mode. --HG-- extra : convert_revision : 88fdaa403fe6d083f8c8fc064cb0d0d6a8b8daf8 --- diff --git a/src/arch/alpha/miscregfile.cc b/src/arch/alpha/miscregfile.cc index 4cf57a690..962d4609f 100644 --- a/src/arch/alpha/miscregfile.cc +++ b/src/arch/alpha/miscregfile.cc @@ -132,7 +132,6 @@ namespace AlphaISA MiscRegFile::setRegWithEffect(int misc_reg, const MiscReg &val, ThreadContext *tc) { -#if FULL_SYSTEM switch(misc_reg) { case MISCREG_FPCR: fpcr = val; @@ -150,12 +149,13 @@ namespace AlphaISA intr_flag = val; return; default: - return setIpr(misc_reg, val, tc); - } +#if FULL_SYSTEM + setIpr(misc_reg, val, tc); #else - //panic("No registers with side effects in SE mode!"); - return; + panic("No registers with side effects in SE mode!"); #endif + return; + } } }