Oops, missed some warnings.
* mem.h (m32c_sim_restore_console): New.
This commit is contained in:
parent
3877a1459b
commit
7cc70e5388
5 changed files with 9 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
||||||
* main.c: Add Timer A support. Support TCP-based console.
|
* main.c: Add Timer A support. Support TCP-based console.
|
||||||
(setup_tcp_console): New.
|
(setup_tcp_console): New.
|
||||||
(main): Add Timer A support. Support TCP-based console.
|
(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.c: Add Timer A support. Support TCP-based console.
|
||||||
(mem_ptr): Enhance NULL pointer detection.
|
(mem_ptr): Enhance NULL pointer detection.
|
||||||
(stdin_ready): New.
|
(stdin_ready): New.
|
||||||
|
|
|
@ -35,6 +35,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "mem.h"
|
#include "mem.h"
|
||||||
#include "load.h"
|
#include "load.h"
|
||||||
#include "syscalls.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
|
/* 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
|
object and pass that around. That'd be a big change, and neither
|
||||||
|
|
|
@ -374,7 +374,7 @@ mem_get_pc ()
|
||||||
}
|
}
|
||||||
|
|
||||||
static int console_raw = 0;
|
static int console_raw = 0;
|
||||||
static struct termios attr, oattr;
|
static struct termios oattr;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
stdin_ready ()
|
stdin_ready ()
|
||||||
|
|
|
@ -39,3 +39,5 @@ unsigned long mem_get_si (int address);
|
||||||
void mem_get_blk (int address, void *bufptr, int nbytes);
|
void mem_get_blk (int address, void *bufptr, int nbytes);
|
||||||
|
|
||||||
int sign_ext (int v, int bits);
|
int sign_ext (int v, int bits);
|
||||||
|
|
||||||
|
void m32c_sim_restore_console ();
|
||||||
|
|
|
@ -10,3 +10,5 @@ typedef struct
|
||||||
} Timer_A;
|
} Timer_A;
|
||||||
|
|
||||||
extern Timer_A timer_a;
|
extern Timer_A timer_a;
|
||||||
|
|
||||||
|
extern void update_timer_a ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue