projects
/
nestedvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add stop()
[nestedvm.git]
/
src
/
org
/
ibex
/
nestedvm
/
Runtime.java
diff --git
a/src/org/ibex/nestedvm/Runtime.java
b/src/org/ibex/nestedvm/Runtime.java
index
55851c3
..
44505c1
100644
(file)
--- 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();
}
_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() { }
/** Hook for subclasses to do their own startup */
void _started() { }