* mem.h (m32c_sim_restore_console): New.
* main.c: Add Timer A support. Support TCP-based console.
(setup_tcp_console): New.
(main): Add Timer A support. Support TCP-based console.
+ * mem.h (m32c_sim_restore_console): New.
* mem.c: Add Timer A support. Support TCP-based console.
(mem_ptr): Enhance NULL pointer detection.
(stdin_ready): New.
#include "mem.h"
#include "load.h"
#include "syscalls.h"
+#ifdef TIMER_A
+#include "timer_a.h"
+#endif
/* I don't want to wrap up all the minisim's data structures in an
object and pass that around. That'd be a big change, and neither
}
static int console_raw = 0;
-static struct termios attr, oattr;
+static struct termios oattr;
static int
stdin_ready ()
void mem_get_blk (int address, void *bufptr, int nbytes);
int sign_ext (int v, int bits);
+
+void m32c_sim_restore_console ();
} Timer_A;
extern Timer_A timer_a;
+
+extern void update_timer_a ();