* monitor.[ch], op50-rom.c, rom68k-rom.c, w89k-rom.c: Add support

to monitor config structure for supported baud rates for a target
	and variable stop bits.
	* monitor.c (monitor_fetch_register): Store register values in big
	endian format on any host.
This commit is contained in:
Rob Savoye
1994-12-30 01:26:37 +00:00
parent d383e289df
commit cf51c6017e
6 changed files with 112 additions and 19 deletions

View File

@@ -48,6 +48,8 @@ struct monitor_ops {
struct target_ops *target; /* target operations */
char *loadtypes; /* the load types that are supported */
char *loadprotos; /* the load protocols that are supported */
char *baudrates; /* supported baud rates */
int stopbits; /* number of stop bits */
char **regnames; /* array of register names in ascii */
};
@@ -73,6 +75,8 @@ extern struct monitor_ops *current_monitor;
#define PROMPT (current_monitor->prompt)
#define TARGET_OPS (current_monitor->target)
#define TARGET_NAME (current_monitor->target->to_shortname)
#define BAUDRATES (current_monitor->baudrates)
#define STOPBITS (current_monitor->stopbits)
#define REGNAMES(x) (current_monitor->regnames[x])
#define ROMCMD(x) (x.cmd)
#define ROMDELIM(x) (x.delim)