X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FRuntime.java;h=44505c121bb38181cba0d1d24c4426ea21a544de;hp=55851c39cfea3626a172e7ae8834d1704ae9c294;hb=1b398f9945d32b9d63d7fc64c9cf7a6af332d290;hpb=d1a9c17fc77be2e8f200b7be68c4f70c10e73f89 diff --git a/src/org/ibex/nestedvm/Runtime.java b/src/org/ibex/nestedvm/Runtime.java index 55851c3..44505c1 100644 --- a/src/org/ibex/nestedvm/Runtime.java +++ b/src/org/ibex/nestedvm/Runtime.java @@ -596,7 +596,12 @@ public abstract class Runtime implements UsermodeConstants,Registers,Cloneable { _started(); } - + + public final void stop() { + if (state != RUNNING && state != PAUSED) throw new IllegalStateException("stop() called in inappropriate state"); + exit(0, false); + } + /** Hook for subclasses to do their own startup */ void _started() { }