Added m5func "resetstats" to allow scriptable reset of statistics inside sim
authorAndrew Schultz <alschult@umich.edu>
Fri, 24 Oct 2003 20:28:04 +0000 (16:28 -0400)
committerAndrew Schultz <alschult@umich.edu>
Fri, 24 Oct 2003 20:28:04 +0000 (16:28 -0400)
--HG--
extra : convert_revision : 35a93fe085c2ca7ca1fc8bf887539e0b9c704aaf

arch/alpha/isa_desc

index f36413ad8bc94fa0f58a16a17aed7b3eab88c731..3a0c1bffe134fddb94d67f45f1575bd976e8dba9 100644 (file)
@@ -2388,7 +2388,7 @@ decode OPCODE default Unknown::unknown() {
        0x1e: hw_rei({{ xc->hwrei(); }});
 
        // M5 special opcodes use the reserved 0x01 opcode space
-       0x01: decode M5FUNC {
+       0x01: decode M5FUNC{
            0x00: arm({{
                Annotate::ARM(xc);
                xc->kernelStats.arm();
@@ -2408,6 +2408,7 @@ decode OPCODE default Unknown::unknown() {
                    m5_exit();
            }}, No_OpClass);
             0x30: initparam({{ Ra = xc->cpu->system->init_param; }});
+            0x40: resetstats({{ Statistics::reset(); }});
        }
     }