ARM: GCC < 4.3 has some issues with attribute no return on some functions. Fix so...
authorAli Saidi <Ali.Saidi@ARM.com>
Wed, 2 Jun 2010 17:58:03 +0000 (12:58 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Wed, 2 Jun 2010 17:58:03 +0000 (12:58 -0500)
src/arch/arm/isa/templates/basic.isa

index c6a7566d3b2d8049aed0c9e48d0dc9c42d73c718..843f90840717457469f91c4f87fcbbb48f231aa4 100644 (file)
@@ -89,5 +89,7 @@ def template BasicExecPanic {{
 Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const
 {
         panic("Execute method called when it shouldn't!");
+        // GCC < 4.3 fail to recognize the above panic as no return
+        return NoFault;
 }
 }};