summaryrefslogtreecommitdiffstats
path: root/sis.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2019-11-08 22:05:27 +0100
committerJiri Gaisler <jiri@gaisler.se>2019-11-09 11:14:15 +0100
commit7a6e198454d04ac6bf5f2009b4f693696c27e5c1 (patch)
tree291c9f146e49f7b2efcf939b780d3314e9310888 /sis.c
parentRemove unused variable xcpu (diff)
downloadsis-7a6e198454d04ac6bf5f2009b4f693696c27e5c1.tar.bz2
Support building on MinGW-W64/MSYS22.19
* Depends on MinGW64-readline to build
Diffstat (limited to 'sis.c')
-rw-r--r--sis.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sis.c b/sis.c
index fb89742..34d199d 100644
--- a/sis.c
+++ b/sis.c
@@ -29,12 +29,12 @@
#include <libgen.h>
#if HAVE_READLINE
- #include "readline/readline.h"
- #include "readline/history.h"
+#include "readline/readline.h"
+#include "readline/history.h"
#else
/* Linenoise as a readline library replacement
- https://github.com/antirez/linenoise */
- #include "linenoise.h"
+ https://github.com/antirez/linenoise */
+#include "linenoise.h"
#endif
/* Command history buffer length - MUST be binary */
@@ -258,7 +258,7 @@ main (argc, argv)
#if HAVE_READLINE
using_history ();
#else
- linenoiseHistorySetMaxLen(HIST_LEN);
+ linenoiseHistorySetMaxLen (HIST_LEN);
#endif
init_signals ();
ebase.simtime = 0;
@@ -346,7 +346,7 @@ main (argc, argv)
printf ("cpu %d breakpoint at 0x%08x reached\n",
ebase.bpcpu, sregs[ebase.bpcpu].pc);
break;
- case ERROR:
+ case ERROR_MODE:
printf ("cpu %d in error mode (tt = 0x%02x)\n",
ebase.bpcpu, sregs[ebase.bpcpu].trap);
stat = 0;