small cleanup to sampling cpu code.
authorNathan Binkert <binkertn@umich.edu>
Tue, 15 Mar 2005 17:17:22 +0000 (12:17 -0500)
committerNathan Binkert <binkertn@umich.edu>
Tue, 15 Mar 2005 17:17:22 +0000 (12:17 -0500)
cpu/base_cpu.cc:
    By default we should panic if the system doesn't explicitly support
    switchover.

--HG--
extra : convert_revision : 4da2ec316d609cfb351fc5ceaa6d8fe36be14d4e

cpu/base_cpu.cc

index 181b484e738499ad0940f6857a9960ef5c346f1c..74e57baa667d5c0017ad7034aa2d3d26e0f775b1 100644 (file)
@@ -197,8 +197,7 @@ BaseCPU::registerExecContexts()
 void
 BaseCPU::switchOut(SamplingCPU *sampler)
 {
-    // default: do nothing, signal done
-    sampler->signalSwitched();
+    panic("This CPU doesn't support sampling!");
 }
 
 void