* remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type

to tm-a29k.h and a29k-tdep.c and make it an enum.
	* a29k-tdep.c (a29k_get_processor_type): New function.  Fix many
	aspects of how we detected the processor type.
	* remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
	rather than figuring out the type ourselves.
This commit is contained in:
Jim Kingdon
1993-09-16 23:45:46 +00:00
parent de8c35cfdb
commit ca0622e7e0
6 changed files with 80 additions and 96 deletions

View File

@ -715,3 +715,14 @@ extern void pop_frame ();
"Invalid register number %d in symbol table entry for %s\n", \
(num), SYMBOL_SOURCE_NAME (sym)), (num) \
: (num))
extern enum a29k_processor_types {
a29k_unknown,
/* Bit 0x400 of the CPS does *not* identify freeze mode, i.e. 29000,
29030, etc. */
a29k_no_freeze_mode,
/* Bit 0x400 of the CPS does identify freeze mode, i.e. 29050. */
a29k_freeze_mode
} processor_type;