projects
/
nestedvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d1a9c17
)
add stop()
author
David Crawshaw
<david@zentus.com>
Mon, 27 Nov 2006 09:53:14 +0000
(
01:53
-0800)
committer
David Crawshaw
<david@zentus.com>
Mon, 27 Nov 2006 09:53:14 +0000
(
01:53
-0800)
darcs-hash:
20061127095314
-0c629-
438fa14add7a3699090678d68db8e8c594dab0e1
.gz
src/org/ibex/nestedvm/Runtime.java
patch
|
blob
|
history
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();
}
-
+
+ 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() { }