mirror of
https://github.com/sethm/symon.git
synced 2025-01-19 15:30:14 +00:00
Reset WIP
This commit is contained in:
parent
2dc0078deb
commit
b1e1e75555
@ -209,7 +209,7 @@ public class Simulator {
|
||||
|
||||
resetButton.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent actionEvent) {
|
||||
handleReset();
|
||||
handleReset(false);
|
||||
}
|
||||
});
|
||||
|
||||
@ -235,7 +235,7 @@ public class Simulator {
|
||||
mainWindow.setVisible(true);
|
||||
|
||||
console.requestFocus();
|
||||
handleReset();
|
||||
handleReset(false);
|
||||
}
|
||||
|
||||
public MAIN_CMD waitForCommand() {
|
||||
@ -268,7 +268,7 @@ public class Simulator {
|
||||
/*
|
||||
* Perform a reset.
|
||||
*/
|
||||
private void handleReset() {
|
||||
private void handleReset(boolean isColdReset) {
|
||||
if (runLoop != null && runLoop.isRunning()) {
|
||||
runLoop.requestStop();
|
||||
runLoop.interrupt();
|
||||
@ -283,6 +283,8 @@ public class Simulator {
|
||||
console.reset();
|
||||
// Reset the trace log.
|
||||
traceLog.reset();
|
||||
// If we're doing a cold reset, clear the memory.
|
||||
// TODO: Clear memory
|
||||
// Update status.
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user